@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 MOBILE_MODAL_LOCALE_PREFIX = 'mobile.modal';
15
+ var localeKey = function localeKey(suffix) {
16
+ return "".concat(MOBILE_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
  width: '50vw',
22
27
  height: '50vh',
@@ -27,10 +32,10 @@ var _default = {
27
32
  destroyOnClose: true,
28
33
  showCloseButton: true,
29
34
  compState: [{
30
- name: '业务主键',
35
+ name: localeKey('props.compState.0.name'),
31
36
  code: 'bizId'
32
37
  }, {
33
- name: '业务场景',
38
+ name: localeKey('props.compState.1.name'),
34
39
  code: 'sceneCode'
35
40
  }]
36
41
  },
@@ -43,62 +48,62 @@ var _default = {
43
48
  groupsName: 'root',
44
49
  todoActionList: [].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('mobile')), [{
45
50
  key: 'previewFile',
46
- label: '文件预览',
51
+ label: localeKey('todoActionList.previewFile.label'),
47
52
  todoOptions: [{
48
53
  key: 'fileId',
49
- label: '文件ID/URL',
54
+ label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
50
55
  type: 'SetExpression',
51
- labelTip: '文件预览格式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、js、doc、xlsx、docx、wps、ppt等 注意:如果是外部URL,有可能存在跨域现象!'
56
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
52
57
  }],
53
58
  classification: [{
54
- label: '页面类',
59
+ label: localeKey('todoActionList.previewFile.classification.page.label'),
55
60
  value: 'page'
56
61
  }]
57
62
  }]),
58
63
  todoEvents: [{
59
64
  value: 'useEffect',
60
- label: '弹窗打开后'
65
+ label: localeKey('todoEvents.useEffect.label')
61
66
  }, {
62
67
  value: 'stateChange',
63
- label: '组件状态变化后'
68
+ label: localeKey('todoEvents.stateChange.label')
64
69
  }, {
65
70
  value: 'usePageEndRequest',
66
- label: '页面加载请求结束',
71
+ label: localeKey('todoEvents.usePageEndRequest.label'),
67
72
  remarks: [{
68
- label: '场景描述',
69
- content: '在页面加载完成事件中,所有的事件执行结束后进行回掉(包含页面加载完成事件中的异步请求(注意:定时器相关动作不计算回掉时间))'
73
+ label: localeKey('todoEvents.usePageEndRequest.remarks.0.label'),
74
+ content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
70
75
  }, {
71
- label: '场景描述',
72
- content: '在页面加载完成事件中,所有的事件执行结束后进行回掉(包含页面加载完成事件中的异步请求(注意:定时器相关动作不计算回掉时间))'
76
+ label: localeKey('todoEvents.usePageEndRequest.remarks.1.label'),
77
+ content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
73
78
  }]
74
79
  }],
75
80
  todoProps: {
76
81
  pageName: {
77
- label: '名称',
82
+ label: localeKey('todoProps.pageName.label'),
78
83
  type: 'Input',
79
- groupsName: '基础',
84
+ groupsName: localeKey('todoProps.pageName.groupsName'),
80
85
  props: {
81
86
  required: true
82
87
  }
83
88
  },
84
89
  pagePath: {
85
- label: '路径',
90
+ label: localeKey('todoProps.pagePath.label'),
86
91
  type: 'UrlInput',
87
- groupsName: '基础',
92
+ groupsName: localeKey('todoProps.pagePath.groupsName'),
88
93
  props: {
89
94
  required: true,
90
- placeholder: '如:/user/list',
95
+ placeholder: localeKey('todoProps.pagePath.props.placeholder'),
91
96
  regex: {
92
97
  // eslint-disable-next-line
93
98
  pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
94
- message: '必须为/xx/yy/..格式'
99
+ message: localeKey('todoProps.pagePath.props.regex.message')
95
100
  }
96
101
  }
97
102
  },
98
103
  catalogItemId: {
99
- label: '分组',
104
+ label: localeKey('todoProps.catalogItemId.label'),
100
105
  type: 'CatalogTreeSelect',
101
- groupsName: '基础',
106
+ groupsName: localeKey('todoProps.catalogItemId.groupsName'),
102
107
  props: {
103
108
  required: true,
104
109
  options: [],
@@ -108,118 +113,117 @@ var _default = {
108
113
  }
109
114
  },
110
115
  scenarioList: {
111
- label: '适用场景',
116
+ label: localeKey('todoProps.scenarioList.label'),
112
117
  type: 'SelectScenarioPopover',
113
- groupsName: '基础',
118
+ groupsName: localeKey('todoProps.scenarioList.groupsName'),
114
119
  props: {
115
120
  options: []
116
121
  }
117
122
  },
118
123
  mode: {
119
- label: '弹出方向',
124
+ label: localeKey('todoProps.mode.label'),
120
125
  type: 'Select',
121
- groupsName: '基础',
126
+ groupsName: localeKey('todoProps.mode.groupsName'),
122
127
  props: {
123
128
  options: [{
124
- title: '',
129
+ title: localeKey('todoProps.mode.props.options.0.title'),
125
130
  value: 'alert'
126
131
  }, {
127
- title: '',
132
+ title: localeKey('todoProps.mode.props.options.1.title'),
128
133
  value: 'popup'
129
134
  }, {
130
- title: '',
135
+ title: localeKey('todoProps.mode.props.options.2.title'),
131
136
  value: 'dropdown'
132
137
  }, {
133
- title: '',
138
+ title: localeKey('todoProps.mode.props.options.3.title'),
134
139
  value: 'sliderLeft'
135
140
  }, {
136
- title: '',
141
+ title: localeKey('todoProps.mode.props.options.4.title'),
137
142
  value: 'sliderRight'
138
143
  }]
139
144
  }
140
145
  },
141
146
  width: {
142
- label: '宽度',
143
- groupsName: '基础',
147
+ label: localeKey('todoProps.width.label'),
148
+ groupsName: localeKey('todoProps.width.groupsName'),
144
149
  type: 'HeightInput',
145
150
  props: {
146
151
  dependProps: {
147
152
  mode: ['alert', 'sliderLeft', 'sliderRight']
148
153
  },
149
154
  option: [{
150
- label: 'px',
155
+ label: localeKey('todoProps.width.props.option.0.label'),
151
156
  value: 'px'
152
157
  }, {
153
- label: '%',
158
+ label: localeKey('todoProps.width.props.option.1.label'),
154
159
  value: '%'
155
160
  }, {
156
- label: 'vw',
161
+ label: localeKey('todoProps.width.props.option.2.label'),
157
162
  value: 'vw'
158
163
  }]
159
164
  }
160
165
  },
161
166
  height: {
162
- label: '高度',
163
- groupsName: '基础',
167
+ label: localeKey('todoProps.height.label'),
168
+ groupsName: localeKey('todoProps.height.groupsName'),
164
169
  type: 'HeightInput',
165
170
  props: {
166
171
  dependProps: {
167
172
  mode: ['alert', 'popup', 'dropdown']
168
173
  },
169
174
  option: [{
170
- label: 'px',
175
+ label: localeKey('todoProps.height.props.option.0.label'),
171
176
  value: 'px'
172
177
  }, {
173
- label: '%',
178
+ label: localeKey('todoProps.height.props.option.1.label'),
174
179
  value: '%'
175
180
  }, {
176
- label: 'vh',
181
+ label: localeKey('todoProps.height.props.option.2.label'),
177
182
  value: 'vh'
178
183
  }]
179
184
  }
180
185
  },
181
186
  closeOnClickOverlay: {
182
- label: '关闭方式',
187
+ label: localeKey('todoProps.closeOnClickOverlay.label'),
183
188
  type: 'Select',
184
- groupsName: '基础',
189
+ groupsName: localeKey('todoProps.closeOnClickOverlay.groupsName'),
185
190
  props: {
186
191
  inhibitBtn: true,
187
192
  options: [{
188
- title: '点击蒙罩关闭窗口',
193
+ title: localeKey('todoProps.closeOnClickOverlay.props.options.0.title'),
189
194
  value: true
190
195
  }, {
191
- title: '点击蒙罩不关闭窗口',
196
+ title: localeKey('todoProps.closeOnClickOverlay.props.options.1.title'),
192
197
  value: false
193
198
  }]
194
199
  }
195
200
  },
196
201
  destroyOnClose: {
197
- label: '隐藏销毁',
202
+ label: localeKey('todoProps.destroyOnClose.label'),
198
203
  type: 'Switch',
199
- groupsName: '基础'
204
+ groupsName: localeKey('todoProps.destroyOnClose.groupsName')
200
205
  },
201
206
  showCloseButton: {
202
- label: '关闭按钮',
207
+ label: localeKey('todoProps.showCloseButton.label'),
203
208
  type: 'Switch',
204
- groupsName: '基础'
209
+ groupsName: localeKey('todoProps.showCloseButton.groupsName')
205
210
  },
206
211
  ignoreLogin: {
207
- label: '免登录',
212
+ label: localeKey('todoProps.ignoreLogin.label'),
208
213
  type: 'Switch',
209
- groupsName: '基础',
214
+ groupsName: localeKey('todoProps.ignoreLogin.groupsName'),
210
215
  props: {}
211
216
  },
212
217
  labels: {
213
- label: '标签',
218
+ label: localeKey('todoProps.labels.label'),
214
219
  type: 'ChooseTag',
215
- groupsName: '基础'
220
+ groupsName: localeKey('todoProps.labels.groupsName')
216
221
  },
217
222
  compState: {
218
- label: '组件状态',
223
+ label: localeKey('todoProps.compState.label'),
219
224
  type: 'ParamsDefine',
220
- groupsName: '组件状态'
225
+ groupsName: localeKey('todoProps.compState.groupsName')
221
226
  }
222
227
  },
223
228
  todoStyles: {}
224
- };
225
- exports.default = _default;
229
+ };
@@ -5,11 +5,9 @@ declare const _default: {
5
5
  isContainer: boolean;
6
6
  label: string;
7
7
  props: {
8
- pageLayout: string;
9
8
  pageDynamicFlag: boolean;
10
9
  catalogItemId: number;
11
10
  ignoreLogin: boolean;
12
- layout: string;
13
11
  searchParams: {
14
12
  name: string;
15
13
  code: string;
@@ -10,27 +10,30 @@ 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 MOBILE_POPOVER_LOCALE_PREFIX = 'mobile.popover';
15
+ var localeKey = function localeKey(suffix) {
16
+ return "".concat(MOBILE_POPOVER_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
- pageLayout: 'BaseLayout',
22
26
  pageDynamicFlag: false,
23
27
  catalogItemId: -1,
24
28
  ignoreLogin: false,
25
- layout: 'BaseLayout',
26
29
  searchParams: [{
27
- name: '业务主键',
30
+ name: localeKey('props.searchParams.0.name'),
28
31
  code: 'bizId'
29
32
  }, {
30
- name: '业务场景',
33
+ name: localeKey('props.searchParams.1.name'),
31
34
  code: 'sceneCode'
32
35
  }, {
33
- name: '业务数据',
36
+ name: localeKey('props.searchParams.2.name'),
34
37
  code: 'bizData'
35
38
  }]
36
39
  },
@@ -43,59 +46,59 @@ var _default = {
43
46
  groupsName: 'root',
44
47
  todoActionList: [].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('mobile')), [{
45
48
  key: 'previewFile',
46
- label: '文件预览',
49
+ label: localeKey('todoActionList.previewFile.label'),
47
50
  todoOptions: [{
48
51
  key: 'fileId',
49
- label: '文件ID/URL',
52
+ label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
50
53
  type: 'SetExpression',
51
- labelTip: '文件预览格式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、js、doc、xlsx、docx、wps、ppt等 注意:如果是外部URL,有可能存在跨域现象!'
54
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
52
55
  }],
53
56
  classification: [{
54
- label: '页面类',
57
+ label: localeKey('todoActionList.previewFile.classification.page.label'),
55
58
  value: 'page'
56
59
  }]
57
60
  }]),
58
61
  todoEvents: [{
59
62
  value: 'stateChange',
60
- label: '组件状态变化后'
63
+ label: localeKey('todoEvents.stateChange.label')
61
64
  }, {
62
65
  value: 'usePageEndRequest',
63
- label: '页面加载请求结束',
66
+ label: localeKey('todoEvents.usePageEndRequest.label'),
64
67
  remarks: [{
65
- label: '场景描述',
66
- content: '在页面加载完成事件中,所有的事件执行结束后进行回掉(包含页面加载完成事件中的异步请求(注意:定时器相关动作不计算回掉时间))'
68
+ label: localeKey('todoEvents.usePageEndRequest.remarks.0.label'),
69
+ content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
67
70
  }, {
68
- label: '适用场景',
69
- content: '在复杂的表单页面中,你可以在页面加载完成事件中进行页面loading的动作设置,在页面加载完成请求结束事件中取消loading,保障在复杂请求中,因异步导致数据未能及时回填,用户提交错误数据问题。'
71
+ label: localeKey('todoEvents.usePageEndRequest.remarks.1.label'),
72
+ content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
70
73
  }]
71
74
  }],
72
75
  todoProps: {
73
76
  pageName: {
74
- label: '名称',
77
+ label: localeKey('todoProps.pageName.label'),
75
78
  type: 'Input',
76
- groupsName: '基础',
79
+ groupsName: localeKey('todoProps.pageName.groupsName'),
77
80
  props: {
78
81
  required: true
79
82
  }
80
83
  },
81
84
  pagePath: {
82
- label: '路径',
85
+ label: localeKey('todoProps.pagePath.label'),
83
86
  type: 'UrlInput',
84
- groupsName: '基础',
87
+ groupsName: localeKey('todoProps.pagePath.groupsName'),
85
88
  props: {
86
89
  required: true,
87
- placeholder: '如:/user/list',
90
+ placeholder: localeKey('todoProps.pagePath.props.placeholder'),
88
91
  regex: {
89
92
  // eslint-disable-next-line
90
93
  pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
91
- message: '必须为/xx/yy/..格式'
94
+ message: localeKey('todoProps.pagePath.props.regex.message')
92
95
  }
93
96
  }
94
97
  },
95
98
  catalogItemId: {
96
- label: '分组',
99
+ label: localeKey('todoProps.catalogItemId.label'),
97
100
  type: 'CatalogTreeSelect',
98
- groupsName: '基础',
101
+ groupsName: localeKey('todoProps.catalogItemId.groupsName'),
99
102
  props: {
100
103
  required: true,
101
104
  options: [],
@@ -105,28 +108,27 @@ var _default = {
105
108
  }
106
109
  },
107
110
  remark: {
108
- label: '描述',
111
+ label: localeKey('todoProps.remark.label'),
109
112
  type: 'Input',
110
- groupsName: '基础',
113
+ groupsName: localeKey('todoProps.remark.groupsName'),
111
114
  props: {}
112
115
  },
113
116
  ignoreLogin: {
114
- label: '免登录',
117
+ label: localeKey('todoProps.ignoreLogin.label'),
115
118
  type: 'Switch',
116
- groupsName: '基础',
119
+ groupsName: localeKey('todoProps.ignoreLogin.groupsName'),
117
120
  props: {}
118
121
  },
119
122
  labels: {
120
- label: '标签',
123
+ label: localeKey('todoProps.labels.label'),
121
124
  type: 'ChooseTag',
122
- groupsName: '基础'
125
+ groupsName: localeKey('todoProps.labels.groupsName')
123
126
  },
124
127
  compState: {
125
- label: '组件状态',
128
+ label: localeKey('todoProps.compState.label'),
126
129
  type: 'ParamsDefine',
127
- groupsName: '组件状态'
130
+ groupsName: localeKey('todoProps.compState.groupsName')
128
131
  }
129
132
  },
130
133
  todoStyles: {}
131
- };
132
- exports.default = _default;
134
+ };
@@ -5,12 +5,10 @@ declare const _default: {
5
5
  isContainer: boolean;
6
6
  label: string;
7
7
  props: {
8
- pageLayout: string;
9
8
  pageDynamicFlag: boolean;
10
9
  catalogItemId: number;
11
10
  ignoreLogin: boolean;
12
11
  hideNavBar: boolean;
13
- layout: string;
14
12
  searchParams: {
15
13
  name: string;
16
14
  code: string;
@@ -81,6 +79,23 @@ declare const _default: {
81
79
  params?: undefined;
82
80
  showRules?: undefined;
83
81
  dependProps?: undefined;
82
+ } | {
83
+ value: string;
84
+ label: string;
85
+ params: {
86
+ title: string;
87
+ name: string;
88
+ value: string;
89
+ type: string;
90
+ description: string;
91
+ }[];
92
+ remarks: {
93
+ label: string;
94
+ content: string;
95
+ }[];
96
+ terminal?: undefined;
97
+ showRules?: undefined;
98
+ dependProps?: undefined;
84
99
  })[];
85
100
  todoProps: {
86
101
  pageName: {