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