Blame view

src/router/menus/modules/demo/feat.ts 2.95 KB
1
import type { MenuModule } from '/@/router/types';
2
import { t } from '/@/hooks/web/useI18n';
vben authored
3
陈文彬 authored
4
const menu: MenuModule = {
vben authored
5
  orderNo: 19,
陈文彬 authored
6
  menu: {
7
    name: t('routes.demo.feat.feat'),
陈文彬 authored
8
    path: '/feat',
9
10
11
    tag: {
      dot: true,
    },
陈文彬 authored
12
13
    children: [
      {
vben authored
14
        path: 'icon',
15
        name: t('routes.demo.feat.icon'),
vben authored
16
17
      },
      {
18
19
20
21
        path: 'ws',
        name: t('routes.demo.feat.ws'),
      },
      {
22
23
24
25
26
27
28
        name: t('routes.demo.feat.sessionTimeout'),
        path: 'session-timeout',
        tag: {
          content: 'new',
        },
      },
      {
vben authored
29
        path: 'tabs',
30
        name: t('routes.demo.feat.tabs'),
陈文彬 authored
31
      },
32
陈文彬 authored
33
      {
vben authored
34
        path: 'context-menu',
35
        name: t('routes.demo.feat.contextMenu'),
陈文彬 authored
36
      },
37
      {
vben authored
38
        path: 'download',
39
        name: t('routes.demo.feat.download'),
vben authored
40
41
      },
      {
Vben authored
42
43
44
45
        path: 'print',
        name: t('routes.demo.feat.print'),
      },
      {
vben authored
46
        path: 'click-out-side',
47
        name: t('routes.demo.feat.clickOutSide'),
vben authored
48
49
      },
      {
vben authored
50
        path: 'img-preview',
51
        name: t('routes.demo.feat.imgPreview'),
52
      },
陈文彬 authored
53
      {
vben authored
54
        path: 'copy',
55
        name: t('routes.demo.feat.copy'),
陈文彬 authored
56
57
      },
      {
vben authored
58
        path: 'msg',
59
        name: t('routes.demo.feat.msg'),
陈文彬 authored
60
61
      },
      {
vben authored
62
        path: 'watermark',
63
        name: t('routes.demo.feat.watermark'),
陈文彬 authored
64
65
      },
      {
vben authored
66
67
68
69
        path: 'ripple',
        name: t('routes.demo.feat.ripple'),
      },
      {
vben authored
70
        path: 'full-screen',
71
        name: t('routes.demo.feat.fullScreen'),
陈文彬 authored
72
      },
vben authored
73
      {
vben authored
74
        path: 'error-log',
75
        name: t('routes.demo.feat.errorLog'),
vben authored
76
      },
vben authored
77
vben authored
78
      {
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
        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'),
          },
        ],
      },
      {
101
102
        name: t('routes.demo.feat.breadcrumb'),
        path: 'breadcrumb',
103
104
        children: [
Vben authored
105
106
107
108
109
110
111
112
          // {
          //   path: 'flat',
          //   name: t('routes.demo.feat.breadcrumbFlat'),
          // },
          // {
          //   path: 'flatDetail',
          //   name: t('routes.demo.feat.breadcrumbFlatDetail'),
          // },
113
114
          {
            path: 'children',
115
            name: t('routes.demo.feat.breadcrumbChildren'),
116
117
118
119
          },
        ],
      },
      {
vben authored
120
        path: 'testTab',
121
        name: t('routes.demo.feat.tab'),
vben authored
122
123
        children: [
          {
vben authored
124
            path: 'id1',
125
            name: t('routes.demo.feat.tab1'),
vben authored
126
127
          },
          {
vben authored
128
            path: 'id2',
129
            name: t('routes.demo.feat.tab2'),
vben authored
130
131
132
          },
        ],
      },
陈文彬 authored
133
134
135
136
    ],
  },
};
export default menu;