From ae540dffd4dee1df0c8c819f0e37ddc1bdc43f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9D=A8?= <1711467488@qq.com> Date: Fri, 16 Feb 2018 20:41:27 +0800 Subject: [PATCH] no message Former-commit-id: 4d826fb809eba0f7fad6c24f4fe7eecbf91d99c8 Former-commit-id: 6f8362c41e86549fb2e494b3d00d9a32be9b48ff Former-commit-id: fcfd2d9ed3ddb5a0197cba80864cfe52a6679635 --- .../demo.vue => layout/grid.vue} | 0 .../demo.vue => layout/splitpane.vue} | 0 src/router/menu/_plugin.js | 61 ++++++++----------- 3 files changed, 27 insertions(+), 34 deletions(-) rename src/pages/demo/plugins/{vue-grid-layout/demo.vue => layout/grid.vue} (100%) rename src/pages/demo/plugins/{vue-splitpane/demo.vue => layout/splitpane.vue} (100%) diff --git a/src/pages/demo/plugins/vue-grid-layout/demo.vue b/src/pages/demo/plugins/layout/grid.vue similarity index 100% rename from src/pages/demo/plugins/vue-grid-layout/demo.vue rename to src/pages/demo/plugins/layout/grid.vue diff --git a/src/pages/demo/plugins/vue-splitpane/demo.vue b/src/pages/demo/plugins/layout/splitpane.vue similarity index 100% rename from src/pages/demo/plugins/vue-splitpane/demo.vue rename to src/pages/demo/plugins/layout/splitpane.vue diff --git a/src/router/menu/_plugin.js b/src/router/menu/_plugin.js index e326b44c..227285f3 100644 --- a/src/router/menu/_plugin.js +++ b/src/router/menu/_plugin.js @@ -48,6 +48,33 @@ export const menu = { } ] }, + // 布局 + { + title: '布局', + icon: 'object-ungroup', + children: [ + { + title: '可拖动网格布局', + icon: 'file-o', + path: 'layout/grid', + name: 'demo-plugins-layout-grid', + meta: { + requiresAuth: true + }, + component: resolve => { require(['@/pages/demo/plugins/layout/grid.vue'], resolve) } + }, + { + title: '可调布局', + icon: 'file-o', + path: 'layout/splitpane', + name: 'demo-plugins-layout-splitpane', + meta: { + requiresAuth: true + }, + component: resolve => { require(['@/pages/demo/plugins/layout/splitpane.vue'], resolve) } + } + ] + }, // 多国语 { title: '多国语', @@ -173,23 +200,6 @@ export const menu = { } ] }, - // 拖拽网格布局组件 - { - title: '可拖拽网格布局', - icon: 'object-ungroup', - children: [ - { - title: '基本示例', - icon: 'file-o', - path: 'vue-grid-layout/demo', - name: 'demo-plugins-vue-grid-layout-demo', - meta: { - requiresAuth: true - }, - component: resolve => { require(['@/pages/demo/plugins/vue-grid-layout/demo.vue'], resolve) } - } - ] - }, // clipboard-polyfill { title: '剪贴板', @@ -241,23 +251,6 @@ export const menu = { } ] }, - // 可调布局组件 - { - title: '可调布局', - icon: 'object-group', - children: [ - { - title: '基本示例', - icon: 'file-o', - path: 'vue-splitpane/demo', - name: 'demo-plugins-vue-splitpane-demo', - meta: { - requiresAuth: true - }, - component: resolve => { require(['@/pages/demo/plugins/vue-splitpane/demo.vue'], resolve) } - } - ] - }, // markdown 解析库 { title: 'markdown解析',