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