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