From c44fa6a4856b656742bc8c6563caba05a81a0f99 Mon Sep 17 00:00:00 2001 From: Cheng JIANG Date: Tue, 1 May 2018 21:07:27 +0200 Subject: [PATCH] improve --- package.json | 2 +- src/components/LayoutGrid/LayoutGrid.vue | 40 ++++++++++++++++++------ src/store/LayoutGridStore.js | 3 ++ 3 files changed, 34 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index ddc8a49..b0721f4 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "layout-grid", + "name": "vue-layout-grid", "version": "0.0.1", "description": "layout gridster with vue", "main": "dist/LayoutGrid.min.js", diff --git a/src/components/LayoutGrid/LayoutGrid.vue b/src/components/LayoutGrid/LayoutGrid.vue index 434e1ee..377375e 100644 --- a/src/components/LayoutGrid/LayoutGrid.vue +++ b/src/components/LayoutGrid/LayoutGrid.vue @@ -7,7 +7,7 @@ :margin="margin" :is-draggable="editable" :is-resizable="editable" - @layout-updated="(n) => $emit('updated', n)"> + @layout-updated="(n) => onLayoutUpdated(n)"> @@ -75,6 +75,7 @@
@@ -88,7 +89,7 @@