From 2ec40ff91ee24330b263eae901527e80d46cc9ea Mon Sep 17 00:00:00 2001 From: yugasun Date: Mon, 23 Apr 2018 15:13:44 +0800 Subject: [PATCH] feat: add drag kanban component demo --- package.json | 1 + src/lang/en.js | 1 + src/lang/zh.js | 1 + src/router/index.js | 3 +- src/views/components-demo/dragKanban.vue | 210 +++++++++++++++++++++++ 5 files changed, 215 insertions(+), 1 deletion(-) create mode 100644 src/views/components-demo/dragKanban.vue diff --git a/package.json b/package.json index 96742a86..c19bc0cf 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "jsonlint": "1.6.2", "jszip": "3.1.5", "mockjs": "1.0.1-beta3", + "muuri": "^0.5.4", "normalize.css": "7.0.0", "nprogress": "0.2.0", "screenfull": "3.3.2", diff --git a/src/lang/en.js b/src/lang/en.js index c08c88ef..fc0405c9 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -19,6 +19,7 @@ export default { componentMixin: 'Mixin', backToTop: 'BackToTop', dragDialog: 'Drag Dialog', + dragKanban: 'Drag Kanban', charts: 'Charts', keyboardChart: 'Keyboard Chart', lineChart: 'Line Chart', diff --git a/src/lang/zh.js b/src/lang/zh.js index a4cc93d4..28f9aab8 100644 --- a/src/lang/zh.js +++ b/src/lang/zh.js @@ -19,6 +19,7 @@ export default { componentMixin: '小组件', backToTop: '返回顶部', dragDialog: '拖拽 Dialog', + dragKanban: 'Drag Kanban', charts: '图表', keyboardChart: '键盘图表', lineChart: '折线图', diff --git a/src/router/index.js b/src/router/index.js index a5d704ef..5e1c80f1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -112,7 +112,8 @@ export const asyncRouterMap = [ { path: 'count-to', component: _import('components-demo/countTo'), name: 'countTo-demo', meta: { title: 'countTo' }}, { path: 'mixin', component: _import('components-demo/mixin'), name: 'componentMixin-demo', meta: { title: 'componentMixin' }}, { path: 'back-to-top', component: _import('components-demo/backToTop'), name: 'backToTop-demo', meta: { title: 'backToTop' }}, - { path: 'drag-dialog', component: _import('components-demo/dragDialog'), name: 'dragDialog-demo', meta: { title: 'dragDialog' }} + { path: 'drag-dialog', component: _import('components-demo/dragDialog'), name: 'dragDialog-demo', meta: { title: 'dragDialog' }}, + { path: 'drag-grid', component: _import('components-demo/dragKanban'), name: 'dragKanban-demo', meta: { title: 'dragKanban' }} ] }, diff --git a/src/views/components-demo/dragKanban.vue b/src/views/components-demo/dragKanban.vue new file mode 100644 index 00000000..b28751fe --- /dev/null +++ b/src/views/components-demo/dragKanban.vue @@ -0,0 +1,210 @@ + + + +