@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_MODAL_LOCALE_PREFIX = 'pc.modal';
9
+ var localeKey = function localeKey(suffix) {
10
+ return "".concat(PC_MODAL_LOCALE_PREFIX, ".").concat(suffix);
11
+ };
8
12
  export default {
9
13
  compLib: 'root',
10
14
  compType: -1,
15
+ // 根节点
11
16
  isBusiObjContainer: false,
12
17
  isContainer: false,
13
- label: '弹窗',
18
+ label: localeKey('label'),
14
19
  props: {
15
20
  catalogItemId: -1,
16
21
  width: 624,
@@ -18,15 +23,14 @@ export default {
18
23
  customHeight: 500,
19
24
  closeOnClickOverlay: false,
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
- name: '业务场景',
30
+ name: localeKey('props.compState.1.name'),
27
31
  code: 'sceneCode'
28
32
  }, {
29
- name: '业务数据',
33
+ name: localeKey('props.compState.2.name'),
30
34
  code: 'bizData'
31
35
  }]
32
36
  },
@@ -37,106 +41,172 @@ export default {
37
41
  description: '',
38
42
  image: '',
39
43
  groupsName: 'root',
40
- todoActionList: [].concat(_toConsumableArray(getSystemTodoActionList('pc', 'Modal')), [{
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(getSystemTodoActionList('pc', 'Modal')), [{
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: 'willUnmount',
92
- label: '弹窗关闭前'
162
+ label: localeKey('todoEvents.willUnmount.label')
93
163
  }, {
94
164
  value: 'onOk',
95
- label: '点击确认'
165
+ label: localeKey('todoEvents.onOk.label')
96
166
  }, {
97
167
  value: 'onCancel',
98
- label: '点击取消'
168
+ label: localeKey('todoEvents.onCancel.label')
99
169
  }, {
100
170
  value: 'stateChange',
101
- label: '组件状态变化后'
171
+ label: localeKey('todoEvents.stateChange.label')
102
172
  }, {
103
173
  value: 'usePageEndRequest',
104
- label: '页面加载请求结束',
174
+ label: localeKey('todoEvents.usePageEndRequest.label'),
105
175
  remarks: [{
106
- label: '场景描述',
107
- content: '在页面加载完成事件中,所有的事件执行结束后进行回掉(包含页面加载完成事件中的异步请求(注意:定时器相关动作不计算回掉时间))'
176
+ label: localeKey('todoEvents.usePageEndRequest.remarks.0.label'),
177
+ content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
108
178
  }, {
109
- label: '适用场景',
110
- content: '在复杂的表单页面中,你可以在页面加载完成事件中进行页面loading的动作设置,在页面加载完成请求结束事件中取消loading,保障在复杂请求中,因异步导致数据未能及时回填,用户提交错误数据问题。'
179
+ label: localeKey('todoEvents.usePageEndRequest.remarks.1.label'),
180
+ content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
111
181
  }]
112
182
  }],
113
183
  todoProps: {
114
184
  pageName: {
115
- label: '名称',
185
+ label: localeKey('todoProps.pageName.label'),
116
186
  type: 'Input',
117
- groupsName: '基础',
187
+ groupsName: localeKey('todoProps.pageName.groupsName'),
118
188
  props: {
119
189
  required: true
120
190
  }
121
191
  },
122
192
  pagePath: {
123
- label: '路径',
193
+ label: localeKey('todoProps.pagePath.label'),
124
194
  type: 'UrlInput',
125
- groupsName: '基础',
195
+ groupsName: localeKey('todoProps.pagePath.groupsName'),
126
196
  props: {
127
197
  required: true,
128
- placeholder: '如:/user/list',
198
+ placeholder: localeKey('todoProps.pagePath.props.placeholder'),
129
199
  regex: {
130
200
  // eslint-disable-next-line
131
201
  pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
132
- message: '必须为/xx/yy/..格式'
202
+ message: localeKey('todoProps.pagePath.props.regex.message')
133
203
  }
134
204
  }
135
205
  },
136
206
  catalogItemId: {
137
- label: '分组',
207
+ label: localeKey('todoProps.catalogItemId.label'),
138
208
  type: 'CatalogTreeSelect',
139
- groupsName: '基础',
209
+ groupsName: localeKey('todoProps.catalogItemId.groupsName'),
140
210
  props: {
141
211
  required: true,
142
212
  options: [],
@@ -146,40 +216,40 @@ export default {
146
216
  }
147
217
  },
148
218
  modalTitle: {
149
- label: '弹窗标题',
219
+ label: localeKey('todoProps.modalTitle.label'),
150
220
  type: 'Input',
151
- groupsName: '基础',
221
+ groupsName: localeKey('todoProps.modalTitle.groupsName'),
152
222
  istodoBind: true,
153
223
  props: {},
154
224
  enableI18n: true
155
225
  },
156
226
  width: {
157
- label: '弹窗大小',
227
+ label: localeKey('todoProps.width.label'),
158
228
  type: 'Select',
159
- groupsName: '基础',
229
+ groupsName: localeKey('todoProps.width.groupsName'),
160
230
  props: {
161
231
  options: [{
162
232
  value: 560,
163
- title: 's(560*auto)'
233
+ title: localeKey('todoProps.width.props.options.0.title')
164
234
  }, {
165
235
  value: 624,
166
- title: 'm(624*auto)'
236
+ title: localeKey('todoProps.width.props.options.1.title')
167
237
  }, {
168
238
  value: 1008,
169
- title: 'l(1008*auto)'
239
+ title: localeKey('todoProps.width.props.options.2.title')
170
240
  }, {
171
241
  value: 1200,
172
- title: 'xl(1200*auto)'
242
+ title: localeKey('todoProps.width.props.options.3.title')
173
243
  }, {
174
244
  value: 'custom',
175
- title: '自定义'
245
+ title: localeKey('todoProps.width.props.options.4.title')
176
246
  }]
177
247
  }
178
248
  },
179
249
  customWidth: {
180
- label: '宽度',
250
+ label: localeKey('todoProps.customWidth.label'),
181
251
  type: 'InputNumber',
182
- groupsName: '基础',
252
+ groupsName: localeKey('todoProps.customWidth.groupsName'),
183
253
  props: {
184
254
  min: 1,
185
255
  max: 3000,
@@ -188,9 +258,9 @@ export default {
188
258
  }
189
259
  },
190
260
  customHeight: {
191
- label: '高度',
261
+ label: localeKey('todoProps.customHeight.label'),
192
262
  type: 'InputNumber',
193
- groupsName: '基础',
263
+ groupsName: localeKey('todoProps.customHeight.groupsName'),
194
264
  props: {
195
265
  min: 1,
196
266
  max: 3000,
@@ -199,69 +269,69 @@ export default {
199
269
  }
200
270
  },
201
271
  footer: {
202
- label: '底部内容',
272
+ label: localeKey('todoProps.footer.label'),
203
273
  type: 'Select',
204
- groupsName: '基础',
274
+ groupsName: localeKey('todoProps.footer.groupsName'),
205
275
  props: {
206
276
  options: [{
207
- title: '显示',
277
+ title: localeKey('todoProps.footer.props.options.0.title'),
208
278
  value: 1
209
279
  }, {
210
- title: '隐藏',
280
+ title: localeKey('todoProps.footer.props.options.1.title'),
211
281
  value: 0
212
282
  }]
213
283
  }
214
284
  },
215
285
  okText: {
216
- label: '主按钮文本',
286
+ label: localeKey('todoProps.okText.label'),
217
287
  type: 'Input',
218
- groupsName: '基础',
288
+ groupsName: localeKey('todoProps.okText.groupsName'),
219
289
  props: {},
220
290
  enableI18n: true
221
291
  },
222
292
  cancelText: {
223
- label: '次按钮文本',
293
+ label: localeKey('todoProps.cancelText.label'),
224
294
  type: 'Input',
225
- groupsName: '基础',
295
+ groupsName: localeKey('todoProps.cancelText.groupsName'),
226
296
  enableI18n: true
227
297
  },
228
298
  scenarioList: {
229
- label: '适用场景',
299
+ label: localeKey('todoProps.scenarioList.label'),
230
300
  type: 'SelectScenarioPopover',
231
- groupsName: '基础',
301
+ groupsName: localeKey('todoProps.scenarioList.groupsName'),
232
302
  props: {
233
303
  options: []
234
304
  }
235
305
  },
236
306
  closeOnClickOverlay: {
237
- label: '关闭方式',
307
+ label: localeKey('todoProps.closeOnClickOverlay.label'),
238
308
  type: 'Select',
239
309
  props: {
240
310
  inhibitBtn: true,
241
311
  options: [{
242
- title: '点击蒙罩关闭窗口',
312
+ title: localeKey('todoProps.closeOnClickOverlay.props.options.0.title'),
243
313
  value: true
244
314
  }, {
245
- title: '点击蒙罩不关闭窗口',
315
+ title: localeKey('todoProps.closeOnClickOverlay.props.options.1.title'),
246
316
  value: false
247
317
  }]
248
318
  }
249
319
  },
250
320
  ignoreLogin: {
251
- label: '免登录',
321
+ label: localeKey('todoProps.ignoreLogin.label'),
252
322
  type: 'Switch',
253
- groupsName: '基础',
323
+ groupsName: localeKey('todoProps.ignoreLogin.groupsName'),
254
324
  props: {}
255
325
  },
256
326
  labels: {
257
- label: '标签',
327
+ label: localeKey('todoProps.labels.label'),
258
328
  type: 'ChooseTag',
259
- groupsName: '基础'
329
+ groupsName: localeKey('todoProps.labels.groupsName')
260
330
  },
261
331
  compState: {
262
- label: '组件状态',
332
+ label: localeKey('todoProps.compState.label'),
263
333
  type: 'ParamsDefine',
264
- groupsName: '组件状态'
334
+ groupsName: localeKey('todoProps.compState.groupsName')
265
335
  }
266
336
  },
267
337
  todoStyles: {}
@@ -11,7 +11,6 @@ declare const _default: {
11
11
  customHeight: number;
12
12
  closeOnClickOverlay: boolean;
13
13
  footer: number;
14
- layout: string;
15
14
  compState: {
16
15
  name: string;
17
16
  code: string;