Blame view

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