Blame view

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