@lingxiteam/assets 4.2.1-alpha.2 → 4.3.2-alpha.3
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 +106 -0
- package/es/rootConfig/locales/enus/config-locales-es.pc.d.ts +2 -0
- package/es/rootConfig/locales/enus/config-locales-es.pc.js +42 -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 +865 -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 +20 -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 +266 -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 +57 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.pc.d.ts +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.pc.js +97 -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 +583 -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 +13 -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 +127 -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 +106 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.pc.d.ts +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.pc.js +174 -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 +869 -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 +20 -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 +266 -0
- package/es/rootConfig/mobile/BusiComp.d.ts +0 -1
- package/es/rootConfig/mobile/BusiComp.js +13 -10
- package/es/rootConfig/mobile/MobileModal.js +32 -27
- package/es/rootConfig/mobile/MobilePopover.d.ts +0 -2
- package/es/rootConfig/mobile/MobilePopover.js +16 -13
- package/es/rootConfig/mobile/index.js +4 -4
- package/es/rootConfig/mobile/page.d.ts +17 -2
- package/es/rootConfig/mobile/page.js +45 -38
- package/es/rootConfig/pc/BusiComp.js +82 -12
- package/es/rootConfig/pc/Drawer.d.ts +8 -9
- package/es/rootConfig/pc/Drawer.js +116 -46
- package/es/rootConfig/pc/Modal.d.ts +0 -1
- package/es/rootConfig/pc/Modal.js +90 -20
- package/es/rootConfig/pc/Popover.d.ts +0 -1
- package/es/rootConfig/pc/Popover.js +85 -15
- package/es/rootConfig/pc/index.js +5 -5
- package/es/rootConfig/pc/page.d.ts +0 -2
- package/es/rootConfig/pc/page.js +91 -22
- package/es/rootConfig/todoActionList.d.ts +1 -0
- package/es/rootConfig/todoActionList.js +1845 -719
- 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 +197 -198
- 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 +112 -0
- package/lib/rootConfig/locales/enus/config-locales-es.pc.d.ts +2 -0
- package/lib/rootConfig/locales/enus/config-locales-es.pc.js +48 -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 +871 -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 +26 -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 +272 -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 +63 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.pc.d.ts +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.pc.js +103 -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 +589 -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 +19 -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 +133 -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 +112 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.pc.d.ts +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.pc.js +180 -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 +875 -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 +26 -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 +272 -0
- package/lib/rootConfig/mobile/BusiComp.d.ts +0 -1
- package/lib/rootConfig/mobile/BusiComp.js +14 -12
- package/lib/rootConfig/mobile/MobileModal.js +33 -29
- package/lib/rootConfig/mobile/MobilePopover.d.ts +0 -2
- package/lib/rootConfig/mobile/MobilePopover.js +17 -15
- package/lib/rootConfig/mobile/page.d.ts +17 -2
- package/lib/rootConfig/mobile/page.js +46 -40
- package/lib/rootConfig/pc/BusiComp.js +83 -14
- package/lib/rootConfig/pc/Drawer.d.ts +8 -9
- package/lib/rootConfig/pc/Drawer.js +117 -48
- package/lib/rootConfig/pc/Modal.d.ts +0 -1
- package/lib/rootConfig/pc/Modal.js +91 -22
- package/lib/rootConfig/pc/Popover.d.ts +0 -1
- package/lib/rootConfig/pc/Popover.js +86 -17
- package/lib/rootConfig/pc/page.d.ts +0 -2
- package/lib/rootConfig/pc/page.js +92 -24
- package/lib/rootConfig/todoActionList.d.ts +1 -0
- package/lib/rootConfig/todoActionList.js +1815 -695
- 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 +198 -200
- 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
|
@@ -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: {
|
|
@@ -3,21 +3,24 @@ 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_PAGE_LOCALE_PREFIX = 'mobile.page';
|
|
9
|
+
var localeKey = function localeKey(suffix) {
|
|
10
|
+
return "".concat(MOBILE_PAGE_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
18
|
label: '页面',
|
|
14
19
|
props: {
|
|
15
|
-
pageLayout: 'BaseLayout',
|
|
16
20
|
pageDynamicFlag: false,
|
|
17
21
|
catalogItemId: -1,
|
|
18
22
|
ignoreLogin: false,
|
|
19
23
|
hideNavBar: false,
|
|
20
|
-
layout: 'BaseLayout',
|
|
21
24
|
searchParams: [{
|
|
22
25
|
name: '业务主键',
|
|
23
26
|
code: 'bizId'
|
|
@@ -29,13 +32,13 @@ export default {
|
|
|
29
32
|
code: 'bizData'
|
|
30
33
|
}],
|
|
31
34
|
compState: [{
|
|
32
|
-
name: '
|
|
35
|
+
name: localeKey('props.compState.0.name'),
|
|
33
36
|
code: 'bizId'
|
|
34
37
|
}, {
|
|
35
|
-
name: '
|
|
38
|
+
name: localeKey('props.compState.1.name'),
|
|
36
39
|
code: 'sceneCode'
|
|
37
40
|
}, {
|
|
38
|
-
name: '
|
|
41
|
+
name: localeKey('props.compState.2.name'),
|
|
39
42
|
code: 'bizData'
|
|
40
43
|
}]
|
|
41
44
|
},
|
|
@@ -51,9 +54,9 @@ export default {
|
|
|
51
54
|
label: '文件预览',
|
|
52
55
|
todoOptions: [{
|
|
53
56
|
key: 'fileId',
|
|
54
|
-
label: '
|
|
57
|
+
label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
|
|
55
58
|
type: 'SetExpression',
|
|
56
|
-
labelTip: '
|
|
59
|
+
labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
|
|
57
60
|
}],
|
|
58
61
|
classification: [{
|
|
59
62
|
label: '页面类',
|
|
@@ -62,47 +65,61 @@ export default {
|
|
|
62
65
|
}]),
|
|
63
66
|
todoEvents: [{
|
|
64
67
|
value: 'useEffect',
|
|
65
|
-
label: '
|
|
68
|
+
label: localeKey('todoEvents.useEffect.label')
|
|
66
69
|
}, {
|
|
67
70
|
value: 'stateChange',
|
|
68
|
-
label: '
|
|
71
|
+
label: localeKey('todoEvents.stateChange.label')
|
|
69
72
|
}, {
|
|
70
73
|
value: 'willUnmount',
|
|
71
74
|
label: '页面退出'
|
|
72
75
|
}, {
|
|
73
76
|
value: 'onLeftClick',
|
|
74
|
-
label: '
|
|
77
|
+
label: localeKey('todoEvents.onLeftClick.label'),
|
|
75
78
|
terminal: ['mobile']
|
|
76
79
|
}, {
|
|
77
80
|
value: 'otherPageMessage',
|
|
78
|
-
label: '
|
|
81
|
+
label: localeKey('todoEvents.otherPageMessage.label'),
|
|
79
82
|
terminal: ['mobile'],
|
|
80
83
|
params: [{
|
|
81
|
-
title: '
|
|
84
|
+
title: localeKey('todoEvents.otherPageMessage.params.0.title'),
|
|
82
85
|
name: 'p',
|
|
83
86
|
value: '$p$'
|
|
84
87
|
}]
|
|
85
88
|
}, {
|
|
86
89
|
value: 'onPageCacheRefresh',
|
|
87
|
-
label: '
|
|
90
|
+
label: localeKey('todoEvents.onPageCacheRefresh.label'),
|
|
88
91
|
showRules: ['pageDynamicFlag'],
|
|
89
92
|
dependProps: {
|
|
90
93
|
pageDynamicFlag: true
|
|
91
94
|
},
|
|
92
95
|
params: [{
|
|
93
|
-
title: '
|
|
96
|
+
title: localeKey('todoEvents.onPageCacheRefresh.params.0.title'),
|
|
94
97
|
name: 'pageBackData',
|
|
95
98
|
value: '$pageBackData$'
|
|
96
99
|
}]
|
|
97
100
|
}, {
|
|
98
101
|
value: 'usePageEndRequest',
|
|
99
|
-
label: '
|
|
102
|
+
label: localeKey('todoEvents.usePageEndRequest.label'),
|
|
100
103
|
remarks: [{
|
|
101
104
|
label: '场景描述',
|
|
102
|
-
content: '
|
|
105
|
+
content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
|
|
103
106
|
}, {
|
|
104
107
|
label: '适用场景',
|
|
105
|
-
content: '
|
|
108
|
+
content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
|
|
109
|
+
}]
|
|
110
|
+
}, {
|
|
111
|
+
value: 'pageGetWeChatCode',
|
|
112
|
+
label: localeKey('todoEvents.pageGetWeChatCode.label'),
|
|
113
|
+
params: [{
|
|
114
|
+
title: '结果详情',
|
|
115
|
+
name: 'resultObject',
|
|
116
|
+
value: '$resultObject$',
|
|
117
|
+
type: 'object',
|
|
118
|
+
description: localeKey('todoEvents.pageGetWeChatCode.params.0.description')
|
|
119
|
+
}],
|
|
120
|
+
remarks: [{
|
|
121
|
+
label: '场景描述',
|
|
122
|
+
content: localeKey('todoEvents.pageGetWeChatCode.remarks.0.content')
|
|
106
123
|
}]
|
|
107
124
|
}],
|
|
108
125
|
todoProps: {
|
|
@@ -120,11 +137,11 @@ export default {
|
|
|
120
137
|
groupsName: '基础',
|
|
121
138
|
props: {
|
|
122
139
|
required: true,
|
|
123
|
-
placeholder: '
|
|
140
|
+
placeholder: localeKey('todoProps.pagePath.props.placeholder'),
|
|
124
141
|
regex: {
|
|
125
142
|
// eslint-disable-next-line
|
|
126
143
|
pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
|
|
127
|
-
message: '
|
|
144
|
+
message: localeKey('todoProps.pagePath.props.regex.message')
|
|
128
145
|
}
|
|
129
146
|
}
|
|
130
147
|
},
|
|
@@ -134,7 +151,7 @@ export default {
|
|
|
134
151
|
groupsName: '基础',
|
|
135
152
|
istodoBind: true,
|
|
136
153
|
props: {
|
|
137
|
-
description: '
|
|
154
|
+
description: localeKey('todoProps.pageTitle.props.description')
|
|
138
155
|
},
|
|
139
156
|
enableI18n: true
|
|
140
157
|
},
|
|
@@ -182,7 +199,7 @@ export default {
|
|
|
182
199
|
groupsName: '基础',
|
|
183
200
|
props: {
|
|
184
201
|
required: false,
|
|
185
|
-
description: '
|
|
202
|
+
description: localeKey('todoProps.pageDynamicFlag.props.description')
|
|
186
203
|
}
|
|
187
204
|
},
|
|
188
205
|
isMenu: {
|
|
@@ -190,7 +207,7 @@ export default {
|
|
|
190
207
|
type: 'MenuSwitch',
|
|
191
208
|
groupsName: '基础',
|
|
192
209
|
props: {
|
|
193
|
-
description: '
|
|
210
|
+
description: localeKey('todoProps.isMenu.props.description')
|
|
194
211
|
}
|
|
195
212
|
},
|
|
196
213
|
labels: {
|
|
@@ -204,20 +221,10 @@ export default {
|
|
|
204
221
|
groupsName: '组件状态'
|
|
205
222
|
},
|
|
206
223
|
searchParams: {
|
|
207
|
-
label: '
|
|
224
|
+
label: localeKey('todoProps.searchParams.label'),
|
|
208
225
|
type: 'ParamsDefine',
|
|
209
|
-
groupsName: '
|
|
210
|
-
},
|
|
211
|
-
// pageParams: {
|
|
212
|
-
// label: '页面入参',
|
|
213
|
-
// type: 'ParamsDefine',
|
|
214
|
-
// groupsName: '页面入参',
|
|
215
|
-
// },
|
|
216
|
-
// publicState: {
|
|
217
|
-
// label: '页面出参',
|
|
218
|
-
// type: 'ParamsDefine',
|
|
219
|
-
// groupsName: '页面出参',
|
|
220
|
-
// },
|
|
226
|
+
groupsName: localeKey('todoProps.searchParams.groupsName')
|
|
227
|
+
},
|
|
221
228
|
routerData: {
|
|
222
229
|
label: '路由数据',
|
|
223
230
|
type: 'ParamsDefine',
|
|
@@ -237,7 +244,7 @@ export default {
|
|
|
237
244
|
props: {}
|
|
238
245
|
},
|
|
239
246
|
colorType: {
|
|
240
|
-
groupsName: '
|
|
247
|
+
groupsName: localeKey('todoStyles.colorType.groupsName'),
|
|
241
248
|
label: '填充类型',
|
|
242
249
|
type: 'BackgroundType',
|
|
243
250
|
props: {}
|
|
@@ -3,11 +3,16 @@ 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 BUSICOMP_LOCALE_PREFIX = 'pc.busiComp';
|
|
9
|
+
var localeKey = function localeKey(suffix) {
|
|
10
|
+
return "".concat(BUSICOMP_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
18
|
label: '业务组件',
|
|
@@ -32,14 +37,80 @@ export default {
|
|
|
32
37
|
description: '',
|
|
33
38
|
image: '',
|
|
34
39
|
groupsName: 'root',
|
|
35
|
-
todoActionList: [
|
|
40
|
+
todoActionList: [{
|
|
41
|
+
key: 'showMessage',
|
|
42
|
+
label: '消息提示',
|
|
43
|
+
todoOptions: [{
|
|
44
|
+
key: 'type',
|
|
45
|
+
label: '类型',
|
|
46
|
+
type: 'Select',
|
|
47
|
+
defaultValue: 'success',
|
|
48
|
+
props: {
|
|
49
|
+
options: [{
|
|
50
|
+
title: '成功',
|
|
51
|
+
value: 'success'
|
|
52
|
+
}, {
|
|
53
|
+
title: '提示',
|
|
54
|
+
value: 'info'
|
|
55
|
+
}, {
|
|
56
|
+
title: '警告',
|
|
57
|
+
value: 'warn'
|
|
58
|
+
}, {
|
|
59
|
+
title: '错误',
|
|
60
|
+
value: 'error'
|
|
61
|
+
}, {
|
|
62
|
+
title: '加载动画',
|
|
63
|
+
value: 'loading'
|
|
64
|
+
}]
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
key: 'icon',
|
|
68
|
+
label: '自定义图标',
|
|
69
|
+
type: 'ChooseIcon',
|
|
70
|
+
props: {
|
|
71
|
+
placeholder: '请选择图标'
|
|
72
|
+
}
|
|
73
|
+
}, {
|
|
74
|
+
key: 'value',
|
|
75
|
+
label: '内容',
|
|
76
|
+
type: 'SetExpression'
|
|
77
|
+
}, {
|
|
78
|
+
key: 'duration',
|
|
79
|
+
label: '加载时长',
|
|
80
|
+
type: 'InputNumber',
|
|
81
|
+
props: {
|
|
82
|
+
addonAfter: '秒',
|
|
83
|
+
step: '0.01',
|
|
84
|
+
formatter: function formatter(val) {
|
|
85
|
+
return val ? val.match(/^\d+(?:\.\d{0,2})?/) : undefined;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
89
|
+
key: 'okText',
|
|
90
|
+
label: localeKey('todoActionList.showMessage.todoOptions.okText.label'),
|
|
91
|
+
type: 'Input'
|
|
92
|
+
}, {
|
|
93
|
+
key: 'cancelText',
|
|
94
|
+
label: localeKey('todoActionList.showMessage.todoOptions.cancelText.label'),
|
|
95
|
+
type: 'Input'
|
|
96
|
+
}],
|
|
97
|
+
todoCallbacks: ['callback1', 'callback2'],
|
|
98
|
+
classification: [{
|
|
99
|
+
label: localeKey('todoActionList.showMessage.classification.modal.label'),
|
|
100
|
+
value: 'modal'
|
|
101
|
+
}],
|
|
102
|
+
remarks: [{
|
|
103
|
+
label: '注意事项',
|
|
104
|
+
content: localeKey('todoActionList.showMessage.remarks.0.content')
|
|
105
|
+
}]
|
|
106
|
+
}].concat(_toConsumableArray(getSystemTodoActionList('pc')), [{
|
|
36
107
|
key: 'previewFile',
|
|
37
108
|
label: '文件预览',
|
|
38
109
|
todoOptions: [{
|
|
39
110
|
key: 'fileId',
|
|
40
|
-
label: '
|
|
111
|
+
label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
|
|
41
112
|
type: 'SetExpression',
|
|
42
|
-
labelTip: '
|
|
113
|
+
labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
|
|
43
114
|
}, {
|
|
44
115
|
key: 'viewMode',
|
|
45
116
|
label: '预览方式',
|
|
@@ -63,7 +134,7 @@ export default {
|
|
|
63
134
|
type: 'SetExpression',
|
|
64
135
|
defaultValue: '960',
|
|
65
136
|
visibleFlag: 'viewMode',
|
|
66
|
-
labelTip: '
|
|
137
|
+
labelTip: localeKey('todoActionList.previewFile.todoOptions.modalWidth.labelTip'),
|
|
67
138
|
visibleFlagValue: ['window']
|
|
68
139
|
}, {
|
|
69
140
|
key: 'modalHeight',
|
|
@@ -71,7 +142,7 @@ export default {
|
|
|
71
142
|
type: 'SetExpression',
|
|
72
143
|
defaultValue: '648',
|
|
73
144
|
visibleFlag: 'viewMode',
|
|
74
|
-
labelTip: '
|
|
145
|
+
labelTip: localeKey('todoActionList.previewFile.todoOptions.modalHeight.labelTip'),
|
|
75
146
|
visibleFlagValue: ['window']
|
|
76
147
|
}],
|
|
77
148
|
classification: [{
|
|
@@ -80,7 +151,7 @@ export default {
|
|
|
80
151
|
}]
|
|
81
152
|
}, {
|
|
82
153
|
key: 'callNotStatedCustomFunc',
|
|
83
|
-
label: '
|
|
154
|
+
label: localeKey('todoActionList.callNotStatedCustomFunc.label'),
|
|
84
155
|
todoOptions: [{
|
|
85
156
|
key: 'funcName',
|
|
86
157
|
label: '事件',
|
|
@@ -105,16 +176,16 @@ export default {
|
|
|
105
176
|
}],
|
|
106
177
|
// remarks: [{
|
|
107
178
|
// label: '注意事项',
|
|
108
|
-
// content: '
|
|
179
|
+
// content: localeKey('todoActionList.callNotStatedCustomFunc.remarks.0.content'),
|
|
109
180
|
// }],
|
|
110
181
|
isAsync: true
|
|
111
182
|
}]),
|
|
112
183
|
todoEvents: [{
|
|
113
184
|
value: 'onLoaded',
|
|
114
|
-
label: '
|
|
185
|
+
label: localeKey('todoEvents.onLoaded.label')
|
|
115
186
|
}, {
|
|
116
187
|
value: 'useEffect',
|
|
117
|
-
label: '
|
|
188
|
+
label: localeKey('todoEvents.useEffect.label')
|
|
118
189
|
}, {
|
|
119
190
|
value: 'willUnmount',
|
|
120
191
|
label: '组件卸载'
|
|
@@ -171,6 +242,5 @@ export default {
|
|
|
171
242
|
// groupsName: '基础',
|
|
172
243
|
// },
|
|
173
244
|
},
|
|
174
|
-
|
|
175
245
|
todoStyles: {}
|
|
176
246
|
};
|
|
@@ -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
|
};
|