zhaojinyu e984acc6d0 first commit 10 月之前
..
01-basic.md e984acc6d0 first commit 10 月之前
02-events.md e984acc6d0 first commit 10 月之前
03-multiple-grids.md e984acc6d0 first commit 10 月之前
04-allow-ignore.md e984acc6d0 first commit 10 月之前
05-mirrored.md e984acc6d0 first commit 10 月之前
06-responsive.md e984acc6d0 first commit 10 月之前
07-prevent-collision.md e984acc6d0 first commit 10 月之前
08-responsive-predefined-layouts.md e984acc6d0 first commit 10 月之前
09-dynamic-add-remove.md e984acc6d0 first commit 10 月之前
10-drag-from-outside.md e984acc6d0 first commit 10 月之前
README.md e984acc6d0 first commit 10 月之前
auto-size.md e984acc6d0 first commit 10 月之前
events.md e984acc6d0 first commit 10 月之前
examples.md e984acc6d0 first commit 10 月之前
properties.md e984acc6d0 first commit 10 月之前
styling.md e984acc6d0 first commit 10 月之前
usage.md e984acc6d0 first commit 10 月之前

README.md

安装

NPM

npm install vue-grid-layout --save

Yarn

yarn add vue-grid-layout

导入库

    import VueGridLayout from 'vue-grid-layout';

添加到其他Vue组件

    export default {
        components: {
            GridLayout: VueGridLayout.GridLayout,
            GridItem: VueGridLayout.GridItem
        },
    // ... data, methods, mounted (), etc.
    }
    

浏览器

包括可用于浏览器的软件包(从发布版本下载)。组件将自动可用。

    <script src="vue-grid-layout.umd.min.js"></script>