@lingxiteam/assets 4.2.1-alpha.2 → 4.3.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/IconSvg/index.js +8 -7
- package/es/error/errorCatch/index.js +1 -1
- package/es/error/errorDisplay/Mobile/Drawer/Drawer.js +99 -77
- package/es/error/errorDisplay/Mobile/Drawer/index.js +26 -26
- package/es/error/errorDisplay/Mobile/ErrorMsg/index.js +127 -129
- package/es/error/errorDisplay/Mobile/Modal/Modal.js +46 -31
- package/es/error/errorDisplay/Mobile/Modal/index.js +24 -24
- package/es/error/errorDisplay/Mobile/defaultGlobalConfig.js +2 -2
- package/es/error/errorDisplay/Web/Drawer/Drawer.js +183 -145
- package/es/error/errorDisplay/Web/Drawer/DrawerConnect.js +43 -46
- package/es/error/errorDisplay/Web/Drawer/index.js +15 -15
- package/es/error/errorDisplay/Web/ErrorMsg/index.js +341 -327
- package/es/error/errorDisplay/Web/Notification/Notice.js +78 -65
- package/es/error/errorDisplay/Web/Notification/Notification.js +15 -15
- package/es/error/errorDisplay/Web/Notification/index.js +36 -38
- package/es/error/errorDisplay/Web/defaultGlobalConfig.js +2 -2
- package/es/error/errorDisplay/compUtils.js +6 -6
- package/es/error/errorDisplay/http.js +7 -7
- package/es/error/index.js +6 -6
- package/es/index.js +5 -5
- package/es/rootConfig/index.d.ts +1 -1
- package/es/rootConfig/index.js +5 -5
- package/es/rootConfig/locales/enus/config-locales-es.d.ts +2 -0
- package/es/rootConfig/locales/enus/config-locales-es.js +13 -0
- package/es/rootConfig/locales/enus/config-locales-es.mobile.d.ts +2 -0
- package/es/rootConfig/locales/enus/config-locales-es.mobile.js +199 -0
- package/es/rootConfig/locales/enus/config-locales-es.pc.d.ts +2 -0
- package/es/rootConfig/locales/enus/config-locales-es.pc.js +49 -0
- package/es/rootConfig/locales/enus/config-locales-es.todo-actionList.d.ts +2 -0
- package/es/rootConfig/locales/enus/config-locales-es.todo-actionList.js +1293 -0
- package/es/rootConfig/locales/enus/config-locales-es.todo-callback.d.ts +2 -0
- package/es/rootConfig/locales/enus/config-locales-es.todo-callback.js +21 -0
- package/es/rootConfig/locales/enus/config-locales-es.todo-optionList.d.ts +2 -0
- package/es/rootConfig/locales/enus/config-locales-es.todo-optionList.js +339 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.d.ts +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.js +13 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.mobile.d.ts +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.mobile.js +199 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.pc.d.ts +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.pc.js +385 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.d.ts +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.js +1297 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.todo-callback.d.ts +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.todo-callback.js +21 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.d.ts +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.js +339 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.d.ts +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.js +13 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.mobile.d.ts +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.mobile.js +199 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.pc.d.ts +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.pc.js +385 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.d.ts +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.js +1297 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.todo-callback.d.ts +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.todo-callback.js +21 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.d.ts +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.js +339 -0
- package/es/rootConfig/mobile/BusiComp.d.ts +0 -1
- package/es/rootConfig/mobile/BusiComp.js +35 -32
- package/es/rootConfig/mobile/MobileModal.js +62 -57
- package/es/rootConfig/mobile/MobilePopover.d.ts +0 -2
- package/es/rootConfig/mobile/MobilePopover.js +37 -34
- package/es/rootConfig/mobile/index.js +4 -4
- package/es/rootConfig/mobile/page.d.ts +17 -2
- package/es/rootConfig/mobile/page.js +85 -78
- package/es/rootConfig/pc/BusiComp.js +110 -40
- package/es/rootConfig/pc/Drawer.d.ts +8 -9
- package/es/rootConfig/pc/Drawer.js +161 -91
- package/es/rootConfig/pc/Modal.d.ts +0 -1
- package/es/rootConfig/pc/Modal.js +140 -70
- package/es/rootConfig/pc/Popover.d.ts +0 -1
- package/es/rootConfig/pc/Popover.js +114 -44
- package/es/rootConfig/pc/index.js +5 -5
- package/es/rootConfig/pc/page.d.ts +0 -2
- package/es/rootConfig/pc/page.js +133 -64
- package/es/rootConfig/todoActionList.d.ts +1 -0
- package/es/rootConfig/todoActionList.js +2363 -1237
- package/es/rootConfig/todoCallback.d.ts +12 -1
- package/es/rootConfig/todoCallback.js +175 -103
- package/es/rootConfig/todoOptionList.d.ts +0 -66
- package/es/rootConfig/todoOptionList.js +400 -401
- package/es/theme/index.js +18 -20
- package/es/theme/src/default/index.js +7 -7
- package/es/theme/utils/renderColors.js +1 -1
- package/es/utils/url.js +8 -7
- package/lib/IconSvg/index.js +10 -9
- package/lib/error/errorCatch/index.js +2 -3
- package/lib/error/errorDisplay/Mobile/Drawer/Drawer.js +99 -79
- package/lib/error/errorDisplay/Mobile/Drawer/index.js +25 -26
- package/lib/error/errorDisplay/Mobile/ErrorMsg/index.js +123 -126
- package/lib/error/errorDisplay/Mobile/Modal/Modal.js +45 -33
- package/lib/error/errorDisplay/Mobile/Modal/index.js +23 -24
- package/lib/error/errorDisplay/Mobile/defaultGlobalConfig.js +3 -5
- package/lib/error/errorDisplay/SVGstring.js +6 -12
- package/lib/error/errorDisplay/Web/Drawer/Drawer.js +181 -146
- package/lib/error/errorDisplay/Web/Drawer/DrawerConnect.js +44 -48
- package/lib/error/errorDisplay/Web/Drawer/index.js +18 -20
- package/lib/error/errorDisplay/Web/ErrorMsg/index.js +336 -324
- package/lib/error/errorDisplay/Web/Notification/Notice.js +79 -68
- package/lib/error/errorDisplay/Web/Notification/Notification.js +15 -16
- package/lib/error/errorDisplay/Web/Notification/index.js +37 -41
- package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +3 -5
- package/lib/error/errorDisplay/compUtils.js +9 -12
- package/lib/error/errorDisplay/const.js +7 -13
- package/lib/error/errorDisplay/http.js +8 -9
- package/lib/index.js +3 -6
- package/lib/rootConfig/index.d.ts +1 -1
- package/lib/rootConfig/index.js +9 -3
- package/lib/rootConfig/locales/enus/config-locales-es.d.ts +2 -0
- package/lib/rootConfig/locales/enus/config-locales-es.js +19 -0
- package/lib/rootConfig/locales/enus/config-locales-es.mobile.d.ts +2 -0
- package/lib/rootConfig/locales/enus/config-locales-es.mobile.js +205 -0
- package/lib/rootConfig/locales/enus/config-locales-es.pc.d.ts +2 -0
- package/lib/rootConfig/locales/enus/config-locales-es.pc.js +55 -0
- package/lib/rootConfig/locales/enus/config-locales-es.todo-actionList.d.ts +2 -0
- package/lib/rootConfig/locales/enus/config-locales-es.todo-actionList.js +1299 -0
- package/lib/rootConfig/locales/enus/config-locales-es.todo-callback.d.ts +2 -0
- package/lib/rootConfig/locales/enus/config-locales-es.todo-callback.js +27 -0
- package/lib/rootConfig/locales/enus/config-locales-es.todo-optionList.d.ts +2 -0
- package/lib/rootConfig/locales/enus/config-locales-es.todo-optionList.js +345 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.d.ts +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.js +19 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.mobile.d.ts +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.mobile.js +205 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.pc.d.ts +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.pc.js +391 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.d.ts +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.js +1303 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-callback.d.ts +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-callback.js +27 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.d.ts +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.js +345 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.d.ts +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.js +19 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.mobile.d.ts +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.mobile.js +205 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.pc.d.ts +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.pc.js +391 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.d.ts +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.js +1303 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-callback.d.ts +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-callback.js +27 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.d.ts +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.js +345 -0
- package/lib/rootConfig/mobile/BusiComp.d.ts +0 -1
- package/lib/rootConfig/mobile/BusiComp.js +36 -34
- package/lib/rootConfig/mobile/MobileModal.js +63 -59
- package/lib/rootConfig/mobile/MobilePopover.d.ts +0 -2
- package/lib/rootConfig/mobile/MobilePopover.js +38 -36
- package/lib/rootConfig/mobile/page.d.ts +17 -2
- package/lib/rootConfig/mobile/page.js +86 -80
- package/lib/rootConfig/pc/BusiComp.js +111 -42
- package/lib/rootConfig/pc/Drawer.d.ts +8 -9
- package/lib/rootConfig/pc/Drawer.js +162 -93
- package/lib/rootConfig/pc/Modal.d.ts +0 -1
- package/lib/rootConfig/pc/Modal.js +141 -72
- package/lib/rootConfig/pc/Popover.d.ts +0 -1
- package/lib/rootConfig/pc/Popover.js +115 -46
- package/lib/rootConfig/pc/page.d.ts +0 -2
- package/lib/rootConfig/pc/page.js +134 -66
- package/lib/rootConfig/todoActionList.d.ts +1 -0
- package/lib/rootConfig/todoActionList.js +2364 -1244
- package/lib/rootConfig/todoCallback.d.ts +12 -1
- package/lib/rootConfig/todoCallback.js +182 -116
- package/lib/rootConfig/todoOptionList.d.ts +0 -66
- package/lib/rootConfig/todoOptionList.js +401 -403
- package/lib/theme/bin/default/modalWidth.js +1 -2
- package/lib/theme/index.js +19 -22
- package/lib/theme/src/default/index.js +7 -7
- package/lib/theme/utils/renderColors.js +1 -1
- package/lib/utils/cookieUtil.js +1 -2
- package/lib/utils/img.js +2 -3
- package/lib/utils/url.js +13 -16
- package/package.json +3 -4
|
@@ -3,29 +3,33 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
5
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
7
|
-
import { getSystemTodoActionList } from
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
import { getSystemTodoActionList } from "../todoActionList";
|
|
8
|
+
var PC_DRAWER_LOCALE_PREFIX = 'pc.drawer';
|
|
9
|
+
var localeKey = function localeKey(suffix) {
|
|
10
|
+
return "".concat(PC_DRAWER_LOCALE_PREFIX, ".").concat(suffix);
|
|
11
|
+
};
|
|
8
12
|
export default {
|
|
9
13
|
compLib: 'root',
|
|
10
14
|
compType: -1,
|
|
15
|
+
// 根节点
|
|
11
16
|
isBusiObjContainer: false,
|
|
12
17
|
isContainer: false,
|
|
13
|
-
label: '
|
|
18
|
+
label: localeKey('label'),
|
|
14
19
|
props: {
|
|
15
20
|
width: 624,
|
|
16
21
|
height: 300,
|
|
17
22
|
placement: 'right',
|
|
18
23
|
footer: 1,
|
|
19
|
-
layout: 'BlankLayout',
|
|
20
24
|
closeOnClickOverlay: false,
|
|
21
25
|
compState: [{
|
|
22
|
-
name: '
|
|
26
|
+
name: localeKey('props.compState.0.name'),
|
|
23
27
|
code: 'bizId'
|
|
24
28
|
}, {
|
|
25
|
-
name: '
|
|
29
|
+
name: localeKey('props.compState.1.name'),
|
|
26
30
|
code: 'sceneCode'
|
|
27
31
|
}, {
|
|
28
|
-
name: '
|
|
32
|
+
name: localeKey('props.compState.2.name'),
|
|
29
33
|
code: 'bizData'
|
|
30
34
|
}]
|
|
31
35
|
},
|
|
@@ -36,106 +40,172 @@ export default {
|
|
|
36
40
|
description: '',
|
|
37
41
|
image: '',
|
|
38
42
|
groupsName: 'root',
|
|
39
|
-
todoActionList: [
|
|
43
|
+
todoActionList: [{
|
|
44
|
+
key: 'showMessage',
|
|
45
|
+
label: localeKey('todoActionList.showMessage.label'),
|
|
46
|
+
todoOptions: [{
|
|
47
|
+
key: 'type',
|
|
48
|
+
label: localeKey('todoActionList.showMessage.todoOptions.type.label'),
|
|
49
|
+
type: 'Select',
|
|
50
|
+
defaultValue: 'success',
|
|
51
|
+
props: {
|
|
52
|
+
options: [{
|
|
53
|
+
title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.0.title'),
|
|
54
|
+
value: 'success'
|
|
55
|
+
}, {
|
|
56
|
+
title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.1.title'),
|
|
57
|
+
value: 'info'
|
|
58
|
+
}, {
|
|
59
|
+
title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.2.title'),
|
|
60
|
+
value: 'warn'
|
|
61
|
+
}, {
|
|
62
|
+
title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.3.title'),
|
|
63
|
+
value: 'error'
|
|
64
|
+
}, {
|
|
65
|
+
title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.4.title'),
|
|
66
|
+
value: 'loading'
|
|
67
|
+
}]
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
key: 'icon',
|
|
71
|
+
label: localeKey('todoActionList.showMessage.todoOptions.icon.label'),
|
|
72
|
+
type: 'ChooseIcon',
|
|
73
|
+
props: {
|
|
74
|
+
placeholder: localeKey('todoActionList.showMessage.todoOptions.icon.props.placeholder')
|
|
75
|
+
}
|
|
76
|
+
}, {
|
|
77
|
+
key: 'value',
|
|
78
|
+
label: localeKey('todoActionList.showMessage.todoOptions.value.label'),
|
|
79
|
+
type: 'SetExpression'
|
|
80
|
+
}, {
|
|
81
|
+
key: 'duration',
|
|
82
|
+
label: localeKey('todoActionList.showMessage.todoOptions.duration.label'),
|
|
83
|
+
type: 'InputNumber',
|
|
84
|
+
props: {
|
|
85
|
+
addonAfter: localeKey('todoActionList.showMessage.todoOptions.duration.props.addonAfter'),
|
|
86
|
+
step: '0.01',
|
|
87
|
+
formatter: function formatter(val) {
|
|
88
|
+
return val ? val.match(/^\d+(?:\.\d{0,2})?/) : undefined;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}, {
|
|
92
|
+
key: 'okText',
|
|
93
|
+
label: localeKey('todoActionList.showMessage.todoOptions.okText.label'),
|
|
94
|
+
type: 'Input'
|
|
95
|
+
}, {
|
|
96
|
+
key: 'cancelText',
|
|
97
|
+
label: localeKey('todoActionList.showMessage.todoOptions.cancelText.label'),
|
|
98
|
+
type: 'Input'
|
|
99
|
+
}],
|
|
100
|
+
todoCallbacks: ['callback1', 'callback2'],
|
|
101
|
+
classification: [{
|
|
102
|
+
label: localeKey('todoActionList.showMessage.classification.modal.label'),
|
|
103
|
+
value: 'modal'
|
|
104
|
+
}],
|
|
105
|
+
remarks: [{
|
|
106
|
+
label: localeKey('todoActionList.showMessage.remarks.0.label'),
|
|
107
|
+
content: localeKey('todoActionList.showMessage.remarks.0.content')
|
|
108
|
+
}]
|
|
109
|
+
}].concat(_toConsumableArray(getSystemTodoActionList('pc', 'Drawer')), [{
|
|
40
110
|
key: 'previewFile',
|
|
41
|
-
label: '
|
|
111
|
+
label: localeKey('todoActionList.previewFile.label'),
|
|
42
112
|
todoOptions: [{
|
|
43
113
|
key: 'fileId',
|
|
44
|
-
label: '
|
|
114
|
+
label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
|
|
45
115
|
type: 'SetExpression',
|
|
46
|
-
labelTip: '
|
|
116
|
+
labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
|
|
47
117
|
}, {
|
|
48
118
|
key: 'viewMode',
|
|
49
|
-
label: '
|
|
119
|
+
label: localeKey('todoActionList.previewFile.todoOptions.viewMode.label'),
|
|
50
120
|
type: 'RadioButton',
|
|
51
121
|
defaultValue: 'popUp',
|
|
52
122
|
props: {
|
|
53
123
|
options: [{
|
|
54
|
-
title: '
|
|
124
|
+
title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.0.title'),
|
|
55
125
|
value: 'popUp'
|
|
56
126
|
}, {
|
|
57
|
-
title: '
|
|
127
|
+
title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.1.title'),
|
|
58
128
|
value: 'newTab'
|
|
59
129
|
}, {
|
|
60
|
-
title: '
|
|
130
|
+
title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.2.title'),
|
|
61
131
|
value: 'window'
|
|
62
132
|
}]
|
|
63
133
|
}
|
|
64
134
|
}, {
|
|
65
135
|
key: 'modalWidth',
|
|
66
|
-
label: '
|
|
136
|
+
label: localeKey('todoActionList.previewFile.todoOptions.modalWidth.label'),
|
|
67
137
|
type: 'SetExpression',
|
|
68
138
|
defaultValue: '960',
|
|
69
139
|
visibleFlag: 'viewMode',
|
|
70
|
-
labelTip: '
|
|
140
|
+
labelTip: localeKey('todoActionList.previewFile.todoOptions.modalWidth.labelTip'),
|
|
71
141
|
visibleFlagValue: ['window']
|
|
72
142
|
}, {
|
|
73
143
|
key: 'modalHeight',
|
|
74
|
-
label: '
|
|
144
|
+
label: localeKey('todoActionList.previewFile.todoOptions.modalHeight.label'),
|
|
75
145
|
type: 'SetExpression',
|
|
76
146
|
defaultValue: '648',
|
|
77
147
|
visibleFlag: 'viewMode',
|
|
78
|
-
labelTip: '
|
|
148
|
+
labelTip: localeKey('todoActionList.previewFile.todoOptions.modalHeight.labelTip'),
|
|
79
149
|
visibleFlagValue: ['window']
|
|
80
150
|
}],
|
|
81
151
|
classification: [{
|
|
82
|
-
label: '
|
|
152
|
+
label: localeKey('todoActionList.previewFile.classification.page.label'),
|
|
83
153
|
value: 'page'
|
|
84
154
|
}]
|
|
85
155
|
}]),
|
|
86
156
|
todoEvents: [{
|
|
87
157
|
value: 'useEffect',
|
|
88
|
-
label: '
|
|
158
|
+
label: localeKey('todoEvents.useEffect.label')
|
|
89
159
|
}, {
|
|
90
160
|
value: 'onOk',
|
|
91
|
-
label: '
|
|
161
|
+
label: localeKey('todoEvents.onOk.label')
|
|
92
162
|
}, {
|
|
93
163
|
value: 'onCancel',
|
|
94
|
-
label: '
|
|
164
|
+
label: localeKey('todoEvents.onCancel.label')
|
|
95
165
|
}, {
|
|
96
166
|
value: 'stateChange',
|
|
97
|
-
label: '
|
|
167
|
+
label: localeKey('todoEvents.stateChange.label')
|
|
98
168
|
}, {
|
|
99
169
|
value: 'willUnmount',
|
|
100
|
-
label: '
|
|
170
|
+
label: localeKey('todoEvents.willUnmount.label')
|
|
101
171
|
}, {
|
|
102
172
|
value: 'usePageEndRequest',
|
|
103
|
-
label: '
|
|
173
|
+
label: localeKey('todoEvents.usePageEndRequest.label'),
|
|
104
174
|
remarks: [{
|
|
105
|
-
label: '
|
|
106
|
-
content: '
|
|
175
|
+
label: localeKey('todoEvents.usePageEndRequest.remarks.0.label'),
|
|
176
|
+
content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
|
|
107
177
|
}, {
|
|
108
|
-
label: '
|
|
109
|
-
content: '
|
|
178
|
+
label: localeKey('todoEvents.usePageEndRequest.remarks.1.label'),
|
|
179
|
+
content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
|
|
110
180
|
}]
|
|
111
181
|
}],
|
|
112
182
|
todoProps: {
|
|
113
183
|
pageName: {
|
|
114
|
-
label: '
|
|
184
|
+
label: localeKey('todoProps.pageName.label'),
|
|
115
185
|
type: 'Input',
|
|
116
|
-
groupsName: '
|
|
186
|
+
groupsName: localeKey('todoProps.pageName.groupsName'),
|
|
117
187
|
props: {
|
|
118
188
|
required: true
|
|
119
189
|
}
|
|
120
190
|
},
|
|
121
191
|
pagePath: {
|
|
122
|
-
label: '
|
|
192
|
+
label: localeKey('todoProps.pagePath.label'),
|
|
123
193
|
type: 'UrlInput',
|
|
124
|
-
groupsName: '
|
|
194
|
+
groupsName: localeKey('todoProps.pagePath.groupsName'),
|
|
125
195
|
props: {
|
|
126
196
|
required: true,
|
|
127
|
-
placeholder: '
|
|
197
|
+
placeholder: localeKey('todoProps.pagePath.props.placeholder'),
|
|
128
198
|
regex: {
|
|
129
199
|
// eslint-disable-next-line
|
|
130
200
|
pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
|
|
131
|
-
message: '
|
|
201
|
+
message: localeKey('todoProps.pagePath.props.regex.message')
|
|
132
202
|
}
|
|
133
203
|
}
|
|
134
204
|
},
|
|
135
205
|
catalogItemId: {
|
|
136
|
-
label: '
|
|
206
|
+
label: localeKey('todoProps.catalogItemId.label'),
|
|
137
207
|
type: 'CatalogTreeSelect',
|
|
138
|
-
groupsName: '
|
|
208
|
+
groupsName: localeKey('todoProps.catalogItemId.groupsName'),
|
|
139
209
|
props: {
|
|
140
210
|
required: true,
|
|
141
211
|
options: [],
|
|
@@ -145,143 +215,143 @@ export default {
|
|
|
145
215
|
}
|
|
146
216
|
},
|
|
147
217
|
drawerTitle: {
|
|
148
|
-
label: '
|
|
218
|
+
label: localeKey('todoProps.drawerTitle.label'),
|
|
149
219
|
type: 'Input',
|
|
150
|
-
groupsName: '
|
|
220
|
+
groupsName: localeKey('todoProps.drawerTitle.groupsName'),
|
|
151
221
|
istodoBind: true,
|
|
152
222
|
props: {},
|
|
153
223
|
enableI18n: true
|
|
154
224
|
},
|
|
225
|
+
placement: {
|
|
226
|
+
label: localeKey('todoProps.placement.label'),
|
|
227
|
+
type: 'Select',
|
|
228
|
+
groupsName: localeKey('todoProps.placement.groupsName'),
|
|
229
|
+
props: {
|
|
230
|
+
options: [{
|
|
231
|
+
value: 'top',
|
|
232
|
+
title: localeKey('todoProps.placement.props.options.0.title')
|
|
233
|
+
}, {
|
|
234
|
+
value: 'right',
|
|
235
|
+
title: localeKey('todoProps.placement.props.options.1.title')
|
|
236
|
+
}, {
|
|
237
|
+
value: 'bottom',
|
|
238
|
+
title: localeKey('todoProps.placement.props.options.2.title')
|
|
239
|
+
}, {
|
|
240
|
+
value: 'left',
|
|
241
|
+
title: localeKey('todoProps.placement.props.options.3.title')
|
|
242
|
+
}]
|
|
243
|
+
}
|
|
244
|
+
},
|
|
155
245
|
width: {
|
|
156
|
-
label: '
|
|
246
|
+
label: localeKey('todoProps.width.label'),
|
|
157
247
|
type: 'Select',
|
|
158
|
-
groupsName: '
|
|
248
|
+
groupsName: localeKey('todoProps.width.groupsName'),
|
|
159
249
|
props: {
|
|
160
250
|
dependProps: {
|
|
161
251
|
placement: ['right', 'left']
|
|
162
252
|
},
|
|
163
253
|
options: [{
|
|
164
254
|
value: 560,
|
|
165
|
-
title: '
|
|
255
|
+
title: localeKey('todoProps.width.props.options.0.title')
|
|
166
256
|
}, {
|
|
167
257
|
value: 624,
|
|
168
|
-
title: '
|
|
258
|
+
title: localeKey('todoProps.width.props.options.1.title')
|
|
169
259
|
}, {
|
|
170
260
|
value: 1008,
|
|
171
|
-
title: '
|
|
261
|
+
title: localeKey('todoProps.width.props.options.2.title')
|
|
172
262
|
}, {
|
|
173
263
|
value: 1200,
|
|
174
|
-
title: '
|
|
264
|
+
title: localeKey('todoProps.width.props.options.3.title')
|
|
175
265
|
}]
|
|
176
266
|
}
|
|
177
267
|
},
|
|
178
268
|
height: {
|
|
179
|
-
label: '
|
|
269
|
+
label: localeKey('todoProps.height.label'),
|
|
180
270
|
type: 'Select',
|
|
181
|
-
groupsName: '
|
|
271
|
+
groupsName: localeKey('todoProps.height.groupsName'),
|
|
182
272
|
props: {
|
|
183
273
|
dependProps: {
|
|
184
274
|
placement: ['top', 'bottom']
|
|
185
275
|
},
|
|
186
276
|
options: [{
|
|
187
277
|
value: 200,
|
|
188
|
-
title: '
|
|
278
|
+
title: localeKey('todoProps.height.props.options.0.title')
|
|
189
279
|
}, {
|
|
190
280
|
value: 300,
|
|
191
|
-
title: '
|
|
281
|
+
title: localeKey('todoProps.height.props.options.1.title')
|
|
192
282
|
}, {
|
|
193
283
|
value: 400,
|
|
194
|
-
title: '
|
|
284
|
+
title: localeKey('todoProps.height.props.options.2.title')
|
|
195
285
|
}, {
|
|
196
286
|
value: 500,
|
|
197
|
-
title: '
|
|
198
|
-
}]
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
placement: {
|
|
202
|
-
label: '抽屉方向',
|
|
203
|
-
type: 'Select',
|
|
204
|
-
groupsName: '基础',
|
|
205
|
-
props: {
|
|
206
|
-
options: [{
|
|
207
|
-
value: 'top',
|
|
208
|
-
title: '上'
|
|
209
|
-
}, {
|
|
210
|
-
value: 'right',
|
|
211
|
-
title: '右'
|
|
212
|
-
}, {
|
|
213
|
-
value: 'bottom',
|
|
214
|
-
title: '下'
|
|
215
|
-
}, {
|
|
216
|
-
value: 'left',
|
|
217
|
-
title: '左'
|
|
287
|
+
title: localeKey('todoProps.height.props.options.3.title')
|
|
218
288
|
}]
|
|
219
289
|
}
|
|
220
290
|
},
|
|
221
291
|
footer: {
|
|
222
|
-
label: '
|
|
292
|
+
label: localeKey('todoProps.footer.label'),
|
|
223
293
|
type: 'Select',
|
|
224
|
-
groupsName: '
|
|
294
|
+
groupsName: localeKey('todoProps.footer.groupsName'),
|
|
225
295
|
props: {
|
|
226
296
|
options: [{
|
|
227
|
-
title: '
|
|
297
|
+
title: localeKey('todoProps.footer.props.options.0.title'),
|
|
228
298
|
value: 1
|
|
229
299
|
}, {
|
|
230
|
-
title: '
|
|
300
|
+
title: localeKey('todoProps.footer.props.options.1.title'),
|
|
231
301
|
value: 0
|
|
232
302
|
}]
|
|
233
303
|
}
|
|
234
304
|
},
|
|
235
305
|
okText: {
|
|
236
|
-
label: '
|
|
306
|
+
label: localeKey('todoProps.okText.label'),
|
|
237
307
|
type: 'Input',
|
|
238
|
-
groupsName: '
|
|
308
|
+
groupsName: localeKey('todoProps.okText.groupsName'),
|
|
239
309
|
props: {},
|
|
240
310
|
enableI18n: true
|
|
241
311
|
},
|
|
242
312
|
cancelText: {
|
|
243
|
-
label: '
|
|
313
|
+
label: localeKey('todoProps.cancelText.label'),
|
|
244
314
|
type: 'Input',
|
|
245
|
-
groupsName: '
|
|
315
|
+
groupsName: localeKey('todoProps.cancelText.groupsName'),
|
|
246
316
|
enableI18n: true
|
|
247
317
|
},
|
|
248
318
|
scenarioList: {
|
|
249
|
-
label: '
|
|
319
|
+
label: localeKey('todoProps.scenarioList.label'),
|
|
250
320
|
type: 'SelectScenarioPopover',
|
|
251
|
-
groupsName: '
|
|
321
|
+
groupsName: localeKey('todoProps.scenarioList.groupsName'),
|
|
252
322
|
props: {
|
|
253
323
|
options: []
|
|
254
324
|
}
|
|
255
325
|
},
|
|
256
326
|
closeOnClickOverlay: {
|
|
257
|
-
label: '
|
|
327
|
+
label: localeKey('todoProps.closeOnClickOverlay.label'),
|
|
258
328
|
type: 'Select',
|
|
259
329
|
props: {
|
|
260
330
|
inhibitBtn: true,
|
|
261
331
|
options: [{
|
|
262
|
-
title: '
|
|
332
|
+
title: localeKey('todoProps.closeOnClickOverlay.props.options.0.title'),
|
|
263
333
|
value: true
|
|
264
334
|
}, {
|
|
265
|
-
title: '
|
|
335
|
+
title: localeKey('todoProps.closeOnClickOverlay.props.options.1.title'),
|
|
266
336
|
value: false
|
|
267
337
|
}]
|
|
268
338
|
}
|
|
269
339
|
},
|
|
270
340
|
ignoreLogin: {
|
|
271
|
-
label: '
|
|
341
|
+
label: localeKey('todoProps.ignoreLogin.label'),
|
|
272
342
|
type: 'Switch',
|
|
273
|
-
groupsName: '
|
|
343
|
+
groupsName: localeKey('todoProps.ignoreLogin.groupsName'),
|
|
274
344
|
props: {}
|
|
275
345
|
},
|
|
276
346
|
labels: {
|
|
277
|
-
label: '
|
|
347
|
+
label: localeKey('todoProps.labels.label'),
|
|
278
348
|
type: 'ChooseTag',
|
|
279
|
-
groupsName: '
|
|
349
|
+
groupsName: localeKey('todoProps.labels.groupsName')
|
|
280
350
|
},
|
|
281
351
|
compState: {
|
|
282
|
-
label: '
|
|
352
|
+
label: localeKey('todoProps.compState.label'),
|
|
283
353
|
type: 'ParamsDefine',
|
|
284
|
-
groupsName: '
|
|
354
|
+
groupsName: localeKey('todoProps.compState.groupsName')
|
|
285
355
|
}
|
|
286
356
|
},
|
|
287
357
|
todoStyles: {}
|