mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-29 14:46:41 +08:00
feat(components): 添加插件示例--echarts 图表
This commit is contained in:
commit
658da065c0
11682
pnpm-lock.yaml
11682
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -179,7 +179,9 @@ const local: App.I18n.Schema = {
|
||||
exception_404: '404',
|
||||
exception_500: '500',
|
||||
plugin: 'Plugin',
|
||||
plugin_copy: 'copy'
|
||||
plugin_copy: 'copy',
|
||||
plugin_charts: 'Charts',
|
||||
plugin_charts_echart: 'ECharts'
|
||||
},
|
||||
page: {
|
||||
login: {
|
||||
|
@ -179,7 +179,9 @@ const local: App.I18n.Schema = {
|
||||
exception_404: '404',
|
||||
exception_500: '500',
|
||||
plugin: '插件示例',
|
||||
plugin_copy: '剪贴板'
|
||||
plugin_copy: '剪贴板',
|
||||
plugin_charts: '图表',
|
||||
plugin_charts_echart: 'ECharts'
|
||||
},
|
||||
page: {
|
||||
login: {
|
||||
|
@ -36,6 +36,7 @@ export const views: Record<LastLevelRouteKey, RouteComponent | (() => Promise<Ro
|
||||
manage_user: () => import("@/views/manage/user/index.vue"),
|
||||
"multi-menu_first_child": () => import("@/views/multi-menu/first_child/index.vue"),
|
||||
"multi-menu_second_child_home": () => import("@/views/multi-menu/second_child_home/index.vue"),
|
||||
plugin_charts_echart: () => import("@/views/plugin/charts/echart/index.vue"),
|
||||
plugin_copy: () => import("@/views/plugin/copy/index.vue"),
|
||||
"user-center": () => import("@/views/user-center/index.vue"),
|
||||
};
|
||||
|
@ -337,10 +337,31 @@ export const generatedRoutes: GeneratedRoute[] = [
|
||||
meta: {
|
||||
title: '插件示例',
|
||||
i18nKey: 'route.plugin',
|
||||
order: 7,
|
||||
icon: 'clarity:plugin-line',
|
||||
order: 6,
|
||||
icon: 'clarity:plugin-line'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'plugin_charts',
|
||||
path: '/plugin/charts',
|
||||
meta: {
|
||||
title: 'plugin_charts',
|
||||
i18nKey: 'route.plugin_charts',
|
||||
icon: 'mdi:chart-areaspline'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'plugin_charts_echart',
|
||||
path: '/plugin/charts/echart',
|
||||
component: 'view.plugin_charts_echart',
|
||||
meta: {
|
||||
title: 'plugin_charts_echart',
|
||||
i18nKey: 'route.plugin_charts_echart',
|
||||
icon: 'simple-icons:apacheecharts'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'plugin_copy',
|
||||
path: '/plugin/copy',
|
||||
@ -348,7 +369,7 @@ export const generatedRoutes: GeneratedRoute[] = [
|
||||
meta: {
|
||||
title: '剪贴板',
|
||||
icon: 'mdi:clipboard-outline',
|
||||
i18nKey: 'route.plugin_copy',
|
||||
i18nKey: 'route.plugin_copy'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@ -184,6 +184,8 @@ const routeMap: RouteMap = {
|
||||
"multi-menu_second_child": "/multi-menu/second/child",
|
||||
"multi-menu_second_child_home": "/multi-menu/second/child/home",
|
||||
"plugin": "/plugin",
|
||||
"plugin_charts": "/plugin/charts",
|
||||
"plugin_charts_echart": "/plugin/charts/echart",
|
||||
"plugin_copy": "/plugin/copy",
|
||||
"user-center": "/user-center"
|
||||
};
|
||||
|
3
src/typings/elegant-router.d.ts
vendored
3
src/typings/elegant-router.d.ts
vendored
@ -58,6 +58,8 @@ declare module "@elegant-router/types" {
|
||||
"multi-menu_second_child": "/multi-menu/second/child";
|
||||
"multi-menu_second_child_home": "/multi-menu/second/child/home";
|
||||
"plugin": "/plugin";
|
||||
"plugin_charts": "/plugin/charts";
|
||||
"plugin_charts_echart": "/plugin/charts/echart";
|
||||
"plugin_copy": "/plugin/copy";
|
||||
"user-center": "/user-center";
|
||||
};
|
||||
@ -154,6 +156,7 @@ declare module "@elegant-router/types" {
|
||||
| "manage_user"
|
||||
| "multi-menu_first_child"
|
||||
| "multi-menu_second_child_home"
|
||||
| "plugin_charts_echart"
|
||||
| "plugin_copy"
|
||||
| "user-center"
|
||||
>;
|
||||
|
Loading…
Reference in New Issue
Block a user