@lingxiteam/assets 4.2.1-alpha.2 → 4.3.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/es/IconSvg/index.js +8 -7
  2. package/es/error/errorCatch/index.js +1 -1
  3. package/es/error/errorDisplay/Mobile/Drawer/Drawer.js +99 -77
  4. package/es/error/errorDisplay/Mobile/Drawer/index.js +26 -26
  5. package/es/error/errorDisplay/Mobile/ErrorMsg/index.js +127 -129
  6. package/es/error/errorDisplay/Mobile/Modal/Modal.js +46 -31
  7. package/es/error/errorDisplay/Mobile/Modal/index.js +24 -24
  8. package/es/error/errorDisplay/Mobile/defaultGlobalConfig.js +2 -2
  9. package/es/error/errorDisplay/Web/Drawer/Drawer.js +183 -145
  10. package/es/error/errorDisplay/Web/Drawer/DrawerConnect.js +43 -46
  11. package/es/error/errorDisplay/Web/Drawer/index.js +15 -15
  12. package/es/error/errorDisplay/Web/ErrorMsg/index.js +341 -327
  13. package/es/error/errorDisplay/Web/Notification/Notice.js +78 -65
  14. package/es/error/errorDisplay/Web/Notification/Notification.js +15 -15
  15. package/es/error/errorDisplay/Web/Notification/index.js +36 -38
  16. package/es/error/errorDisplay/Web/defaultGlobalConfig.js +2 -2
  17. package/es/error/errorDisplay/compUtils.js +6 -6
  18. package/es/error/errorDisplay/http.js +7 -7
  19. package/es/error/index.js +6 -6
  20. package/es/index.js +5 -5
  21. package/es/rootConfig/index.d.ts +1 -1
  22. package/es/rootConfig/index.js +5 -5
  23. package/es/rootConfig/locales/enus/config-locales-es.d.ts +2 -0
  24. package/es/rootConfig/locales/enus/config-locales-es.js +13 -0
  25. package/es/rootConfig/locales/enus/config-locales-es.mobile.d.ts +2 -0
  26. package/es/rootConfig/locales/enus/config-locales-es.mobile.js +199 -0
  27. package/es/rootConfig/locales/enus/config-locales-es.pc.d.ts +2 -0
  28. package/es/rootConfig/locales/enus/config-locales-es.pc.js +49 -0
  29. package/es/rootConfig/locales/enus/config-locales-es.todo-actionList.d.ts +2 -0
  30. package/es/rootConfig/locales/enus/config-locales-es.todo-actionList.js +1293 -0
  31. package/es/rootConfig/locales/enus/config-locales-es.todo-callback.d.ts +2 -0
  32. package/es/rootConfig/locales/enus/config-locales-es.todo-callback.js +21 -0
  33. package/es/rootConfig/locales/enus/config-locales-es.todo-optionList.d.ts +2 -0
  34. package/es/rootConfig/locales/enus/config-locales-es.todo-optionList.js +339 -0
  35. package/es/rootConfig/locales/zhcn/config-locales-cn.d.ts +2 -0
  36. package/es/rootConfig/locales/zhcn/config-locales-cn.js +13 -0
  37. package/es/rootConfig/locales/zhcn/config-locales-cn.mobile.d.ts +2 -0
  38. package/es/rootConfig/locales/zhcn/config-locales-cn.mobile.js +199 -0
  39. package/es/rootConfig/locales/zhcn/config-locales-cn.pc.d.ts +2 -0
  40. package/es/rootConfig/locales/zhcn/config-locales-cn.pc.js +385 -0
  41. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.d.ts +2 -0
  42. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.js +1297 -0
  43. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-callback.d.ts +2 -0
  44. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-callback.js +21 -0
  45. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.d.ts +2 -0
  46. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.js +339 -0
  47. package/es/rootConfig/locales/zhhk/config-locales-hk.d.ts +2 -0
  48. package/es/rootConfig/locales/zhhk/config-locales-hk.js +13 -0
  49. package/es/rootConfig/locales/zhhk/config-locales-hk.mobile.d.ts +2 -0
  50. package/es/rootConfig/locales/zhhk/config-locales-hk.mobile.js +199 -0
  51. package/es/rootConfig/locales/zhhk/config-locales-hk.pc.d.ts +2 -0
  52. package/es/rootConfig/locales/zhhk/config-locales-hk.pc.js +385 -0
  53. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.d.ts +2 -0
  54. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.js +1297 -0
  55. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-callback.d.ts +2 -0
  56. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-callback.js +21 -0
  57. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.d.ts +2 -0
  58. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.js +339 -0
  59. package/es/rootConfig/mobile/BusiComp.d.ts +0 -1
  60. package/es/rootConfig/mobile/BusiComp.js +35 -32
  61. package/es/rootConfig/mobile/MobileModal.js +62 -57
  62. package/es/rootConfig/mobile/MobilePopover.d.ts +0 -2
  63. package/es/rootConfig/mobile/MobilePopover.js +37 -34
  64. package/es/rootConfig/mobile/index.js +4 -4
  65. package/es/rootConfig/mobile/page.d.ts +17 -2
  66. package/es/rootConfig/mobile/page.js +85 -78
  67. package/es/rootConfig/pc/BusiComp.js +110 -40
  68. package/es/rootConfig/pc/Drawer.d.ts +8 -9
  69. package/es/rootConfig/pc/Drawer.js +161 -91
  70. package/es/rootConfig/pc/Modal.d.ts +0 -1
  71. package/es/rootConfig/pc/Modal.js +140 -70
  72. package/es/rootConfig/pc/Popover.d.ts +0 -1
  73. package/es/rootConfig/pc/Popover.js +114 -44
  74. package/es/rootConfig/pc/index.js +5 -5
  75. package/es/rootConfig/pc/page.d.ts +0 -2
  76. package/es/rootConfig/pc/page.js +133 -64
  77. package/es/rootConfig/todoActionList.d.ts +1 -0
  78. package/es/rootConfig/todoActionList.js +2363 -1237
  79. package/es/rootConfig/todoCallback.d.ts +12 -1
  80. package/es/rootConfig/todoCallback.js +175 -103
  81. package/es/rootConfig/todoOptionList.d.ts +0 -66
  82. package/es/rootConfig/todoOptionList.js +400 -401
  83. package/es/theme/index.js +18 -20
  84. package/es/theme/src/default/index.js +7 -7
  85. package/es/theme/utils/renderColors.js +1 -1
  86. package/es/utils/url.js +8 -7
  87. package/lib/IconSvg/index.js +10 -9
  88. package/lib/error/errorCatch/index.js +2 -3
  89. package/lib/error/errorDisplay/Mobile/Drawer/Drawer.js +99 -79
  90. package/lib/error/errorDisplay/Mobile/Drawer/index.js +25 -26
  91. package/lib/error/errorDisplay/Mobile/ErrorMsg/index.js +123 -126
  92. package/lib/error/errorDisplay/Mobile/Modal/Modal.js +45 -33
  93. package/lib/error/errorDisplay/Mobile/Modal/index.js +23 -24
  94. package/lib/error/errorDisplay/Mobile/defaultGlobalConfig.js +3 -5
  95. package/lib/error/errorDisplay/SVGstring.js +6 -12
  96. package/lib/error/errorDisplay/Web/Drawer/Drawer.js +181 -146
  97. package/lib/error/errorDisplay/Web/Drawer/DrawerConnect.js +44 -48
  98. package/lib/error/errorDisplay/Web/Drawer/index.js +18 -20
  99. package/lib/error/errorDisplay/Web/ErrorMsg/index.js +336 -324
  100. package/lib/error/errorDisplay/Web/Notification/Notice.js +79 -68
  101. package/lib/error/errorDisplay/Web/Notification/Notification.js +15 -16
  102. package/lib/error/errorDisplay/Web/Notification/index.js +37 -41
  103. package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +3 -5
  104. package/lib/error/errorDisplay/compUtils.js +9 -12
  105. package/lib/error/errorDisplay/const.js +7 -13
  106. package/lib/error/errorDisplay/http.js +8 -9
  107. package/lib/index.js +3 -6
  108. package/lib/rootConfig/index.d.ts +1 -1
  109. package/lib/rootConfig/index.js +9 -3
  110. package/lib/rootConfig/locales/enus/config-locales-es.d.ts +2 -0
  111. package/lib/rootConfig/locales/enus/config-locales-es.js +19 -0
  112. package/lib/rootConfig/locales/enus/config-locales-es.mobile.d.ts +2 -0
  113. package/lib/rootConfig/locales/enus/config-locales-es.mobile.js +205 -0
  114. package/lib/rootConfig/locales/enus/config-locales-es.pc.d.ts +2 -0
  115. package/lib/rootConfig/locales/enus/config-locales-es.pc.js +55 -0
  116. package/lib/rootConfig/locales/enus/config-locales-es.todo-actionList.d.ts +2 -0
  117. package/lib/rootConfig/locales/enus/config-locales-es.todo-actionList.js +1299 -0
  118. package/lib/rootConfig/locales/enus/config-locales-es.todo-callback.d.ts +2 -0
  119. package/lib/rootConfig/locales/enus/config-locales-es.todo-callback.js +27 -0
  120. package/lib/rootConfig/locales/enus/config-locales-es.todo-optionList.d.ts +2 -0
  121. package/lib/rootConfig/locales/enus/config-locales-es.todo-optionList.js +345 -0
  122. package/lib/rootConfig/locales/zhcn/config-locales-cn.d.ts +2 -0
  123. package/lib/rootConfig/locales/zhcn/config-locales-cn.js +19 -0
  124. package/lib/rootConfig/locales/zhcn/config-locales-cn.mobile.d.ts +2 -0
  125. package/lib/rootConfig/locales/zhcn/config-locales-cn.mobile.js +205 -0
  126. package/lib/rootConfig/locales/zhcn/config-locales-cn.pc.d.ts +2 -0
  127. package/lib/rootConfig/locales/zhcn/config-locales-cn.pc.js +391 -0
  128. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.d.ts +2 -0
  129. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.js +1303 -0
  130. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-callback.d.ts +2 -0
  131. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-callback.js +27 -0
  132. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.d.ts +2 -0
  133. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.js +345 -0
  134. package/lib/rootConfig/locales/zhhk/config-locales-hk.d.ts +2 -0
  135. package/lib/rootConfig/locales/zhhk/config-locales-hk.js +19 -0
  136. package/lib/rootConfig/locales/zhhk/config-locales-hk.mobile.d.ts +2 -0
  137. package/lib/rootConfig/locales/zhhk/config-locales-hk.mobile.js +205 -0
  138. package/lib/rootConfig/locales/zhhk/config-locales-hk.pc.d.ts +2 -0
  139. package/lib/rootConfig/locales/zhhk/config-locales-hk.pc.js +391 -0
  140. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.d.ts +2 -0
  141. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.js +1303 -0
  142. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-callback.d.ts +2 -0
  143. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-callback.js +27 -0
  144. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.d.ts +2 -0
  145. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.js +345 -0
  146. package/lib/rootConfig/mobile/BusiComp.d.ts +0 -1
  147. package/lib/rootConfig/mobile/BusiComp.js +36 -34
  148. package/lib/rootConfig/mobile/MobileModal.js +63 -59
  149. package/lib/rootConfig/mobile/MobilePopover.d.ts +0 -2
  150. package/lib/rootConfig/mobile/MobilePopover.js +38 -36
  151. package/lib/rootConfig/mobile/page.d.ts +17 -2
  152. package/lib/rootConfig/mobile/page.js +86 -80
  153. package/lib/rootConfig/pc/BusiComp.js +111 -42
  154. package/lib/rootConfig/pc/Drawer.d.ts +8 -9
  155. package/lib/rootConfig/pc/Drawer.js +162 -93
  156. package/lib/rootConfig/pc/Modal.d.ts +0 -1
  157. package/lib/rootConfig/pc/Modal.js +141 -72
  158. package/lib/rootConfig/pc/Popover.d.ts +0 -1
  159. package/lib/rootConfig/pc/Popover.js +115 -46
  160. package/lib/rootConfig/pc/page.d.ts +0 -2
  161. package/lib/rootConfig/pc/page.js +134 -66
  162. package/lib/rootConfig/todoActionList.d.ts +1 -0
  163. package/lib/rootConfig/todoActionList.js +2364 -1244
  164. package/lib/rootConfig/todoCallback.d.ts +12 -1
  165. package/lib/rootConfig/todoCallback.js +182 -116
  166. package/lib/rootConfig/todoOptionList.d.ts +0 -66
  167. package/lib/rootConfig/todoOptionList.js +401 -403
  168. package/lib/theme/bin/default/modalWidth.js +1 -2
  169. package/lib/theme/index.js +19 -22
  170. package/lib/theme/src/default/index.js +7 -7
  171. package/lib/theme/utils/renderColors.js +1 -1
  172. package/lib/utils/cookieUtil.js +1 -2
  173. package/lib/utils/img.js +2 -3
  174. package/lib/utils/url.js +13 -16
  175. package/package.json +3 -4
@@ -3,14 +3,19 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
3
3
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
4
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
5
5
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
7
- import { getSystemTodoActionList } from '../todoActionList';
6
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
+ import { getSystemTodoActionList } from "../todoActionList";
8
+ var MOBILE_MODAL_LOCALE_PREFIX = 'mobile.modal';
9
+ var localeKey = function localeKey(suffix) {
10
+ return "".concat(MOBILE_MODAL_LOCALE_PREFIX, ".").concat(suffix);
11
+ };
8
12
  export default {
9
13
  compLib: 'root',
10
14
  compType: -1,
15
+ // 根节点
11
16
  isBusiObjContainer: false,
12
17
  isContainer: false,
13
- label: '弹窗',
18
+ label: localeKey('label'),
14
19
  props: {
15
20
  width: '50vw',
16
21
  height: '50vh',
@@ -21,10 +26,10 @@ export default {
21
26
  destroyOnClose: true,
22
27
  showCloseButton: true,
23
28
  compState: [{
24
- name: '业务主键',
29
+ name: localeKey('props.compState.0.name'),
25
30
  code: 'bizId'
26
31
  }, {
27
- name: '业务场景',
32
+ name: localeKey('props.compState.1.name'),
28
33
  code: 'sceneCode'
29
34
  }]
30
35
  },
@@ -37,62 +42,62 @@ export default {
37
42
  groupsName: 'root',
38
43
  todoActionList: [].concat(_toConsumableArray(getSystemTodoActionList('mobile')), [{
39
44
  key: 'previewFile',
40
- label: '文件预览',
45
+ label: localeKey('todoActionList.previewFile.label'),
41
46
  todoOptions: [{
42
47
  key: 'fileId',
43
- label: '文件ID/URL',
48
+ label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
44
49
  type: 'SetExpression',
45
- labelTip: '文件预览格式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、js、doc、xlsx、docx、wps、ppt等 注意:如果是外部URL,有可能存在跨域现象!'
50
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
46
51
  }],
47
52
  classification: [{
48
- label: '页面类',
53
+ label: localeKey('todoActionList.previewFile.classification.page.label'),
49
54
  value: 'page'
50
55
  }]
51
56
  }]),
52
57
  todoEvents: [{
53
58
  value: 'useEffect',
54
- label: '弹窗打开后'
59
+ label: localeKey('todoEvents.useEffect.label')
55
60
  }, {
56
61
  value: 'stateChange',
57
- label: '组件状态变化后'
62
+ label: localeKey('todoEvents.stateChange.label')
58
63
  }, {
59
64
  value: 'usePageEndRequest',
60
- label: '页面加载请求结束',
65
+ label: localeKey('todoEvents.usePageEndRequest.label'),
61
66
  remarks: [{
62
- label: '场景描述',
63
- content: '在页面加载完成事件中,所有的事件执行结束后进行回掉(包含页面加载完成事件中的异步请求(注意:定时器相关动作不计算回掉时间))'
67
+ label: localeKey('todoEvents.usePageEndRequest.remarks.0.label'),
68
+ content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
64
69
  }, {
65
- label: '场景描述',
66
- content: '在页面加载完成事件中,所有的事件执行结束后进行回掉(包含页面加载完成事件中的异步请求(注意:定时器相关动作不计算回掉时间))'
70
+ label: localeKey('todoEvents.usePageEndRequest.remarks.1.label'),
71
+ content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
67
72
  }]
68
73
  }],
69
74
  todoProps: {
70
75
  pageName: {
71
- label: '名称',
76
+ label: localeKey('todoProps.pageName.label'),
72
77
  type: 'Input',
73
- groupsName: '基础',
78
+ groupsName: localeKey('todoProps.pageName.groupsName'),
74
79
  props: {
75
80
  required: true
76
81
  }
77
82
  },
78
83
  pagePath: {
79
- label: '路径',
84
+ label: localeKey('todoProps.pagePath.label'),
80
85
  type: 'UrlInput',
81
- groupsName: '基础',
86
+ groupsName: localeKey('todoProps.pagePath.groupsName'),
82
87
  props: {
83
88
  required: true,
84
- placeholder: '如:/user/list',
89
+ placeholder: localeKey('todoProps.pagePath.props.placeholder'),
85
90
  regex: {
86
91
  // eslint-disable-next-line
87
92
  pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
88
- message: '必须为/xx/yy/..格式'
93
+ message: localeKey('todoProps.pagePath.props.regex.message')
89
94
  }
90
95
  }
91
96
  },
92
97
  catalogItemId: {
93
- label: '分组',
98
+ label: localeKey('todoProps.catalogItemId.label'),
94
99
  type: 'CatalogTreeSelect',
95
- groupsName: '基础',
100
+ groupsName: localeKey('todoProps.catalogItemId.groupsName'),
96
101
  props: {
97
102
  required: true,
98
103
  options: [],
@@ -102,116 +107,116 @@ export default {
102
107
  }
103
108
  },
104
109
  scenarioList: {
105
- label: '适用场景',
110
+ label: localeKey('todoProps.scenarioList.label'),
106
111
  type: 'SelectScenarioPopover',
107
- groupsName: '基础',
112
+ groupsName: localeKey('todoProps.scenarioList.groupsName'),
108
113
  props: {
109
114
  options: []
110
115
  }
111
116
  },
112
117
  mode: {
113
- label: '弹出方向',
118
+ label: localeKey('todoProps.mode.label'),
114
119
  type: 'Select',
115
- groupsName: '基础',
120
+ groupsName: localeKey('todoProps.mode.groupsName'),
116
121
  props: {
117
122
  options: [{
118
- title: '',
123
+ title: localeKey('todoProps.mode.props.options.0.title'),
119
124
  value: 'alert'
120
125
  }, {
121
- title: '',
126
+ title: localeKey('todoProps.mode.props.options.1.title'),
122
127
  value: 'popup'
123
128
  }, {
124
- title: '',
129
+ title: localeKey('todoProps.mode.props.options.2.title'),
125
130
  value: 'dropdown'
126
131
  }, {
127
- title: '',
132
+ title: localeKey('todoProps.mode.props.options.3.title'),
128
133
  value: 'sliderLeft'
129
134
  }, {
130
- title: '',
135
+ title: localeKey('todoProps.mode.props.options.4.title'),
131
136
  value: 'sliderRight'
132
137
  }]
133
138
  }
134
139
  },
135
140
  width: {
136
- label: '宽度',
137
- groupsName: '基础',
141
+ label: localeKey('todoProps.width.label'),
142
+ groupsName: localeKey('todoProps.width.groupsName'),
138
143
  type: 'HeightInput',
139
144
  props: {
140
145
  dependProps: {
141
146
  mode: ['alert', 'sliderLeft', 'sliderRight']
142
147
  },
143
148
  option: [{
144
- label: 'px',
149
+ label: localeKey('todoProps.width.props.option.0.label'),
145
150
  value: 'px'
146
151
  }, {
147
- label: '%',
152
+ label: localeKey('todoProps.width.props.option.1.label'),
148
153
  value: '%'
149
154
  }, {
150
- label: 'vw',
155
+ label: localeKey('todoProps.width.props.option.2.label'),
151
156
  value: 'vw'
152
157
  }]
153
158
  }
154
159
  },
155
160
  height: {
156
- label: '高度',
157
- groupsName: '基础',
161
+ label: localeKey('todoProps.height.label'),
162
+ groupsName: localeKey('todoProps.height.groupsName'),
158
163
  type: 'HeightInput',
159
164
  props: {
160
165
  dependProps: {
161
166
  mode: ['alert', 'popup', 'dropdown']
162
167
  },
163
168
  option: [{
164
- label: 'px',
169
+ label: localeKey('todoProps.height.props.option.0.label'),
165
170
  value: 'px'
166
171
  }, {
167
- label: '%',
172
+ label: localeKey('todoProps.height.props.option.1.label'),
168
173
  value: '%'
169
174
  }, {
170
- label: 'vh',
175
+ label: localeKey('todoProps.height.props.option.2.label'),
171
176
  value: 'vh'
172
177
  }]
173
178
  }
174
179
  },
175
180
  closeOnClickOverlay: {
176
- label: '关闭方式',
181
+ label: localeKey('todoProps.closeOnClickOverlay.label'),
177
182
  type: 'Select',
178
- groupsName: '基础',
183
+ groupsName: localeKey('todoProps.closeOnClickOverlay.groupsName'),
179
184
  props: {
180
185
  inhibitBtn: true,
181
186
  options: [{
182
- title: '点击蒙罩关闭窗口',
187
+ title: localeKey('todoProps.closeOnClickOverlay.props.options.0.title'),
183
188
  value: true
184
189
  }, {
185
- title: '点击蒙罩不关闭窗口',
190
+ title: localeKey('todoProps.closeOnClickOverlay.props.options.1.title'),
186
191
  value: false
187
192
  }]
188
193
  }
189
194
  },
190
195
  destroyOnClose: {
191
- label: '隐藏销毁',
196
+ label: localeKey('todoProps.destroyOnClose.label'),
192
197
  type: 'Switch',
193
- groupsName: '基础'
198
+ groupsName: localeKey('todoProps.destroyOnClose.groupsName')
194
199
  },
195
200
  showCloseButton: {
196
- label: '关闭按钮',
201
+ label: localeKey('todoProps.showCloseButton.label'),
197
202
  type: 'Switch',
198
- groupsName: '基础'
203
+ groupsName: localeKey('todoProps.showCloseButton.groupsName')
199
204
  },
200
205
  ignoreLogin: {
201
- label: '免登录',
206
+ label: localeKey('todoProps.ignoreLogin.label'),
202
207
  type: 'Switch',
203
- groupsName: '基础',
208
+ groupsName: localeKey('todoProps.ignoreLogin.groupsName'),
204
209
  props: {}
205
210
  },
206
211
  labels: {
207
- label: '标签',
212
+ label: localeKey('todoProps.labels.label'),
208
213
  type: 'ChooseTag',
209
- groupsName: '基础'
214
+ groupsName: localeKey('todoProps.labels.groupsName')
210
215
  },
211
216
  compState: {
212
- label: '组件状态',
217
+ label: localeKey('todoProps.compState.label'),
213
218
  type: 'ParamsDefine',
214
- groupsName: '组件状态'
219
+ groupsName: localeKey('todoProps.compState.groupsName')
215
220
  }
216
221
  },
217
222
  todoStyles: {}
@@ -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;
@@ -3,28 +3,31 @@ 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 MOBILE_POPOVER_LOCALE_PREFIX = 'mobile.popover';
9
+ var localeKey = function localeKey(suffix) {
10
+ return "".concat(MOBILE_POPOVER_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
- pageLayout: 'BaseLayout',
16
20
  pageDynamicFlag: false,
17
21
  catalogItemId: -1,
18
22
  ignoreLogin: false,
19
- layout: 'BaseLayout',
20
23
  searchParams: [{
21
- name: '业务主键',
24
+ name: localeKey('props.searchParams.0.name'),
22
25
  code: 'bizId'
23
26
  }, {
24
- name: '业务场景',
27
+ name: localeKey('props.searchParams.1.name'),
25
28
  code: 'sceneCode'
26
29
  }, {
27
- name: '业务数据',
30
+ name: localeKey('props.searchParams.2.name'),
28
31
  code: 'bizData'
29
32
  }]
30
33
  },
@@ -37,59 +40,59 @@ export default {
37
40
  groupsName: 'root',
38
41
  todoActionList: [].concat(_toConsumableArray(getSystemTodoActionList('mobile')), [{
39
42
  key: 'previewFile',
40
- label: '文件预览',
43
+ label: localeKey('todoActionList.previewFile.label'),
41
44
  todoOptions: [{
42
45
  key: 'fileId',
43
- label: '文件ID/URL',
46
+ label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
44
47
  type: 'SetExpression',
45
- labelTip: '文件预览格式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、js、doc、xlsx、docx、wps、ppt等 注意:如果是外部URL,有可能存在跨域现象!'
48
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
46
49
  }],
47
50
  classification: [{
48
- label: '页面类',
51
+ label: localeKey('todoActionList.previewFile.classification.page.label'),
49
52
  value: 'page'
50
53
  }]
51
54
  }]),
52
55
  todoEvents: [{
53
56
  value: 'stateChange',
54
- label: '组件状态变化后'
57
+ label: localeKey('todoEvents.stateChange.label')
55
58
  }, {
56
59
  value: 'usePageEndRequest',
57
- label: '页面加载请求结束',
60
+ label: localeKey('todoEvents.usePageEndRequest.label'),
58
61
  remarks: [{
59
- label: '场景描述',
60
- content: '在页面加载完成事件中,所有的事件执行结束后进行回掉(包含页面加载完成事件中的异步请求(注意:定时器相关动作不计算回掉时间))'
62
+ label: localeKey('todoEvents.usePageEndRequest.remarks.0.label'),
63
+ content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
61
64
  }, {
62
- label: '适用场景',
63
- content: '在复杂的表单页面中,你可以在页面加载完成事件中进行页面loading的动作设置,在页面加载完成请求结束事件中取消loading,保障在复杂请求中,因异步导致数据未能及时回填,用户提交错误数据问题。'
65
+ label: localeKey('todoEvents.usePageEndRequest.remarks.1.label'),
66
+ content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
64
67
  }]
65
68
  }],
66
69
  todoProps: {
67
70
  pageName: {
68
- label: '名称',
71
+ label: localeKey('todoProps.pageName.label'),
69
72
  type: 'Input',
70
- groupsName: '基础',
73
+ groupsName: localeKey('todoProps.pageName.groupsName'),
71
74
  props: {
72
75
  required: true
73
76
  }
74
77
  },
75
78
  pagePath: {
76
- label: '路径',
79
+ label: localeKey('todoProps.pagePath.label'),
77
80
  type: 'UrlInput',
78
- groupsName: '基础',
81
+ groupsName: localeKey('todoProps.pagePath.groupsName'),
79
82
  props: {
80
83
  required: true,
81
- placeholder: '如:/user/list',
84
+ placeholder: localeKey('todoProps.pagePath.props.placeholder'),
82
85
  regex: {
83
86
  // eslint-disable-next-line
84
87
  pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
85
- message: '必须为/xx/yy/..格式'
88
+ message: localeKey('todoProps.pagePath.props.regex.message')
86
89
  }
87
90
  }
88
91
  },
89
92
  catalogItemId: {
90
- label: '分组',
93
+ label: localeKey('todoProps.catalogItemId.label'),
91
94
  type: 'CatalogTreeSelect',
92
- groupsName: '基础',
95
+ groupsName: localeKey('todoProps.catalogItemId.groupsName'),
93
96
  props: {
94
97
  required: true,
95
98
  options: [],
@@ -99,26 +102,26 @@ export default {
99
102
  }
100
103
  },
101
104
  remark: {
102
- label: '描述',
105
+ label: localeKey('todoProps.remark.label'),
103
106
  type: 'Input',
104
- groupsName: '基础',
107
+ groupsName: localeKey('todoProps.remark.groupsName'),
105
108
  props: {}
106
109
  },
107
110
  ignoreLogin: {
108
- label: '免登录',
111
+ label: localeKey('todoProps.ignoreLogin.label'),
109
112
  type: 'Switch',
110
- groupsName: '基础',
113
+ groupsName: localeKey('todoProps.ignoreLogin.groupsName'),
111
114
  props: {}
112
115
  },
113
116
  labels: {
114
- label: '标签',
117
+ label: localeKey('todoProps.labels.label'),
115
118
  type: 'ChooseTag',
116
- groupsName: '基础'
119
+ groupsName: localeKey('todoProps.labels.groupsName')
117
120
  },
118
121
  compState: {
119
- label: '组件状态',
122
+ label: localeKey('todoProps.compState.label'),
120
123
  type: 'ParamsDefine',
121
- groupsName: '组件状态'
124
+ groupsName: localeKey('todoProps.compState.groupsName')
122
125
  }
123
126
  },
124
127
  todoStyles: {}
@@ -1,4 +1,4 @@
1
- export { default as BusiComp } from './BusiComp';
2
- export { default as MobileModal } from './MobileModal';
3
- export { default as MobilePopover } from './MobilePopover';
4
- export { default as Page } from './page';
1
+ export { default as BusiComp } from "./BusiComp";
2
+ export { default as MobileModal } from "./MobileModal";
3
+ export { default as MobilePopover } from "./MobilePopover";
4
+ export { default as Page } from "./page";
@@ -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: {