ruoyi-plus-soybean/src/router/modules/plugin.ts

106 lines
2.2 KiB
TypeScript
Raw Normal View History

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,
icon: 'mdi:map'
}
2022-03-30 01:19:37 +08:00
},
{
name: 'plugin_video',
path: '/plugin/video',
component: 'self',
meta: {
title: '视频',
requiresAuth: true,
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,
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,
icon: 'ri:markdown-line'
}
}
2022-03-30 01:19:37 +08:00
],
meta: {
title: '编辑器',
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,
icon: 'simple-icons:swiper'
}
2022-03-30 01:19:37 +08:00
},
{
name: 'plugin_copy',
path: '/plugin/copy',
component: 'self',
meta: {
title: '剪贴板',
requiresAuth: true,
icon: 'mdi:clipboard-outline'
}
2022-03-30 01:19:37 +08:00
},
{
name: 'plugin_icon',
path: '/plugin/icon',
component: 'self',
meta: {
title: '图标',
requiresAuth: true,
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,
icon: 'ic:baseline-local-printshop'
}
}
2022-03-30 01:19:37 +08:00
],
meta: {
title: '插件示例',
icon: 'clarity:plugin-line',
order: 4
}
2022-03-30 01:19:37 +08:00
};
export default plugin;