vue-vben-admin/src/router/menus/modules/demo/comp.ts

250 lines
5.8 KiB
TypeScript
Raw Normal View History

2020-09-28 20:19:10 +08:00
import type { MenuModule } from '/@/router/types.d';
2020-12-09 00:12:44 +08:00
import { t } from '/@/hooks/web/useI18n';
2020-11-26 21:10:21 +08:00
2020-09-28 20:19:10 +08:00
const menu: MenuModule = {
orderNo: 30,
menu: {
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.comp'),
2020-09-28 20:19:10 +08:00
path: '/comp',
2020-12-01 21:02:37 +08:00
tag: {
dot: true,
},
2020-09-28 20:19:10 +08:00
children: [
{
2020-10-22 23:56:33 +08:00
path: 'basic',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.basic'),
2020-09-28 20:19:10 +08:00
},
2020-12-21 23:38:16 +08:00
{
path: 'form',
name: t('routes.demo.form.form'),
children: [
{
path: 'basic',
name: t('routes.demo.form.basic'),
},
{
path: 'useForm',
name: t('routes.demo.form.useForm'),
},
{
path: 'refForm',
name: t('routes.demo.form.refForm'),
},
{
path: 'advancedForm',
name: t('routes.demo.form.advancedForm'),
},
{
path: 'ruleForm',
name: t('routes.demo.form.ruleForm'),
},
{
path: 'dynamicForm',
name: t('routes.demo.form.dynamicForm'),
},
{
path: 'customerForm',
name: t('routes.demo.form.customerForm'),
},
],
},
{
path: 'table',
name: t('routes.demo.table.table'),
children: [
{
path: 'basic',
name: t('routes.demo.table.basic'),
},
{
path: 'treeTable',
name: t('routes.demo.table.treeTable'),
},
{
path: 'fetchTable',
name: t('routes.demo.table.fetchTable'),
},
{
path: 'fixedColumn',
name: t('routes.demo.table.fixedColumn'),
},
{
path: 'customerCell',
name: t('routes.demo.table.customerCell'),
},
{
path: 'formTable',
name: t('routes.demo.table.formTable'),
},
{
path: 'useTable',
name: t('routes.demo.table.useTable'),
},
{
path: 'refTable',
name: t('routes.demo.table.refTable'),
},
{
path: 'multipleHeader',
name: t('routes.demo.table.multipleHeader'),
},
{
path: 'mergeHeader',
name: t('routes.demo.table.mergeHeader'),
},
{
path: 'expandTable',
name: t('routes.demo.table.expandTable'),
},
{
path: 'fixedHeight',
name: t('routes.demo.table.fixedHeight'),
},
{
path: 'footerTable',
name: t('routes.demo.table.footerTable'),
},
{
path: 'editCellTable',
name: t('routes.demo.table.editCellTable'),
},
{
path: 'editRowTable',
name: t('routes.demo.table.editRowTable'),
},
],
},
2020-10-12 01:15:31 +08:00
{
2020-10-22 23:56:33 +08:00
path: 'countTo',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.countTo'),
2020-10-12 01:15:31 +08:00
},
{
path: 'transition',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.transition'),
},
2020-10-11 23:48:25 +08:00
{
path: 'modal',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.modal'),
},
{
path: 'drawer',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.drawer'),
},
{
path: 'desc',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.desc'),
},
{
path: 'qrcode',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.qrcode'),
},
{
path: 'strength-meter',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.strength'),
},
2020-11-15 13:22:34 +08:00
{
path: 'upload',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.upload'),
2020-11-15 13:22:34 +08:00
},
{
path: 'loading',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.loading'),
2020-12-01 21:02:37 +08:00
tag: {
content: 'new',
},
},
2020-12-21 23:38:16 +08:00
{
path: 'tree',
name: t('routes.demo.comp.tree'),
children: [
{
path: 'basic',
name: t('routes.demo.comp.treeBasic'),
},
{
path: 'editTree',
name: t('routes.demo.comp.editTree'),
},
{
path: 'actionTree',
name: t('routes.demo.comp.actionTree'),
},
],
},
{
name: t('routes.demo.editor.editor'),
path: 'editor',
children: [
{
path: 'markdown',
name: t('routes.demo.editor.markdown'),
},
{
path: 'tinymce',
name: t('routes.demo.editor.tinymce'),
children: [
{
path: 'index',
name: t('routes.demo.editor.tinymceBasic'),
},
{
path: 'editor',
name: t('routes.demo.editor.tinymceForm'),
},
],
},
],
},
2020-09-28 20:19:10 +08:00
{
2020-10-22 23:56:33 +08:00
path: 'scroll',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.scroll'),
2020-09-28 20:19:10 +08:00
children: [
{
path: 'basic',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.scrollBasic'),
2020-09-28 20:19:10 +08:00
},
{
path: 'action',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.scrollAction'),
2020-09-28 20:19:10 +08:00
},
{
path: 'virtualScroll',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.virtualScroll'),
2020-09-28 20:19:10 +08:00
},
],
},
2020-10-26 00:34:23 +08:00
{
path: 'lazy',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.lazy'),
children: [
{
path: 'basic',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.lazyBasic'),
},
{
path: 'transition',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.lazyTransition'),
},
],
2020-10-26 00:34:23 +08:00
},
2020-09-28 20:19:10 +08:00
{
2020-10-22 23:56:33 +08:00
path: 'verify',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.verify'),
2020-09-28 20:19:10 +08:00
children: [
{
2020-10-22 23:56:33 +08:00
path: 'drag',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.verifyDrag'),
2020-09-28 20:19:10 +08:00
},
{
2020-10-22 23:56:33 +08:00
path: 'rotate',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.comp.verifyRotate'),
2020-11-12 22:15:15 +08:00
},
],
},
2020-09-28 20:19:10 +08:00
],
},
};
export default menu;