diff --git a/mock/module/user.ts b/mock/module/user.ts index 4c4da44..ac49f17 100644 --- a/mock/module/user.ts +++ b/mock/module/user.ts @@ -51,7 +51,7 @@ const userRoutes = [ meta: { title: '多级菜单演示', requiresAuth: true, - icon: 'icon-park-outline:ambulance', + icon: 'icon-park-outline:list', }, children: [ { @@ -137,6 +137,94 @@ const userRoutes = [ }, ], }, + { + name: 'plugin', + path: '/plugin', + redirect: '/plugin/charts', + meta: { + title: '组件示例', + requiresAuth: true, + icon: 'icon-park-outline:application-one', + }, + children: [ + { + name: 'plugin_charts', + path: '/plugin/charts', + meta: { + title: '图表', + requiresAuth: true, + icon: 'icon-park-outline:chart-line', + }, + children: [ + { + name: 'echarts', + path: '/plugin/charts/echarts', + meta: { + title: 'ECharts', + requiresAuth: true, + icon: 'icon-park-outline:chart-proportion', + }, + }, + { + name: 'antV', + path: '/plugin/charts/antV', + meta: { + title: 'antV', + requiresAuth: true, + icon: 'ant-design:ant-design-outlined', + }, + }, + ], + }, + { + name: 'plugin_map', + path: '/plugin/map', + meta: { + title: '地图', + requiresAuth: true, + icon: 'carbon:map', + }, + }, + { + name: 'plugin_editor', + path: '/plugin/editor', + meta: { + title: '编辑器', + requiresAuth: true, + icon: 'icon-park-outline:editor', + }, + children: [ + { + name: 'md', + path: '/plugin/editor/md', + meta: { + title: 'MarkDown', + requiresAuth: true, + icon: 'ri:markdown-line', + }, + }, + { + name: 'rich', + path: '/plugin/editor/rich', + meta: { + title: '富文本', + requiresAuth: true, + icon: 'icon-park-outline:edit-one', + }, + }, + ], + }, + ], + }, + { + name: 'about', + path: '/about', + meta: { + title: '关于', + requiresAuth: true, + icon: 'icon-park-outline:info', + }, + }, ]; export default [ diff --git a/package.json b/package.json index fd7b029..304438c 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ }, "dependencies": { "axios": "^0.27.2", + "echarts": "^5.4.0", "pinia": "^2.0.20", "pinia-plugin-persist": "^1.0.0", "vue": "^3.2.37", diff --git a/src/layouts/BasicLayout/index.vue b/src/layouts/BasicLayout/index.vue index f2c60c1..fcdfdb2 100644 --- a/src/layouts/BasicLayout/index.vue +++ b/src/layouts/BasicLayout/index.vue @@ -43,7 +43,6 @@ > -
-
+ {{ appStore.footerText }} diff --git a/src/views/about/index.vue b/src/views/about/index.vue new file mode 100644 index 0000000..e8eef04 --- /dev/null +++ b/src/views/about/index.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/views/plugin/charts/antV/index.vue b/src/views/plugin/charts/antV/index.vue new file mode 100644 index 0000000..7143bc0 --- /dev/null +++ b/src/views/plugin/charts/antV/index.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/views/plugin/charts/echarts/index.vue b/src/views/plugin/charts/echarts/index.vue new file mode 100644 index 0000000..a9c5d58 --- /dev/null +++ b/src/views/plugin/charts/echarts/index.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/views/plugin/editor/md/index.vue b/src/views/plugin/editor/md/index.vue new file mode 100644 index 0000000..8fe0d81 --- /dev/null +++ b/src/views/plugin/editor/md/index.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/views/plugin/editor/rich/index.vue b/src/views/plugin/editor/rich/index.vue new file mode 100644 index 0000000..91e4437 --- /dev/null +++ b/src/views/plugin/editor/rich/index.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/views/plugin/map/index.vue b/src/views/plugin/map/index.vue new file mode 100644 index 0000000..e5fecf4 --- /dev/null +++ b/src/views/plugin/map/index.vue @@ -0,0 +1,7 @@ + + + + +