2022-03-30 01:19:37 +08:00
|
|
|
const plugin: AuthRoute.Route = {
|
|
|
|
name: 'plugin',
|
|
|
|
path: '/plugin',
|
|
|
|
component: 'basic',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
name: 'plugin_map',
|
|
|
|
path: '/plugin/map',
|
|
|
|
component: 'self',
|
|
|
|
meta: {
|
|
|
|
title: '地图',
|
|
|
|
requiresAuth: true,
|
2022-04-01 14:47:57 +08:00
|
|
|
icon: 'mdi:map'
|
|
|
|
}
|
2022-03-30 01:19:37 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'plugin_video',
|
|
|
|
path: '/plugin/video',
|
|
|
|
component: 'self',
|
|
|
|
meta: {
|
|
|
|
title: '视频',
|
|
|
|
requiresAuth: true,
|
2022-04-01 14:47:57 +08:00
|
|
|
icon: 'mdi:video'
|
|
|
|
}
|
2022-03-30 01:19:37 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'plugin_editor',
|
|
|
|
path: '/plugin/editor',
|
|
|
|
component: 'multi',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
name: 'plugin_editor_quill',
|
|
|
|
path: '/plugin/editor/quill',
|
|
|
|
component: 'self',
|
|
|
|
meta: {
|
|
|
|
title: '富文本编辑器',
|
|
|
|
requiresAuth: true,
|
2022-04-01 14:47:57 +08:00
|
|
|
icon: 'mdi:file-document-edit-outline'
|
|
|
|
}
|
2022-03-30 01:19:37 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'plugin_editor_markdown',
|
|
|
|
path: '/plugin/editor/markdown',
|
|
|
|
component: 'self',
|
|
|
|
meta: {
|
|
|
|
title: 'markdown编辑器',
|
|
|
|
requiresAuth: true,
|
2022-04-01 14:47:57 +08:00
|
|
|
icon: 'ri:markdown-line'
|
|
|
|
}
|
|
|
|
}
|
2022-03-30 01:19:37 +08:00
|
|
|
],
|
|
|
|
meta: {
|
|
|
|
title: '编辑器',
|
2022-04-01 14:47:57 +08:00
|
|
|
icon: 'icon-park-outline:editor'
|
|
|
|
}
|
2022-03-30 01:19:37 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'plugin_swiper',
|
|
|
|
path: '/plugin/swiper',
|
|
|
|
component: 'self',
|
|
|
|
meta: {
|
|
|
|
title: 'Swiper插件',
|
|
|
|
requiresAuth: true,
|
2022-04-01 14:47:57 +08:00
|
|
|
icon: 'simple-icons:swiper'
|
|
|
|
}
|
2022-03-30 01:19:37 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'plugin_copy',
|
|
|
|
path: '/plugin/copy',
|
|
|
|
component: 'self',
|
|
|
|
meta: {
|
|
|
|
title: '剪贴板',
|
|
|
|
requiresAuth: true,
|
2022-04-01 14:47:57 +08:00
|
|
|
icon: 'mdi:clipboard-outline'
|
|
|
|
}
|
2022-03-30 01:19:37 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'plugin_icon',
|
|
|
|
path: '/plugin/icon',
|
|
|
|
component: 'self',
|
|
|
|
meta: {
|
|
|
|
title: '图标',
|
|
|
|
requiresAuth: true,
|
2022-04-01 14:47:57 +08:00
|
|
|
icon: 'ic:baseline-insert-emoticon'
|
|
|
|
}
|
2022-03-30 01:19:37 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'plugin_print',
|
|
|
|
path: '/plugin/print',
|
|
|
|
component: 'self',
|
|
|
|
meta: {
|
|
|
|
title: '打印',
|
|
|
|
requiresAuth: true,
|
2022-04-01 14:47:57 +08:00
|
|
|
icon: 'ic:baseline-local-printshop'
|
|
|
|
}
|
|
|
|
}
|
2022-03-30 01:19:37 +08:00
|
|
|
],
|
|
|
|
meta: {
|
|
|
|
title: '插件示例',
|
|
|
|
icon: 'clarity:plugin-line',
|
2022-04-01 14:47:57 +08:00
|
|
|
order: 4
|
|
|
|
}
|
2022-03-30 01:19:37 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export default plugin;
|