- 拖拽排序
+ 拖拽组件
+ 拖拽排序
diff --git a/src/main.js b/src/main.js
index 8bcf238..82c8c65 100644
--- a/src/main.js
+++ b/src/main.js
@@ -6,6 +6,7 @@ import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'; // 默认主题
// import '../static/css/theme-green/index.css'; // 浅绿色主题
import '../static/css/icon.css';
+import './components/common/directives';
import "babel-polyfill";
Vue.use(ElementUI, { size: 'small' });
diff --git a/src/router/index.js b/src/router/index.js
index 74bc738..6db7263 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -69,6 +69,12 @@ export default new Router({
component: resolve => require(['../components/page/DragList.vue'], resolve),
meta: { title: '拖拽列表' }
},
+ {
+ // 拖拽Dialog组件
+ path: '/dialog',
+ component: resolve => require(['../components/page/DragDialog.vue'], resolve),
+ meta: { title: '拖拽弹框' }
+ },
{
// 权限页面
path: '/permission',
From 9b3052774b1f49a0c2e658c82abc378407ee5dfe Mon Sep 17 00:00:00 2001
From: lin-xin <2981207131@qq.com>
Date: Fri, 28 Dec 2018 16:29:50 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BD=BF=E7=94=A8index?=
=?UTF-8?q?=E4=BD=9C=E4=B8=BAv-for=E7=9A=84key?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/page/DragList.vue | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/components/page/DragList.vue b/src/components/page/DragList.vue
index 491eabe..96527c8 100644
--- a/src/components/page/DragList.vue
+++ b/src/components/page/DragList.vue
@@ -16,7 +16,7 @@
todo
-
+
{{item.content}}
@@ -26,7 +26,7 @@
doing
-
+
{{item.content}}
@@ -36,7 +36,7 @@
done
-
+
{{item.content}}
@@ -61,34 +61,43 @@
},
todo: [
{
+ id: 1,
content: '开发图表组件'
},
{
+ id: 2,
content: '开发拖拽组件'
},
{
+ id: 3,
content: '开发权限测试组件'
}
],
doing: [
{
+ id: 1,
content: '开发登录注册页面'
},
{
+ id: 2,
content: '开发头部组件'
},
{
+ id: 3,
content: '开发表格相关组件'
},
{
+ id: 4,
content: '开发表单相关组件'
}
],
done:[
{
+ id: 1,
content: '初始化项目,生成工程目录,完成相关配置'
},
{
+ id: 2,
content: '开发项目整体框架'
}
]