2020-12-23 21:51:22 +08:00
|
|
|
import type { MenuModule } from '/@/router/types';
|
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 = {
|
2020-11-12 22:15:15 +08:00
|
|
|
orderNo: 19,
|
2020-09-28 20:19:10 +08:00
|
|
|
menu: {
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.feat'),
|
2020-09-28 20:19:10 +08:00
|
|
|
path: '/feat',
|
|
|
|
|
children: [
|
2020-10-11 23:48:25 +08:00
|
|
|
{
|
2020-10-22 23:56:33 +08:00
|
|
|
path: 'icon',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.icon'),
|
2020-10-11 23:48:25 +08:00
|
|
|
},
|
2021-03-02 00:28:20 +08:00
|
|
|
{
|
|
|
|
|
path: 'ws',
|
|
|
|
|
name: t('routes.demo.feat.ws'),
|
|
|
|
|
},
|
2021-05-25 23:14:05 +08:00
|
|
|
{
|
|
|
|
|
name: t('routes.demo.feat.sessionTimeout'),
|
|
|
|
|
path: 'session-timeout',
|
|
|
|
|
},
|
2020-09-28 20:19:10 +08:00
|
|
|
{
|
2020-10-22 23:56:33 +08:00
|
|
|
path: 'tabs',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.tabs'),
|
2020-09-28 20:19:10 +08:00
|
|
|
},
|
2020-12-24 22:02:24 +08:00
|
|
|
|
2020-09-28 20:19:10 +08:00
|
|
|
{
|
2020-10-22 23:56:33 +08:00
|
|
|
path: 'context-menu',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.contextMenu'),
|
2020-09-28 20:19:10 +08:00
|
|
|
},
|
2020-11-13 00:55:25 +08:00
|
|
|
{
|
|
|
|
|
path: 'download',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.download'),
|
2020-11-13 00:55:25 +08:00
|
|
|
},
|
2021-03-28 00:04:19 +08:00
|
|
|
{
|
|
|
|
|
path: 'print',
|
|
|
|
|
name: t('routes.demo.feat.print'),
|
|
|
|
|
},
|
2020-10-11 23:48:25 +08:00
|
|
|
{
|
2020-10-22 23:56:33 +08:00
|
|
|
path: 'click-out-side',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.clickOutSide'),
|
2020-10-11 23:48:25 +08:00
|
|
|
},
|
2020-10-07 10:11:25 +08:00
|
|
|
{
|
2020-10-22 23:56:33 +08:00
|
|
|
path: 'img-preview',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.imgPreview'),
|
2020-10-07 10:11:25 +08:00
|
|
|
},
|
2020-09-28 20:19:10 +08:00
|
|
|
{
|
2020-10-22 23:56:33 +08:00
|
|
|
path: 'copy',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.copy'),
|
2020-09-28 20:19:10 +08:00
|
|
|
},
|
|
|
|
|
{
|
2020-10-22 23:56:33 +08:00
|
|
|
path: 'msg',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.msg'),
|
2020-09-28 20:19:10 +08:00
|
|
|
},
|
|
|
|
|
{
|
2020-10-22 23:56:33 +08:00
|
|
|
path: 'watermark',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.watermark'),
|
2020-09-28 20:19:10 +08:00
|
|
|
},
|
2020-12-21 22:34:07 +08:00
|
|
|
{
|
|
|
|
|
path: 'ripple',
|
|
|
|
|
name: t('routes.demo.feat.ripple'),
|
|
|
|
|
},
|
2020-09-28 20:19:10 +08:00
|
|
|
{
|
2020-10-22 23:56:33 +08:00
|
|
|
path: 'full-screen',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.fullScreen'),
|
2020-09-28 20:19:10 +08:00
|
|
|
},
|
2020-11-03 21:30:25 +08:00
|
|
|
{
|
|
|
|
|
path: 'error-log',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.errorLog'),
|
2020-11-03 21:30:25 +08:00
|
|
|
},
|
2020-12-23 22:55:14 +08:00
|
|
|
|
2020-12-21 23:38:16 +08:00
|
|
|
{
|
|
|
|
|
name: t('routes.demo.excel.excel'),
|
|
|
|
|
path: 'excel',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'customExport',
|
|
|
|
|
name: t('routes.demo.excel.customExport'),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'jsonExport',
|
|
|
|
|
name: t('routes.demo.excel.jsonExport'),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'arrayExport',
|
|
|
|
|
name: t('routes.demo.excel.arrayExport'),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'importExcel',
|
|
|
|
|
name: t('routes.demo.excel.importExcel'),
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2020-12-24 22:02:24 +08:00
|
|
|
{
|
|
|
|
|
name: t('routes.demo.feat.breadcrumb'),
|
|
|
|
|
path: 'breadcrumb',
|
2021-03-01 23:11:12 +08:00
|
|
|
|
2020-12-24 22:02:24 +08:00
|
|
|
children: [
|
2021-03-28 00:04:19 +08:00
|
|
|
// {
|
|
|
|
|
// path: 'flat',
|
|
|
|
|
// name: t('routes.demo.feat.breadcrumbFlat'),
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: 'flatDetail',
|
|
|
|
|
// name: t('routes.demo.feat.breadcrumbFlatDetail'),
|
|
|
|
|
// },
|
2020-12-24 22:02:24 +08:00
|
|
|
{
|
|
|
|
|
path: 'children',
|
2021-06-08 16:45:42 +08:00
|
|
|
name: t('routes.demo.feat.breadcrumbChildren'),
|
2020-12-24 22:02:24 +08:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2020-10-14 21:08:07 +08:00
|
|
|
{
|
2020-10-22 23:56:33 +08:00
|
|
|
path: 'testTab',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.tab'),
|
2020-10-14 21:08:07 +08:00
|
|
|
children: [
|
|
|
|
|
{
|
2020-10-22 23:56:33 +08:00
|
|
|
path: 'id1',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.tab1'),
|
2020-10-14 21:08:07 +08:00
|
|
|
},
|
|
|
|
|
{
|
2020-10-22 23:56:33 +08:00
|
|
|
path: 'id2',
|
2020-12-09 00:12:44 +08:00
|
|
|
name: t('routes.demo.feat.tab2'),
|
2020-10-14 21:08:07 +08:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2020-09-28 20:19:10 +08:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
export default menu;
|