@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_MODAL_LOCALE_PREFIX = 'pc.modal';
15
+ var localeKey = function localeKey(suffix) {
16
+ return "".concat(PC_MODAL_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,15 +29,14 @@ var _default = {
24
29
  customHeight: 500,
25
30
  closeOnClickOverlay: false,
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
- name: '业务场景',
36
+ name: localeKey('props.compState.1.name'),
33
37
  code: 'sceneCode'
34
38
  }, {
35
- name: '业务数据',
39
+ name: localeKey('props.compState.2.name'),
36
40
  code: 'bizData'
37
41
  }]
38
42
  },
@@ -43,106 +47,172 @@ var _default = {
43
47
  description: '',
44
48
  image: '',
45
49
  groupsName: 'root',
46
- todoActionList: [].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('pc', 'Modal')), [{
50
+ todoActionList: [{
51
+ key: 'showMessage',
52
+ label: localeKey('todoActionList.showMessage.label'),
53
+ todoOptions: [{
54
+ key: 'type',
55
+ label: localeKey('todoActionList.showMessage.todoOptions.type.label'),
56
+ type: 'Select',
57
+ defaultValue: 'success',
58
+ props: {
59
+ options: [{
60
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.0.title'),
61
+ value: 'success'
62
+ }, {
63
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.1.title'),
64
+ value: 'info'
65
+ }, {
66
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.2.title'),
67
+ value: 'warn'
68
+ }, {
69
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.3.title'),
70
+ value: 'error'
71
+ }, {
72
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.4.title'),
73
+ value: 'loading'
74
+ }]
75
+ }
76
+ }, {
77
+ key: 'icon',
78
+ label: localeKey('todoActionList.showMessage.todoOptions.icon.label'),
79
+ type: 'ChooseIcon',
80
+ props: {
81
+ placeholder: localeKey('todoActionList.showMessage.todoOptions.icon.props.placeholder')
82
+ }
83
+ }, {
84
+ key: 'value',
85
+ label: localeKey('todoActionList.showMessage.todoOptions.value.label'),
86
+ type: 'SetExpression'
87
+ }, {
88
+ key: 'duration',
89
+ label: localeKey('todoActionList.showMessage.todoOptions.duration.label'),
90
+ type: 'InputNumber',
91
+ props: {
92
+ addonAfter: localeKey('todoActionList.showMessage.todoOptions.duration.props.addonAfter'),
93
+ step: '0.01',
94
+ formatter: function formatter(val) {
95
+ return val ? val.match(/^\d+(?:\.\d{0,2})?/) : undefined;
96
+ }
97
+ }
98
+ }, {
99
+ key: 'okText',
100
+ label: localeKey('todoActionList.showMessage.todoOptions.okText.label'),
101
+ type: 'Input'
102
+ }, {
103
+ key: 'cancelText',
104
+ label: localeKey('todoActionList.showMessage.todoOptions.cancelText.label'),
105
+ type: 'Input'
106
+ }],
107
+ todoCallbacks: ['callback1', 'callback2'],
108
+ classification: [{
109
+ label: localeKey('todoActionList.showMessage.classification.modal.label'),
110
+ value: 'modal'
111
+ }],
112
+ remarks: [{
113
+ label: localeKey('todoActionList.showMessage.remarks.0.label'),
114
+ content: localeKey('todoActionList.showMessage.remarks.0.content')
115
+ }]
116
+ }].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('pc', 'Modal')), [{
47
117
  key: 'previewFile',
48
- label: '文件预览',
118
+ label: localeKey('todoActionList.previewFile.label'),
49
119
  todoOptions: [{
50
120
  key: 'fileId',
51
- label: '文件ID/URL',
121
+ label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
52
122
  type: 'SetExpression',
53
- labelTip: '文件预览格式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、js、doc、xlsx、docx、wps、ppt等 注意:如果是外部URL,有可能存在跨域现象!'
123
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
54
124
  }, {
55
125
  key: 'viewMode',
56
- label: '预览方式',
126
+ label: localeKey('todoActionList.previewFile.todoOptions.viewMode.label'),
57
127
  type: 'RadioButton',
58
128
  defaultValue: 'popUp',
59
129
  props: {
60
130
  options: [{
61
- title: '页面弹窗',
131
+ title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.0.title'),
62
132
  value: 'popUp'
63
133
  }, {
64
- title: '新标签页',
134
+ title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.1.title'),
65
135
  value: 'newTab'
66
136
  }, {
67
- title: '新窗口',
137
+ title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.2.title'),
68
138
  value: 'window'
69
139
  }]
70
140
  }
71
141
  }, {
72
142
  key: 'modalWidth',
73
- label: '窗口宽度',
143
+ label: localeKey('todoActionList.previewFile.todoOptions.modalWidth.label'),
74
144
  type: 'SetExpression',
75
145
  defaultValue: '960',
76
146
  visibleFlag: 'viewMode',
77
- labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
147
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.modalWidth.labelTip'),
78
148
  visibleFlagValue: ['window']
79
149
  }, {
80
150
  key: 'modalHeight',
81
- label: '窗口高度',
151
+ label: localeKey('todoActionList.previewFile.todoOptions.modalHeight.label'),
82
152
  type: 'SetExpression',
83
153
  defaultValue: '648',
84
154
  visibleFlag: 'viewMode',
85
- labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
155
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.modalHeight.labelTip'),
86
156
  visibleFlagValue: ['window']
87
157
  }],
88
158
  classification: [{
89
- label: '页面类',
159
+ label: localeKey('todoActionList.previewFile.classification.page.label'),
90
160
  value: 'page'
91
161
  }]
92
162
  }]),
93
163
  todoEvents: [{
94
164
  value: 'useEffect',
95
- label: '弹窗打开后'
165
+ label: localeKey('todoEvents.useEffect.label')
96
166
  }, {
97
167
  value: 'willUnmount',
98
- label: '弹窗关闭前'
168
+ label: localeKey('todoEvents.willUnmount.label')
99
169
  }, {
100
170
  value: 'onOk',
101
- label: '点击确认'
171
+ label: localeKey('todoEvents.onOk.label')
102
172
  }, {
103
173
  value: 'onCancel',
104
- label: '点击取消'
174
+ label: localeKey('todoEvents.onCancel.label')
105
175
  }, {
106
176
  value: 'stateChange',
107
- label: '组件状态变化后'
177
+ label: localeKey('todoEvents.stateChange.label')
108
178
  }, {
109
179
  value: 'usePageEndRequest',
110
- label: '页面加载请求结束',
180
+ label: localeKey('todoEvents.usePageEndRequest.label'),
111
181
  remarks: [{
112
- label: '场景描述',
113
- content: '在页面加载完成事件中,所有的事件执行结束后进行回掉(包含页面加载完成事件中的异步请求(注意:定时器相关动作不计算回掉时间))'
182
+ label: localeKey('todoEvents.usePageEndRequest.remarks.0.label'),
183
+ content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
114
184
  }, {
115
- label: '适用场景',
116
- content: '在复杂的表单页面中,你可以在页面加载完成事件中进行页面loading的动作设置,在页面加载完成请求结束事件中取消loading,保障在复杂请求中,因异步导致数据未能及时回填,用户提交错误数据问题。'
185
+ label: localeKey('todoEvents.usePageEndRequest.remarks.1.label'),
186
+ content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
117
187
  }]
118
188
  }],
119
189
  todoProps: {
120
190
  pageName: {
121
- label: '名称',
191
+ label: localeKey('todoProps.pageName.label'),
122
192
  type: 'Input',
123
- groupsName: '基础',
193
+ groupsName: localeKey('todoProps.pageName.groupsName'),
124
194
  props: {
125
195
  required: true
126
196
  }
127
197
  },
128
198
  pagePath: {
129
- label: '路径',
199
+ label: localeKey('todoProps.pagePath.label'),
130
200
  type: 'UrlInput',
131
- groupsName: '基础',
201
+ groupsName: localeKey('todoProps.pagePath.groupsName'),
132
202
  props: {
133
203
  required: true,
134
- placeholder: '如:/user/list',
204
+ placeholder: localeKey('todoProps.pagePath.props.placeholder'),
135
205
  regex: {
136
206
  // eslint-disable-next-line
137
207
  pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
138
- message: '必须为/xx/yy/..格式'
208
+ message: localeKey('todoProps.pagePath.props.regex.message')
139
209
  }
140
210
  }
141
211
  },
142
212
  catalogItemId: {
143
- label: '分组',
213
+ label: localeKey('todoProps.catalogItemId.label'),
144
214
  type: 'CatalogTreeSelect',
145
- groupsName: '基础',
215
+ groupsName: localeKey('todoProps.catalogItemId.groupsName'),
146
216
  props: {
147
217
  required: true,
148
218
  options: [],
@@ -152,40 +222,40 @@ var _default = {
152
222
  }
153
223
  },
154
224
  modalTitle: {
155
- label: '弹窗标题',
225
+ label: localeKey('todoProps.modalTitle.label'),
156
226
  type: 'Input',
157
- groupsName: '基础',
227
+ groupsName: localeKey('todoProps.modalTitle.groupsName'),
158
228
  istodoBind: true,
159
229
  props: {},
160
230
  enableI18n: true
161
231
  },
162
232
  width: {
163
- label: '弹窗大小',
233
+ label: localeKey('todoProps.width.label'),
164
234
  type: 'Select',
165
- groupsName: '基础',
235
+ groupsName: localeKey('todoProps.width.groupsName'),
166
236
  props: {
167
237
  options: [{
168
238
  value: 560,
169
- title: 's(560*auto)'
239
+ title: localeKey('todoProps.width.props.options.0.title')
170
240
  }, {
171
241
  value: 624,
172
- title: 'm(624*auto)'
242
+ title: localeKey('todoProps.width.props.options.1.title')
173
243
  }, {
174
244
  value: 1008,
175
- title: 'l(1008*auto)'
245
+ title: localeKey('todoProps.width.props.options.2.title')
176
246
  }, {
177
247
  value: 1200,
178
- title: 'xl(1200*auto)'
248
+ title: localeKey('todoProps.width.props.options.3.title')
179
249
  }, {
180
250
  value: 'custom',
181
- title: '自定义'
251
+ title: localeKey('todoProps.width.props.options.4.title')
182
252
  }]
183
253
  }
184
254
  },
185
255
  customWidth: {
186
- label: '宽度',
256
+ label: localeKey('todoProps.customWidth.label'),
187
257
  type: 'InputNumber',
188
- groupsName: '基础',
258
+ groupsName: localeKey('todoProps.customWidth.groupsName'),
189
259
  props: {
190
260
  min: 1,
191
261
  max: 3000,
@@ -194,9 +264,9 @@ var _default = {
194
264
  }
195
265
  },
196
266
  customHeight: {
197
- label: '高度',
267
+ label: localeKey('todoProps.customHeight.label'),
198
268
  type: 'InputNumber',
199
- groupsName: '基础',
269
+ groupsName: localeKey('todoProps.customHeight.groupsName'),
200
270
  props: {
201
271
  min: 1,
202
272
  max: 3000,
@@ -205,71 +275,70 @@ var _default = {
205
275
  }
206
276
  },
207
277
  footer: {
208
- label: '底部内容',
278
+ label: localeKey('todoProps.footer.label'),
209
279
  type: 'Select',
210
- groupsName: '基础',
280
+ groupsName: localeKey('todoProps.footer.groupsName'),
211
281
  props: {
212
282
  options: [{
213
- title: '显示',
283
+ title: localeKey('todoProps.footer.props.options.0.title'),
214
284
  value: 1
215
285
  }, {
216
- title: '隐藏',
286
+ title: localeKey('todoProps.footer.props.options.1.title'),
217
287
  value: 0
218
288
  }]
219
289
  }
220
290
  },
221
291
  okText: {
222
- label: '主按钮文本',
292
+ label: localeKey('todoProps.okText.label'),
223
293
  type: 'Input',
224
- groupsName: '基础',
294
+ groupsName: localeKey('todoProps.okText.groupsName'),
225
295
  props: {},
226
296
  enableI18n: true
227
297
  },
228
298
  cancelText: {
229
- label: '次按钮文本',
299
+ label: localeKey('todoProps.cancelText.label'),
230
300
  type: 'Input',
231
- groupsName: '基础',
301
+ groupsName: localeKey('todoProps.cancelText.groupsName'),
232
302
  enableI18n: true
233
303
  },
234
304
  scenarioList: {
235
- label: '适用场景',
305
+ label: localeKey('todoProps.scenarioList.label'),
236
306
  type: 'SelectScenarioPopover',
237
- groupsName: '基础',
307
+ groupsName: localeKey('todoProps.scenarioList.groupsName'),
238
308
  props: {
239
309
  options: []
240
310
  }
241
311
  },
242
312
  closeOnClickOverlay: {
243
- label: '关闭方式',
313
+ label: localeKey('todoProps.closeOnClickOverlay.label'),
244
314
  type: 'Select',
245
315
  props: {
246
316
  inhibitBtn: true,
247
317
  options: [{
248
- title: '点击蒙罩关闭窗口',
318
+ title: localeKey('todoProps.closeOnClickOverlay.props.options.0.title'),
249
319
  value: true
250
320
  }, {
251
- title: '点击蒙罩不关闭窗口',
321
+ title: localeKey('todoProps.closeOnClickOverlay.props.options.1.title'),
252
322
  value: false
253
323
  }]
254
324
  }
255
325
  },
256
326
  ignoreLogin: {
257
- label: '免登录',
327
+ label: localeKey('todoProps.ignoreLogin.label'),
258
328
  type: 'Switch',
259
- groupsName: '基础',
329
+ groupsName: localeKey('todoProps.ignoreLogin.groupsName'),
260
330
  props: {}
261
331
  },
262
332
  labels: {
263
- label: '标签',
333
+ label: localeKey('todoProps.labels.label'),
264
334
  type: 'ChooseTag',
265
- groupsName: '基础'
335
+ groupsName: localeKey('todoProps.labels.groupsName')
266
336
  },
267
337
  compState: {
268
- label: '组件状态',
338
+ label: localeKey('todoProps.compState.label'),
269
339
  type: 'ParamsDefine',
270
- groupsName: '组件状态'
340
+ groupsName: localeKey('todoProps.compState.groupsName')
271
341
  }
272
342
  },
273
343
  todoStyles: {}
274
- };
275
- exports.default = _default;
344
+ };
@@ -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;