From 31670cd671038fb86559d12b467e0ff41c971691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Sun, 11 Sep 2022 17:08:36 +0800 Subject: [PATCH] mod: base demo --- src/views/demo/base/dialog/index.vue | 19 ----- src/views/demo/base/index.vue | 89 ++++++++++++++++++++++++ src/views/demo/base/keep-alive/index.vue | 3 +- src/views/demo/base/message/index.vue | 21 ------ src/views/demo/base/route.js | 33 ++++----- src/views/demo/base/unocss/index.vue | 2 +- 6 files changed, 104 insertions(+), 63 deletions(-) delete mode 100644 src/views/demo/base/dialog/index.vue create mode 100644 src/views/demo/base/index.vue delete mode 100644 src/views/demo/base/message/index.vue diff --git a/src/views/demo/base/dialog/index.vue b/src/views/demo/base/dialog/index.vue deleted file mode 100644 index a5f45bf..0000000 --- a/src/views/demo/base/dialog/index.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/src/views/demo/base/index.vue b/src/views/demo/base/index.vue new file mode 100644 index 0000000..b87eaa9 --- /dev/null +++ b/src/views/demo/base/index.vue @@ -0,0 +1,89 @@ + + + diff --git a/src/views/demo/base/keep-alive/index.vue b/src/views/demo/base/keep-alive/index.vue index 387ebb6..2d253ba 100644 --- a/src/views/demo/base/keep-alive/index.vue +++ b/src/views/demo/base/keep-alive/index.vue @@ -1,8 +1,9 @@ diff --git a/src/views/demo/base/message/index.vue b/src/views/demo/base/message/index.vue deleted file mode 100644 index c083083..0000000 --- a/src/views/demo/base/message/index.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/src/views/demo/base/route.js b/src/views/demo/base/route.js index 00581a7..e2bf675 100644 --- a/src/views/demo/base/route.js +++ b/src/views/demo/base/route.js @@ -4,37 +4,28 @@ export default { name: 'Test', path: '/base', component: Layout, - redirect: '/base/unocss', + redirect: '/base/index', meta: { title: '基础功能', - customIcon: 'logo', + icon: 'majesticons:compass-line', order: 1, }, children: [ + { + name: 'BaseComponents', + path: 'idnex', + component: () => import('./index.vue'), + meta: { + title: '基础组件', + icon: 'material-symbols:auto-awesome-outline-rounded', + }, + }, { name: 'Unocss', path: 'unocss', component: () => import('./unocss/index.vue'), meta: { - title: '测试unocss', - icon: 'material-symbols:auto-awesome-outline-rounded', - }, - }, - { - name: 'Message', - path: 'message', - component: () => import('./message/index.vue'), - meta: { - title: '测试Message', - icon: 'material-symbols:auto-awesome-outline-rounded', - }, - }, - { - name: 'Dialog', - path: 'dialog', - component: () => import('./dialog/index.vue'), - meta: { - title: '测试Dialog', + title: 'Unocss', icon: 'material-symbols:auto-awesome-outline-rounded', }, }, diff --git a/src/views/demo/base/unocss/index.vue b/src/views/demo/base/unocss/index.vue index 65d6dc1..65067de 100644 --- a/src/views/demo/base/unocss/index.vue +++ b/src/views/demo/base/unocss/index.vue @@ -61,6 +61,6 @@ -

Flex 骰子

+

Flex 骰子