1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
| import type { OptionsType } from "@/components/ReSegmented";
|
| const menuTypeOptions: Array<OptionsType> = [
| {
| label: "菜单",
| value: 0
| },
| {
| label: "iframe",
| value: 1
| },
| {
| label: "外链",
| value: 2
| },
| {
| label: "按钮",
| value: 3
| }
| ];
|
| const showLinkOptions: Array<OptionsType> = [
| {
| label: "显示",
| tip: "会在菜单中显示",
| value: true
| },
| {
| label: "隐藏",
| tip: "不会在菜单中显示",
| value: false
| }
| ];
|
| const fixedTagOptions: Array<OptionsType> = [
| {
| label: "固定",
| tip: "当前菜单名称固定显示在标签页且不可关闭",
| value: true
| },
| {
| label: "不固定",
| tip: "当前菜单名称不固定显示在标签页且可关闭",
| value: false
| }
| ];
|
| const keepAliveOptions: Array<OptionsType> = [
| {
| label: "缓存",
| tip: "会保存该页面的整体状态,刷新后会清空状态",
| value: true
| },
| {
| label: "不缓存",
| tip: "不会保存该页面的整体状态",
| value: false
| }
| ];
|
| const hiddenTagOptions: Array<OptionsType> = [
| {
| label: "允许",
| tip: "当前菜单名称或自定义信息允许添加到标签页",
| value: false
| },
| {
| label: "禁止",
| tip: "当前菜单名称或自定义信息禁止添加到标签页",
| value: true
| }
| ];
|
| const showParentOptions: Array<OptionsType> = [
| {
| label: "显示",
| tip: "会显示父级菜单",
| value: true
| },
| {
| label: "隐藏",
| tip: "不会显示父级菜单",
| value: false
| }
| ];
|
| const frameLoadingOptions: Array<OptionsType> = [
| {
| label: "开启",
| tip: "有首次加载动画",
| value: true
| },
| {
| label: "关闭",
| tip: "无首次加载动画",
| value: false
| }
| ];
|
| export {
| menuTypeOptions,
| showLinkOptions,
| fixedTagOptions,
| keepAliveOptions,
| hiddenTagOptions,
| showParentOptions,
| frameLoadingOptions
| };
|
|