@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,14 +3,19 @@ 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 MOBILE_MODAL_LOCALE_PREFIX = 'mobile.modal';
|
|
9
|
+
var localeKey = function localeKey(suffix) {
|
|
10
|
+
return "".concat(MOBILE_MODAL_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: '50vw',
|
|
16
21
|
height: '50vh',
|
|
@@ -21,10 +26,10 @@ export default {
|
|
|
21
26
|
destroyOnClose: true,
|
|
22
27
|
showCloseButton: true,
|
|
23
28
|
compState: [{
|
|
24
|
-
name: '
|
|
29
|
+
name: localeKey('props.compState.0.name'),
|
|
25
30
|
code: 'bizId'
|
|
26
31
|
}, {
|
|
27
|
-
name: '
|
|
32
|
+
name: localeKey('props.compState.1.name'),
|
|
28
33
|
code: 'sceneCode'
|
|
29
34
|
}]
|
|
30
35
|
},
|
|
@@ -37,62 +42,62 @@ export default {
|
|
|
37
42
|
groupsName: 'root',
|
|
38
43
|
todoActionList: [].concat(_toConsumableArray(getSystemTodoActionList('mobile')), [{
|
|
39
44
|
key: 'previewFile',
|
|
40
|
-
label: '
|
|
45
|
+
label: localeKey('todoActionList.previewFile.label'),
|
|
41
46
|
todoOptions: [{
|
|
42
47
|
key: 'fileId',
|
|
43
|
-
label: '
|
|
48
|
+
label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
|
|
44
49
|
type: 'SetExpression',
|
|
45
|
-
labelTip: '
|
|
50
|
+
labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
|
|
46
51
|
}],
|
|
47
52
|
classification: [{
|
|
48
|
-
label: '
|
|
53
|
+
label: localeKey('todoActionList.previewFile.classification.page.label'),
|
|
49
54
|
value: 'page'
|
|
50
55
|
}]
|
|
51
56
|
}]),
|
|
52
57
|
todoEvents: [{
|
|
53
58
|
value: 'useEffect',
|
|
54
|
-
label: '
|
|
59
|
+
label: localeKey('todoEvents.useEffect.label')
|
|
55
60
|
}, {
|
|
56
61
|
value: 'stateChange',
|
|
57
|
-
label: '
|
|
62
|
+
label: localeKey('todoEvents.stateChange.label')
|
|
58
63
|
}, {
|
|
59
64
|
value: 'usePageEndRequest',
|
|
60
|
-
label: '
|
|
65
|
+
label: localeKey('todoEvents.usePageEndRequest.label'),
|
|
61
66
|
remarks: [{
|
|
62
|
-
label: '
|
|
63
|
-
content: '
|
|
67
|
+
label: localeKey('todoEvents.usePageEndRequest.remarks.0.label'),
|
|
68
|
+
content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
|
|
64
69
|
}, {
|
|
65
|
-
label: '
|
|
66
|
-
content: '
|
|
70
|
+
label: localeKey('todoEvents.usePageEndRequest.remarks.1.label'),
|
|
71
|
+
content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
|
|
67
72
|
}]
|
|
68
73
|
}],
|
|
69
74
|
todoProps: {
|
|
70
75
|
pageName: {
|
|
71
|
-
label: '
|
|
76
|
+
label: localeKey('todoProps.pageName.label'),
|
|
72
77
|
type: 'Input',
|
|
73
|
-
groupsName: '
|
|
78
|
+
groupsName: localeKey('todoProps.pageName.groupsName'),
|
|
74
79
|
props: {
|
|
75
80
|
required: true
|
|
76
81
|
}
|
|
77
82
|
},
|
|
78
83
|
pagePath: {
|
|
79
|
-
label: '
|
|
84
|
+
label: localeKey('todoProps.pagePath.label'),
|
|
80
85
|
type: 'UrlInput',
|
|
81
|
-
groupsName: '
|
|
86
|
+
groupsName: localeKey('todoProps.pagePath.groupsName'),
|
|
82
87
|
props: {
|
|
83
88
|
required: true,
|
|
84
|
-
placeholder: '
|
|
89
|
+
placeholder: localeKey('todoProps.pagePath.props.placeholder'),
|
|
85
90
|
regex: {
|
|
86
91
|
// eslint-disable-next-line
|
|
87
92
|
pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
|
|
88
|
-
message: '
|
|
93
|
+
message: localeKey('todoProps.pagePath.props.regex.message')
|
|
89
94
|
}
|
|
90
95
|
}
|
|
91
96
|
},
|
|
92
97
|
catalogItemId: {
|
|
93
|
-
label: '
|
|
98
|
+
label: localeKey('todoProps.catalogItemId.label'),
|
|
94
99
|
type: 'CatalogTreeSelect',
|
|
95
|
-
groupsName: '
|
|
100
|
+
groupsName: localeKey('todoProps.catalogItemId.groupsName'),
|
|
96
101
|
props: {
|
|
97
102
|
required: true,
|
|
98
103
|
options: [],
|
|
@@ -102,116 +107,116 @@ export default {
|
|
|
102
107
|
}
|
|
103
108
|
},
|
|
104
109
|
scenarioList: {
|
|
105
|
-
label: '
|
|
110
|
+
label: localeKey('todoProps.scenarioList.label'),
|
|
106
111
|
type: 'SelectScenarioPopover',
|
|
107
|
-
groupsName: '
|
|
112
|
+
groupsName: localeKey('todoProps.scenarioList.groupsName'),
|
|
108
113
|
props: {
|
|
109
114
|
options: []
|
|
110
115
|
}
|
|
111
116
|
},
|
|
112
117
|
mode: {
|
|
113
|
-
label: '
|
|
118
|
+
label: localeKey('todoProps.mode.label'),
|
|
114
119
|
type: 'Select',
|
|
115
|
-
groupsName: '
|
|
120
|
+
groupsName: localeKey('todoProps.mode.groupsName'),
|
|
116
121
|
props: {
|
|
117
122
|
options: [{
|
|
118
|
-
title: '
|
|
123
|
+
title: localeKey('todoProps.mode.props.options.0.title'),
|
|
119
124
|
value: 'alert'
|
|
120
125
|
}, {
|
|
121
|
-
title: '
|
|
126
|
+
title: localeKey('todoProps.mode.props.options.1.title'),
|
|
122
127
|
value: 'popup'
|
|
123
128
|
}, {
|
|
124
|
-
title: '
|
|
129
|
+
title: localeKey('todoProps.mode.props.options.2.title'),
|
|
125
130
|
value: 'dropdown'
|
|
126
131
|
}, {
|
|
127
|
-
title: '
|
|
132
|
+
title: localeKey('todoProps.mode.props.options.3.title'),
|
|
128
133
|
value: 'sliderLeft'
|
|
129
134
|
}, {
|
|
130
|
-
title: '
|
|
135
|
+
title: localeKey('todoProps.mode.props.options.4.title'),
|
|
131
136
|
value: 'sliderRight'
|
|
132
137
|
}]
|
|
133
138
|
}
|
|
134
139
|
},
|
|
135
140
|
width: {
|
|
136
|
-
label: '
|
|
137
|
-
groupsName: '
|
|
141
|
+
label: localeKey('todoProps.width.label'),
|
|
142
|
+
groupsName: localeKey('todoProps.width.groupsName'),
|
|
138
143
|
type: 'HeightInput',
|
|
139
144
|
props: {
|
|
140
145
|
dependProps: {
|
|
141
146
|
mode: ['alert', 'sliderLeft', 'sliderRight']
|
|
142
147
|
},
|
|
143
148
|
option: [{
|
|
144
|
-
label: '
|
|
149
|
+
label: localeKey('todoProps.width.props.option.0.label'),
|
|
145
150
|
value: 'px'
|
|
146
151
|
}, {
|
|
147
|
-
label: '
|
|
152
|
+
label: localeKey('todoProps.width.props.option.1.label'),
|
|
148
153
|
value: '%'
|
|
149
154
|
}, {
|
|
150
|
-
label: '
|
|
155
|
+
label: localeKey('todoProps.width.props.option.2.label'),
|
|
151
156
|
value: 'vw'
|
|
152
157
|
}]
|
|
153
158
|
}
|
|
154
159
|
},
|
|
155
160
|
height: {
|
|
156
|
-
label: '
|
|
157
|
-
groupsName: '
|
|
161
|
+
label: localeKey('todoProps.height.label'),
|
|
162
|
+
groupsName: localeKey('todoProps.height.groupsName'),
|
|
158
163
|
type: 'HeightInput',
|
|
159
164
|
props: {
|
|
160
165
|
dependProps: {
|
|
161
166
|
mode: ['alert', 'popup', 'dropdown']
|
|
162
167
|
},
|
|
163
168
|
option: [{
|
|
164
|
-
label: '
|
|
169
|
+
label: localeKey('todoProps.height.props.option.0.label'),
|
|
165
170
|
value: 'px'
|
|
166
171
|
}, {
|
|
167
|
-
label: '
|
|
172
|
+
label: localeKey('todoProps.height.props.option.1.label'),
|
|
168
173
|
value: '%'
|
|
169
174
|
}, {
|
|
170
|
-
label: '
|
|
175
|
+
label: localeKey('todoProps.height.props.option.2.label'),
|
|
171
176
|
value: 'vh'
|
|
172
177
|
}]
|
|
173
178
|
}
|
|
174
179
|
},
|
|
175
180
|
closeOnClickOverlay: {
|
|
176
|
-
label: '
|
|
181
|
+
label: localeKey('todoProps.closeOnClickOverlay.label'),
|
|
177
182
|
type: 'Select',
|
|
178
|
-
groupsName: '
|
|
183
|
+
groupsName: localeKey('todoProps.closeOnClickOverlay.groupsName'),
|
|
179
184
|
props: {
|
|
180
185
|
inhibitBtn: true,
|
|
181
186
|
options: [{
|
|
182
|
-
title: '
|
|
187
|
+
title: localeKey('todoProps.closeOnClickOverlay.props.options.0.title'),
|
|
183
188
|
value: true
|
|
184
189
|
}, {
|
|
185
|
-
title: '
|
|
190
|
+
title: localeKey('todoProps.closeOnClickOverlay.props.options.1.title'),
|
|
186
191
|
value: false
|
|
187
192
|
}]
|
|
188
193
|
}
|
|
189
194
|
},
|
|
190
195
|
destroyOnClose: {
|
|
191
|
-
label: '
|
|
196
|
+
label: localeKey('todoProps.destroyOnClose.label'),
|
|
192
197
|
type: 'Switch',
|
|
193
|
-
groupsName: '
|
|
198
|
+
groupsName: localeKey('todoProps.destroyOnClose.groupsName')
|
|
194
199
|
},
|
|
195
200
|
showCloseButton: {
|
|
196
|
-
label: '
|
|
201
|
+
label: localeKey('todoProps.showCloseButton.label'),
|
|
197
202
|
type: 'Switch',
|
|
198
|
-
groupsName: '
|
|
203
|
+
groupsName: localeKey('todoProps.showCloseButton.groupsName')
|
|
199
204
|
},
|
|
200
205
|
ignoreLogin: {
|
|
201
|
-
label: '
|
|
206
|
+
label: localeKey('todoProps.ignoreLogin.label'),
|
|
202
207
|
type: 'Switch',
|
|
203
|
-
groupsName: '
|
|
208
|
+
groupsName: localeKey('todoProps.ignoreLogin.groupsName'),
|
|
204
209
|
props: {}
|
|
205
210
|
},
|
|
206
211
|
labels: {
|
|
207
|
-
label: '
|
|
212
|
+
label: localeKey('todoProps.labels.label'),
|
|
208
213
|
type: 'ChooseTag',
|
|
209
|
-
groupsName: '
|
|
214
|
+
groupsName: localeKey('todoProps.labels.groupsName')
|
|
210
215
|
},
|
|
211
216
|
compState: {
|
|
212
|
-
label: '
|
|
217
|
+
label: localeKey('todoProps.compState.label'),
|
|
213
218
|
type: 'ParamsDefine',
|
|
214
|
-
groupsName: '
|
|
219
|
+
groupsName: localeKey('todoProps.compState.groupsName')
|
|
215
220
|
}
|
|
216
221
|
},
|
|
217
222
|
todoStyles: {}
|
|
@@ -3,28 +3,31 @@ 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 MOBILE_POPOVER_LOCALE_PREFIX = 'mobile.popover';
|
|
9
|
+
var localeKey = function localeKey(suffix) {
|
|
10
|
+
return "".concat(MOBILE_POPOVER_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
|
-
pageLayout: 'BaseLayout',
|
|
16
20
|
pageDynamicFlag: false,
|
|
17
21
|
catalogItemId: -1,
|
|
18
22
|
ignoreLogin: false,
|
|
19
|
-
layout: 'BaseLayout',
|
|
20
23
|
searchParams: [{
|
|
21
|
-
name: '
|
|
24
|
+
name: localeKey('props.searchParams.0.name'),
|
|
22
25
|
code: 'bizId'
|
|
23
26
|
}, {
|
|
24
|
-
name: '
|
|
27
|
+
name: localeKey('props.searchParams.1.name'),
|
|
25
28
|
code: 'sceneCode'
|
|
26
29
|
}, {
|
|
27
|
-
name: '
|
|
30
|
+
name: localeKey('props.searchParams.2.name'),
|
|
28
31
|
code: 'bizData'
|
|
29
32
|
}]
|
|
30
33
|
},
|
|
@@ -37,59 +40,59 @@ export default {
|
|
|
37
40
|
groupsName: 'root',
|
|
38
41
|
todoActionList: [].concat(_toConsumableArray(getSystemTodoActionList('mobile')), [{
|
|
39
42
|
key: 'previewFile',
|
|
40
|
-
label: '
|
|
43
|
+
label: localeKey('todoActionList.previewFile.label'),
|
|
41
44
|
todoOptions: [{
|
|
42
45
|
key: 'fileId',
|
|
43
|
-
label: '
|
|
46
|
+
label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
|
|
44
47
|
type: 'SetExpression',
|
|
45
|
-
labelTip: '
|
|
48
|
+
labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
|
|
46
49
|
}],
|
|
47
50
|
classification: [{
|
|
48
|
-
label: '
|
|
51
|
+
label: localeKey('todoActionList.previewFile.classification.page.label'),
|
|
49
52
|
value: 'page'
|
|
50
53
|
}]
|
|
51
54
|
}]),
|
|
52
55
|
todoEvents: [{
|
|
53
56
|
value: 'stateChange',
|
|
54
|
-
label: '
|
|
57
|
+
label: localeKey('todoEvents.stateChange.label')
|
|
55
58
|
}, {
|
|
56
59
|
value: 'usePageEndRequest',
|
|
57
|
-
label: '
|
|
60
|
+
label: localeKey('todoEvents.usePageEndRequest.label'),
|
|
58
61
|
remarks: [{
|
|
59
|
-
label: '
|
|
60
|
-
content: '
|
|
62
|
+
label: localeKey('todoEvents.usePageEndRequest.remarks.0.label'),
|
|
63
|
+
content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
|
|
61
64
|
}, {
|
|
62
|
-
label: '
|
|
63
|
-
content: '
|
|
65
|
+
label: localeKey('todoEvents.usePageEndRequest.remarks.1.label'),
|
|
66
|
+
content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
|
|
64
67
|
}]
|
|
65
68
|
}],
|
|
66
69
|
todoProps: {
|
|
67
70
|
pageName: {
|
|
68
|
-
label: '
|
|
71
|
+
label: localeKey('todoProps.pageName.label'),
|
|
69
72
|
type: 'Input',
|
|
70
|
-
groupsName: '
|
|
73
|
+
groupsName: localeKey('todoProps.pageName.groupsName'),
|
|
71
74
|
props: {
|
|
72
75
|
required: true
|
|
73
76
|
}
|
|
74
77
|
},
|
|
75
78
|
pagePath: {
|
|
76
|
-
label: '
|
|
79
|
+
label: localeKey('todoProps.pagePath.label'),
|
|
77
80
|
type: 'UrlInput',
|
|
78
|
-
groupsName: '
|
|
81
|
+
groupsName: localeKey('todoProps.pagePath.groupsName'),
|
|
79
82
|
props: {
|
|
80
83
|
required: true,
|
|
81
|
-
placeholder: '
|
|
84
|
+
placeholder: localeKey('todoProps.pagePath.props.placeholder'),
|
|
82
85
|
regex: {
|
|
83
86
|
// eslint-disable-next-line
|
|
84
87
|
pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
|
|
85
|
-
message: '
|
|
88
|
+
message: localeKey('todoProps.pagePath.props.regex.message')
|
|
86
89
|
}
|
|
87
90
|
}
|
|
88
91
|
},
|
|
89
92
|
catalogItemId: {
|
|
90
|
-
label: '
|
|
93
|
+
label: localeKey('todoProps.catalogItemId.label'),
|
|
91
94
|
type: 'CatalogTreeSelect',
|
|
92
|
-
groupsName: '
|
|
95
|
+
groupsName: localeKey('todoProps.catalogItemId.groupsName'),
|
|
93
96
|
props: {
|
|
94
97
|
required: true,
|
|
95
98
|
options: [],
|
|
@@ -99,26 +102,26 @@ export default {
|
|
|
99
102
|
}
|
|
100
103
|
},
|
|
101
104
|
remark: {
|
|
102
|
-
label: '
|
|
105
|
+
label: localeKey('todoProps.remark.label'),
|
|
103
106
|
type: 'Input',
|
|
104
|
-
groupsName: '
|
|
107
|
+
groupsName: localeKey('todoProps.remark.groupsName'),
|
|
105
108
|
props: {}
|
|
106
109
|
},
|
|
107
110
|
ignoreLogin: {
|
|
108
|
-
label: '
|
|
111
|
+
label: localeKey('todoProps.ignoreLogin.label'),
|
|
109
112
|
type: 'Switch',
|
|
110
|
-
groupsName: '
|
|
113
|
+
groupsName: localeKey('todoProps.ignoreLogin.groupsName'),
|
|
111
114
|
props: {}
|
|
112
115
|
},
|
|
113
116
|
labels: {
|
|
114
|
-
label: '
|
|
117
|
+
label: localeKey('todoProps.labels.label'),
|
|
115
118
|
type: 'ChooseTag',
|
|
116
|
-
groupsName: '
|
|
119
|
+
groupsName: localeKey('todoProps.labels.groupsName')
|
|
117
120
|
},
|
|
118
121
|
compState: {
|
|
119
|
-
label: '
|
|
122
|
+
label: localeKey('todoProps.compState.label'),
|
|
120
123
|
type: 'ParamsDefine',
|
|
121
|
-
groupsName: '
|
|
124
|
+
groupsName: localeKey('todoProps.compState.groupsName')
|
|
122
125
|
}
|
|
123
126
|
},
|
|
124
127
|
todoStyles: {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as BusiComp } from
|
|
2
|
-
export { default as MobileModal } from
|
|
3
|
-
export { default as MobilePopover } from
|
|
4
|
-
export { default as Page } from
|
|
1
|
+
export { default as BusiComp } from "./BusiComp";
|
|
2
|
+
export { default as MobileModal } from "./MobileModal";
|
|
3
|
+
export { default as MobilePopover } from "./MobilePopover";
|
|
4
|
+
export { default as Page } from "./page";
|
|
@@ -5,12 +5,10 @@ declare const _default: {
|
|
|
5
5
|
isContainer: boolean;
|
|
6
6
|
label: string;
|
|
7
7
|
props: {
|
|
8
|
-
pageLayout: string;
|
|
9
8
|
pageDynamicFlag: boolean;
|
|
10
9
|
catalogItemId: number;
|
|
11
10
|
ignoreLogin: boolean;
|
|
12
11
|
hideNavBar: boolean;
|
|
13
|
-
layout: string;
|
|
14
12
|
searchParams: {
|
|
15
13
|
name: string;
|
|
16
14
|
code: string;
|
|
@@ -81,6 +79,23 @@ declare const _default: {
|
|
|
81
79
|
params?: undefined;
|
|
82
80
|
showRules?: undefined;
|
|
83
81
|
dependProps?: undefined;
|
|
82
|
+
} | {
|
|
83
|
+
value: string;
|
|
84
|
+
label: string;
|
|
85
|
+
params: {
|
|
86
|
+
title: string;
|
|
87
|
+
name: string;
|
|
88
|
+
value: string;
|
|
89
|
+
type: string;
|
|
90
|
+
description: string;
|
|
91
|
+
}[];
|
|
92
|
+
remarks: {
|
|
93
|
+
label: string;
|
|
94
|
+
content: string;
|
|
95
|
+
}[];
|
|
96
|
+
terminal?: undefined;
|
|
97
|
+
showRules?: undefined;
|
|
98
|
+
dependProps?: undefined;
|
|
84
99
|
})[];
|
|
85
100
|
todoProps: {
|
|
86
101
|
pageName: {
|