@zat-design/sisyphus-react 3.1.5 → 3.2.0-beta.2

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 (256) hide show
  1. package/dist/index.esm.css +190 -265
  2. package/es/ProAction/index.js +7 -5
  3. package/es/ProAction/index.less +3 -2
  4. package/es/ProConfigProvider/index.d.ts +2 -0
  5. package/es/ProConfigProvider/index.js +23 -2
  6. package/es/ProDownload/utils.js +6 -3
  7. package/es/ProDrawerForm/components/ProDrawer/index.js +6 -4
  8. package/es/ProDrawerForm/index.js +5 -3
  9. package/es/ProDrawerForm/style/index.less +15 -11
  10. package/es/ProEditLabel/style/index.less +2 -2
  11. package/es/ProEditTable/components/ActionButton/index.js +3 -2
  12. package/es/ProEditTable/components/RenderField/index.js +2 -1
  13. package/es/ProEditTable/index.js +7 -6
  14. package/es/ProEditTable/style/index.less +15 -8
  15. package/es/ProEditTable/utils/config.d.ts +8 -8
  16. package/es/ProEditTable/utils/config.js +20 -12
  17. package/es/ProEditTable/utils/index.js +3 -2
  18. package/es/ProEnum/hooks/useEnumRequest.js +17 -10
  19. package/es/ProEnum/index.js +9 -4
  20. package/es/ProEnum/style/index.less +1 -1
  21. package/es/ProForm/components/FormFooter/index.js +16 -20
  22. package/es/ProForm/components/base/Input/index.js +4 -3
  23. package/es/ProForm/components/base/InputNumber/index.js +4 -3
  24. package/es/ProForm/components/base/RangePicker/index.js +0 -3
  25. package/es/ProForm/components/base/Select/index.js +2 -1
  26. package/es/ProForm/components/base/Switch/index.js +9 -5
  27. package/es/ProForm/components/base/SwitchCheckbox/index.js +2 -1
  28. package/es/ProForm/components/base/TextArea/index.js +4 -2
  29. package/es/ProForm/components/base/TextArea/index.less +1 -1
  30. package/es/ProForm/components/combination/Container/style/index.less +0 -1
  31. package/es/ProForm/components/combination/FormList/components/ActionButton.js +13 -17
  32. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -1
  33. package/es/ProForm/components/combination/FormList/style/index.less +20 -19
  34. package/es/ProForm/components/combination/Group/index.js +2 -2
  35. package/es/ProForm/components/combination/ProAddressBar/index.js +83 -63
  36. package/es/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
  37. package/es/ProForm/components/combination/ProModalSelect/index.js +76 -15
  38. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
  39. package/es/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
  40. package/es/ProForm/components/combination/ProNumberRange/index.js +3 -2
  41. package/es/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
  42. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
  43. package/es/ProForm/components/combination/ProRangeLimit/index.js +3 -7
  44. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
  45. package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -11
  46. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +18 -1
  47. package/es/ProForm/components/old/EnumSelect/style/index.less +7 -8
  48. package/es/ProForm/components/render/Render.js +4 -2
  49. package/es/ProForm/components/render/RenderFields.js +10 -6
  50. package/es/ProForm/components/render/propsType.d.ts +5 -4
  51. package/es/ProForm/index.js +14 -2
  52. package/es/ProForm/style/index.less +76 -168
  53. package/es/ProForm/utils/index.d.ts +1 -1
  54. package/es/ProForm/utils/index.js +7 -2
  55. package/es/ProForm/utils/rulesCreator.js +2 -1
  56. package/es/ProForm/utils/useRules.js +4 -3
  57. package/es/ProForm/utils/useShouldUpdate.js +16 -16
  58. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +6 -0
  59. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +7 -8
  60. package/es/ProLayout/components/Layout/Notice/index.js +3 -2
  61. package/es/ProLayout/components/ProCollapse/style/index.less +4 -4
  62. package/es/ProLayout/components/ProHeader/components/Copy/index.js +2 -1
  63. package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +2 -1
  64. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
  65. package/es/ProLayout/components/ProHeader/components/index.d.ts +1 -0
  66. package/es/ProLayout/components/ProHeader/components/index.js +2 -1
  67. package/es/ProLayout/components/ProHeader/index.js +9 -6
  68. package/es/ProLayout/components/ProHeader/style/index.less +16 -7
  69. package/es/ProLayout/utils/index.js +1 -1
  70. package/es/ProSelect/index.d.ts +3 -3
  71. package/es/ProSelect/index.js +4 -2
  72. package/es/ProStep/components/Step/index.js +3 -1
  73. package/es/ProStep/style/index.less +0 -1
  74. package/es/ProTable/components/RenderColumn/index.d.ts +5 -5
  75. package/es/ProTable/components/RenderColumn/index.js +41 -25
  76. package/es/ProTable/index.js +10 -8
  77. package/es/ProTable/propsType.d.ts +2 -0
  78. package/es/ProTable/style/index.less +14 -1
  79. package/es/ProTable/useAntdTable.d.ts +12 -4
  80. package/es/ProTable/useAntdTable.js +18 -6
  81. package/es/ProTable/utils.d.ts +1 -1
  82. package/es/ProTable/utils.js +258 -201
  83. package/es/ProTabs/style/index.less +1 -1
  84. package/es/ProThemeTools/component/PrdTools/index.js +1 -1
  85. package/es/ProThemeTools/component/PrdTools/style/index.less +3 -3
  86. package/es/ProThemeTools/index.d.ts +2 -2
  87. package/es/ProThemeTools/index.js +24 -17
  88. package/es/ProThemeTools/propsType.d.ts +8 -6
  89. package/es/ProThemeTools/style/index.less +2 -2
  90. package/es/ProThemeTools/utils/index.d.ts +7 -0
  91. package/es/ProThemeTools/utils/index.js +19 -1
  92. package/es/ProTree/components/ProTree.js +6 -5
  93. package/es/ProTree/components/SearchTitle.d.ts +2 -2
  94. package/es/ProTree/components/SearchTitle.js +11 -1
  95. package/es/ProTree/components/Tree.js +9 -2
  96. package/es/ProTree/style/index.less +194 -142
  97. package/es/ProTreeModal/components/List.js +0 -14
  98. package/es/ProTreeModal/components/Trigger.js +9 -3
  99. package/es/ProTreeModal/index.js +29 -13
  100. package/es/ProTreeModal/style/index.less +15 -19
  101. package/es/ProUpload/components/ButtonRender.js +5 -2
  102. package/es/ProUpload/components/DragRender.js +8 -8
  103. package/es/ProUpload/components/Example.js +3 -1
  104. package/es/ProUpload/components/ImageRender.js +8 -6
  105. package/es/ProUpload/index.js +8 -6
  106. package/es/ProUpload/style/index.less +41 -39
  107. package/es/index.d.ts +2 -1
  108. package/es/index.js +2 -1
  109. package/es/locale/en_US.d.ts +138 -0
  110. package/es/locale/en_US.js +137 -0
  111. package/es/locale/index.d.ts +13 -0
  112. package/es/locale/index.js +32 -0
  113. package/es/locale/zh_CN.d.ts +137 -0
  114. package/es/locale/zh_CN.js +136 -0
  115. package/es/old/ProEditableTable/style/index.less +1 -2
  116. package/es/style/components.less +0 -1
  117. package/es/style/core/normalize.less +1 -2
  118. package/es/style/theme/antd.less +3 -4
  119. package/es/style/theme/index.less +80 -79
  120. package/es/style/theme/tokens.less +1 -0
  121. package/lib/ProAction/index.js +7 -5
  122. package/lib/ProAction/index.less +3 -2
  123. package/lib/ProConfigProvider/index.d.ts +2 -0
  124. package/lib/ProConfigProvider/index.js +22 -2
  125. package/lib/ProDownload/utils.js +4 -3
  126. package/lib/ProDrawerForm/components/ProDrawer/index.js +6 -4
  127. package/lib/ProDrawerForm/index.js +5 -3
  128. package/lib/ProDrawerForm/style/index.less +15 -11
  129. package/lib/ProEditLabel/style/index.less +2 -2
  130. package/lib/ProEditTable/components/ActionButton/index.js +3 -2
  131. package/lib/ProEditTable/components/RenderField/index.js +4 -1
  132. package/lib/ProEditTable/index.js +7 -6
  133. package/lib/ProEditTable/style/index.less +15 -8
  134. package/lib/ProEditTable/utils/config.d.ts +8 -8
  135. package/lib/ProEditTable/utils/config.js +20 -12
  136. package/lib/ProEditTable/utils/index.js +3 -2
  137. package/lib/ProEnum/hooks/useEnumRequest.js +17 -10
  138. package/lib/ProEnum/index.js +9 -4
  139. package/lib/ProEnum/style/index.less +1 -1
  140. package/lib/ProForm/components/FormFooter/index.js +16 -19
  141. package/lib/ProForm/components/base/Input/index.js +4 -3
  142. package/lib/ProForm/components/base/InputNumber/index.js +4 -3
  143. package/lib/ProForm/components/base/RangePicker/index.js +1 -4
  144. package/lib/ProForm/components/base/Select/index.js +2 -1
  145. package/lib/ProForm/components/base/Switch/index.js +8 -5
  146. package/lib/ProForm/components/base/SwitchCheckbox/index.js +2 -1
  147. package/lib/ProForm/components/base/TextArea/index.js +4 -2
  148. package/lib/ProForm/components/base/TextArea/index.less +1 -1
  149. package/lib/ProForm/components/combination/Container/style/index.less +0 -1
  150. package/lib/ProForm/components/combination/FormList/components/ActionButton.js +13 -17
  151. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -1
  152. package/lib/ProForm/components/combination/FormList/style/index.less +20 -19
  153. package/lib/ProForm/components/combination/Group/index.js +2 -2
  154. package/lib/ProForm/components/combination/ProAddressBar/index.js +78 -60
  155. package/lib/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
  156. package/lib/ProForm/components/combination/ProModalSelect/index.js +76 -15
  157. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
  158. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
  159. package/lib/ProForm/components/combination/ProNumberRange/index.js +3 -2
  160. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
  161. package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
  162. package/lib/ProForm/components/combination/ProRangeLimit/index.js +3 -7
  163. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
  164. package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -11
  165. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +18 -1
  166. package/lib/ProForm/components/old/EnumSelect/style/index.less +7 -8
  167. package/lib/ProForm/components/old/InputRange/index.js +0 -1
  168. package/lib/ProForm/components/old/ProCertValidity/index.js +1 -1
  169. package/lib/ProForm/components/render/Render.js +5 -2
  170. package/lib/ProForm/components/render/RenderFields.js +9 -5
  171. package/lib/ProForm/components/render/propsType.d.ts +5 -4
  172. package/lib/ProForm/index.js +14 -2
  173. package/lib/ProForm/style/index.less +76 -168
  174. package/lib/ProForm/utils/index.d.ts +1 -1
  175. package/lib/ProForm/utils/index.js +7 -2
  176. package/lib/ProForm/utils/rulesCreator.js +2 -1
  177. package/lib/ProForm/utils/useRules.js +4 -3
  178. package/lib/ProForm/utils/useShouldUpdate.js +16 -16
  179. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +6 -0
  180. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +7 -8
  181. package/lib/ProLayout/components/Layout/Notice/index.js +3 -2
  182. package/lib/ProLayout/components/ProCollapse/style/index.less +4 -4
  183. package/lib/ProLayout/components/ProHeader/components/Copy/index.js +2 -1
  184. package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +3 -1
  185. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
  186. package/lib/ProLayout/components/ProHeader/components/index.d.ts +1 -0
  187. package/lib/ProLayout/components/ProHeader/components/index.js +8 -1
  188. package/lib/ProLayout/components/ProHeader/index.js +9 -6
  189. package/lib/ProLayout/components/ProHeader/style/index.less +16 -7
  190. package/lib/ProLayout/utils/index.js +1 -1
  191. package/lib/ProSelect/index.d.ts +3 -3
  192. package/lib/ProSelect/index.js +4 -2
  193. package/lib/ProStep/components/Step/index.js +3 -1
  194. package/lib/ProStep/style/index.less +0 -1
  195. package/lib/ProTable/components/RenderColumn/index.d.ts +5 -5
  196. package/lib/ProTable/components/RenderColumn/index.js +38 -24
  197. package/lib/ProTable/components/TableResizable/index.js +8 -0
  198. package/lib/ProTable/index.js +10 -8
  199. package/lib/ProTable/propsType.d.ts +2 -0
  200. package/lib/ProTable/style/index.less +14 -1
  201. package/lib/ProTable/useAntdTable.d.ts +12 -4
  202. package/lib/ProTable/useAntdTable.js +19 -6
  203. package/lib/ProTable/utils.d.ts +1 -1
  204. package/lib/ProTable/utils.js +258 -201
  205. package/lib/ProTabs/index.js +1 -0
  206. package/lib/ProTabs/style/index.less +1 -1
  207. package/lib/ProThemeTools/component/PrdTools/index.js +1 -1
  208. package/lib/ProThemeTools/component/PrdTools/style/index.less +3 -3
  209. package/lib/ProThemeTools/index.d.ts +2 -2
  210. package/lib/ProThemeTools/index.js +24 -16
  211. package/lib/ProThemeTools/propsType.d.ts +8 -6
  212. package/lib/ProThemeTools/style/index.less +2 -2
  213. package/lib/ProThemeTools/utils/index.d.ts +7 -0
  214. package/lib/ProThemeTools/utils/index.js +20 -2
  215. package/lib/ProTree/components/ProTree.js +6 -5
  216. package/lib/ProTree/components/SearchTitle.d.ts +2 -2
  217. package/lib/ProTree/components/SearchTitle.js +11 -1
  218. package/lib/ProTree/components/Tree.js +16 -2
  219. package/lib/ProTree/index.js +0 -1
  220. package/lib/ProTree/style/index.less +194 -142
  221. package/lib/ProTreeModal/components/List.js +0 -14
  222. package/lib/ProTreeModal/components/Tree.js +1 -0
  223. package/lib/ProTreeModal/components/Trigger.js +10 -3
  224. package/lib/ProTreeModal/index.js +29 -13
  225. package/lib/ProTreeModal/style/index.less +15 -19
  226. package/lib/ProUpload/components/ButtonRender.js +5 -2
  227. package/lib/ProUpload/components/DragRender.js +8 -8
  228. package/lib/ProUpload/components/Example.js +3 -1
  229. package/lib/ProUpload/components/ImageRender.js +8 -6
  230. package/lib/ProUpload/index.js +14 -5
  231. package/lib/ProUpload/style/index.less +41 -39
  232. package/lib/index.d.ts +2 -1
  233. package/lib/index.js +13 -1
  234. package/lib/locale/en_US.d.ts +138 -0
  235. package/lib/locale/en_US.js +143 -0
  236. package/lib/locale/index.d.ts +13 -0
  237. package/lib/locale/index.js +41 -0
  238. package/lib/locale/zh_CN.d.ts +137 -0
  239. package/lib/locale/zh_CN.js +142 -0
  240. package/lib/old/ProCertValidity/index.js +1 -1
  241. package/lib/old/ProEditableTable/style/index.less +1 -2
  242. package/lib/style/components.less +0 -1
  243. package/lib/style/core/normalize.less +1 -2
  244. package/lib/style/theme/antd.less +3 -4
  245. package/lib/style/theme/index.less +80 -79
  246. package/lib/style/theme/tokens.less +1 -0
  247. package/package.json +1 -1
  248. package/typings.d.ts +2 -0
  249. package/es/old/ProBackBtn/style/index.less +0 -19
  250. package/lib/old/ProBackBtn/style/index.less +0 -19
  251. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
  252. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
  253. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
  254. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
  255. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
  256. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
@@ -20,12 +20,13 @@ import { ProDrawerForm, useProConfig } from '../index';
20
20
  import { Trigger, ListView, TreeView, Cascader } from './components';
21
21
  import { getFlatTreeData, filterCheckedNodes, getChildrenKeys, findTreeNodeByKey, getAllKeys, transformMessage } from './utils';
22
22
  import searchSVG from '../assets/input-search.svg';
23
+ import locale, { formatMessage } from '../locale';
23
24
  import './style/index.less';
24
25
  var LIST = 'LIST';
25
26
  var TREE = 'TREE';
26
27
  export var CASCADER = 'CASCADER';
27
28
  var ProTreeModal = function ProTreeModal(props) {
28
- var _props$otherProps, _props$otherProps2;
29
+ var _locale$ProTreeModal, _props$otherProps, _props$otherProps2, _locale$ProTreeModal9, _locale$ProTreeModal10, _locale$ProTreeModal11, _locale$ProTreeModal12;
29
30
  var _useProConfig = useProConfig('ProEnum'),
30
31
  _useProConfig$dics = _useProConfig.dics,
31
32
  dics = _useProConfig$dics === void 0 ? {} : _useProConfig$dics;
@@ -39,7 +40,7 @@ var ProTreeModal = function ProTreeModal(props) {
39
40
  mode = _props$mode === void 0 ? 'tree' : _props$mode,
40
41
  enumCode = props.code,
41
42
  _props$title = props.title,
42
- title = _props$title === void 0 ? '请选择' : _props$title,
43
+ title = _props$title === void 0 ? locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal = locale.ProTreeModal) === null || _locale$ProTreeModal === void 0 ? void 0 : _locale$ProTreeModal.select : _props$title,
43
44
  useRequest = props.useRequest,
44
45
  allValue = props.allValue,
45
46
  _props$showCodeName = props.showCodeName,
@@ -126,7 +127,8 @@ var ProTreeModal = function ProTreeModal(props) {
126
127
  }
127
128
  // check dictEnum isArray
128
129
  if (!dictEnum || !Array.isArray(dictEnum)) {
129
- console.error('请返回有效的数组');
130
+ var _locale$ProTreeModal2;
131
+ console.error(locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal2 = locale.ProTreeModal) === null || _locale$ProTreeModal2 === void 0 ? void 0 : _locale$ProTreeModal2.errorArrayMessage);
130
132
  dictEnum = [];
131
133
  }
132
134
  setState({
@@ -234,7 +236,10 @@ var ProTreeModal = function ProTreeModal(props) {
234
236
  }
235
237
  if (min) {
236
238
  if (values.length < min) {
237
- _message.error("\u6700\u5C11\u9009\u62E9".concat(min, "\u4E2A"));
239
+ var _locale$ProTreeModal3;
240
+ _message.error(formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal3 = locale.ProTreeModal) === null || _locale$ProTreeModal3 === void 0 ? void 0 : _locale$ProTreeModal3.selectMin, {
241
+ min: min
242
+ }));
238
243
  return;
239
244
  }
240
245
  }
@@ -299,9 +304,12 @@ var ProTreeModal = function ProTreeModal(props) {
299
304
  checkedValues.push(code);
300
305
  }
301
306
  if (max && checkedValues.length > max) {
307
+ var _locale$ProTreeModal4;
302
308
  _message.error(maxMessage ? transformMessage({
303
309
  max: max
304
- }, maxMessage) : "\u6700\u591A\u9009\u62E9".concat(max, "\u4E2A"));
310
+ }, maxMessage) : formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal4 = locale.ProTreeModal) === null || _locale$ProTreeModal4 === void 0 ? void 0 : _locale$ProTreeModal4.selectMax, {
311
+ max: max
312
+ }));
305
313
  return;
306
314
  }
307
315
  setState({
@@ -361,9 +369,12 @@ var ProTreeModal = function ProTreeModal(props) {
361
369
  });
362
370
  }
363
371
  if (max && checkedValues.length > max) {
372
+ var _locale$ProTreeModal5;
364
373
  _message.error(maxMessage ? transformMessage({
365
374
  max: max
366
- }, maxMessage) : "\u6700\u591A\u9009\u62E9".concat(max, "\u4E2A"));
375
+ }, maxMessage) : formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal5 = locale.ProTreeModal) === null || _locale$ProTreeModal5 === void 0 ? void 0 : _locale$ProTreeModal5.selectMax, {
376
+ max: max
377
+ }));
367
378
  return;
368
379
  }
369
380
  setState({
@@ -501,9 +512,12 @@ var ProTreeModal = function ProTreeModal(props) {
501
512
  }
502
513
  }
503
514
  if (max && checkedValues.length > max) {
515
+ var _locale$ProTreeModal6;
504
516
  _message.error(maxMessage ? transformMessage({
505
517
  max: max
506
- }, maxMessage) : "\u6700\u591A\u9009\u62E9".concat(max, "\u4E2A"));
518
+ }, maxMessage) : formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal6 = locale.ProTreeModal) === null || _locale$ProTreeModal6 === void 0 ? void 0 : _locale$ProTreeModal6.selectMax, {
519
+ max: max
520
+ }));
507
521
  return;
508
522
  }
509
523
  setState({
@@ -518,9 +532,10 @@ var ProTreeModal = function ProTreeModal(props) {
518
532
  */
519
533
  var renderContainer = function renderContainer() {
520
534
  if (state.treeData.length === 0 && state.searchStr) {
535
+ var _locale$ProTreeModal7;
521
536
  return _jsx("div", {
522
537
  className: "pro-tree-modal-no-checks",
523
- children: "\u8BF6\u5440\uFF0C\u6CA1\u6709\u627E\u5230\u60A8\u8981\u67E5\u8BE2\u7684\u5185\u5BB9"
538
+ children: locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal7 = locale.ProTreeModal) === null || _locale$ProTreeModal7 === void 0 ? void 0 : _locale$ProTreeModal7.noFinal
524
539
  });
525
540
  }
526
541
  switch (modeType) {
@@ -596,9 +611,10 @@ var ProTreeModal = function ProTreeModal(props) {
596
611
  */
597
612
  var renderView = function renderView() {
598
613
  if (state.checkedValues.length === 0) {
614
+ var _locale$ProTreeModal8;
599
615
  return _jsx("div", {
600
616
  className: "pro-tree-modal-no-checks",
601
- children: "\u6682\u65E0\u5DF2\u9009"
617
+ children: locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal8 = locale.ProTreeModal) === null || _locale$ProTreeModal8 === void 0 ? void 0 : _locale$ProTreeModal8.noCheck
602
618
  });
603
619
  }
604
620
  switch (modeType) {
@@ -654,7 +670,7 @@ var ProTreeModal = function ProTreeModal(props) {
654
670
  checked: state.checkAll,
655
671
  disabled: disabled,
656
672
  onChange: handleAllCheck,
657
- children: "\u5168\u9009"
673
+ children: locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal9 = locale.ProTreeModal) === null || _locale$ProTreeModal9 === void 0 ? void 0 : _locale$ProTreeModal9.checkAll
658
674
  }) : null,
659
675
  children: _jsxs("div", {
660
676
  className: "pro-tree-modal-content",
@@ -664,7 +680,7 @@ var ProTreeModal = function ProTreeModal(props) {
664
680
  disabled: disabled,
665
681
  allowClear: true,
666
682
  value: state.searchStr,
667
- placeholder: placeholder || '请输入',
683
+ placeholder: placeholder || (locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal10 = locale.ProTreeModal) === null || _locale$ProTreeModal10 === void 0 ? void 0 : _locale$ProTreeModal10.input),
668
684
  className: "pro-tree-modal-search",
669
685
  onChange: onSearch,
670
686
  prefix: _jsx(ReactSVG, {
@@ -680,12 +696,12 @@ var ProTreeModal = function ProTreeModal(props) {
680
696
  children: [_jsxs("div", {
681
697
  className: "pro-tree-modal-box-header",
682
698
  children: [_jsxs("span", {
683
- children: ["\u5DF2\u9009 (", state.checkedValues.length, "/", max || state.flatTreeData.length, ")"]
699
+ children: [locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal11 = locale.ProTreeModal) === null || _locale$ProTreeModal11 === void 0 ? void 0 : _locale$ProTreeModal11.check, " (", state.checkedValues.length, "/", max || state.flatTreeData.length, ")"]
684
700
  }), _jsx(_Button, {
685
701
  disabled: disabled,
686
702
  type: "link",
687
703
  onClick: handleClearAll,
688
- children: "\u6E05\u7A7A\u5168\u90E8"
704
+ children: locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal12 = locale.ProTreeModal) === null || _locale$ProTreeModal12 === void 0 ? void 0 : _locale$ProTreeModal12.clearAll
689
705
  })]
690
706
  }), _jsx("div", {
691
707
  className: "pro-tree-modal-tree-warp pro-transfer-right",
@@ -11,15 +11,15 @@
11
11
  display : flex;
12
12
  flex-direction: row;
13
13
  height : 482px;
14
- margin-bottom : var(--zaui-space-size-md, 16px);
14
+ margin-bottom : calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
15
15
 
16
16
  .ant-tree-checkbox {
17
17
  margin-top: 2px;
18
18
  }
19
19
 
20
20
  .ant-tree-switcher {
21
- width : var(--zaui-font-size-xxl, 20px);
22
- line-height: var(--zaui-font-size-xxl, 20px);
21
+ width : 20px;
22
+ line-height: 20px;
23
23
  }
24
24
 
25
25
  .ant-tree-treenode {
@@ -28,13 +28,12 @@
28
28
  padding-bottom: var(--zaui-font-size-sm, 12px);
29
29
  color : var(--zaui-text);
30
30
  font-size : var(--zaui-font-size, 14px);
31
- font-family : PingFangSC-Regular, PingFang SC;
32
- line-height : var(--zaui-font-size-xxl, 20px);
31
+ line-height : 20px;
33
32
  }
34
33
 
35
34
  .ant-tree-node-content-wrapper {
36
- min-height : var(--zaui-font-size-xxl, 20px);
37
- line-height: var(--zaui-font-size-xxl, 20px);
35
+ min-height : 20px;
36
+ line-height: 20px;
38
37
  }
39
38
 
40
39
  .ant-tree-node-content-wrapper {
@@ -49,8 +48,7 @@
49
48
  height : 100%;
50
49
  color : var(--zaui-text);
51
50
  font-size : var(--zaui-font-size, 14px);
52
- font-family : PingFangSC-Regular, PingFang SC;
53
- line-height : var(--zaui-font-size-xxl, 20px);
51
+ line-height : 20px;
54
52
  border : 1px solid #e6e6e6;
55
53
  border-radius : var(--zaui-border-radius, 4px);
56
54
 
@@ -132,8 +130,8 @@
132
130
  flex-direction : row;
133
131
  align-items : center;
134
132
  justify-content: space-between;
135
- margin-bottom : var(--zaui-font-size-sm, 12px);
136
- line-height : var(--zaui-font-size-xxl, 20px);
133
+ margin-bottom : calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
134
+ line-height : 20px;
137
135
  cursor : pointer;
138
136
 
139
137
  &-look {
@@ -190,18 +188,17 @@
190
188
  display : flex;
191
189
  align-items : center;
192
190
  justify-content: center;
193
- height : var(--zaui-font-size-xxl, 20px);
191
+ height : 20px;
194
192
  margin-right : var(--zaui-space-size-sm, 8px);
195
193
  padding : 0 var(--zaui-space-size-xs);
196
194
  font-weight : 400;
197
- font-family : PingFangSC-Regular, PingFang SC;
198
- line-height : var(--zaui-font-size-lg-title);
195
+ line-height : 24px;
199
196
  white-space : nowrap;
200
197
  border-radius : var(--zaui-border-radius-card);
201
198
 
202
199
  span {
203
200
  font-size : var(--zaui-font-size-sm, 12px);
204
- line-height: var(--zaui-font-size-xxl, 20px);
201
+ line-height: 20px;
205
202
  text-align : center;
206
203
  transform : scale(0.83, 0.83);
207
204
  }
@@ -216,7 +213,6 @@
216
213
  color : #939599;
217
214
  font-weight : 400;
218
215
  font-size : var(--zaui-font-size, 14px);
219
- font-family : PingFangSC-Regular, PingFang SC;
220
216
  }
221
217
 
222
218
  .pro-transfer-right {
@@ -232,7 +228,7 @@
232
228
  align-items : center;
233
229
  justify-content: space-between;
234
230
  width : 100%;
235
- height : var(--zaui-space-size-lg, 32px);
231
+ height : 32px;
236
232
  padding : 2px var(--zaui-space-size-sm, 8px);
237
233
  color : var(--zaui-text, #343434);
238
234
  font-size : var(--zaui-font-size, 14px);
@@ -241,7 +237,7 @@
241
237
  border-radius : var(--zaui-border-radius, 4px);
242
238
 
243
239
  .drag-icon {
244
- height : var(--zaui-font-size-xxl, 20px);
240
+ height : 20px;
245
241
  margin-right: var(--zaui-space-size-xs, 4px);
246
242
  cursor : move;
247
243
  }
@@ -252,7 +248,7 @@
252
248
  }
253
249
 
254
250
  .disabled-icon {
255
- height : var(--zaui-font-size-xxl, 20px);
251
+ height : 20px;
256
252
  margin-right: var(--zaui-space-size-xs, 4px);
257
253
  }
258
254
 
@@ -9,8 +9,10 @@ import { SortableContext, rectSortingStrategy } from '@dnd-kit/sortable';
9
9
  import { CloudUploadOutlined } from '@ant-design/icons';
10
10
  import { FileItem } from './FileItem';
11
11
  import { DraggableUploadListItem } from './DraggableUploadListItem';
12
+ import locale from '../../locale';
12
13
  /* 按钮类型 */
13
14
  var ButtonRender = function ButtonRender(props) {
15
+ var _locale$ProUpload;
14
16
  var isView = props.isView,
15
17
  disabled = props.disabled,
16
18
  sensor = props.sensor,
@@ -22,7 +24,8 @@ var ButtonRender = function ButtonRender(props) {
22
24
  buttonProps = props.buttonProps,
23
25
  extraTipText = props.extraTipText,
24
26
  afterRender = props.afterRender,
25
- buttonText = props.buttonText;
27
+ _props$buttonText = props.buttonText,
28
+ buttonText = _props$buttonText === void 0 ? locale === null || locale === void 0 ? void 0 : (_locale$ProUpload = locale.ProUpload) === null || _locale$ProUpload === void 0 ? void 0 : _locale$ProUpload.buttonText : _props$buttonText;
26
29
  // 按钮类型的props
27
30
  var buttonUploadProps = _objectSpread(_objectSpread({}, baseUploadProps), {}, {
28
31
  fileList: fileList,
@@ -54,7 +57,7 @@ var ButtonRender = function ButtonRender(props) {
54
57
  className: "pro-upload-button-inner",
55
58
  children: [_jsxs(_Button, _objectSpread(_objectSpread({}, buttonProps), {}, {
56
59
  disabled: disabled || isView,
57
- children: [_jsx(CloudUploadOutlined, {}), buttonText || '上传文件']
60
+ children: [_jsx(CloudUploadOutlined, {}), buttonText]
58
61
  })), afterRender ? _jsx("div", {
59
62
  className: "pro-upload-button-inner-right",
60
63
  children: afterRender
@@ -8,8 +8,10 @@ import { SortableContext, rectSortingStrategy } from '@dnd-kit/sortable';
8
8
  import { CloudUploadOutlined } from '@ant-design/icons';
9
9
  import { DragSingleFileItem, FileItem, getFileExt, getFileIcon } from './FileItem';
10
10
  import { DraggableUploadListItem } from './DraggableUploadListItem';
11
+ import locale from '../../locale';
11
12
  var Dragger = _Upload.Dragger;
12
13
  var DragRender = function DragRender(props) {
14
+ var _locale$ProUpload3, _locale$ProUpload4, _locale$ProUpload5;
13
15
  var isView = props.isView,
14
16
  baseUploadProps = props.baseUploadProps,
15
17
  disabled = props.disabled,
@@ -73,6 +75,7 @@ var DragRender = function DragRender(props) {
73
75
  * @return {*}
74
76
  */
75
77
  var draggerSingleRender = function draggerSingleRender(file) {
78
+ var _locale$ProUpload, _locale$ProUpload2;
76
79
  var _fileExt = getFileExt(file.name);
77
80
  var _fileIcon = getFileIcon(_fileExt);
78
81
  return _jsxs("div", {
@@ -94,13 +97,13 @@ var DragRender = function DragRender(props) {
94
97
  onClick: function onClick() {
95
98
  handleReSelect(file);
96
99
  },
97
- children: "\u91CD\u65B0\u9009\u62E9"
100
+ children: locale === null || locale === void 0 ? void 0 : (_locale$ProUpload = locale.ProUpload) === null || _locale$ProUpload === void 0 ? void 0 : _locale$ProUpload.draggerSelect
98
101
  }), _jsx("div", {
99
102
  className: "file-del",
100
103
  onClick: function onClick() {
101
104
  handleDelFile(file);
102
105
  },
103
- children: "\u5220\u9664"
106
+ children: locale === null || locale === void 0 ? void 0 : (_locale$ProUpload2 = locale.ProUpload) === null || _locale$ProUpload2 === void 0 ? void 0 : _locale$ProUpload2.draggerDelete
104
107
  })]
105
108
  })]
106
109
  });
@@ -129,16 +132,13 @@ var DragRender = function DragRender(props) {
129
132
  children: [_jsx("i", {
130
133
  className: "icon-upload",
131
134
  children: _jsx(CloudUploadOutlined, {})
132
- }), _jsxs("p", {
135
+ }), _jsx("p", {
133
136
  className: "dragger-txt",
134
- children: ["\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64\u5904\uFF0C\u6216", _jsx("span", {
135
- className: "click-txt",
136
- children: "\u70B9\u51FB\u4E0A\u4F20 "
137
- })]
137
+ children: locale === null || locale === void 0 ? void 0 : (_locale$ProUpload3 = locale.ProUpload) === null || _locale$ProUpload3 === void 0 ? void 0 : _locale$ProUpload3.draggerTips
138
138
  })]
139
139
  }), _jsxs("p", {
140
140
  className: "file-ext",
141
- children: ["\u652F\u6301\u6269\u5C55\u540D\uFF1A", extExt.length > 0 ? extExt.join('、') : '无限制']
141
+ children: [locale === null || locale === void 0 ? void 0 : (_locale$ProUpload4 = locale.ProUpload) === null || _locale$ProUpload4 === void 0 ? void 0 : _locale$ProUpload4.draggerFileExt, "\uFF1A", extExt.length > 0 ? extExt.join('、') : "".concat(locale === null || locale === void 0 ? void 0 : (_locale$ProUpload5 = locale.ProUpload) === null || _locale$ProUpload5 === void 0 ? void 0 : _locale$ProUpload5.draggerLimitless)]
142
142
  })]
143
143
  }), _jsx("div", {
144
144
  className: "dragger-file-show",
@@ -3,7 +3,9 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  import { useState } from 'react';
5
5
  import ProDrawerForm from '../../ProDrawerForm';
6
+ import locale from '../../locale';
6
7
  export var Example = function Example(props) {
8
+ var _locale$ProUpload;
7
9
  var exampleContent = props.exampleContent,
8
10
  className = props.className,
9
11
  exampleTitle = props.exampleTitle,
@@ -22,7 +24,7 @@ export var Example = function Example(props) {
22
24
  className: className,
23
25
  children: [_jsx("div", {
24
26
  onClick: handleShowModal,
25
- children: "\u67E5\u770B\u793A\u4F8B"
27
+ children: locale === null || locale === void 0 ? void 0 : (_locale$ProUpload = locale.ProUpload) === null || _locale$ProUpload === void 0 ? void 0 : _locale$ProUpload.exampleTitle
26
28
  }), _jsx(ProDrawerForm, {
27
29
  title: exampleTitle,
28
30
  width: "600",
@@ -17,7 +17,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
17
17
  * @Author: wangshengqiang
18
18
  * @Date: 2023-07-27 20:13:07
19
19
  * @LastEditors: wangshengqiang
20
- * @LastEditTime: 2023-09-17 14:56:31
20
+ * @LastEditTime: 2023-11-07 19:01:07
21
21
  * @Description: 图片类型
22
22
  *
23
23
  */
@@ -33,8 +33,10 @@ import { DraggableUploadListItem } from './DraggableUploadListItem';
33
33
  import lookSvg from '../../assets/look.svg';
34
34
  import deleteSvg from '../../assets/delete.svg';
35
35
  import downloadSvg from '../../assets/download.svg';
36
+ import locale from '../../locale';
36
37
  /* 按钮类型 */
37
38
  var ImageRender = function ImageRender(props) {
39
+ var _locale$ProUpload4;
38
40
  var _useState = useState({}),
39
41
  _useState2 = _slicedToArray(_useState, 2),
40
42
  previewImg = _useState2[0],
@@ -94,7 +96,7 @@ var ImageRender = function ImageRender(props) {
94
96
  openFileDialogOnClick: !showDraggerSingleRender,
95
97
  disabled: disabled || isView,
96
98
  itemRender: function itemRender(originNode, file, fileList, actions) {
97
- var _file$url;
99
+ var _file$url, _locale$ProUpload, _locale$ProUpload2, _locale$ProUpload3;
98
100
  var _showPreview = file.status === 'done';
99
101
  var _isShowDownload = !!onDownload && file.status === 'done';
100
102
  var _fileExt = getFileExt(file.name || (file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split('?')[0]));
@@ -132,7 +134,7 @@ var ImageRender = function ImageRender(props) {
132
134
  wrapper: "span",
133
135
  src: lookSvg
134
136
  }),
135
- children: "\u67E5\u770B"
137
+ children: locale === null || locale === void 0 ? void 0 : (_locale$ProUpload = locale.ProUpload) === null || _locale$ProUpload === void 0 ? void 0 : _locale$ProUpload.view
136
138
  }), _isShowDownload && _jsx(_Button, {
137
139
  type: "link",
138
140
  disabled: isView || disabled,
@@ -145,7 +147,7 @@ var ImageRender = function ImageRender(props) {
145
147
  wrapper: "span",
146
148
  src: downloadSvg
147
149
  }),
148
- children: "\u4E0B\u8F7D"
150
+ children: locale === null || locale === void 0 ? void 0 : (_locale$ProUpload2 = locale.ProUpload) === null || _locale$ProUpload2 === void 0 ? void 0 : _locale$ProUpload2.download
149
151
  })]
150
152
  }), _jsx("div", {
151
153
  className: "action-button",
@@ -200,7 +202,7 @@ var ImageRender = function ImageRender(props) {
200
202
  wrapper: "span",
201
203
  src: deleteSvg
202
204
  }),
203
- children: "\u5220\u9664"
205
+ children: locale === null || locale === void 0 ? void 0 : (_locale$ProUpload3 = locale.ProUpload) === null || _locale$ProUpload3 === void 0 ? void 0 : _locale$ProUpload3.delete
204
206
  })
205
207
  })]
206
208
  })]
@@ -230,7 +232,7 @@ var ImageRender = function ImageRender(props) {
230
232
  style: {
231
233
  marginTop: 8
232
234
  },
233
- children: "\u70B9\u51FB\u4E0A\u4F20"
235
+ children: locale === null || locale === void 0 ? void 0 : (_locale$ProUpload4 = locale.ProUpload) === null || _locale$ProUpload4 === void 0 ? void 0 : _locale$ProUpload4.buttonText
234
236
  })]
235
237
  })
236
238
  }))
@@ -8,7 +8,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  /*
9
9
  * @Author: wangshengqiang
10
10
  * @Date: 2023-02-03 14:18:59
11
- * @LastEditTime: 2023-09-18 10:15:05
11
+ * @LastEditTime: 2023-11-07 18:49:49
12
12
  * @LastEditors: wangshengqiang
13
13
  * @Description: 上传控件
14
14
  */
@@ -20,7 +20,9 @@ import DragRender from './components/DragRender';
20
20
  import ButtonRender from './components/ButtonRender';
21
21
  import ImageRender from './components/ImageRender';
22
22
  import { validateSize, validateFileExt } from './uitls';
23
+ import locale from '../locale';
23
24
  var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
25
+ var _locale$ProUpload;
24
26
  var _useState = useState([]),
25
27
  _useState2 = _slicedToArray(_useState, 2),
26
28
  _fileList = _useState2[0],
@@ -57,7 +59,7 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
57
59
  otherProps = props.otherProps,
58
60
  transformResponse = props.transformResponse,
59
61
  _props$exampleTitle = props.exampleTitle,
60
- exampleTitle = _props$exampleTitle === void 0 ? '查看示例' : _props$exampleTitle,
62
+ exampleTitle = _props$exampleTitle === void 0 ? locale === null || locale === void 0 ? void 0 : (_locale$ProUpload = locale.ProUpload) === null || _locale$ProUpload === void 0 ? void 0 : _locale$ProUpload.exampleTitle : _props$exampleTitle,
61
63
  exampleContent = props.exampleContent,
62
64
  exampleModalProps = props.exampleModalProps,
63
65
  buttonText = props.buttonText,
@@ -70,13 +72,11 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
70
72
  distance: 10
71
73
  }
72
74
  });
73
- // 文件格式
74
75
  var extExt = accept ? accept.split(',').map(function (i) {
75
76
  return i.toLocaleUpperCase();
76
77
  }) : [];
77
78
  var uploadResTransform = function uploadResTransform(fileList) {
78
79
  var _list = fileList.map(function (file) {
79
- // 组件负责上传 内部处理
80
80
  if (file.status === 'done' && file.response) {
81
81
  var nfile = {
82
82
  name: file.name,
@@ -176,11 +176,13 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
176
176
  var handleBeforeUpload = function handleBeforeUpload(file, fileList) {
177
177
  // TODO
178
178
  if (!validateFileExt(extExt, file)) {
179
- _message.error("\u6587\u4EF6\u53EA\u652F\u6301\u3010".concat(extExt.join('、'), "\u3011\u683C\u5F0F"));
179
+ var _locale$ProUpload2;
180
+ _message.error("".concat(locale === null || locale === void 0 ? void 0 : (_locale$ProUpload2 = locale.ProUpload) === null || _locale$ProUpload2 === void 0 ? void 0 : _locale$ProUpload2.errorInfoExt, "\u3010").concat(extExt.join('、'), "\u3011"));
180
181
  return false;
181
182
  }
182
183
  if (!validateSize(size, file)) {
183
- _message.error("\u4E0A\u4F20\u7684\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7".concat(size, "M"));
184
+ var _locale$ProUpload3;
185
+ _message.error("".concat(locale === null || locale === void 0 ? void 0 : (_locale$ProUpload3 = locale.ProUpload) === null || _locale$ProUpload3 === void 0 ? void 0 : _locale$ProUpload3.errorInfoSize).concat(size, "M"));
184
186
  return false;
185
187
  }
186
188
  if (beforeUpload) {
@@ -7,6 +7,7 @@
7
7
  background : #F8F9FA;
8
8
  border-radius: var(--zaui-border-radius, 4px);
9
9
  padding : var(--zaui-space-size-sm, 8px);
10
+
10
11
  .ant-upload.ant-upload-drag {
11
12
  background-color: var(--zaui-base-bg, #fff);
12
13
  }
@@ -27,17 +28,14 @@
27
28
  align-items: center;
28
29
 
29
30
  .icon-upload {
30
- display : inline-block;
31
- // width: 34px;
32
- // height: 26px;
33
- font-size : 30px;
34
- color : #C5C7CD;
35
- // background: #c5c7cd;
31
+ display : inline-block;
32
+ font-size: 30px;
33
+ color : #C5C7CD;
36
34
  }
37
35
 
38
36
  .dragger-txt {
39
37
  margin-left: 9px;
40
- font-size : 14px;
38
+ font-size : var(--zaui-font-size, 14px);
41
39
 
42
40
 
43
41
  color : rgba(0, 0, 0, 0.85);
@@ -50,9 +48,9 @@
50
48
  }
51
49
 
52
50
  .file-ext {
53
- text-align : center;
54
- margin-top : 10px;
55
- font-size : 12x;
51
+ text-align: center;
52
+ margin-top: 10px;
53
+ font-size : var(--zaui-font-size-sm, 12px);
56
54
 
57
55
 
58
56
  color : #939599;
@@ -88,11 +86,11 @@
88
86
  }
89
87
 
90
88
  .file-name {
91
- display : box;
92
- overflow : hidden;
89
+ display : box;
90
+ overflow : hidden;
93
91
  line-clamp: 1;
94
92
  box-orient: vertical;
95
- word-break : break-all;
93
+ word-break: break-all;
96
94
  }
97
95
 
98
96
  .file-ext {
@@ -133,6 +131,7 @@
133
131
  width : 100%;
134
132
  display: block;
135
133
  }
134
+
136
135
  .pro-upload-button-inner {
137
136
  display: flex;
138
137
 
@@ -145,10 +144,10 @@
145
144
  .upload-tip-txt {
146
145
  margin-left: 10px;
147
146
  line-height: 32px;
148
- font-size : 12px;
147
+ font-size : var(--zaui-font-size-sm, 12px);
149
148
 
150
149
 
151
- color : #939599;
150
+ color: #939599;
152
151
  }
153
152
  }
154
153
 
@@ -182,20 +181,20 @@
182
181
  }
183
182
 
184
183
  .file-item-image {
185
- position : relative;
186
- overflow : hidden;
184
+ position : relative;
185
+ overflow : hidden;
187
186
  // height : 100%;
188
- height : 126px;
189
- width: 126px ;
190
- border : 1px dashed #d9d9d9;
191
- overflow : hidden;
192
- border-radius: 8px;
187
+ height : 126px;
188
+ width : 126px;
189
+ border : 1px dashed #d9d9d9;
190
+ overflow : hidden;
191
+ border-radius : 8px;
193
192
 
194
193
  .file-type-icon-img {
195
- position: absolute;
196
- width: 30px;
197
- top: 50%;
198
- left: 50%;
194
+ position : absolute;
195
+ width : 30px;
196
+ top : 50%;
197
+ left : 50%;
199
198
  transform: translate(-50%, -50%);
200
199
 
201
200
  }
@@ -238,10 +237,9 @@
238
237
 
239
238
  .action-item {
240
239
  color : #fff;
241
- font-size: 12px;
240
+ font-size: var(--zaui-font-size-sm, 12px);
242
241
  opacity : 0.8;
243
242
 
244
- // cursor: pointer;
245
243
  .action-icon {
246
244
  margin-right: 10px;
247
245
  transform : translate(0, 3px);
@@ -276,29 +274,33 @@
276
274
  .ant-space-item {
277
275
  display: inline-flex;
278
276
  }
279
- .pro-upload-image-footer{
277
+
278
+ .pro-upload-image-footer {
280
279
  margin-top: -8px;
281
280
  }
282
281
  }
282
+
283
283
  .file-actions {
284
284
  .file-action-item {
285
285
  padding-top: var(--zaui-space-size-xs, 4px) !important;
286
286
  }
287
+
287
288
  .action-icon {
288
- display: inline-flex;
289
- align-items: center;
290
- color: inherit;
291
- font-style: normal;
292
- text-align: center;
289
+ display : inline-flex;
290
+ align-items : center;
291
+ color : inherit;
292
+ font-style : normal;
293
+ text-align : center;
293
294
  text-transform: none;
294
295
  vertical-align: -0.15em;
295
296
  text-rendering: optimizeLegibility;
297
+
296
298
  span {
297
- display: inline-flex;
298
- align-items: center;
299
- color: inherit;
300
- font-style: normal;
301
- text-align: center;
299
+ display : inline-flex;
300
+ align-items : center;
301
+ color : inherit;
302
+ font-style : normal;
303
+ text-align : center;
302
304
  text-transform: none;
303
305
  vertical-align: -0.15em;
304
306
  text-rendering: optimizeLegibility;
package/es/index.d.ts CHANGED
@@ -21,7 +21,8 @@ export { default as ProUpload } from './ProUpload';
21
21
  export { default as ProThemeTools } from './ProThemeTools';
22
22
  export { default as ProAction } from './ProAction';
23
23
  export * from './ProConfigProvider';
24
- export { default as ProBackBtn } from './old/ProBackBtn';
24
+ export * from './locale';
25
+ export { default as ProBackBtn } from './ProLayout/components/ProHeader/components/ProBackBtn';
25
26
  export { default as ProEditableTable } from './old/ProEditableTable';
26
27
  export { default as ProCertValidity } from './old/ProCertValidity';
27
28
  export * from './ProForm/propsType';
package/es/index.js CHANGED
@@ -26,8 +26,9 @@ export { default as ProUpload } from './ProUpload';
26
26
  export { default as ProThemeTools } from './ProThemeTools';
27
27
  export { default as ProAction } from './ProAction';
28
28
  export * from './ProConfigProvider';
29
+ export * from './locale';
29
30
  // old 待废弃
30
- export { default as ProBackBtn } from './old/ProBackBtn';
31
+ export { default as ProBackBtn } from './ProLayout/components/ProHeader/components/ProBackBtn';
31
32
  export { default as ProEditableTable } from './old/ProEditableTable';
32
33
  export { default as ProCertValidity } from './old/ProCertValidity';
33
34
  // TS类型导出