@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.
Files changed (175) hide show
  1. package/es/IconSvg/index.js +8 -7
  2. package/es/error/errorCatch/index.js +1 -1
  3. package/es/error/errorDisplay/Mobile/Drawer/Drawer.js +99 -77
  4. package/es/error/errorDisplay/Mobile/Drawer/index.js +26 -26
  5. package/es/error/errorDisplay/Mobile/ErrorMsg/index.js +127 -129
  6. package/es/error/errorDisplay/Mobile/Modal/Modal.js +46 -31
  7. package/es/error/errorDisplay/Mobile/Modal/index.js +24 -24
  8. package/es/error/errorDisplay/Mobile/defaultGlobalConfig.js +2 -2
  9. package/es/error/errorDisplay/Web/Drawer/Drawer.js +183 -145
  10. package/es/error/errorDisplay/Web/Drawer/DrawerConnect.js +43 -46
  11. package/es/error/errorDisplay/Web/Drawer/index.js +15 -15
  12. package/es/error/errorDisplay/Web/ErrorMsg/index.js +341 -327
  13. package/es/error/errorDisplay/Web/Notification/Notice.js +78 -65
  14. package/es/error/errorDisplay/Web/Notification/Notification.js +15 -15
  15. package/es/error/errorDisplay/Web/Notification/index.js +36 -38
  16. package/es/error/errorDisplay/Web/defaultGlobalConfig.js +2 -2
  17. package/es/error/errorDisplay/compUtils.js +6 -6
  18. package/es/error/errorDisplay/http.js +7 -7
  19. package/es/error/index.js +6 -6
  20. package/es/index.js +5 -5
  21. package/es/rootConfig/index.d.ts +1 -1
  22. package/es/rootConfig/index.js +5 -5
  23. package/es/rootConfig/locales/enus/config-locales-es.d.ts +2 -0
  24. package/es/rootConfig/locales/enus/config-locales-es.js +13 -0
  25. package/es/rootConfig/locales/enus/config-locales-es.mobile.d.ts +2 -0
  26. package/es/rootConfig/locales/enus/config-locales-es.mobile.js +199 -0
  27. package/es/rootConfig/locales/enus/config-locales-es.pc.d.ts +2 -0
  28. package/es/rootConfig/locales/enus/config-locales-es.pc.js +49 -0
  29. package/es/rootConfig/locales/enus/config-locales-es.todo-actionList.d.ts +2 -0
  30. package/es/rootConfig/locales/enus/config-locales-es.todo-actionList.js +1293 -0
  31. package/es/rootConfig/locales/enus/config-locales-es.todo-callback.d.ts +2 -0
  32. package/es/rootConfig/locales/enus/config-locales-es.todo-callback.js +21 -0
  33. package/es/rootConfig/locales/enus/config-locales-es.todo-optionList.d.ts +2 -0
  34. package/es/rootConfig/locales/enus/config-locales-es.todo-optionList.js +339 -0
  35. package/es/rootConfig/locales/zhcn/config-locales-cn.d.ts +2 -0
  36. package/es/rootConfig/locales/zhcn/config-locales-cn.js +13 -0
  37. package/es/rootConfig/locales/zhcn/config-locales-cn.mobile.d.ts +2 -0
  38. package/es/rootConfig/locales/zhcn/config-locales-cn.mobile.js +199 -0
  39. package/es/rootConfig/locales/zhcn/config-locales-cn.pc.d.ts +2 -0
  40. package/es/rootConfig/locales/zhcn/config-locales-cn.pc.js +385 -0
  41. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.d.ts +2 -0
  42. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.js +1297 -0
  43. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-callback.d.ts +2 -0
  44. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-callback.js +21 -0
  45. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.d.ts +2 -0
  46. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.js +339 -0
  47. package/es/rootConfig/locales/zhhk/config-locales-hk.d.ts +2 -0
  48. package/es/rootConfig/locales/zhhk/config-locales-hk.js +13 -0
  49. package/es/rootConfig/locales/zhhk/config-locales-hk.mobile.d.ts +2 -0
  50. package/es/rootConfig/locales/zhhk/config-locales-hk.mobile.js +199 -0
  51. package/es/rootConfig/locales/zhhk/config-locales-hk.pc.d.ts +2 -0
  52. package/es/rootConfig/locales/zhhk/config-locales-hk.pc.js +385 -0
  53. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.d.ts +2 -0
  54. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.js +1297 -0
  55. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-callback.d.ts +2 -0
  56. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-callback.js +21 -0
  57. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.d.ts +2 -0
  58. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.js +339 -0
  59. package/es/rootConfig/mobile/BusiComp.d.ts +0 -1
  60. package/es/rootConfig/mobile/BusiComp.js +35 -32
  61. package/es/rootConfig/mobile/MobileModal.js +62 -57
  62. package/es/rootConfig/mobile/MobilePopover.d.ts +0 -2
  63. package/es/rootConfig/mobile/MobilePopover.js +37 -34
  64. package/es/rootConfig/mobile/index.js +4 -4
  65. package/es/rootConfig/mobile/page.d.ts +17 -2
  66. package/es/rootConfig/mobile/page.js +85 -78
  67. package/es/rootConfig/pc/BusiComp.js +110 -40
  68. package/es/rootConfig/pc/Drawer.d.ts +8 -9
  69. package/es/rootConfig/pc/Drawer.js +161 -91
  70. package/es/rootConfig/pc/Modal.d.ts +0 -1
  71. package/es/rootConfig/pc/Modal.js +140 -70
  72. package/es/rootConfig/pc/Popover.d.ts +0 -1
  73. package/es/rootConfig/pc/Popover.js +114 -44
  74. package/es/rootConfig/pc/index.js +5 -5
  75. package/es/rootConfig/pc/page.d.ts +0 -2
  76. package/es/rootConfig/pc/page.js +133 -64
  77. package/es/rootConfig/todoActionList.d.ts +1 -0
  78. package/es/rootConfig/todoActionList.js +2363 -1237
  79. package/es/rootConfig/todoCallback.d.ts +12 -1
  80. package/es/rootConfig/todoCallback.js +175 -103
  81. package/es/rootConfig/todoOptionList.d.ts +0 -66
  82. package/es/rootConfig/todoOptionList.js +400 -401
  83. package/es/theme/index.js +18 -20
  84. package/es/theme/src/default/index.js +7 -7
  85. package/es/theme/utils/renderColors.js +1 -1
  86. package/es/utils/url.js +8 -7
  87. package/lib/IconSvg/index.js +10 -9
  88. package/lib/error/errorCatch/index.js +2 -3
  89. package/lib/error/errorDisplay/Mobile/Drawer/Drawer.js +99 -79
  90. package/lib/error/errorDisplay/Mobile/Drawer/index.js +25 -26
  91. package/lib/error/errorDisplay/Mobile/ErrorMsg/index.js +123 -126
  92. package/lib/error/errorDisplay/Mobile/Modal/Modal.js +45 -33
  93. package/lib/error/errorDisplay/Mobile/Modal/index.js +23 -24
  94. package/lib/error/errorDisplay/Mobile/defaultGlobalConfig.js +3 -5
  95. package/lib/error/errorDisplay/SVGstring.js +6 -12
  96. package/lib/error/errorDisplay/Web/Drawer/Drawer.js +181 -146
  97. package/lib/error/errorDisplay/Web/Drawer/DrawerConnect.js +44 -48
  98. package/lib/error/errorDisplay/Web/Drawer/index.js +18 -20
  99. package/lib/error/errorDisplay/Web/ErrorMsg/index.js +336 -324
  100. package/lib/error/errorDisplay/Web/Notification/Notice.js +79 -68
  101. package/lib/error/errorDisplay/Web/Notification/Notification.js +15 -16
  102. package/lib/error/errorDisplay/Web/Notification/index.js +37 -41
  103. package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +3 -5
  104. package/lib/error/errorDisplay/compUtils.js +9 -12
  105. package/lib/error/errorDisplay/const.js +7 -13
  106. package/lib/error/errorDisplay/http.js +8 -9
  107. package/lib/index.js +3 -6
  108. package/lib/rootConfig/index.d.ts +1 -1
  109. package/lib/rootConfig/index.js +9 -3
  110. package/lib/rootConfig/locales/enus/config-locales-es.d.ts +2 -0
  111. package/lib/rootConfig/locales/enus/config-locales-es.js +19 -0
  112. package/lib/rootConfig/locales/enus/config-locales-es.mobile.d.ts +2 -0
  113. package/lib/rootConfig/locales/enus/config-locales-es.mobile.js +205 -0
  114. package/lib/rootConfig/locales/enus/config-locales-es.pc.d.ts +2 -0
  115. package/lib/rootConfig/locales/enus/config-locales-es.pc.js +55 -0
  116. package/lib/rootConfig/locales/enus/config-locales-es.todo-actionList.d.ts +2 -0
  117. package/lib/rootConfig/locales/enus/config-locales-es.todo-actionList.js +1299 -0
  118. package/lib/rootConfig/locales/enus/config-locales-es.todo-callback.d.ts +2 -0
  119. package/lib/rootConfig/locales/enus/config-locales-es.todo-callback.js +27 -0
  120. package/lib/rootConfig/locales/enus/config-locales-es.todo-optionList.d.ts +2 -0
  121. package/lib/rootConfig/locales/enus/config-locales-es.todo-optionList.js +345 -0
  122. package/lib/rootConfig/locales/zhcn/config-locales-cn.d.ts +2 -0
  123. package/lib/rootConfig/locales/zhcn/config-locales-cn.js +19 -0
  124. package/lib/rootConfig/locales/zhcn/config-locales-cn.mobile.d.ts +2 -0
  125. package/lib/rootConfig/locales/zhcn/config-locales-cn.mobile.js +205 -0
  126. package/lib/rootConfig/locales/zhcn/config-locales-cn.pc.d.ts +2 -0
  127. package/lib/rootConfig/locales/zhcn/config-locales-cn.pc.js +391 -0
  128. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.d.ts +2 -0
  129. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.js +1303 -0
  130. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-callback.d.ts +2 -0
  131. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-callback.js +27 -0
  132. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.d.ts +2 -0
  133. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.js +345 -0
  134. package/lib/rootConfig/locales/zhhk/config-locales-hk.d.ts +2 -0
  135. package/lib/rootConfig/locales/zhhk/config-locales-hk.js +19 -0
  136. package/lib/rootConfig/locales/zhhk/config-locales-hk.mobile.d.ts +2 -0
  137. package/lib/rootConfig/locales/zhhk/config-locales-hk.mobile.js +205 -0
  138. package/lib/rootConfig/locales/zhhk/config-locales-hk.pc.d.ts +2 -0
  139. package/lib/rootConfig/locales/zhhk/config-locales-hk.pc.js +391 -0
  140. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.d.ts +2 -0
  141. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.js +1303 -0
  142. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-callback.d.ts +2 -0
  143. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-callback.js +27 -0
  144. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.d.ts +2 -0
  145. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.js +345 -0
  146. package/lib/rootConfig/mobile/BusiComp.d.ts +0 -1
  147. package/lib/rootConfig/mobile/BusiComp.js +36 -34
  148. package/lib/rootConfig/mobile/MobileModal.js +63 -59
  149. package/lib/rootConfig/mobile/MobilePopover.d.ts +0 -2
  150. package/lib/rootConfig/mobile/MobilePopover.js +38 -36
  151. package/lib/rootConfig/mobile/page.d.ts +17 -2
  152. package/lib/rootConfig/mobile/page.js +86 -80
  153. package/lib/rootConfig/pc/BusiComp.js +111 -42
  154. package/lib/rootConfig/pc/Drawer.d.ts +8 -9
  155. package/lib/rootConfig/pc/Drawer.js +162 -93
  156. package/lib/rootConfig/pc/Modal.d.ts +0 -1
  157. package/lib/rootConfig/pc/Modal.js +141 -72
  158. package/lib/rootConfig/pc/Popover.d.ts +0 -1
  159. package/lib/rootConfig/pc/Popover.js +115 -46
  160. package/lib/rootConfig/pc/page.d.ts +0 -2
  161. package/lib/rootConfig/pc/page.js +134 -66
  162. package/lib/rootConfig/todoActionList.d.ts +1 -0
  163. package/lib/rootConfig/todoActionList.js +2364 -1244
  164. package/lib/rootConfig/todoCallback.d.ts +12 -1
  165. package/lib/rootConfig/todoCallback.js +182 -116
  166. package/lib/rootConfig/todoOptionList.d.ts +0 -66
  167. package/lib/rootConfig/todoOptionList.js +401 -403
  168. package/lib/theme/bin/default/modalWidth.js +1 -2
  169. package/lib/theme/index.js +19 -22
  170. package/lib/theme/src/default/index.js +7 -7
  171. package/lib/theme/utils/renderColors.js +1 -1
  172. package/lib/utils/cookieUtil.js +1 -2
  173. package/lib/utils/img.js +2 -3
  174. package/lib/utils/url.js +13 -16
  175. package/package.json +3 -4
@@ -10,13 +10,18 @@ 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++) { arr2[i] = arr[i]; } return arr2; }
14
- var _default = {
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 PC_POPOVER_LOCALE_PREFIX = 'pc.popover';
15
+ var localeKey = function localeKey(suffix) {
16
+ return "".concat(PC_POPOVER_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
  catalogItemId: -1,
22
27
  width: 624,
@@ -24,9 +29,8 @@ var _default = {
24
29
  customHeight: 500,
25
30
  closeOnClickOverlay: true,
26
31
  footer: 1,
27
- layout: 'BlankLayout',
28
32
  compState: [{
29
- name: '业务主键',
33
+ name: localeKey('props.compState.0.name'),
30
34
  code: 'bizId'
31
35
  }]
32
36
  },
@@ -37,105 +41,171 @@ var _default = {
37
41
  description: '',
38
42
  image: '',
39
43
  groupsName: 'root',
40
- todoActionList: [].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('pc')), [{
44
+ todoActionList: [{
45
+ key: 'showMessage',
46
+ label: localeKey('todoActionList.showMessage.label'),
47
+ todoOptions: [{
48
+ key: 'type',
49
+ label: localeKey('todoActionList.showMessage.todoOptions.type.label'),
50
+ type: 'Select',
51
+ defaultValue: 'success',
52
+ props: {
53
+ options: [{
54
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.0.title'),
55
+ value: 'success'
56
+ }, {
57
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.1.title'),
58
+ value: 'info'
59
+ }, {
60
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.2.title'),
61
+ value: 'warn'
62
+ }, {
63
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.3.title'),
64
+ value: 'error'
65
+ }, {
66
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.4.title'),
67
+ value: 'loading'
68
+ }]
69
+ }
70
+ }, {
71
+ key: 'icon',
72
+ label: localeKey('todoActionList.showMessage.todoOptions.icon.label'),
73
+ type: 'ChooseIcon',
74
+ props: {
75
+ placeholder: localeKey('todoActionList.showMessage.todoOptions.icon.props.placeholder')
76
+ }
77
+ }, {
78
+ key: 'value',
79
+ label: localeKey('todoActionList.showMessage.todoOptions.value.label'),
80
+ type: 'SetExpression'
81
+ }, {
82
+ key: 'duration',
83
+ label: localeKey('todoActionList.showMessage.todoOptions.duration.label'),
84
+ type: 'InputNumber',
85
+ props: {
86
+ addonAfter: localeKey('todoActionList.showMessage.todoOptions.duration.props.addonAfter'),
87
+ step: '0.01',
88
+ formatter: function formatter(val) {
89
+ return val ? val.match(/^\d+(?:\.\d{0,2})?/) : undefined;
90
+ }
91
+ }
92
+ }, {
93
+ key: 'okText',
94
+ label: localeKey('todoActionList.showMessage.todoOptions.okText.label'),
95
+ type: 'Input'
96
+ }, {
97
+ key: 'cancelText',
98
+ label: localeKey('todoActionList.showMessage.todoOptions.cancelText.label'),
99
+ type: 'Input'
100
+ }],
101
+ todoCallbacks: ['callback1', 'callback2'],
102
+ classification: [{
103
+ label: localeKey('todoActionList.showMessage.classification.modal.label'),
104
+ value: 'modal'
105
+ }],
106
+ remarks: [{
107
+ label: localeKey('todoActionList.showMessage.remarks.0.label'),
108
+ content: localeKey('todoActionList.showMessage.remarks.0.content')
109
+ }]
110
+ }].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('pc')), [{
41
111
  key: 'previewFile',
42
- label: '文件预览',
112
+ label: localeKey('todoActionList.previewFile.label'),
43
113
  todoOptions: [{
44
114
  key: 'fileId',
45
- label: '文件ID/URL',
115
+ label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
46
116
  type: 'SetExpression',
47
- labelTip: '文件预览格式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、js、doc、xlsx、docx、wps、ppt等 注意:如果是外部URL,有可能存在跨域现象!'
117
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
48
118
  }, {
49
119
  key: 'viewMode',
50
- label: '预览方式',
120
+ label: localeKey('todoActionList.previewFile.todoOptions.viewMode.label'),
51
121
  type: 'RadioButton',
52
122
  defaultValue: 'popUp',
53
123
  props: {
54
124
  options: [{
55
- title: '页面弹窗',
125
+ title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.0.title'),
56
126
  value: 'popUp'
57
127
  }, {
58
- title: '新标签页',
128
+ title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.1.title'),
59
129
  value: 'newTab'
60
130
  }, {
61
- title: '新窗口',
131
+ title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.2.title'),
62
132
  value: 'window'
63
133
  }]
64
134
  }
65
135
  }, {
66
136
  key: 'modalWidth',
67
- label: '窗口宽度',
137
+ label: localeKey('todoActionList.previewFile.todoOptions.modalWidth.label'),
68
138
  type: 'SetExpression',
69
139
  defaultValue: '960',
70
140
  visibleFlag: 'viewMode',
71
- labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
141
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.modalWidth.labelTip'),
72
142
  visibleFlagValue: ['window']
73
143
  }, {
74
144
  key: 'modalHeight',
75
- label: '窗口高度',
145
+ label: localeKey('todoActionList.previewFile.todoOptions.modalHeight.label'),
76
146
  type: 'SetExpression',
77
147
  defaultValue: '648',
78
148
  visibleFlag: 'viewMode',
79
- labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
149
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.modalHeight.labelTip'),
80
150
  visibleFlagValue: ['window']
81
151
  }],
82
152
  classification: [{
83
- label: '页面类',
153
+ label: localeKey('todoActionList.previewFile.classification.page.label'),
84
154
  value: 'page'
85
155
  }]
86
156
  }]),
87
157
  todoEvents: [{
88
158
  value: 'useEffect',
89
- label: '浮窗加载完成'
159
+ label: localeKey('todoEvents.useEffect.label')
90
160
  }, {
91
161
  value: 'stateChange',
92
- label: '组件状态变化后'
162
+ label: localeKey('todoEvents.stateChange.label')
93
163
  }, {
94
164
  value: 'willUnmount',
95
- label: '浮窗关闭'
165
+ label: localeKey('todoEvents.willUnmount.label')
96
166
  }, {
97
167
  value: 'usePageEndRequest',
98
- label: '页面加载请求结束',
168
+ label: localeKey('todoEvents.usePageEndRequest.label'),
99
169
  remarks: [{
100
- label: '场景描述',
101
- content: '在页面加载完成事件中,所有的事件执行结束后进行回掉(包含页面加载完成事件中的异步请求(注意:定时器相关动作不计算回掉时间))'
170
+ label: localeKey('todoEvents.usePageEndRequest.remarks.0.label'),
171
+ content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
102
172
  }, {
103
- label: '适用场景',
104
- content: '在复杂的表单页面中,你可以在页面加载完成事件中进行页面loading的动作设置,在页面加载完成请求结束事件中取消loading,保障在复杂请求中,因异步导致数据未能及时回填,用户提交错误数据问题。'
173
+ label: localeKey('todoEvents.usePageEndRequest.remarks.1.label'),
174
+ content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
105
175
  }]
106
176
  }],
107
177
  todoProps: {
108
178
  showTitle: {
109
- label: '显示标题',
179
+ label: localeKey('todoProps.showTitle.label'),
110
180
  type: 'Checkbox',
111
- groupsName: '基础'
181
+ groupsName: localeKey('todoProps.showTitle.groupsName')
112
182
  },
113
183
  pageName: {
114
- label: '名称',
184
+ label: localeKey('todoProps.pageName.label'),
115
185
  type: 'Input',
116
- groupsName: '基础',
186
+ groupsName: localeKey('todoProps.pageName.groupsName'),
117
187
  props: {
118
188
  required: true
119
189
  }
120
190
  },
121
191
  pagePath: {
122
- label: '路径',
192
+ label: localeKey('todoProps.pagePath.label'),
123
193
  type: 'UrlInput',
124
- groupsName: '基础',
194
+ groupsName: localeKey('todoProps.pagePath.groupsName'),
125
195
  props: {
126
196
  required: true,
127
- placeholder: '如:/user/list',
197
+ placeholder: localeKey('todoProps.pagePath.props.placeholder'),
128
198
  regex: {
129
199
  // eslint-disable-next-line
130
200
  pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
131
- message: '必须为/xx/yy/..格式'
201
+ message: localeKey('todoProps.pagePath.props.regex.message')
132
202
  }
133
203
  }
134
204
  },
135
205
  catalogItemId: {
136
- label: '分组',
206
+ label: localeKey('todoProps.catalogItemId.label'),
137
207
  type: 'CatalogTreeSelect',
138
- groupsName: '基础',
208
+ groupsName: localeKey('todoProps.catalogItemId.groupsName'),
139
209
  props: {
140
210
  required: true,
141
211
  options: [],
@@ -145,30 +215,29 @@ var _default = {
145
215
  }
146
216
  },
147
217
  scenarioList: {
148
- label: '适用场景',
218
+ label: localeKey('todoProps.scenarioList.label'),
149
219
  type: 'SelectScenarioPopover',
150
- groupsName: '基础',
220
+ groupsName: localeKey('todoProps.scenarioList.groupsName'),
151
221
  props: {
152
222
  options: []
153
223
  }
154
224
  },
155
225
  ignoreLogin: {
156
- label: '免登录',
226
+ label: localeKey('todoProps.ignoreLogin.label'),
157
227
  type: 'Switch',
158
- groupsName: '基础',
228
+ groupsName: localeKey('todoProps.ignoreLogin.groupsName'),
159
229
  props: {}
160
230
  },
161
231
  labels: {
162
- label: '标签',
232
+ label: localeKey('todoProps.labels.label'),
163
233
  type: 'ChooseTag',
164
- groupsName: '基础'
234
+ groupsName: localeKey('todoProps.labels.groupsName')
165
235
  },
166
236
  compState: {
167
- label: '组件状态',
237
+ label: localeKey('todoProps.compState.label'),
168
238
  type: 'ParamsDefine',
169
- groupsName: '组件状态'
239
+ groupsName: localeKey('todoProps.compState.groupsName')
170
240
  }
171
241
  },
172
242
  todoStyles: {}
173
- };
174
- exports.default = _default;
243
+ };
@@ -5,11 +5,9 @@ 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
- layout: string;
13
11
  searchParams: {
14
12
  name: string;
15
13
  code: string;
@@ -10,37 +10,40 @@ 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++) { arr2[i] = arr[i]; } return arr2; }
14
- var _default = {
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 PC_PAGE_LOCALE_PREFIX = 'pc.page';
15
+ var localeKey = function localeKey(suffix) {
16
+ return "".concat(PC_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
- layout: 'BaseLayout',
26
29
  searchParams: [{
27
- name: '业务主键',
30
+ name: localeKey('props.searchParams.0.name'),
28
31
  code: 'bizId'
29
32
  }, {
30
- name: '业务场景',
33
+ name: localeKey('props.searchParams.1.name'),
31
34
  code: 'sceneCode'
32
35
  }, {
33
- name: '业务数据',
36
+ name: localeKey('props.searchParams.2.name'),
34
37
  code: 'bizData'
35
38
  }],
36
39
  compState: [{
37
- name: '业务主键',
40
+ name: localeKey('props.compState.0.name'),
38
41
  code: 'bizId'
39
42
  }, {
40
- name: '业务场景',
43
+ name: localeKey('props.compState.1.name'),
41
44
  code: 'sceneCode'
42
45
  }, {
43
- name: '业务数据',
46
+ name: localeKey('props.compState.2.name'),
44
47
  code: 'bizData'
45
48
  }]
46
49
  },
@@ -51,111 +54,177 @@ var _default = {
51
54
  description: '',
52
55
  image: '',
53
56
  groupsName: 'root',
54
- todoActionList: [].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('pc')), [{
57
+ todoActionList: [{
58
+ key: 'showMessage',
59
+ label: localeKey('todoActionList.showMessage.label'),
60
+ todoOptions: [{
61
+ key: 'type',
62
+ label: localeKey('todoActionList.showMessage.todoOptions.type.label'),
63
+ type: 'Select',
64
+ defaultValue: 'success',
65
+ props: {
66
+ options: [{
67
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.0.title'),
68
+ value: 'success'
69
+ }, {
70
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.1.title'),
71
+ value: 'info'
72
+ }, {
73
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.2.title'),
74
+ value: 'warn'
75
+ }, {
76
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.3.title'),
77
+ value: 'error'
78
+ }, {
79
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.4.title'),
80
+ value: 'loading'
81
+ }]
82
+ }
83
+ }, {
84
+ key: 'icon',
85
+ label: localeKey('todoActionList.showMessage.todoOptions.icon.label'),
86
+ type: 'ChooseIcon',
87
+ props: {
88
+ placeholder: localeKey('todoActionList.showMessage.todoOptions.icon.props.placeholder')
89
+ }
90
+ }, {
91
+ key: 'value',
92
+ label: localeKey('todoActionList.showMessage.todoOptions.value.label'),
93
+ type: 'SetExpression'
94
+ }, {
95
+ key: 'duration',
96
+ label: localeKey('todoActionList.showMessage.todoOptions.duration.label'),
97
+ type: 'InputNumber',
98
+ props: {
99
+ addonAfter: localeKey('todoActionList.showMessage.todoOptions.duration.props.addonAfter'),
100
+ step: '0.01',
101
+ formatter: function formatter(val) {
102
+ return val ? val.match(/^\d+(?:\.\d{0,2})?/) : undefined;
103
+ }
104
+ }
105
+ }, {
106
+ key: 'okText',
107
+ label: localeKey('todoActionList.showMessage.todoOptions.okText.label'),
108
+ type: 'Input'
109
+ }, {
110
+ key: 'cancelText',
111
+ label: localeKey('todoActionList.showMessage.todoOptions.cancelText.label'),
112
+ type: 'Input'
113
+ }],
114
+ todoCallbacks: ['callback1', 'callback2'],
115
+ classification: [{
116
+ label: localeKey('todoActionList.showMessage.classification.modal.label'),
117
+ value: 'modal'
118
+ }],
119
+ remarks: [{
120
+ label: localeKey('todoActionList.showMessage.remarks.0.label'),
121
+ content: localeKey('todoActionList.showMessage.remarks.0.content')
122
+ }]
123
+ }].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('pc')), [{
55
124
  key: 'previewFile',
56
- label: '文件预览',
125
+ label: localeKey('todoActionList.previewFile.label'),
57
126
  todoOptions: [{
58
127
  key: 'fileId',
59
- label: '文件ID/URL',
128
+ label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
60
129
  type: 'SetExpression',
61
- labelTip: '文件预览格式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、js、doc、xlsx、docx、wps、ppt等 注意:如果是外部URL,有可能存在跨域现象!'
130
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
62
131
  }, {
63
132
  key: 'viewMode',
64
- label: '预览方式',
133
+ label: localeKey('todoActionList.previewFile.todoOptions.viewMode.label'),
65
134
  type: 'RadioButton',
66
135
  defaultValue: 'popUp',
67
136
  props: {
68
137
  options: [{
69
- title: '页面弹窗',
138
+ title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.0.title'),
70
139
  value: 'popUp'
71
140
  }, {
72
- title: '新标签页',
141
+ title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.1.title'),
73
142
  value: 'newTab'
74
143
  }, {
75
- title: '新窗口',
144
+ title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.2.title'),
76
145
  value: 'window'
77
146
  }]
78
147
  }
79
148
  }, {
80
149
  key: 'modalWidth',
81
- label: '窗口宽度',
150
+ label: localeKey('todoActionList.previewFile.todoOptions.modalWidth.label'),
82
151
  type: 'SetExpression',
83
152
  defaultValue: '960',
84
153
  visibleFlag: 'viewMode',
85
- labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
154
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.modalWidth.labelTip'),
86
155
  visibleFlagValue: ['window']
87
156
  }, {
88
157
  key: 'modalHeight',
89
- label: '窗口高度',
158
+ label: localeKey('todoActionList.previewFile.todoOptions.modalHeight.label'),
90
159
  type: 'SetExpression',
91
160
  defaultValue: '648',
92
161
  visibleFlag: 'viewMode',
93
- labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
162
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.modalHeight.labelTip'),
94
163
  visibleFlagValue: ['window']
95
164
  }],
96
165
  classification: [{
97
- label: '页面类',
166
+ label: localeKey('todoActionList.previewFile.classification.page.label'),
98
167
  value: 'page'
99
168
  }]
100
169
  }]),
101
170
  todoEvents: [{
102
171
  value: 'useEffect',
103
- label: '页面加载完成'
172
+ label: localeKey('todoEvents.useEffect.label')
104
173
  }, {
105
174
  value: 'stateChange',
106
- label: '组件状态变化后'
175
+ label: localeKey('todoEvents.stateChange.label')
107
176
  }, {
108
177
  value: 'willUnmount',
109
- label: '页面退出'
178
+ label: localeKey('todoEvents.willUnmount.label')
110
179
  }, {
111
180
  value: 'onPageCacheRefresh',
112
- label: '页面缓存刷新',
181
+ label: localeKey('todoEvents.onPageCacheRefresh.label'),
113
182
  dependProps: {
114
183
  pageDynamicFlag: true
115
184
  },
116
185
  params: [{
117
- title: '返回页面数据信息',
186
+ title: localeKey('todoEvents.onPageCacheRefresh.params.0.title'),
118
187
  name: 'pageBackData',
119
188
  value: '$pageBackData$'
120
189
  }]
121
190
  }, {
122
191
  value: 'usePageEndRequest',
123
- label: '页面加载请求结束',
192
+ label: localeKey('todoEvents.usePageEndRequest.label'),
124
193
  remarks: [{
125
- label: '场景描述',
126
- content: '在页面加载完成事件中,所有的事件执行结束后进行回掉(包含页面加载完成事件中的异步请求(注意:定时器相关动作不计算回掉时间))'
194
+ label: localeKey('todoEvents.usePageEndRequest.remarks.0.label'),
195
+ content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
127
196
  }, {
128
- label: '适用场景',
129
- content: '在复杂的表单页面中,你可以在页面加载完成事件中进行页面loading的动作设置,在页面加载完成请求结束事件中取消loading,保障在复杂请求中,因异步导致数据未能及时回填,用户提交错误数据问题。'
197
+ label: localeKey('todoEvents.usePageEndRequest.remarks.1.label'),
198
+ content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
130
199
  }]
131
200
  }],
132
201
  todoProps: {
133
202
  pageName: {
134
- label: '名称',
203
+ label: localeKey('todoProps.pageName.label'),
135
204
  type: 'Input',
136
- groupsName: '基础',
205
+ groupsName: localeKey('todoProps.pageName.groupsName'),
137
206
  props: {
138
207
  required: true
139
208
  }
140
209
  },
141
210
  pagePath: {
142
- label: '路径',
211
+ label: localeKey('todoProps.pagePath.label'),
143
212
  type: 'UrlInput',
144
- groupsName: '基础',
213
+ groupsName: localeKey('todoProps.pagePath.groupsName'),
145
214
  props: {
146
215
  required: true,
147
- placeholder: '如:/user/list',
216
+ placeholder: localeKey('todoProps.pagePath.props.placeholder'),
148
217
  regex: {
149
218
  // eslint-disable-next-line
150
219
  pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
151
- message: '必须为/xx/yy/..格式'
220
+ message: localeKey('todoProps.pagePath.props.regex.message')
152
221
  }
153
222
  }
154
223
  },
155
224
  catalogItemId: {
156
- label: '分组',
225
+ label: localeKey('todoProps.catalogItemId.label'),
157
226
  type: 'CatalogTreeSelect',
158
- groupsName: '基础',
227
+ groupsName: localeKey('todoProps.catalogItemId.groupsName'),
159
228
  props: {
160
229
  required: true,
161
230
  options: [],
@@ -165,62 +234,62 @@ var _default = {
165
234
  }
166
235
  },
167
236
  scenarioList: {
168
- label: '适用场景',
237
+ label: localeKey('todoProps.scenarioList.label'),
169
238
  type: 'SelectScenarioPopover',
170
- groupsName: '基础',
239
+ groupsName: localeKey('todoProps.scenarioList.groupsName'),
171
240
  props: {
172
241
  options: []
173
242
  }
174
243
  },
175
244
  remark: {
176
- label: '描述',
245
+ label: localeKey('todoProps.remark.label'),
177
246
  type: 'Input',
178
- groupsName: '基础',
247
+ groupsName: localeKey('todoProps.remark.groupsName'),
179
248
  props: {}
180
249
  },
181
250
  chooseFuncComp: {
182
- label: '功能组件',
251
+ label: localeKey('todoProps.chooseFuncComp.label'),
183
252
  type: 'FuncCompSelect',
184
- groupsName: '基础',
253
+ groupsName: localeKey('todoProps.chooseFuncComp.groupsName'),
185
254
  props: {}
186
255
  },
187
256
  ignoreLogin: {
188
- label: '免登录',
257
+ label: localeKey('todoProps.ignoreLogin.label'),
189
258
  type: 'Switch',
190
- groupsName: '基础',
259
+ groupsName: localeKey('todoProps.ignoreLogin.groupsName'),
191
260
  props: {}
192
261
  },
193
262
  pageDynamicFlag: {
194
- label: '页面缓存',
263
+ label: localeKey('todoProps.pageDynamicFlag.label'),
195
264
  type: 'Switch',
196
- groupsName: '基础',
265
+ groupsName: localeKey('todoProps.pageDynamicFlag.groupsName'),
197
266
  props: {
198
267
  required: false,
199
- description: '开启后页面将保活(重新打开页面将不会重新挂载,页面的数据将不会被销毁),可配合事件页面缓存清除自定义进行页面销毁'
268
+ description: localeKey('todoProps.pageDynamicFlag.props.description')
200
269
  }
201
270
  },
202
271
  isMenu: {
203
- label: '设置为菜单',
272
+ label: localeKey('todoProps.isMenu.label'),
204
273
  type: 'MenuSwitch',
205
- groupsName: '基础',
274
+ groupsName: localeKey('todoProps.isMenu.groupsName'),
206
275
  props: {
207
- description: '开启后预览页面将展示该菜单,在同步时也会将该页面当作菜单同步到基础门户'
276
+ description: localeKey('todoProps.isMenu.props.description')
208
277
  }
209
278
  },
210
279
  labels: {
211
- label: '标签',
280
+ label: localeKey('todoProps.labels.label'),
212
281
  type: 'ChooseTag',
213
- groupsName: '基础'
282
+ groupsName: localeKey('todoProps.labels.groupsName')
214
283
  },
215
284
  compState: {
216
- label: '组件状态',
285
+ label: localeKey('todoProps.compState.label'),
217
286
  type: 'ParamsDefine',
218
- groupsName: '组件状态'
287
+ groupsName: localeKey('todoProps.compState.groupsName')
219
288
  },
220
289
  searchParams: {
221
- label: 'url参数',
290
+ label: localeKey('todoProps.searchParams.label'),
222
291
  type: 'ParamsDefine',
223
- groupsName: 'URL参数'
292
+ groupsName: localeKey('todoProps.searchParams.groupsName')
224
293
  },
225
294
  // pageParams: {
226
295
  // label: '页面入参',
@@ -233,11 +302,10 @@ var _default = {
233
302
  // groupsName: '页面出参',
234
303
  // },
235
304
  routerData: {
236
- label: '路由数据',
305
+ label: localeKey('todoProps.routerData.label'),
237
306
  type: 'ParamsDefine',
238
- groupsName: '路由数据'
307
+ groupsName: localeKey('todoProps.routerData.groupsName')
239
308
  }
240
309
  },
241
310
  todoStyles: {}
242
- };
243
- exports.default = _default;
311
+ };
@@ -1,4 +1,5 @@
1
1
  declare const todoActionObject: any;
2
+ export declare const wxAbilityTodoActionKeys: string[];
2
3
  /**
3
4
  * 通过数组key获取对应的动作
4
5
  * @param keys