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