From ab33e5004a669684a7d8f0d0e206a763c142b429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Mon, 4 Jun 2018 12:40:35 +0800 Subject: [PATCH] add Panel --- src/code/panel.js | 14 +++++++ src/router.js | 7 ++++ src/views/components/panel.vue | 77 ++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 src/code/panel.js create mode 100644 src/views/components/panel.vue diff --git a/src/code/panel.js b/src/code/panel.js new file mode 100644 index 0000000..8d7d899 --- /dev/null +++ b/src/code/panel.js @@ -0,0 +1,14 @@ +let code = {}; + +code.import = ` +"usingComponents": { + "i-panel": "../../dist/panel/index" +} +`; +code.usage = ` + + PANEL 内容区域 + +`; + +export default code; \ No newline at end of file diff --git a/src/router.js b/src/router.js index dfd16fc..16ea72e 100755 --- a/src/router.js +++ b/src/router.js @@ -37,6 +37,13 @@ const routers = [ }, component: (resolve) => require(['./views/components/grid.vue'], resolve) }, + { + path: '/components/panel', + meta: { + title: '面板 Panel' + }, + component: (resolve) => require(['./views/components/panel.vue'], resolve) + }, { path: '*', redirect: '/' diff --git a/src/views/components/panel.vue b/src/views/components/panel.vue new file mode 100644 index 0000000..94a7824 --- /dev/null +++ b/src/views/components/panel.vue @@ -0,0 +1,77 @@ + + \ No newline at end of file