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

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