From f5f5d07da932c32ab5b8cdfd1d64fe456fc25daf Mon Sep 17 00:00:00 2001
From: Coffee-crocodile <1147347984@qq.com>
Date: Wed, 12 Oct 2022 12:41:34 +0800
Subject: [PATCH] =?UTF-8?q?feat(project):=20=E5=A2=9E=E5=8A=A0=E4=BE=A7?=
=?UTF-8?q?=E8=BE=B9=E8=8F=9C=E5=8D=95=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mock/module/user.ts | 90 ++++++++++++++++++++++-
package.json | 1 +
src/layouts/BasicLayout/index.vue | 3 +-
src/views/about/index.vue | 7 ++
src/views/plugin/charts/antV/index.vue | 7 ++
src/views/plugin/charts/echarts/index.vue | 7 ++
src/views/plugin/editor/md/index.vue | 7 ++
src/views/plugin/editor/rich/index.vue | 7 ++
src/views/plugin/map/index.vue | 7 ++
9 files changed, 133 insertions(+), 3 deletions(-)
create mode 100644 src/views/about/index.vue
create mode 100644 src/views/plugin/charts/antV/index.vue
create mode 100644 src/views/plugin/charts/echarts/index.vue
create mode 100644 src/views/plugin/editor/md/index.vue
create mode 100644 src/views/plugin/editor/rich/index.vue
create mode 100644 src/views/plugin/map/index.vue
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 @@
+
+ antV
+
+
+
+
+
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 @@
+
+ echarts
+
+
+
+
+
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 @@
+
+ markdown
+
+
+
+
+
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 @@
+
+ 地图示例
+
+
+
+
+