@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
|
@@ -10,38 +10,41 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
10
10
|
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); }
|
|
11
11
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
12
12
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
13
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
14
|
-
var
|
|
13
|
+
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; }
|
|
14
|
+
var MOBILE_PAGE_LOCALE_PREFIX = 'mobile.page';
|
|
15
|
+
var localeKey = function localeKey(suffix) {
|
|
16
|
+
return "".concat(MOBILE_PAGE_LOCALE_PREFIX, ".").concat(suffix);
|
|
17
|
+
};
|
|
18
|
+
var _default = exports.default = {
|
|
15
19
|
compLib: 'root',
|
|
16
20
|
compType: -1,
|
|
21
|
+
// 根节点
|
|
17
22
|
isBusiObjContainer: false,
|
|
18
23
|
isContainer: false,
|
|
19
|
-
label: '
|
|
24
|
+
label: localeKey('label'),
|
|
20
25
|
props: {
|
|
21
|
-
pageLayout: 'BaseLayout',
|
|
22
26
|
pageDynamicFlag: false,
|
|
23
27
|
catalogItemId: -1,
|
|
24
28
|
ignoreLogin: false,
|
|
25
29
|
hideNavBar: false,
|
|
26
|
-
layout: 'BaseLayout',
|
|
27
30
|
searchParams: [{
|
|
28
|
-
name: '
|
|
31
|
+
name: localeKey('props.searchParams.0.name'),
|
|
29
32
|
code: 'bizId'
|
|
30
33
|
}, {
|
|
31
|
-
name: '
|
|
34
|
+
name: localeKey('props.searchParams.1.name'),
|
|
32
35
|
code: 'sceneCode'
|
|
33
36
|
}, {
|
|
34
|
-
name: '
|
|
37
|
+
name: localeKey('props.searchParams.2.name'),
|
|
35
38
|
code: 'bizData'
|
|
36
39
|
}],
|
|
37
40
|
compState: [{
|
|
38
|
-
name: '
|
|
41
|
+
name: localeKey('props.compState.0.name'),
|
|
39
42
|
code: 'bizId'
|
|
40
43
|
}, {
|
|
41
|
-
name: '
|
|
44
|
+
name: localeKey('props.compState.1.name'),
|
|
42
45
|
code: 'sceneCode'
|
|
43
46
|
}, {
|
|
44
|
-
name: '
|
|
47
|
+
name: localeKey('props.compState.2.name'),
|
|
45
48
|
code: 'bizData'
|
|
46
49
|
}]
|
|
47
50
|
},
|
|
@@ -54,100 +57,114 @@ var _default = {
|
|
|
54
57
|
groupsName: 'root',
|
|
55
58
|
todoActionList: [].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('mobile')), [{
|
|
56
59
|
key: 'previewFile',
|
|
57
|
-
label: '
|
|
60
|
+
label: localeKey('todoActionList.previewFile.label'),
|
|
58
61
|
todoOptions: [{
|
|
59
62
|
key: 'fileId',
|
|
60
|
-
label: '
|
|
63
|
+
label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
|
|
61
64
|
type: 'SetExpression',
|
|
62
|
-
labelTip: '
|
|
65
|
+
labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
|
|
63
66
|
}],
|
|
64
67
|
classification: [{
|
|
65
|
-
label: '
|
|
68
|
+
label: localeKey('todoActionList.previewFile.classification.page.label'),
|
|
66
69
|
value: 'page'
|
|
67
70
|
}]
|
|
68
71
|
}]),
|
|
69
72
|
todoEvents: [{
|
|
70
73
|
value: 'useEffect',
|
|
71
|
-
label: '
|
|
74
|
+
label: localeKey('todoEvents.useEffect.label')
|
|
72
75
|
}, {
|
|
73
76
|
value: 'stateChange',
|
|
74
|
-
label: '
|
|
77
|
+
label: localeKey('todoEvents.stateChange.label')
|
|
75
78
|
}, {
|
|
76
79
|
value: 'willUnmount',
|
|
77
|
-
label: '
|
|
80
|
+
label: localeKey('todoEvents.willUnmount.label')
|
|
78
81
|
}, {
|
|
79
82
|
value: 'onLeftClick',
|
|
80
|
-
label: '
|
|
83
|
+
label: localeKey('todoEvents.onLeftClick.label'),
|
|
81
84
|
terminal: ['mobile']
|
|
82
85
|
}, {
|
|
83
86
|
value: 'otherPageMessage',
|
|
84
|
-
label: '
|
|
87
|
+
label: localeKey('todoEvents.otherPageMessage.label'),
|
|
85
88
|
terminal: ['mobile'],
|
|
86
89
|
params: [{
|
|
87
|
-
title: '
|
|
90
|
+
title: localeKey('todoEvents.otherPageMessage.params.0.title'),
|
|
88
91
|
name: 'p',
|
|
89
92
|
value: '$p$'
|
|
90
93
|
}]
|
|
91
94
|
}, {
|
|
92
95
|
value: 'onPageCacheRefresh',
|
|
93
|
-
label: '
|
|
96
|
+
label: localeKey('todoEvents.onPageCacheRefresh.label'),
|
|
94
97
|
showRules: ['pageDynamicFlag'],
|
|
95
98
|
dependProps: {
|
|
96
99
|
pageDynamicFlag: true
|
|
97
100
|
},
|
|
98
101
|
params: [{
|
|
99
|
-
title: '
|
|
102
|
+
title: localeKey('todoEvents.onPageCacheRefresh.params.0.title'),
|
|
100
103
|
name: 'pageBackData',
|
|
101
104
|
value: '$pageBackData$'
|
|
102
105
|
}]
|
|
103
106
|
}, {
|
|
104
107
|
value: 'usePageEndRequest',
|
|
105
|
-
label: '
|
|
108
|
+
label: localeKey('todoEvents.usePageEndRequest.label'),
|
|
106
109
|
remarks: [{
|
|
107
|
-
label: '
|
|
108
|
-
content: '
|
|
110
|
+
label: localeKey('todoEvents.usePageEndRequest.remarks.0.label'),
|
|
111
|
+
content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
|
|
109
112
|
}, {
|
|
110
|
-
label: '
|
|
111
|
-
content: '
|
|
113
|
+
label: localeKey('todoEvents.usePageEndRequest.remarks.1.label'),
|
|
114
|
+
content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
|
|
115
|
+
}]
|
|
116
|
+
}, {
|
|
117
|
+
value: 'pageGetWeChatCode',
|
|
118
|
+
label: localeKey('todoEvents.pageGetWeChatCode.label'),
|
|
119
|
+
params: [{
|
|
120
|
+
title: localeKey('todoEvents.pageGetWeChatCode.params.0.title'),
|
|
121
|
+
name: 'resultObject',
|
|
122
|
+
value: '$resultObject$',
|
|
123
|
+
type: 'object',
|
|
124
|
+
description: localeKey('todoEvents.pageGetWeChatCode.params.0.description')
|
|
125
|
+
}],
|
|
126
|
+
remarks: [{
|
|
127
|
+
label: localeKey('todoEvents.pageGetWeChatCode.remarks.0.label'),
|
|
128
|
+
content: localeKey('todoEvents.pageGetWeChatCode.remarks.0.content')
|
|
112
129
|
}]
|
|
113
130
|
}],
|
|
114
131
|
todoProps: {
|
|
115
132
|
pageName: {
|
|
116
|
-
label: '
|
|
133
|
+
label: localeKey('todoProps.pageName.label'),
|
|
117
134
|
type: 'Input',
|
|
118
|
-
groupsName: '
|
|
135
|
+
groupsName: localeKey('todoProps.pageName.groupsName'),
|
|
119
136
|
props: {
|
|
120
137
|
required: true
|
|
121
138
|
}
|
|
122
139
|
},
|
|
123
140
|
pagePath: {
|
|
124
|
-
label: '
|
|
141
|
+
label: localeKey('todoProps.pagePath.label'),
|
|
125
142
|
type: 'UrlInput',
|
|
126
|
-
groupsName: '
|
|
143
|
+
groupsName: localeKey('todoProps.pagePath.groupsName'),
|
|
127
144
|
props: {
|
|
128
145
|
required: true,
|
|
129
|
-
placeholder: '
|
|
146
|
+
placeholder: localeKey('todoProps.pagePath.props.placeholder'),
|
|
130
147
|
regex: {
|
|
131
148
|
// eslint-disable-next-line
|
|
132
149
|
pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
|
|
133
|
-
message: '
|
|
150
|
+
message: localeKey('todoProps.pagePath.props.regex.message')
|
|
134
151
|
}
|
|
135
152
|
}
|
|
136
153
|
},
|
|
137
154
|
pageTitle: {
|
|
138
|
-
label: '
|
|
155
|
+
label: localeKey('todoProps.pageTitle.label'),
|
|
139
156
|
type: 'Input',
|
|
140
|
-
groupsName: '
|
|
157
|
+
groupsName: localeKey('todoProps.pageTitle.groupsName'),
|
|
141
158
|
istodoBind: true,
|
|
142
159
|
props: {
|
|
143
|
-
description: '
|
|
160
|
+
description: localeKey('todoProps.pageTitle.props.description')
|
|
144
161
|
},
|
|
145
162
|
enableI18n: true
|
|
146
163
|
},
|
|
147
164
|
catalogItemId: {
|
|
148
|
-
label: '
|
|
165
|
+
label: localeKey('todoProps.catalogItemId.label'),
|
|
149
166
|
type: 'CatalogTreeSelect',
|
|
150
|
-
groupsName: '
|
|
167
|
+
groupsName: localeKey('todoProps.catalogItemId.groupsName'),
|
|
151
168
|
props: {
|
|
152
169
|
required: true,
|
|
153
170
|
options: [],
|
|
@@ -157,97 +174,86 @@ var _default = {
|
|
|
157
174
|
}
|
|
158
175
|
},
|
|
159
176
|
scenarioList: {
|
|
160
|
-
label: '
|
|
177
|
+
label: localeKey('todoProps.scenarioList.label'),
|
|
161
178
|
type: 'SelectScenarioPopover',
|
|
162
|
-
groupsName: '
|
|
179
|
+
groupsName: localeKey('todoProps.scenarioList.groupsName'),
|
|
163
180
|
props: {
|
|
164
181
|
options: []
|
|
165
182
|
}
|
|
166
183
|
},
|
|
167
184
|
remark: {
|
|
168
|
-
label: '
|
|
185
|
+
label: localeKey('todoProps.remark.label'),
|
|
169
186
|
type: 'Input',
|
|
170
|
-
groupsName: '
|
|
187
|
+
groupsName: localeKey('todoProps.remark.groupsName'),
|
|
171
188
|
props: {}
|
|
172
189
|
},
|
|
173
190
|
chooseFuncComp: {
|
|
174
|
-
label: '
|
|
191
|
+
label: localeKey('todoProps.chooseFuncComp.label'),
|
|
175
192
|
type: 'FuncCompSelect',
|
|
176
|
-
groupsName: '
|
|
193
|
+
groupsName: localeKey('todoProps.chooseFuncComp.groupsName'),
|
|
177
194
|
props: {}
|
|
178
195
|
},
|
|
179
196
|
ignoreLogin: {
|
|
180
|
-
label: '
|
|
197
|
+
label: localeKey('todoProps.ignoreLogin.label'),
|
|
181
198
|
type: 'Switch',
|
|
182
|
-
groupsName: '
|
|
199
|
+
groupsName: localeKey('todoProps.ignoreLogin.groupsName'),
|
|
183
200
|
props: {}
|
|
184
201
|
},
|
|
185
202
|
pageDynamicFlag: {
|
|
186
|
-
label: '
|
|
203
|
+
label: localeKey('todoProps.pageDynamicFlag.label'),
|
|
187
204
|
type: 'Switch',
|
|
188
|
-
groupsName: '
|
|
205
|
+
groupsName: localeKey('todoProps.pageDynamicFlag.groupsName'),
|
|
189
206
|
props: {
|
|
190
207
|
required: false,
|
|
191
|
-
description: '
|
|
208
|
+
description: localeKey('todoProps.pageDynamicFlag.props.description')
|
|
192
209
|
}
|
|
193
210
|
},
|
|
194
211
|
isMenu: {
|
|
195
|
-
label: '
|
|
212
|
+
label: localeKey('todoProps.isMenu.label'),
|
|
196
213
|
type: 'MenuSwitch',
|
|
197
|
-
groupsName: '
|
|
214
|
+
groupsName: localeKey('todoProps.isMenu.groupsName'),
|
|
198
215
|
props: {
|
|
199
|
-
description: '
|
|
216
|
+
description: localeKey('todoProps.isMenu.props.description')
|
|
200
217
|
}
|
|
201
218
|
},
|
|
202
219
|
labels: {
|
|
203
|
-
label: '
|
|
220
|
+
label: localeKey('todoProps.labels.label'),
|
|
204
221
|
type: 'ChooseTag',
|
|
205
|
-
groupsName: '
|
|
222
|
+
groupsName: localeKey('todoProps.labels.groupsName')
|
|
206
223
|
},
|
|
207
224
|
compState: {
|
|
208
|
-
label: '
|
|
225
|
+
label: localeKey('todoProps.compState.label'),
|
|
209
226
|
type: 'ParamsDefine',
|
|
210
|
-
groupsName: '
|
|
227
|
+
groupsName: localeKey('todoProps.compState.groupsName')
|
|
211
228
|
},
|
|
212
229
|
searchParams: {
|
|
213
|
-
label: '
|
|
230
|
+
label: localeKey('todoProps.searchParams.label'),
|
|
214
231
|
type: 'ParamsDefine',
|
|
215
|
-
groupsName: '
|
|
216
|
-
},
|
|
217
|
-
// pageParams: {
|
|
218
|
-
// label: '页面入参',
|
|
219
|
-
// type: 'ParamsDefine',
|
|
220
|
-
// groupsName: '页面入参',
|
|
221
|
-
// },
|
|
222
|
-
// publicState: {
|
|
223
|
-
// label: '页面出参',
|
|
224
|
-
// type: 'ParamsDefine',
|
|
225
|
-
// groupsName: '页面出参',
|
|
226
|
-
// },
|
|
232
|
+
groupsName: localeKey('todoProps.searchParams.groupsName')
|
|
233
|
+
},
|
|
227
234
|
routerData: {
|
|
228
|
-
label: '
|
|
235
|
+
label: localeKey('todoProps.routerData.label'),
|
|
229
236
|
type: 'ParamsDefine',
|
|
230
|
-
groupsName: '
|
|
237
|
+
groupsName: localeKey('todoProps.routerData.groupsName')
|
|
231
238
|
},
|
|
232
239
|
hideNavBar: {
|
|
233
|
-
label: '
|
|
240
|
+
label: localeKey('todoProps.hideNavBar.label'),
|
|
234
241
|
type: 'Switch',
|
|
235
|
-
groupsName: '
|
|
242
|
+
groupsName: localeKey('todoProps.hideNavBar.groupsName')
|
|
236
243
|
}
|
|
237
244
|
},
|
|
238
245
|
todoStyles: {
|
|
239
246
|
backgroundType: {
|
|
240
|
-
groupsName: '
|
|
241
|
-
label: '
|
|
247
|
+
groupsName: localeKey('todoStyles.backgroundType.groupsName'),
|
|
248
|
+
label: localeKey('todoStyles.backgroundType.label'),
|
|
242
249
|
type: 'BackgroundType',
|
|
243
250
|
props: {}
|
|
244
251
|
},
|
|
245
252
|
colorType: {
|
|
246
|
-
groupsName: '
|
|
247
|
-
label: '
|
|
253
|
+
groupsName: localeKey('todoStyles.colorType.groupsName'),
|
|
254
|
+
label: localeKey('todoStyles.colorType.label'),
|
|
248
255
|
type: 'BackgroundType',
|
|
249
256
|
props: {}
|
|
250
257
|
}
|
|
251
258
|
}
|
|
252
|
-
};
|
|
253
|
-
exports.default = _default;
|
|
259
|
+
};
|
|
@@ -10,24 +10,29 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
10
10
|
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); }
|
|
11
11
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
12
12
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
13
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
14
|
-
var
|
|
13
|
+
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; }
|
|
14
|
+
var BUSICOMP_LOCALE_PREFIX = 'pc.busiComp';
|
|
15
|
+
var localeKey = function localeKey(suffix) {
|
|
16
|
+
return "".concat(BUSICOMP_LOCALE_PREFIX, ".").concat(suffix);
|
|
17
|
+
};
|
|
18
|
+
var _default = exports.default = {
|
|
15
19
|
compLib: 'root',
|
|
16
20
|
compType: -1,
|
|
21
|
+
// 根节点
|
|
17
22
|
isBusiObjContainer: false,
|
|
18
23
|
isContainer: false,
|
|
19
|
-
label: '
|
|
24
|
+
label: localeKey('label'),
|
|
20
25
|
props: {
|
|
21
26
|
objType: 'app',
|
|
22
27
|
catalogItemId: -1,
|
|
23
28
|
searchParams: [{
|
|
24
|
-
name: '
|
|
29
|
+
name: localeKey('props.searchParams.0.name'),
|
|
25
30
|
code: 'bizId'
|
|
26
31
|
}, {
|
|
27
|
-
name: '
|
|
32
|
+
name: localeKey('props.searchParams.1.name'),
|
|
28
33
|
code: 'sceneCode'
|
|
29
34
|
}, {
|
|
30
|
-
name: '
|
|
35
|
+
name: localeKey('props.searchParams.2.name'),
|
|
31
36
|
code: 'bizData'
|
|
32
37
|
}]
|
|
33
38
|
},
|
|
@@ -38,98 +43,164 @@ var _default = {
|
|
|
38
43
|
description: '',
|
|
39
44
|
image: '',
|
|
40
45
|
groupsName: 'root',
|
|
41
|
-
todoActionList: [
|
|
46
|
+
todoActionList: [{
|
|
47
|
+
key: 'showMessage',
|
|
48
|
+
label: localeKey('todoActionList.showMessage.label'),
|
|
49
|
+
todoOptions: [{
|
|
50
|
+
key: 'type',
|
|
51
|
+
label: localeKey('todoActionList.showMessage.todoOptions.type.label'),
|
|
52
|
+
type: 'Select',
|
|
53
|
+
defaultValue: 'success',
|
|
54
|
+
props: {
|
|
55
|
+
options: [{
|
|
56
|
+
title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.0.title'),
|
|
57
|
+
value: 'success'
|
|
58
|
+
}, {
|
|
59
|
+
title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.1.title'),
|
|
60
|
+
value: 'info'
|
|
61
|
+
}, {
|
|
62
|
+
title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.2.title'),
|
|
63
|
+
value: 'warn'
|
|
64
|
+
}, {
|
|
65
|
+
title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.3.title'),
|
|
66
|
+
value: 'error'
|
|
67
|
+
}, {
|
|
68
|
+
title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.4.title'),
|
|
69
|
+
value: 'loading'
|
|
70
|
+
}]
|
|
71
|
+
}
|
|
72
|
+
}, {
|
|
73
|
+
key: 'icon',
|
|
74
|
+
label: localeKey('todoActionList.showMessage.todoOptions.icon.label'),
|
|
75
|
+
type: 'ChooseIcon',
|
|
76
|
+
props: {
|
|
77
|
+
placeholder: localeKey('todoActionList.showMessage.todoOptions.icon.props.placeholder')
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
key: 'value',
|
|
81
|
+
label: localeKey('todoActionList.showMessage.todoOptions.value.label'),
|
|
82
|
+
type: 'SetExpression'
|
|
83
|
+
}, {
|
|
84
|
+
key: 'duration',
|
|
85
|
+
label: localeKey('todoActionList.showMessage.todoOptions.duration.label'),
|
|
86
|
+
type: 'InputNumber',
|
|
87
|
+
props: {
|
|
88
|
+
addonAfter: localeKey('todoActionList.showMessage.todoOptions.duration.props.addonAfter'),
|
|
89
|
+
step: '0.01',
|
|
90
|
+
formatter: function formatter(val) {
|
|
91
|
+
return val ? val.match(/^\d+(?:\.\d{0,2})?/) : undefined;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
key: 'okText',
|
|
96
|
+
label: localeKey('todoActionList.showMessage.todoOptions.okText.label'),
|
|
97
|
+
type: 'Input'
|
|
98
|
+
}, {
|
|
99
|
+
key: 'cancelText',
|
|
100
|
+
label: localeKey('todoActionList.showMessage.todoOptions.cancelText.label'),
|
|
101
|
+
type: 'Input'
|
|
102
|
+
}],
|
|
103
|
+
todoCallbacks: ['callback1', 'callback2'],
|
|
104
|
+
classification: [{
|
|
105
|
+
label: localeKey('todoActionList.showMessage.classification.modal.label'),
|
|
106
|
+
value: 'modal'
|
|
107
|
+
}],
|
|
108
|
+
remarks: [{
|
|
109
|
+
label: localeKey('todoActionList.showMessage.remarks.0.label'),
|
|
110
|
+
content: localeKey('todoActionList.showMessage.remarks.0.content')
|
|
111
|
+
}]
|
|
112
|
+
}].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('pc')), [{
|
|
42
113
|
key: 'previewFile',
|
|
43
|
-
label: '
|
|
114
|
+
label: localeKey('todoActionList.previewFile.label'),
|
|
44
115
|
todoOptions: [{
|
|
45
116
|
key: 'fileId',
|
|
46
|
-
label: '
|
|
117
|
+
label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
|
|
47
118
|
type: 'SetExpression',
|
|
48
|
-
labelTip: '
|
|
119
|
+
labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
|
|
49
120
|
}, {
|
|
50
121
|
key: 'viewMode',
|
|
51
|
-
label: '
|
|
122
|
+
label: localeKey('todoActionList.previewFile.todoOptions.viewMode.label'),
|
|
52
123
|
type: 'RadioButton',
|
|
53
124
|
defaultValue: 'popUp',
|
|
54
125
|
props: {
|
|
55
126
|
options: [{
|
|
56
|
-
title: '
|
|
127
|
+
title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.0.title'),
|
|
57
128
|
value: 'popUp'
|
|
58
129
|
}, {
|
|
59
|
-
title: '
|
|
130
|
+
title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.1.title'),
|
|
60
131
|
value: 'newTab'
|
|
61
132
|
}, {
|
|
62
|
-
title: '
|
|
133
|
+
title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.2.title'),
|
|
63
134
|
value: 'window'
|
|
64
135
|
}]
|
|
65
136
|
}
|
|
66
137
|
}, {
|
|
67
138
|
key: 'modalWidth',
|
|
68
|
-
label: '
|
|
139
|
+
label: localeKey('todoActionList.previewFile.todoOptions.modalWidth.label'),
|
|
69
140
|
type: 'SetExpression',
|
|
70
141
|
defaultValue: '960',
|
|
71
142
|
visibleFlag: 'viewMode',
|
|
72
|
-
labelTip: '
|
|
143
|
+
labelTip: localeKey('todoActionList.previewFile.todoOptions.modalWidth.labelTip'),
|
|
73
144
|
visibleFlagValue: ['window']
|
|
74
145
|
}, {
|
|
75
146
|
key: 'modalHeight',
|
|
76
|
-
label: '
|
|
147
|
+
label: localeKey('todoActionList.previewFile.todoOptions.modalHeight.label'),
|
|
77
148
|
type: 'SetExpression',
|
|
78
149
|
defaultValue: '648',
|
|
79
150
|
visibleFlag: 'viewMode',
|
|
80
|
-
labelTip: '
|
|
151
|
+
labelTip: localeKey('todoActionList.previewFile.todoOptions.modalHeight.labelTip'),
|
|
81
152
|
visibleFlagValue: ['window']
|
|
82
153
|
}],
|
|
83
154
|
classification: [{
|
|
84
|
-
label: '
|
|
155
|
+
label: localeKey('todoActionList.previewFile.classification.page.label'),
|
|
85
156
|
value: 'page'
|
|
86
157
|
}]
|
|
87
158
|
}, {
|
|
88
159
|
key: 'callNotStatedCustomFunc',
|
|
89
|
-
label: '
|
|
160
|
+
label: localeKey('todoActionList.callNotStatedCustomFunc.label'),
|
|
90
161
|
todoOptions: [{
|
|
91
162
|
key: 'funcName',
|
|
92
|
-
label: '
|
|
163
|
+
label: localeKey('todoActionList.callNotStatedCustomFunc.todoOptions.funcName.label'),
|
|
93
164
|
type: 'SelectCompFunction',
|
|
94
165
|
props: {
|
|
95
166
|
titleLink: [{
|
|
96
|
-
title: '
|
|
167
|
+
title: localeKey('todoActionList.callNotStatedCustomFunc.todoOptions.funcName.props.titleLink.0.title'),
|
|
97
168
|
value: 'refresh',
|
|
98
169
|
key: 'refresh'
|
|
99
170
|
}]
|
|
100
171
|
}
|
|
101
172
|
}, {
|
|
102
173
|
key: 'funcParams',
|
|
103
|
-
label: '
|
|
174
|
+
label: localeKey('todoActionList.callNotStatedCustomFunc.todoOptions.funcParams.label'),
|
|
104
175
|
type: 'SetCustomParams',
|
|
105
176
|
props: {}
|
|
106
177
|
}],
|
|
107
178
|
todoCallbacks: ['callback1', 'callback2'],
|
|
108
179
|
classification: [{
|
|
109
|
-
label: '
|
|
180
|
+
label: localeKey('todoActionList.callNotStatedCustomFunc.classification.communicate.label'),
|
|
110
181
|
value: 'communicate'
|
|
111
182
|
}],
|
|
112
183
|
// remarks: [{
|
|
113
|
-
// label: '
|
|
114
|
-
// content: '
|
|
184
|
+
// label: localeKey('todoActionList.callNotStatedCustomFunc.remarks.0.label'),
|
|
185
|
+
// content: localeKey('todoActionList.callNotStatedCustomFunc.remarks.0.content'),
|
|
115
186
|
// }],
|
|
116
187
|
isAsync: true
|
|
117
188
|
}]),
|
|
118
189
|
todoEvents: [{
|
|
119
190
|
value: 'onLoaded',
|
|
120
|
-
label: '
|
|
191
|
+
label: localeKey('todoEvents.onLoaded.label')
|
|
121
192
|
}, {
|
|
122
193
|
value: 'useEffect',
|
|
123
|
-
label: '
|
|
194
|
+
label: localeKey('todoEvents.useEffect.label')
|
|
124
195
|
}, {
|
|
125
196
|
value: 'willUnmount',
|
|
126
|
-
label: '
|
|
197
|
+
label: localeKey('todoEvents.willUnmount.label')
|
|
127
198
|
}],
|
|
128
199
|
todoProps: {
|
|
129
200
|
pageName: {
|
|
130
|
-
label: '
|
|
201
|
+
label: localeKey('todoProps.pageName.label'),
|
|
131
202
|
type: 'Input',
|
|
132
|
-
groupsName: '
|
|
203
|
+
groupsName: localeKey('todoProps.pageName.groupsName'),
|
|
133
204
|
props: {
|
|
134
205
|
required: true
|
|
135
206
|
}
|
|
@@ -149,26 +220,26 @@ var _default = {
|
|
|
149
220
|
// },
|
|
150
221
|
// },
|
|
151
222
|
catalogItemId: {
|
|
152
|
-
label: '
|
|
223
|
+
label: localeKey('todoProps.catalogItemId.label'),
|
|
153
224
|
type: 'CatalogTreeSelect',
|
|
154
|
-
groupsName: '
|
|
225
|
+
groupsName: localeKey('todoProps.catalogItemId.groupsName'),
|
|
155
226
|
props: {
|
|
156
227
|
required: true,
|
|
157
228
|
options: []
|
|
158
229
|
}
|
|
159
230
|
},
|
|
160
231
|
compState: {
|
|
161
|
-
label: '
|
|
232
|
+
label: localeKey('todoProps.compState.label'),
|
|
162
233
|
type: 'ParamsDefine',
|
|
163
|
-
groupsName: '
|
|
234
|
+
groupsName: localeKey('todoProps.compState.groupsName')
|
|
164
235
|
},
|
|
165
236
|
compFunc: {
|
|
166
|
-
label: '
|
|
237
|
+
label: localeKey('todoProps.compFunc.label'),
|
|
167
238
|
type: 'ParamsDefine',
|
|
168
|
-
groupsName: '
|
|
239
|
+
groupsName: localeKey('todoProps.compFunc.groupsName'),
|
|
169
240
|
props: {
|
|
170
|
-
codeLabel: '
|
|
171
|
-
nameLabel: '
|
|
241
|
+
codeLabel: localeKey('todoProps.compFunc.props.codeLabel'),
|
|
242
|
+
nameLabel: localeKey('todoProps.compFunc.props.nameLabel')
|
|
172
243
|
}
|
|
173
244
|
}
|
|
174
245
|
// busiCompAttrList: {
|
|
@@ -177,7 +248,5 @@ var _default = {
|
|
|
177
248
|
// groupsName: '基础',
|
|
178
249
|
// },
|
|
179
250
|
},
|
|
180
|
-
|
|
181
251
|
todoStyles: {}
|
|
182
|
-
};
|
|
183
|
-
exports.default = _default;
|
|
252
|
+
};
|
|
@@ -9,7 +9,6 @@ declare const _default: {
|
|
|
9
9
|
height: number;
|
|
10
10
|
placement: string;
|
|
11
11
|
footer: number;
|
|
12
|
-
layout: string;
|
|
13
12
|
closeOnClickOverlay: boolean;
|
|
14
13
|
compState: {
|
|
15
14
|
name: string;
|
|
@@ -78,21 +77,18 @@ declare const _default: {
|
|
|
78
77
|
props: {};
|
|
79
78
|
enableI18n: boolean;
|
|
80
79
|
};
|
|
81
|
-
|
|
80
|
+
placement: {
|
|
82
81
|
label: string;
|
|
83
82
|
type: string;
|
|
84
83
|
groupsName: string;
|
|
85
84
|
props: {
|
|
86
|
-
dependProps: {
|
|
87
|
-
placement: string[];
|
|
88
|
-
};
|
|
89
85
|
options: {
|
|
90
|
-
value:
|
|
86
|
+
value: string;
|
|
91
87
|
title: string;
|
|
92
88
|
}[];
|
|
93
89
|
};
|
|
94
90
|
};
|
|
95
|
-
|
|
91
|
+
width: {
|
|
96
92
|
label: string;
|
|
97
93
|
type: string;
|
|
98
94
|
groupsName: string;
|
|
@@ -106,13 +102,16 @@ declare const _default: {
|
|
|
106
102
|
}[];
|
|
107
103
|
};
|
|
108
104
|
};
|
|
109
|
-
|
|
105
|
+
height: {
|
|
110
106
|
label: string;
|
|
111
107
|
type: string;
|
|
112
108
|
groupsName: string;
|
|
113
109
|
props: {
|
|
110
|
+
dependProps: {
|
|
111
|
+
placement: string[];
|
|
112
|
+
};
|
|
114
113
|
options: {
|
|
115
|
-
value:
|
|
114
|
+
value: number;
|
|
116
115
|
title: string;
|
|
117
116
|
}[];
|
|
118
117
|
};
|