@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,39 +3,42 @@ 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_PAGE_LOCALE_PREFIX = 'mobile.page';
9
+ var localeKey = function localeKey(suffix) {
10
+ return "".concat(MOBILE_PAGE_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
23
  hideNavBar: false,
20
- layout: 'BaseLayout',
21
24
  searchParams: [{
22
- name: '业务主键',
25
+ name: localeKey('props.searchParams.0.name'),
23
26
  code: 'bizId'
24
27
  }, {
25
- name: '业务场景',
28
+ name: localeKey('props.searchParams.1.name'),
26
29
  code: 'sceneCode'
27
30
  }, {
28
- name: '业务数据',
31
+ name: localeKey('props.searchParams.2.name'),
29
32
  code: 'bizData'
30
33
  }],
31
34
  compState: [{
32
- name: '业务主键',
35
+ name: localeKey('props.compState.0.name'),
33
36
  code: 'bizId'
34
37
  }, {
35
- name: '业务场景',
38
+ name: localeKey('props.compState.1.name'),
36
39
  code: 'sceneCode'
37
40
  }, {
38
- name: '业务数据',
41
+ name: localeKey('props.compState.2.name'),
39
42
  code: 'bizData'
40
43
  }]
41
44
  },
@@ -48,100 +51,114 @@ export default {
48
51
  groupsName: 'root',
49
52
  todoActionList: [].concat(_toConsumableArray(getSystemTodoActionList('mobile')), [{
50
53
  key: 'previewFile',
51
- label: '文件预览',
54
+ label: localeKey('todoActionList.previewFile.label'),
52
55
  todoOptions: [{
53
56
  key: 'fileId',
54
- label: '文件ID/URL',
57
+ label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
55
58
  type: 'SetExpression',
56
- labelTip: '文件预览格式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、js、doc、xlsx、docx、wps、ppt等 注意:如果是外部URL,有可能存在跨域现象!'
59
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
57
60
  }],
58
61
  classification: [{
59
- label: '页面类',
62
+ label: localeKey('todoActionList.previewFile.classification.page.label'),
60
63
  value: 'page'
61
64
  }]
62
65
  }]),
63
66
  todoEvents: [{
64
67
  value: 'useEffect',
65
- label: '页面加载完成'
68
+ label: localeKey('todoEvents.useEffect.label')
66
69
  }, {
67
70
  value: 'stateChange',
68
- label: '组件状态变化后'
71
+ label: localeKey('todoEvents.stateChange.label')
69
72
  }, {
70
73
  value: 'willUnmount',
71
- label: '页面退出'
74
+ label: localeKey('todoEvents.willUnmount.label')
72
75
  }, {
73
76
  value: 'onLeftClick',
74
- label: '页面返回点击事件',
77
+ label: localeKey('todoEvents.onLeftClick.label'),
75
78
  terminal: ['mobile']
76
79
  }, {
77
80
  value: 'otherPageMessage',
78
- label: '接收页面信息',
81
+ label: localeKey('todoEvents.otherPageMessage.label'),
79
82
  terminal: ['mobile'],
80
83
  params: [{
81
- title: '接收数据信息',
84
+ title: localeKey('todoEvents.otherPageMessage.params.0.title'),
82
85
  name: 'p',
83
86
  value: '$p$'
84
87
  }]
85
88
  }, {
86
89
  value: 'onPageCacheRefresh',
87
- label: '页面缓存刷新',
90
+ label: localeKey('todoEvents.onPageCacheRefresh.label'),
88
91
  showRules: ['pageDynamicFlag'],
89
92
  dependProps: {
90
93
  pageDynamicFlag: true
91
94
  },
92
95
  params: [{
93
- title: '返回页面数据信息',
96
+ title: localeKey('todoEvents.onPageCacheRefresh.params.0.title'),
94
97
  name: 'pageBackData',
95
98
  value: '$pageBackData$'
96
99
  }]
97
100
  }, {
98
101
  value: 'usePageEndRequest',
99
- label: '页面加载请求结束',
102
+ label: localeKey('todoEvents.usePageEndRequest.label'),
100
103
  remarks: [{
101
- label: '场景描述',
102
- content: '在页面加载完成事件中,所有的事件执行结束后进行回掉(包含页面加载完成事件中的异步请求(注意:定时器相关动作不计算回掉时间))'
104
+ label: localeKey('todoEvents.usePageEndRequest.remarks.0.label'),
105
+ content: localeKey('todoEvents.usePageEndRequest.remarks.0.content')
103
106
  }, {
104
- label: '适用场景',
105
- content: '在复杂的表单页面中,你可以在页面加载完成事件中进行页面loading的动作设置,在页面加载完成请求结束事件中取消loading,保障在复杂请求中,因异步导致数据未能及时回填,用户提交错误数据问题。'
107
+ label: localeKey('todoEvents.usePageEndRequest.remarks.1.label'),
108
+ content: localeKey('todoEvents.usePageEndRequest.remarks.1.content')
109
+ }]
110
+ }, {
111
+ value: 'pageGetWeChatCode',
112
+ label: localeKey('todoEvents.pageGetWeChatCode.label'),
113
+ params: [{
114
+ title: localeKey('todoEvents.pageGetWeChatCode.params.0.title'),
115
+ name: 'resultObject',
116
+ value: '$resultObject$',
117
+ type: 'object',
118
+ description: localeKey('todoEvents.pageGetWeChatCode.params.0.description')
119
+ }],
120
+ remarks: [{
121
+ label: localeKey('todoEvents.pageGetWeChatCode.remarks.0.label'),
122
+ content: localeKey('todoEvents.pageGetWeChatCode.remarks.0.content')
106
123
  }]
107
124
  }],
108
125
  todoProps: {
109
126
  pageName: {
110
- label: '名称',
127
+ label: localeKey('todoProps.pageName.label'),
111
128
  type: 'Input',
112
- groupsName: '基础',
129
+ groupsName: localeKey('todoProps.pageName.groupsName'),
113
130
  props: {
114
131
  required: true
115
132
  }
116
133
  },
117
134
  pagePath: {
118
- label: '路径',
135
+ label: localeKey('todoProps.pagePath.label'),
119
136
  type: 'UrlInput',
120
- groupsName: '基础',
137
+ groupsName: localeKey('todoProps.pagePath.groupsName'),
121
138
  props: {
122
139
  required: true,
123
- placeholder: '如:/user/list',
140
+ placeholder: localeKey('todoProps.pagePath.props.placeholder'),
124
141
  regex: {
125
142
  // eslint-disable-next-line
126
143
  pattern: /^(\/[0-9A-Za-z]([_-]+[0-9A-Za-z]|[0-9A-Za-z])*)+$/i,
127
- message: '必须为/xx/yy/..格式'
144
+ message: localeKey('todoProps.pagePath.props.regex.message')
128
145
  }
129
146
  }
130
147
  },
131
148
  pageTitle: {
132
- label: '页面标题',
149
+ label: localeKey('todoProps.pageTitle.label'),
133
150
  type: 'Input',
134
- groupsName: '基础',
151
+ groupsName: localeKey('todoProps.pageTitle.groupsName'),
135
152
  istodoBind: true,
136
153
  props: {
137
- description: '适用场景:当前页面需要动态更改页面名称的时候,可通过表达式进行绑定。默认名称'
154
+ description: localeKey('todoProps.pageTitle.props.description')
138
155
  },
139
156
  enableI18n: true
140
157
  },
141
158
  catalogItemId: {
142
- label: '分组',
159
+ label: localeKey('todoProps.catalogItemId.label'),
143
160
  type: 'CatalogTreeSelect',
144
- groupsName: '基础',
161
+ groupsName: localeKey('todoProps.catalogItemId.groupsName'),
145
162
  props: {
146
163
  required: true,
147
164
  options: [],
@@ -151,94 +168,84 @@ export default {
151
168
  }
152
169
  },
153
170
  scenarioList: {
154
- label: '适用场景',
171
+ label: localeKey('todoProps.scenarioList.label'),
155
172
  type: 'SelectScenarioPopover',
156
- groupsName: '基础',
173
+ groupsName: localeKey('todoProps.scenarioList.groupsName'),
157
174
  props: {
158
175
  options: []
159
176
  }
160
177
  },
161
178
  remark: {
162
- label: '描述',
179
+ label: localeKey('todoProps.remark.label'),
163
180
  type: 'Input',
164
- groupsName: '基础',
181
+ groupsName: localeKey('todoProps.remark.groupsName'),
165
182
  props: {}
166
183
  },
167
184
  chooseFuncComp: {
168
- label: '功能组件',
185
+ label: localeKey('todoProps.chooseFuncComp.label'),
169
186
  type: 'FuncCompSelect',
170
- groupsName: '基础',
187
+ groupsName: localeKey('todoProps.chooseFuncComp.groupsName'),
171
188
  props: {}
172
189
  },
173
190
  ignoreLogin: {
174
- label: '免登录',
191
+ label: localeKey('todoProps.ignoreLogin.label'),
175
192
  type: 'Switch',
176
- groupsName: '基础',
193
+ groupsName: localeKey('todoProps.ignoreLogin.groupsName'),
177
194
  props: {}
178
195
  },
179
196
  pageDynamicFlag: {
180
- label: '页面缓存',
197
+ label: localeKey('todoProps.pageDynamicFlag.label'),
181
198
  type: 'Switch',
182
- groupsName: '基础',
199
+ groupsName: localeKey('todoProps.pageDynamicFlag.groupsName'),
183
200
  props: {
184
201
  required: false,
185
- description: '开启后页面将保活(重新打开页面将不会重新挂载,页面的数据将不会被销毁),可配合事件页面缓存清除自定义进行页面销毁'
202
+ description: localeKey('todoProps.pageDynamicFlag.props.description')
186
203
  }
187
204
  },
188
205
  isMenu: {
189
- label: '设置为菜单',
206
+ label: localeKey('todoProps.isMenu.label'),
190
207
  type: 'MenuSwitch',
191
- groupsName: '基础',
208
+ groupsName: localeKey('todoProps.isMenu.groupsName'),
192
209
  props: {
193
- description: '开启后预览页面将展示该菜单,在同步时也会将该页面当作菜单同步到基础门户'
210
+ description: localeKey('todoProps.isMenu.props.description')
194
211
  }
195
212
  },
196
213
  labels: {
197
- label: '标签',
214
+ label: localeKey('todoProps.labels.label'),
198
215
  type: 'ChooseTag',
199
- groupsName: '基础'
216
+ groupsName: localeKey('todoProps.labels.groupsName')
200
217
  },
201
218
  compState: {
202
- label: '组件状态',
219
+ label: localeKey('todoProps.compState.label'),
203
220
  type: 'ParamsDefine',
204
- groupsName: '组件状态'
221
+ groupsName: localeKey('todoProps.compState.groupsName')
205
222
  },
206
223
  searchParams: {
207
- label: 'url参数',
224
+ label: localeKey('todoProps.searchParams.label'),
208
225
  type: 'ParamsDefine',
209
- groupsName: 'URL参数'
210
- },
211
- // pageParams: {
212
- // label: '页面入参',
213
- // type: 'ParamsDefine',
214
- // groupsName: '页面入参',
215
- // },
216
- // publicState: {
217
- // label: '页面出参',
218
- // type: 'ParamsDefine',
219
- // groupsName: '页面出参',
220
- // },
226
+ groupsName: localeKey('todoProps.searchParams.groupsName')
227
+ },
221
228
  routerData: {
222
- label: '路由数据',
229
+ label: localeKey('todoProps.routerData.label'),
223
230
  type: 'ParamsDefine',
224
- groupsName: '路由数据'
231
+ groupsName: localeKey('todoProps.routerData.groupsName')
225
232
  },
226
233
  hideNavBar: {
227
- label: '隐藏导航条',
234
+ label: localeKey('todoProps.hideNavBar.label'),
228
235
  type: 'Switch',
229
- groupsName: '其他'
236
+ groupsName: localeKey('todoProps.hideNavBar.groupsName')
230
237
  }
231
238
  },
232
239
  todoStyles: {
233
240
  backgroundType: {
234
- groupsName: '导航栏背景',
235
- label: '填充类型',
241
+ groupsName: localeKey('todoStyles.backgroundType.groupsName'),
242
+ label: localeKey('todoStyles.backgroundType.label'),
236
243
  type: 'BackgroundType',
237
244
  props: {}
238
245
  },
239
246
  colorType: {
240
- groupsName: '标题&返回键颜色',
241
- label: '填充类型',
247
+ groupsName: localeKey('todoStyles.colorType.groupsName'),
248
+ label: localeKey('todoStyles.colorType.label'),
242
249
  type: 'BackgroundType',
243
250
  props: {}
244
251
  }
@@ -3,25 +3,30 @@ 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 BUSICOMP_LOCALE_PREFIX = 'pc.busiComp';
9
+ var localeKey = function localeKey(suffix) {
10
+ return "".concat(BUSICOMP_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
  objType: 'app',
16
21
  catalogItemId: -1,
17
22
  searchParams: [{
18
- name: '业务主键',
23
+ name: localeKey('props.searchParams.0.name'),
19
24
  code: 'bizId'
20
25
  }, {
21
- name: '业务场景',
26
+ name: localeKey('props.searchParams.1.name'),
22
27
  code: 'sceneCode'
23
28
  }, {
24
- name: '业务数据',
29
+ name: localeKey('props.searchParams.2.name'),
25
30
  code: 'bizData'
26
31
  }]
27
32
  },
@@ -32,98 +37,164 @@ export default {
32
37
  description: '',
33
38
  image: '',
34
39
  groupsName: 'root',
35
- todoActionList: [].concat(_toConsumableArray(getSystemTodoActionList('pc')), [{
40
+ todoActionList: [{
41
+ key: 'showMessage',
42
+ label: localeKey('todoActionList.showMessage.label'),
43
+ todoOptions: [{
44
+ key: 'type',
45
+ label: localeKey('todoActionList.showMessage.todoOptions.type.label'),
46
+ type: 'Select',
47
+ defaultValue: 'success',
48
+ props: {
49
+ options: [{
50
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.0.title'),
51
+ value: 'success'
52
+ }, {
53
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.1.title'),
54
+ value: 'info'
55
+ }, {
56
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.2.title'),
57
+ value: 'warn'
58
+ }, {
59
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.3.title'),
60
+ value: 'error'
61
+ }, {
62
+ title: localeKey('todoActionList.showMessage.todoOptions.type.props.options.4.title'),
63
+ value: 'loading'
64
+ }]
65
+ }
66
+ }, {
67
+ key: 'icon',
68
+ label: localeKey('todoActionList.showMessage.todoOptions.icon.label'),
69
+ type: 'ChooseIcon',
70
+ props: {
71
+ placeholder: localeKey('todoActionList.showMessage.todoOptions.icon.props.placeholder')
72
+ }
73
+ }, {
74
+ key: 'value',
75
+ label: localeKey('todoActionList.showMessage.todoOptions.value.label'),
76
+ type: 'SetExpression'
77
+ }, {
78
+ key: 'duration',
79
+ label: localeKey('todoActionList.showMessage.todoOptions.duration.label'),
80
+ type: 'InputNumber',
81
+ props: {
82
+ addonAfter: localeKey('todoActionList.showMessage.todoOptions.duration.props.addonAfter'),
83
+ step: '0.01',
84
+ formatter: function formatter(val) {
85
+ return val ? val.match(/^\d+(?:\.\d{0,2})?/) : undefined;
86
+ }
87
+ }
88
+ }, {
89
+ key: 'okText',
90
+ label: localeKey('todoActionList.showMessage.todoOptions.okText.label'),
91
+ type: 'Input'
92
+ }, {
93
+ key: 'cancelText',
94
+ label: localeKey('todoActionList.showMessage.todoOptions.cancelText.label'),
95
+ type: 'Input'
96
+ }],
97
+ todoCallbacks: ['callback1', 'callback2'],
98
+ classification: [{
99
+ label: localeKey('todoActionList.showMessage.classification.modal.label'),
100
+ value: 'modal'
101
+ }],
102
+ remarks: [{
103
+ label: localeKey('todoActionList.showMessage.remarks.0.label'),
104
+ content: localeKey('todoActionList.showMessage.remarks.0.content')
105
+ }]
106
+ }].concat(_toConsumableArray(getSystemTodoActionList('pc')), [{
36
107
  key: 'previewFile',
37
- label: '文件预览',
108
+ label: localeKey('todoActionList.previewFile.label'),
38
109
  todoOptions: [{
39
110
  key: 'fileId',
40
- label: '文件ID/URL',
111
+ label: localeKey('todoActionList.previewFile.todoOptions.fileId.label'),
41
112
  type: 'SetExpression',
42
- labelTip: '文件预览格式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、js、doc、xlsx、docx、wps、ppt等 注意:如果是外部URL,有可能存在跨域现象!'
113
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.fileId.labelTip')
43
114
  }, {
44
115
  key: 'viewMode',
45
- label: '预览方式',
116
+ label: localeKey('todoActionList.previewFile.todoOptions.viewMode.label'),
46
117
  type: 'RadioButton',
47
118
  defaultValue: 'popUp',
48
119
  props: {
49
120
  options: [{
50
- title: '页面弹窗',
121
+ title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.0.title'),
51
122
  value: 'popUp'
52
123
  }, {
53
- title: '新标签页',
124
+ title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.1.title'),
54
125
  value: 'newTab'
55
126
  }, {
56
- title: '新窗口',
127
+ title: localeKey('todoActionList.previewFile.todoOptions.viewMode.props.options.2.title'),
57
128
  value: 'window'
58
129
  }]
59
130
  }
60
131
  }, {
61
132
  key: 'modalWidth',
62
- label: '窗口宽度',
133
+ label: localeKey('todoActionList.previewFile.todoOptions.modalWidth.label'),
63
134
  type: 'SetExpression',
64
135
  defaultValue: '960',
65
136
  visibleFlag: 'viewMode',
66
- labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
137
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.modalWidth.labelTip'),
67
138
  visibleFlagValue: ['window']
68
139
  }, {
69
140
  key: 'modalHeight',
70
- label: '窗口高度',
141
+ label: localeKey('todoActionList.previewFile.todoOptions.modalHeight.label'),
71
142
  type: 'SetExpression',
72
143
  defaultValue: '648',
73
144
  visibleFlag: 'viewMode',
74
- labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
145
+ labelTip: localeKey('todoActionList.previewFile.todoOptions.modalHeight.labelTip'),
75
146
  visibleFlagValue: ['window']
76
147
  }],
77
148
  classification: [{
78
- label: '页面类',
149
+ label: localeKey('todoActionList.previewFile.classification.page.label'),
79
150
  value: 'page'
80
151
  }]
81
152
  }, {
82
153
  key: 'callNotStatedCustomFunc',
83
- label: '调用未声明自定义事件',
154
+ label: localeKey('todoActionList.callNotStatedCustomFunc.label'),
84
155
  todoOptions: [{
85
156
  key: 'funcName',
86
- label: '事件',
157
+ label: localeKey('todoActionList.callNotStatedCustomFunc.todoOptions.funcName.label'),
87
158
  type: 'SelectCompFunction',
88
159
  props: {
89
160
  titleLink: [{
90
- title: '刷新',
161
+ title: localeKey('todoActionList.callNotStatedCustomFunc.todoOptions.funcName.props.titleLink.0.title'),
91
162
  value: 'refresh',
92
163
  key: 'refresh'
93
164
  }]
94
165
  }
95
166
  }, {
96
167
  key: 'funcParams',
97
- label: '事件入参',
168
+ label: localeKey('todoActionList.callNotStatedCustomFunc.todoOptions.funcParams.label'),
98
169
  type: 'SetCustomParams',
99
170
  props: {}
100
171
  }],
101
172
  todoCallbacks: ['callback1', 'callback2'],
102
173
  classification: [{
103
- label: '数据通信',
174
+ label: localeKey('todoActionList.callNotStatedCustomFunc.classification.communicate.label'),
104
175
  value: 'communicate'
105
176
  }],
106
177
  // remarks: [{
107
- // label: '注意事项',
108
- // content: '选择的页面需要开启缓存(如:A页面跳转到B页面,B页面需要调用A页面的自定义事件,那么需要A页面需开启缓存);',
178
+ // label: localeKey('todoActionList.callNotStatedCustomFunc.remarks.0.label'),
179
+ // content: localeKey('todoActionList.callNotStatedCustomFunc.remarks.0.content'),
109
180
  // }],
110
181
  isAsync: true
111
182
  }]),
112
183
  todoEvents: [{
113
184
  value: 'onLoaded',
114
- label: '组件加载完成'
185
+ label: localeKey('todoEvents.onLoaded.label')
115
186
  }, {
116
187
  value: 'useEffect',
117
- label: '业务组件状态变化后'
188
+ label: localeKey('todoEvents.useEffect.label')
118
189
  }, {
119
190
  value: 'willUnmount',
120
- label: '组件卸载'
191
+ label: localeKey('todoEvents.willUnmount.label')
121
192
  }],
122
193
  todoProps: {
123
194
  pageName: {
124
- label: '名称',
195
+ label: localeKey('todoProps.pageName.label'),
125
196
  type: 'Input',
126
- groupsName: '基础',
197
+ groupsName: localeKey('todoProps.pageName.groupsName'),
127
198
  props: {
128
199
  required: true
129
200
  }
@@ -143,26 +214,26 @@ export default {
143
214
  // },
144
215
  // },
145
216
  catalogItemId: {
146
- label: '分组',
217
+ label: localeKey('todoProps.catalogItemId.label'),
147
218
  type: 'CatalogTreeSelect',
148
- groupsName: '基础',
219
+ groupsName: localeKey('todoProps.catalogItemId.groupsName'),
149
220
  props: {
150
221
  required: true,
151
222
  options: []
152
223
  }
153
224
  },
154
225
  compState: {
155
- label: '组件状态',
226
+ label: localeKey('todoProps.compState.label'),
156
227
  type: 'ParamsDefine',
157
- groupsName: '组件状态'
228
+ groupsName: localeKey('todoProps.compState.groupsName')
158
229
  },
159
230
  compFunc: {
160
- label: '方法',
231
+ label: localeKey('todoProps.compFunc.label'),
161
232
  type: 'ParamsDefine',
162
- groupsName: '方法',
233
+ groupsName: localeKey('todoProps.compFunc.groupsName'),
163
234
  props: {
164
- codeLabel: '方法编码',
165
- nameLabel: '方法名称'
235
+ codeLabel: localeKey('todoProps.compFunc.props.codeLabel'),
236
+ nameLabel: localeKey('todoProps.compFunc.props.nameLabel')
166
237
  }
167
238
  }
168
239
  // busiCompAttrList: {
@@ -171,6 +242,5 @@ export default {
171
242
  // groupsName: '基础',
172
243
  // },
173
244
  },
174
-
175
245
  todoStyles: {}
176
246
  };
@@ -9,7 +9,6 @@ declare const _default: {
9
9
  height: number;
10
10
  placement: string;
11
11
  footer: number;
12
- layout: string;
13
12
  closeOnClickOverlay: boolean;
14
13
  compState: {
15
14
  name: string;
@@ -78,21 +77,18 @@ declare const _default: {
78
77
  props: {};
79
78
  enableI18n: boolean;
80
79
  };
81
- width: {
80
+ placement: {
82
81
  label: string;
83
82
  type: string;
84
83
  groupsName: string;
85
84
  props: {
86
- dependProps: {
87
- placement: string[];
88
- };
89
85
  options: {
90
- value: number;
86
+ value: string;
91
87
  title: string;
92
88
  }[];
93
89
  };
94
90
  };
95
- height: {
91
+ width: {
96
92
  label: string;
97
93
  type: string;
98
94
  groupsName: string;
@@ -106,13 +102,16 @@ declare const _default: {
106
102
  }[];
107
103
  };
108
104
  };
109
- placement: {
105
+ height: {
110
106
  label: string;
111
107
  type: string;
112
108
  groupsName: string;
113
109
  props: {
110
+ dependProps: {
111
+ placement: string[];
112
+ };
114
113
  options: {
115
- value: string;
114
+ value: number;
116
115
  title: string;
117
116
  }[];
118
117
  };