@zat-design/sisyphus-react 3.14.0-beta.2 → 4.0.0-beta.10

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 (545) hide show
  1. package/README.md +77 -207
  2. package/babel.config.js +2 -2
  3. package/dist/index.esm.css +1 -1
  4. package/dist/less.esm.css +1 -1
  5. package/es/FormsProvider/index.d.ts +4 -1
  6. package/es/ProAction/components/CheckModalContent/index.js +0 -9
  7. package/es/ProAction/index.js +3 -6
  8. package/es/ProAction/index.less +0 -2
  9. package/es/ProConfigProvider/index.d.ts +22 -5
  10. package/es/ProConfigProvider/index.js +58 -26
  11. package/es/ProDownload/index.js +2 -3
  12. package/es/ProDownload/style/index.less +0 -2
  13. package/es/ProDownload/utils.js +3 -4
  14. package/es/ProDrawerForm/components/ProDrawer/index.js +13 -17
  15. package/es/ProDrawerForm/components/ProModal/index.js +12 -20
  16. package/es/ProDrawerForm/index.d.ts +2 -1
  17. package/es/ProDrawerForm/index.js +35 -33
  18. package/es/ProDrawerForm/propsType.d.ts +7 -18
  19. package/es/ProDrawerForm/style/index.less +6 -14
  20. package/es/ProEditLabel/components/RenderProForm.js +2 -3
  21. package/es/ProEditLabel/index.js +10 -15
  22. package/es/ProEditLabel/propsType.d.ts +1 -6
  23. package/es/ProEditLabel/style/index.less +2 -3
  24. package/es/ProEditTable/components/ActionButton/index.js +5 -8
  25. package/es/ProEditTable/components/RcTable/BaseTable.js +70 -53
  26. package/es/ProEditTable/components/RcTable/DraggableTable.js +70 -49
  27. package/es/ProEditTable/components/RcTable/index.d.ts +0 -2
  28. package/es/ProEditTable/components/RcTable/index.js +1 -3
  29. package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +9 -12
  30. package/es/ProEditTable/components/RenderField/index.d.ts +3 -2
  31. package/es/ProEditTable/components/RenderField/index.js +401 -241
  32. package/es/ProEditTable/components/RenderToolbar/index.js +5 -5
  33. package/es/ProEditTable/components/Summary/index.js +5 -8
  34. package/es/ProEditTable/components/Validator/index.js +3 -6
  35. package/es/ProEditTable/index.js +99 -103
  36. package/es/ProEditTable/propsType.d.ts +7 -7
  37. package/es/ProEditTable/style/index.less +12 -12
  38. package/es/ProEditTable/utils/config.js +6 -7
  39. package/es/ProEditTable/utils/index.js +21 -17
  40. package/es/ProEditTable/utils/useEditTableError.js +12 -4
  41. package/es/ProEditTable/utils/useShouldUpdateForTable.d.ts +15 -0
  42. package/es/ProEditTable/utils/useShouldUpdateForTable.js +132 -0
  43. package/es/ProEnum/hooks/useEnum.js +5 -0
  44. package/es/ProEnum/hooks/useEnumRequest.js +3 -3
  45. package/es/ProEnum/index.js +10 -17
  46. package/es/ProEnum/style/index.less +0 -2
  47. package/es/ProEnum/utils/index.d.ts +1 -0
  48. package/es/ProEnum/utils/index.js +3 -7
  49. package/es/ProForm/components/Container.d.ts +1 -0
  50. package/es/ProForm/components/Container.js +2 -3
  51. package/es/ProForm/components/FormFooter/index.js +18 -19
  52. package/es/ProForm/components/FormFooter/propsType.d.ts +2 -0
  53. package/es/ProForm/components/base/Checkbox/index.js +3 -4
  54. package/es/ProForm/components/base/DatePicker/index.d.ts +1 -3
  55. package/es/ProForm/components/base/DatePicker/index.js +7 -7
  56. package/es/ProForm/components/base/DatePicker/useDateLimit.d.ts +3 -0
  57. package/es/ProForm/components/base/DatePicker/useDateLimit.js +11 -0
  58. package/es/ProForm/components/base/Input/index.js +10 -8
  59. package/es/ProForm/components/base/InputNumber/index.js +3 -6
  60. package/es/ProForm/components/base/Radio/index.js +3 -4
  61. package/es/ProForm/components/base/RangePicker/index.js +7 -6
  62. package/es/ProForm/components/base/RangePicker/useDateRange.d.ts +5 -5
  63. package/es/ProForm/components/base/Select/index.js +2 -3
  64. package/es/ProForm/components/base/Switch/index.js +2 -3
  65. package/es/ProForm/components/base/SwitchCheckbox/index.js +2 -3
  66. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +0 -2
  67. package/es/ProForm/components/base/TextArea/index.js +3 -4
  68. package/es/ProForm/components/base/TextArea/index.less +10 -2
  69. package/es/ProForm/components/base/TimePicker/index.d.ts +1 -2
  70. package/es/ProForm/components/base/TimePicker/index.js +6 -7
  71. package/es/ProForm/components/base/TimePicker/style/index.less +3 -3
  72. package/es/ProForm/components/combination/Container/style/index.less +0 -2
  73. package/es/ProForm/components/combination/FormList/components/ActionButton.js +15 -13
  74. package/es/ProForm/components/combination/FormList/components/BlockFields.js +5 -8
  75. package/es/ProForm/components/combination/FormList/components/Empty.js +2 -3
  76. package/es/ProForm/components/combination/FormList/components/LineFields.js +2 -3
  77. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +5 -8
  78. package/es/ProForm/components/combination/FormList/index.js +2 -3
  79. package/es/ProForm/components/combination/FormList/style/index.less +36 -2
  80. package/es/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +1 -0
  81. package/es/ProForm/components/combination/Group/component/ComRender.js +0 -1
  82. package/es/ProForm/components/combination/Group/index.js +3 -4
  83. package/es/ProForm/components/combination/Group/style/index.less +7 -87
  84. package/es/ProForm/components/combination/Group/utils.d.ts +1 -1
  85. package/es/ProForm/components/combination/Group/utils.js +4 -5
  86. package/es/ProForm/components/combination/ProCascader/index.js +13 -15
  87. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +1 -1
  88. package/es/ProForm/components/combination/ProCascader/style/index.less +0 -2
  89. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
  90. package/es/ProForm/components/combination/ProModalSelect/index.js +24 -39
  91. package/es/ProForm/components/combination/ProModalSelect/style/index.less +11 -15
  92. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +3 -2
  93. package/es/ProForm/components/combination/ProNumberRange/index.js +21 -21
  94. package/es/ProForm/components/combination/ProNumberRange/style/index.less +3 -54
  95. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -23
  96. package/es/ProForm/components/combination/ProRangeLimit/index.js +42 -25
  97. package/es/ProForm/components/combination/ProRangeLimit/propsType.d.ts +23 -0
  98. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +3 -2
  99. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +14 -2
  100. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +5 -6
  101. package/es/ProForm/components/combination/ProTimeLimit/index.js +23 -20
  102. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +64 -6
  103. package/es/ProForm/components/index.d.ts +2 -9
  104. package/es/ProForm/components/index.js +1 -11
  105. package/es/ProForm/components/render/ChangedWrapper.js +8 -9
  106. package/es/ProForm/components/render/ConfirmWrapper.js +7 -7
  107. package/es/ProForm/components/render/Render.js +29 -30
  108. package/es/ProForm/components/render/RenderFields.d.ts +1 -0
  109. package/es/ProForm/components/render/RenderFields.js +6 -3
  110. package/es/ProForm/components/render/propsType.d.ts +3 -6
  111. package/es/ProForm/index.d.ts +2 -2
  112. package/es/ProForm/index.js +14 -42
  113. package/es/ProForm/propsType.d.ts +3 -0
  114. package/es/ProForm/style/index.less +4 -16
  115. package/es/ProForm/utils/index.d.ts +15 -1
  116. package/es/ProForm/utils/index.js +66 -15
  117. package/es/ProForm/utils/useDeepCompareMemo.js +4 -4
  118. package/es/ProForm/utils/useForm.js +27 -22
  119. package/es/ProForm/utils/useShouldUpdate.d.ts +1 -0
  120. package/es/ProForm/utils/useShouldUpdate.js +103 -17
  121. package/es/ProIcon/index.js +10 -13
  122. package/es/ProIcon/style/index.less +0 -2
  123. package/es/ProLayout/components/Layout/Header/index.js +1 -1
  124. package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +3 -6
  125. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +40 -39
  126. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +2 -3
  127. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -3
  128. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +7 -5
  129. package/es/ProLayout/components/Layout/Menu/index.js +1 -1
  130. package/es/ProLayout/components/Layout/Menu/style/index.less +0 -2
  131. package/es/ProLayout/components/Layout/Notice/style/index.less +0 -2
  132. package/es/ProLayout/components/ProCollapse/index.js +29 -44
  133. package/es/ProLayout/components/ProCollapse/style/index.less +5 -4
  134. package/es/ProLayout/components/ProFooter/index.js +2 -3
  135. package/es/ProLayout/components/ProFooter/style/index.less +0 -2
  136. package/es/ProLayout/components/ProHeader/components/Copy/index.js +2 -3
  137. package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.js +2 -3
  138. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +7 -9
  139. package/es/ProLayout/components/ProHeader/index.js +43 -45
  140. package/es/ProLayout/components/ProHeader/style/index.less +0 -2
  141. package/es/ProLayout/components/TabsManager/components/TabContextMenu.js +2 -3
  142. package/es/ProLayout/components/TabsManager/hooks/useTabsState.js +0 -2
  143. package/es/ProLayout/index.js +80 -41
  144. package/es/ProLayout/style/index.less +2 -3
  145. package/es/ProSelect/components/AdaptiveTooltip.js +2 -3
  146. package/es/ProSelect/index.js +7 -15
  147. package/es/ProSelect/index.less +0 -2
  148. package/es/ProSelect/propsType.d.ts +1 -1
  149. package/es/ProStep/components/Anchor/index.js +2 -3
  150. package/es/ProStep/components/Item/index.js +1 -0
  151. package/es/ProStep/components/Step/index.js +1 -0
  152. package/es/ProStep/style/index.less +2 -4
  153. package/es/ProTable/components/FormatColumn/index.js +33 -31
  154. package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -1
  155. package/es/ProTable/components/RcTable/components/BaseTable/index.js +2 -4
  156. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +17 -13
  157. package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -1
  158. package/es/ProTable/components/RcTable/components/DraggableTable/index.js +2 -4
  159. package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
  160. package/es/ProTable/components/RenderColumn/index.js +15 -18
  161. package/es/ProTable/components/RenderSummary/index.js +4 -5
  162. package/es/ProTable/components/RenderTableHeader/index.js +3 -4
  163. package/es/ProTable/components/RenderTabs/index.js +3 -6
  164. package/es/ProTable/components/TableResizable/index.js +2 -1
  165. package/es/ProTable/components/TooltipTitle/index.js +2 -3
  166. package/es/ProTable/hooks/useAntdTable.js +4 -7
  167. package/es/ProTable/index.d.ts +0 -7
  168. package/es/ProTable/index.js +11 -14
  169. package/es/ProTable/propsType.d.ts +2 -3
  170. package/es/ProTable/style/index.less +4 -6
  171. package/es/ProTabs/components/Card/index.js +5 -10
  172. package/es/ProTabs/index.js +2 -3
  173. package/es/ProTabs/style/index.less +0 -2
  174. package/es/ProThemeTools/component/ProTools/index.js +18 -22
  175. package/es/ProThemeTools/context/ThemeContext.d.ts +31 -0
  176. package/es/ProThemeTools/context/ThemeContext.js +136 -0
  177. package/es/ProThemeTools/index.d.ts +4 -8
  178. package/es/ProThemeTools/index.js +80 -49
  179. package/es/ProThemeTools/style/index.less +1 -3
  180. package/es/ProThemeTools/utils/index.d.ts +16 -6
  181. package/es/ProThemeTools/utils/index.js +30 -24
  182. package/es/ProTooltip/index.js +14 -9
  183. package/es/ProTooltip/style/index.less +0 -2
  184. package/es/ProTree/components/AdaptiveTooltip.js +2 -3
  185. package/es/ProTree/components/List.js +3 -4
  186. package/es/ProTree/components/ProTree.js +5 -12
  187. package/es/ProTree/components/ProTreeSelect/index.js +28 -26
  188. package/es/ProTree/components/ProTreeSelect/style/index.less +0 -2
  189. package/es/ProTree/components/Tree.js +6 -13
  190. package/es/ProTree/index.js +0 -7
  191. package/es/ProTree/propsType.d.ts +1 -1
  192. package/es/ProTree/style/index.less +8 -6
  193. package/es/ProTreeModal/components/Cascader.js +3 -4
  194. package/es/ProTreeModal/components/List.js +11 -17
  195. package/es/ProTreeModal/components/SortableItem.js +2 -3
  196. package/es/ProTreeModal/components/Tree.js +3 -4
  197. package/es/ProTreeModal/components/Trigger.js +6 -11
  198. package/es/ProTreeModal/index.d.ts +0 -1
  199. package/es/ProTreeModal/index.js +10 -20
  200. package/es/ProTreeModal/style/index.less +12 -3
  201. package/es/ProUpload/components/ButtonRender.js +4 -7
  202. package/es/ProUpload/components/DragRender.js +2 -3
  203. package/es/ProUpload/components/FileItem.d.ts +0 -1
  204. package/es/ProUpload/components/FileItem.js +15 -21
  205. package/es/ProUpload/components/ImageRender.js +8 -17
  206. package/es/ProUpload/index.js +3 -4
  207. package/es/ProUpload/style/index.less +171 -12
  208. package/es/ProViewer/index.js +28 -35
  209. package/es/ProViewer/propsType.js +3 -0
  210. package/es/ProViewer/style/index.less +0 -2
  211. package/es/ProWaterMark/index.js +2 -3
  212. package/es/ProWaterMark/propsType.d.ts +5 -24
  213. package/es/global.less +2 -1
  214. package/es/index.d.ts +3 -3
  215. package/es/index.js +5 -5
  216. package/es/locale/en_US.js +1 -1
  217. package/es/locale/index.d.ts +2 -0
  218. package/es/locale/index.js +13 -2
  219. package/es/locale/zh_CN.js +1 -1
  220. package/es/style/components.less +0 -3
  221. package/es/style/index.less +1 -1
  222. package/es/style/theme/antd.less +36 -48
  223. package/es/style/theme/base.less +90 -0
  224. package/es/style/theme/index.less +2 -89
  225. package/es/utils/index.d.ts +7 -0
  226. package/es/utils/index.js +37 -1
  227. package/lib/FormsProvider/index.d.ts +4 -1
  228. package/lib/ProAction/components/CheckModalContent/index.js +0 -9
  229. package/lib/ProAction/index.js +3 -6
  230. package/lib/ProAction/index.less +0 -2
  231. package/lib/ProConfigProvider/index.d.ts +22 -5
  232. package/lib/ProConfigProvider/index.js +58 -26
  233. package/lib/ProDownload/index.js +2 -3
  234. package/lib/ProDownload/style/index.less +0 -2
  235. package/lib/ProDownload/utils.js +3 -4
  236. package/lib/ProDrawerForm/components/ProDrawer/index.js +13 -17
  237. package/lib/ProDrawerForm/components/ProModal/index.js +12 -20
  238. package/lib/ProDrawerForm/index.d.ts +2 -1
  239. package/lib/ProDrawerForm/index.js +35 -33
  240. package/lib/ProDrawerForm/propsType.d.ts +7 -18
  241. package/lib/ProDrawerForm/style/index.less +6 -14
  242. package/lib/ProEditLabel/components/RenderProForm.js +2 -3
  243. package/lib/ProEditLabel/index.js +10 -15
  244. package/lib/ProEditLabel/propsType.d.ts +1 -6
  245. package/lib/ProEditLabel/style/index.less +2 -3
  246. package/lib/ProEditTable/components/ActionButton/index.js +5 -8
  247. package/lib/ProEditTable/components/RcTable/BaseTable.js +69 -52
  248. package/lib/ProEditTable/components/RcTable/DraggableTable.js +69 -48
  249. package/lib/ProEditTable/components/RcTable/index.d.ts +0 -2
  250. package/lib/ProEditTable/components/RcTable/index.js +1 -8
  251. package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +9 -12
  252. package/lib/ProEditTable/components/RenderField/index.d.ts +3 -2
  253. package/lib/ProEditTable/components/RenderField/index.js +401 -241
  254. package/lib/ProEditTable/components/RenderToolbar/index.js +5 -5
  255. package/lib/ProEditTable/components/Summary/index.js +5 -9
  256. package/lib/ProEditTable/components/Validator/index.js +3 -7
  257. package/lib/ProEditTable/index.js +96 -100
  258. package/lib/ProEditTable/propsType.d.ts +7 -7
  259. package/lib/ProEditTable/style/index.less +12 -12
  260. package/lib/ProEditTable/utils/config.js +6 -7
  261. package/lib/ProEditTable/utils/index.js +20 -16
  262. package/lib/ProEditTable/utils/useEditTableError.js +12 -4
  263. package/lib/ProEditTable/utils/useShouldUpdateForTable.d.ts +15 -0
  264. package/lib/ProEditTable/utils/useShouldUpdateForTable.js +139 -0
  265. package/lib/ProEnum/hooks/useEnum.js +5 -0
  266. package/lib/ProEnum/hooks/useEnumRequest.js +2 -2
  267. package/lib/ProEnum/index.js +10 -17
  268. package/lib/ProEnum/style/index.less +0 -2
  269. package/lib/ProEnum/utils/index.d.ts +1 -0
  270. package/lib/ProEnum/utils/index.js +4 -7
  271. package/lib/ProForm/components/Container.d.ts +1 -0
  272. package/lib/ProForm/components/Container.js +2 -3
  273. package/lib/ProForm/components/FormFooter/index.js +18 -19
  274. package/lib/ProForm/components/FormFooter/propsType.d.ts +2 -0
  275. package/lib/ProForm/components/base/Checkbox/index.js +3 -4
  276. package/lib/ProForm/components/base/DatePicker/index.d.ts +1 -3
  277. package/lib/ProForm/components/base/DatePicker/index.js +7 -7
  278. package/lib/ProForm/components/base/DatePicker/useDateLimit.d.ts +3 -0
  279. package/lib/ProForm/components/base/DatePicker/useDateLimit.js +19 -0
  280. package/lib/ProForm/components/base/Input/index.js +10 -8
  281. package/lib/ProForm/components/base/InputNumber/index.js +3 -6
  282. package/lib/ProForm/components/base/Radio/index.js +3 -4
  283. package/lib/ProForm/components/base/RangePicker/index.js +6 -6
  284. package/lib/ProForm/components/base/RangePicker/useDateRange.d.ts +5 -5
  285. package/lib/ProForm/components/base/Select/index.js +2 -3
  286. package/lib/ProForm/components/base/Switch/index.js +2 -3
  287. package/lib/ProForm/components/base/SwitchCheckbox/index.js +2 -3
  288. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +0 -2
  289. package/lib/ProForm/components/base/TextArea/index.js +3 -4
  290. package/lib/ProForm/components/base/TextArea/index.less +10 -2
  291. package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -2
  292. package/lib/ProForm/components/base/TimePicker/index.js +6 -7
  293. package/lib/ProForm/components/base/TimePicker/style/index.less +3 -3
  294. package/lib/ProForm/components/combination/Container/style/index.less +0 -2
  295. package/lib/ProForm/components/combination/FormList/components/ActionButton.js +15 -13
  296. package/lib/ProForm/components/combination/FormList/components/BlockFields.js +6 -9
  297. package/lib/ProForm/components/combination/FormList/components/Empty.js +2 -3
  298. package/lib/ProForm/components/combination/FormList/components/LineFields.js +2 -3
  299. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +4 -7
  300. package/lib/ProForm/components/combination/FormList/index.js +2 -3
  301. package/lib/ProForm/components/combination/FormList/style/index.less +36 -2
  302. package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +1 -0
  303. package/lib/ProForm/components/combination/Group/component/ComRender.js +0 -1
  304. package/lib/ProForm/components/combination/Group/index.js +3 -4
  305. package/lib/ProForm/components/combination/Group/style/index.less +7 -87
  306. package/lib/ProForm/components/combination/Group/utils.d.ts +1 -1
  307. package/lib/ProForm/components/combination/Group/utils.js +4 -5
  308. package/lib/ProForm/components/combination/ProCascader/index.js +12 -14
  309. package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +1 -1
  310. package/lib/ProForm/components/combination/ProCascader/style/index.less +0 -2
  311. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
  312. package/lib/ProForm/components/combination/ProModalSelect/index.js +24 -39
  313. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +11 -15
  314. package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +3 -2
  315. package/lib/ProForm/components/combination/ProNumberRange/index.js +20 -20
  316. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +3 -54
  317. package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -23
  318. package/lib/ProForm/components/combination/ProRangeLimit/index.js +42 -25
  319. package/lib/ProForm/components/combination/ProRangeLimit/propsType.d.ts +23 -0
  320. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +3 -2
  321. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +14 -2
  322. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +5 -6
  323. package/lib/ProForm/components/combination/ProTimeLimit/index.js +23 -20
  324. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +64 -6
  325. package/lib/ProForm/components/index.d.ts +2 -9
  326. package/lib/ProForm/components/index.js +1 -63
  327. package/lib/ProForm/components/render/ChangedWrapper.js +8 -9
  328. package/lib/ProForm/components/render/ConfirmWrapper.js +7 -7
  329. package/lib/ProForm/components/render/Render.js +29 -30
  330. package/lib/ProForm/components/render/RenderFields.d.ts +1 -0
  331. package/lib/ProForm/components/render/RenderFields.js +6 -3
  332. package/lib/ProForm/components/render/propsType.d.ts +3 -6
  333. package/lib/ProForm/index.d.ts +2 -2
  334. package/lib/ProForm/index.js +13 -42
  335. package/lib/ProForm/propsType.d.ts +3 -0
  336. package/lib/ProForm/style/index.less +4 -16
  337. package/lib/ProForm/utils/index.d.ts +15 -1
  338. package/lib/ProForm/utils/index.js +69 -17
  339. package/lib/ProForm/utils/useDeepCompareMemo.js +4 -4
  340. package/lib/ProForm/utils/useForm.js +26 -21
  341. package/lib/ProForm/utils/useShouldUpdate.d.ts +1 -0
  342. package/lib/ProForm/utils/useShouldUpdate.js +101 -15
  343. package/lib/ProIcon/index.js +10 -13
  344. package/lib/ProIcon/style/index.less +0 -2
  345. package/lib/ProLayout/components/Layout/Header/index.js +1 -1
  346. package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.js +3 -6
  347. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +40 -39
  348. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +2 -3
  349. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -3
  350. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +7 -5
  351. package/lib/ProLayout/components/Layout/Menu/index.js +1 -1
  352. package/lib/ProLayout/components/Layout/Menu/style/index.less +0 -2
  353. package/lib/ProLayout/components/Layout/Notice/style/index.less +0 -2
  354. package/lib/ProLayout/components/ProCollapse/index.js +29 -44
  355. package/lib/ProLayout/components/ProCollapse/style/index.less +5 -4
  356. package/lib/ProLayout/components/ProFooter/index.js +2 -3
  357. package/lib/ProLayout/components/ProFooter/style/index.less +0 -2
  358. package/lib/ProLayout/components/ProHeader/components/Copy/index.js +2 -3
  359. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.js +2 -3
  360. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +7 -9
  361. package/lib/ProLayout/components/ProHeader/index.js +44 -47
  362. package/lib/ProLayout/components/ProHeader/style/index.less +0 -2
  363. package/lib/ProLayout/components/TabsManager/components/TabContextMenu.js +2 -3
  364. package/lib/ProLayout/components/TabsManager/hooks/useTabsState.js +0 -2
  365. package/lib/ProLayout/index.js +79 -40
  366. package/lib/ProLayout/style/index.less +2 -3
  367. package/lib/ProSelect/components/AdaptiveTooltip.js +2 -3
  368. package/lib/ProSelect/index.js +7 -15
  369. package/lib/ProSelect/index.less +0 -2
  370. package/lib/ProSelect/propsType.d.ts +1 -1
  371. package/lib/ProStep/components/Anchor/index.js +2 -3
  372. package/lib/ProStep/components/Item/index.js +1 -1
  373. package/lib/ProStep/components/Step/index.js +1 -0
  374. package/lib/ProStep/style/index.less +2 -4
  375. package/lib/ProTable/components/FormatColumn/index.js +33 -31
  376. package/lib/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -1
  377. package/lib/ProTable/components/RcTable/components/BaseTable/index.js +2 -4
  378. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +16 -13
  379. package/lib/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -1
  380. package/lib/ProTable/components/RcTable/components/DraggableTable/index.js +2 -4
  381. package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
  382. package/lib/ProTable/components/RenderColumn/index.js +15 -18
  383. package/lib/ProTable/components/RenderSummary/index.js +4 -6
  384. package/lib/ProTable/components/RenderTableHeader/index.js +3 -5
  385. package/lib/ProTable/components/RenderTabs/index.js +3 -6
  386. package/lib/ProTable/components/TableResizable/index.js +2 -1
  387. package/lib/ProTable/components/TooltipTitle/index.js +2 -3
  388. package/lib/ProTable/hooks/useAntdTable.js +4 -7
  389. package/lib/ProTable/index.d.ts +0 -7
  390. package/lib/ProTable/index.js +10 -13
  391. package/lib/ProTable/propsType.d.ts +2 -3
  392. package/lib/ProTable/style/index.less +4 -6
  393. package/lib/ProTabs/components/Card/index.js +5 -11
  394. package/lib/ProTabs/index.js +2 -3
  395. package/lib/ProTabs/style/index.less +0 -2
  396. package/lib/ProThemeTools/component/ProTools/index.js +18 -22
  397. package/lib/ProThemeTools/context/ThemeContext.d.ts +31 -0
  398. package/lib/ProThemeTools/context/ThemeContext.js +145 -0
  399. package/lib/ProThemeTools/index.d.ts +4 -8
  400. package/lib/ProThemeTools/index.js +88 -48
  401. package/lib/ProThemeTools/style/index.less +1 -3
  402. package/lib/ProThemeTools/utils/index.d.ts +16 -6
  403. package/lib/ProThemeTools/utils/index.js +34 -27
  404. package/lib/ProTooltip/index.js +14 -9
  405. package/lib/ProTooltip/style/index.less +0 -2
  406. package/lib/ProTree/components/AdaptiveTooltip.js +2 -4
  407. package/lib/ProTree/components/List.js +3 -4
  408. package/lib/ProTree/components/ProTree.js +5 -12
  409. package/lib/ProTree/components/ProTreeSelect/index.js +28 -26
  410. package/lib/ProTree/components/ProTreeSelect/style/index.less +0 -2
  411. package/lib/ProTree/components/Tree.js +6 -13
  412. package/lib/ProTree/index.js +0 -8
  413. package/lib/ProTree/propsType.d.ts +1 -1
  414. package/lib/ProTree/style/index.less +8 -6
  415. package/lib/ProTreeModal/components/Cascader.js +3 -4
  416. package/lib/ProTreeModal/components/List.js +11 -17
  417. package/lib/ProTreeModal/components/SortableItem.js +2 -3
  418. package/lib/ProTreeModal/components/Tree.js +3 -4
  419. package/lib/ProTreeModal/components/Trigger.js +6 -11
  420. package/lib/ProTreeModal/index.d.ts +0 -1
  421. package/lib/ProTreeModal/index.js +10 -20
  422. package/lib/ProTreeModal/style/index.less +12 -3
  423. package/lib/ProUpload/components/ButtonRender.js +4 -7
  424. package/lib/ProUpload/components/DragRender.js +2 -3
  425. package/lib/ProUpload/components/FileItem.d.ts +0 -1
  426. package/lib/ProUpload/components/FileItem.js +15 -21
  427. package/lib/ProUpload/components/ImageRender.js +8 -17
  428. package/lib/ProUpload/index.js +3 -4
  429. package/lib/ProUpload/style/index.less +171 -12
  430. package/lib/ProViewer/index.js +30 -36
  431. package/lib/ProViewer/propsType.js +3 -1
  432. package/lib/ProViewer/style/index.less +0 -2
  433. package/lib/ProWaterMark/index.js +3 -4
  434. package/lib/ProWaterMark/propsType.d.ts +5 -24
  435. package/lib/global.less +2 -1
  436. package/lib/index.d.ts +3 -3
  437. package/lib/index.js +34 -21
  438. package/lib/locale/en_US.js +1 -1
  439. package/lib/locale/index.d.ts +2 -0
  440. package/lib/locale/index.js +14 -3
  441. package/lib/locale/zh_CN.js +1 -1
  442. package/lib/style/components.less +0 -3
  443. package/lib/style/index.less +1 -1
  444. package/lib/style/theme/antd.less +36 -48
  445. package/lib/style/theme/base.less +90 -0
  446. package/lib/style/theme/index.less +2 -89
  447. package/lib/utils/index.d.ts +7 -0
  448. package/lib/utils/index.js +41 -2
  449. package/package.json +37 -25
  450. package/es/ProEditTable/components/RcTable/VirtualTable.d.ts +0 -3
  451. package/es/ProEditTable/components/RcTable/VirtualTable.js +0 -9
  452. package/es/ProForm/components/combination/ProCombination/index.d.ts +0 -6
  453. package/es/ProForm/components/combination/ProCombination/index.js +0 -208
  454. package/es/ProForm/components/combination/ProCombination/propsType.d.ts +0 -68
  455. package/es/ProForm/components/combination/ProCombination/style/index.less +0 -18
  456. package/es/ProForm/components/old/EnumSelect/hooks/useRequestList.d.ts +0 -33
  457. package/es/ProForm/components/old/EnumSelect/hooks/useRequestList.js +0 -110
  458. package/es/ProForm/components/old/EnumSelect/index.d.ts +0 -4
  459. package/es/ProForm/components/old/EnumSelect/index.js +0 -265
  460. package/es/ProForm/components/old/EnumSelect/interface.d.ts +0 -29
  461. package/es/ProForm/components/old/EnumSelect/interface.js +0 -1
  462. package/es/ProForm/components/old/EnumSelect/style/index.less +0 -113
  463. package/es/ProForm/components/old/InputRange/index.d.ts +0 -16
  464. package/es/ProForm/components/old/InputRange/index.js +0 -101
  465. package/es/ProForm/components/old/InputWithSuffix/index.d.ts +0 -3
  466. package/es/ProForm/components/old/InputWithSuffix/index.js +0 -47
  467. package/es/ProForm/components/old/InputWithSuffix/propsTypes.d.ts +0 -11
  468. package/es/ProForm/components/old/InputWithSuffix/propsTypes.js +0 -1
  469. package/es/ProForm/components/old/ProAddress/index.d.ts +0 -27
  470. package/es/ProForm/components/old/ProAddress/index.js +0 -276
  471. package/es/ProForm/components/old/ProAddress/propsTypes.d.ts +0 -16
  472. package/es/ProForm/components/old/ProAddress/propsTypes.js +0 -1
  473. package/es/ProForm/components/old/ProCertNo/index.d.ts +0 -14
  474. package/es/ProForm/components/old/ProCertNo/index.js +0 -66
  475. package/es/ProForm/components/old/ProCertNo/propsType.d.ts +0 -18
  476. package/es/ProForm/components/old/ProCertNo/propsType.js +0 -1
  477. package/es/ProForm/components/old/ProCertValidity/index.d.ts +0 -9
  478. package/es/ProForm/components/old/ProCertValidity/index.js +0 -186
  479. package/es/ProForm/components/old/ProCertValidity/propsType.d.ts +0 -19
  480. package/es/ProForm/components/old/ProCertValidity/propsType.js +0 -1
  481. package/es/ProForm/components/old/ProRangeBox/index.d.ts +0 -2
  482. package/es/ProForm/components/old/ProRangeBox/index.js +0 -98
  483. package/es/ProForm/components/old/ProRangeBox/propsType.d.ts +0 -3
  484. package/es/ProForm/components/old/ProRangeBox/propsType.js +0 -1
  485. package/es/ProUpload/style/fileItem.less +0 -159
  486. package/es/old/ProCertValidity/index.d.ts +0 -9
  487. package/es/old/ProCertValidity/index.js +0 -186
  488. package/es/old/ProCertValidity/propsType.d.ts +0 -19
  489. package/es/old/ProCertValidity/propsType.js +0 -1
  490. package/es/old/ProEditableTable/index.d.ts +0 -4
  491. package/es/old/ProEditableTable/index.js +0 -594
  492. package/es/old/ProEditableTable/propsType.d.ts +0 -68
  493. package/es/old/ProEditableTable/propsType.js +0 -1
  494. package/es/old/ProEditableTable/style/index.less +0 -75
  495. package/es/old/ProEditableTable/utils.d.ts +0 -29
  496. package/es/old/ProEditableTable/utils.js +0 -321
  497. package/lib/ProEditTable/components/RcTable/VirtualTable.d.ts +0 -3
  498. package/lib/ProEditTable/components/RcTable/VirtualTable.js +0 -14
  499. package/lib/ProForm/components/combination/ProCombination/index.d.ts +0 -6
  500. package/lib/ProForm/components/combination/ProCombination/index.js +0 -217
  501. package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +0 -68
  502. package/lib/ProForm/components/combination/ProCombination/style/index.less +0 -18
  503. package/lib/ProForm/components/old/EnumSelect/hooks/useRequestList.d.ts +0 -33
  504. package/lib/ProForm/components/old/EnumSelect/hooks/useRequestList.js +0 -117
  505. package/lib/ProForm/components/old/EnumSelect/index.d.ts +0 -4
  506. package/lib/ProForm/components/old/EnumSelect/index.js +0 -271
  507. package/lib/ProForm/components/old/EnumSelect/interface.d.ts +0 -29
  508. package/lib/ProForm/components/old/EnumSelect/interface.js +0 -5
  509. package/lib/ProForm/components/old/EnumSelect/style/index.less +0 -113
  510. package/lib/ProForm/components/old/InputRange/index.d.ts +0 -16
  511. package/lib/ProForm/components/old/InputRange/index.js +0 -108
  512. package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +0 -3
  513. package/lib/ProForm/components/old/InputWithSuffix/index.js +0 -53
  514. package/lib/ProForm/components/old/InputWithSuffix/propsTypes.d.ts +0 -11
  515. package/lib/ProForm/components/old/InputWithSuffix/propsTypes.js +0 -5
  516. package/lib/ProForm/components/old/ProAddress/index.d.ts +0 -27
  517. package/lib/ProForm/components/old/ProAddress/index.js +0 -284
  518. package/lib/ProForm/components/old/ProAddress/propsTypes.d.ts +0 -16
  519. package/lib/ProForm/components/old/ProAddress/propsTypes.js +0 -5
  520. package/lib/ProForm/components/old/ProCertNo/index.d.ts +0 -14
  521. package/lib/ProForm/components/old/ProCertNo/index.js +0 -72
  522. package/lib/ProForm/components/old/ProCertNo/propsType.d.ts +0 -18
  523. package/lib/ProForm/components/old/ProCertNo/propsType.js +0 -5
  524. package/lib/ProForm/components/old/ProCertValidity/index.d.ts +0 -9
  525. package/lib/ProForm/components/old/ProCertValidity/index.js +0 -192
  526. package/lib/ProForm/components/old/ProCertValidity/propsType.d.ts +0 -19
  527. package/lib/ProForm/components/old/ProCertValidity/propsType.js +0 -5
  528. package/lib/ProForm/components/old/ProRangeBox/index.d.ts +0 -2
  529. package/lib/ProForm/components/old/ProRangeBox/index.js +0 -105
  530. package/lib/ProForm/components/old/ProRangeBox/propsType.d.ts +0 -3
  531. package/lib/ProForm/components/old/ProRangeBox/propsType.js +0 -5
  532. package/lib/ProUpload/style/fileItem.less +0 -159
  533. package/lib/old/ProCertValidity/index.d.ts +0 -9
  534. package/lib/old/ProCertValidity/index.js +0 -192
  535. package/lib/old/ProCertValidity/propsType.d.ts +0 -19
  536. package/lib/old/ProCertValidity/propsType.js +0 -5
  537. package/lib/old/ProEditableTable/index.d.ts +0 -4
  538. package/lib/old/ProEditableTable/index.js +0 -598
  539. package/lib/old/ProEditableTable/propsType.d.ts +0 -68
  540. package/lib/old/ProEditableTable/propsType.js +0 -5
  541. package/lib/old/ProEditableTable/style/index.less +0 -75
  542. package/lib/old/ProEditableTable/utils.d.ts +0 -29
  543. package/lib/old/ProEditableTable/utils.js +0 -329
  544. /package/es/ProForm/components/combination/{ProCombination → ProRangeLimit}/propsType.js +0 -0
  545. /package/lib/ProForm/components/combination/{ProCombination → ProRangeLimit}/propsType.js +0 -0
@@ -1,38 +1,35 @@
1
- @root-entry-name: 'default';
2
- @import (reference) '~antd/es/style/themes/index.less';
3
1
 
4
2
  .pro-layout-menu-fold-list {
5
3
  padding-top: 4px;
6
- overflow-y : auto;
4
+ overflow-y: auto;
7
5
 
8
6
  li {
9
- width : 100%;
10
- min-height : 48px;
11
- padding : 12px;
12
- overflow : hidden;
7
+ width: 100%;
8
+ min-height: 48px;
9
+ padding: 12px;
10
+ overflow: hidden;
13
11
  text-overflow: ellipsis;
14
12
 
15
13
  div {
16
- display : flex;
17
- align-items : center;
14
+ display: flex;
15
+ align-items: center;
18
16
  justify-content: center;
19
- color : var(--zaui-text, #343434);
17
+ color: var(--zaui-text, #343434);
20
18
 
21
19
  .pro-layout-icon {
22
- flex : 0 0 20px;
23
- width : 20px;
24
- height : 20px;
20
+ flex: 0 0 20px;
21
+ width: 20px;
25
22
  min-width: 20px;
26
- color : #fff;
23
+ height: 20px;
24
+ color: #fff;
27
25
  }
28
26
 
29
27
  h2 {
30
- flex-grow : 1;
31
- margin-bottom: 0;
32
- opacity : 1;
33
- transition : opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1),
34
- margin 0.3s, color 0.3s;
35
28
  display: none;
29
+ flex-grow: 1;
30
+ margin-bottom: 0;
31
+ opacity: 1;
32
+ transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), margin 0.3s, color 0.3s;
36
33
  }
37
34
  }
38
35
 
@@ -42,20 +39,20 @@
42
39
 
43
40
  i {
44
41
  display: inline-block;
45
- width : 19px;
46
- color : #909090;
42
+ width: 19px;
43
+ color: #909090;
47
44
  }
48
45
 
49
46
  h2 {
50
- display : inline-block;
47
+ display: inline-block;
51
48
  padding-left: var(--zaui-space-size-sm, 8px);
52
- color : var(--zaui-base-bg, #ffffff);
53
- font-weight : normal;
54
- font-size : var(--zaui-font-size-md, 14px);
49
+ color: var(--zaui-base-bg, #ffffff);
50
+ font-weight: normal;
51
+ font-size: var(--zaui-font-size-md, 14px);
55
52
  }
56
53
 
57
54
  &.active {
58
- background-color: var(--zaui-brand, #006AFF);
55
+ background-color: var(--zaui-brand, #006aff);
59
56
 
60
57
  a {
61
58
  h2 {
@@ -67,37 +64,41 @@
67
64
  }
68
65
 
69
66
  .pro-layout-menu-tooltip {
70
- top : 48px !important;
71
- transform : none !important;
72
- transition: none !important
67
+ top: 48px !important;
68
+ transform: none !important;
69
+ transition: none !important;
73
70
  }
74
71
 
75
72
  .pro-layout-menu-tooltip.pro-layout-menu-tooltip-has-notice {
76
- top: 80px !important
73
+ top: 80px !important;
77
74
  }
78
75
 
79
76
  .pro-layout-menu-tooltip.pro-layout-menu-tooltip-nav-open.@{ant-prefix}-popover-placement-rightBottom,
80
77
  .pro-layout-menu-tooltip.pro-layout-menu-tooltip-nav-open.@{ant-prefix}-popover-placement-rightTop {
81
- left: 220px !important
78
+ left: 220px !important;
82
79
  }
83
80
 
84
81
  .pro-layout-menu-tooltip.@{ant-prefix}-popover-placement-rightBottom,
85
82
  .pro-layout-menu-tooltip.@{ant-prefix}-popover-placement-rightTop {
86
- position : fixed;
87
- z-index : 1001;
88
- left : 49px !important;
89
- padding-left: 0
83
+ position: fixed;
84
+ left: 49px !important;
85
+ z-index: 99;
86
+ padding-left: 0;
87
+
88
+ .@{ant-prefix}-popover-arrow {
89
+ display: none;
90
+ }
90
91
  }
91
92
 
92
93
  .pro-layout-menu-tooltip .@{ant-prefix}-popover-inner-content {
93
- padding: 0
94
+ padding: 0;
94
95
  }
95
96
 
96
- .pro-layout-menu-tooltip .@{ant-prefix}-popover-content>.@{ant-prefix}-popover-arrow {
97
- display: none
97
+ .pro-layout-menu-tooltip .@{ant-prefix}-popover-content > .@{ant-prefix}-popover-arrow {
98
+ display: none;
98
99
  }
99
100
 
100
101
  .pro-layout-menu-tooltip .@{ant-prefix}-popover-content .@{ant-prefix}-popover-inner {
101
- padding : 0;
102
+ padding: 0;
102
103
  box-shadow: 2px 0px 5px 0px rgba(0, 55, 93, 0.1);
103
104
  }
@@ -1,7 +1,6 @@
1
- import "antd/es/menu/style";
2
- import _Menu from "antd/es/menu";
3
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
2
  import { useMemo, useRef, useContext } from 'react';
3
+ import { Menu } from 'antd';
5
4
  import { useDeepCompareEffect, useSetState } from 'ahooks';
6
5
  import { CaretDownOutlined } from '@ant-design/icons';
7
6
  import classnames from 'classnames';
@@ -132,7 +131,7 @@ var OpenMenu = props => {
132
131
  return /*#__PURE__*/_jsxs("div", {
133
132
  className: cls,
134
133
  style: style,
135
- children: [/*#__PURE__*/_jsx(_Menu, {
134
+ children: [/*#__PURE__*/_jsx(Menu, {
136
135
  mode: "inline"
137
136
  // @ts-ignore
138
137
  ,
@@ -1,6 +1,3 @@
1
- @root-entry-name: 'default';
2
- @import (reference) '~antd/es/style/themes/index.less';
3
-
4
1
  .pro-layout-open-menu {
5
2
  color: #fff;
6
3
 
@@ -1,5 +1,3 @@
1
- @root-entry-name: 'default';
2
- @import (reference) '~antd/es/style/themes/index.less';
3
1
 
4
2
  .pro-layout-sider-menu {
5
3
  width: 220px;
@@ -61,7 +59,7 @@
61
59
  display: none;
62
60
 
63
61
  & ~ h2 {
64
- margin-left: var(--zaui-space-size-md, 16px);
62
+ margin-left: 32px;
65
63
  }
66
64
  }
67
65
  }
@@ -93,12 +91,16 @@
93
91
  color: #909090;
94
92
  }
95
93
 
94
+
95
+
96
96
  .@{ant-prefix}-menu-submenu-title,
97
97
  &.@{ant-prefix}-menu-root > .@{ant-prefix}-menu-item-only-child,
98
98
  &.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline > .@{ant-prefix}-menu-item {
99
99
  min-height: 40px;
100
- padding-top: 10px;
101
- padding-bottom: 10px;
100
+ padding-top: 8px;
101
+ padding-bottom: 8px;
102
+ width: 100%;
103
+ border-radius: 0;
102
104
  }
103
105
  }
104
106
  }
@@ -27,7 +27,7 @@ var Menu = props => {
27
27
  } else if (dataSource) {
28
28
  menus = dataSource === null || dataSource === void 0 ? void 0 : dataSource.menus;
29
29
  }
30
- if (pure.leftMenu || pure === true) {
30
+ if (pure !== null && pure !== void 0 && pure.leftMenu || pure === true) {
31
31
  return /*#__PURE__*/_jsx(_Fragment, {});
32
32
  }
33
33
  return /*#__PURE__*/_jsxs("div", {
@@ -1,5 +1,3 @@
1
- @root-entry-name: 'default';
2
- @import (reference) '~antd/es/style/themes/index.less';
3
1
  @import '../FoldMenu/style/index.less';
4
2
  @import '../OpenMenu/style/index.less';
5
3
  @import '../SideMenu/style/index.less';
@@ -1,5 +1,3 @@
1
- @root-entry-name: 'default';
2
- @import (reference) '~antd/es/style/themes/index.less';
3
1
 
4
2
  /** 告知区 */
5
3
  .pro-layout-header-notice {
@@ -1,18 +1,12 @@
1
- import "antd/es/descriptions/style";
2
- import _Descriptions from "antd/es/descriptions";
3
- import "antd/es/space/style";
4
- import _Space from "antd/es/space";
5
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
6
- import "antd/es/collapse/style";
7
- import _Collapse from "antd/es/collapse";
8
2
  import { useLayoutEffect } from 'react';
3
+ import { Collapse, Descriptions, Space } from 'antd';
9
4
  import { CaretRightOutlined } from '@ant-design/icons';
10
5
  import classNames from 'classnames';
11
6
  import foldSvg from "../../../assets/fold.svg";
12
7
  import ProIcon from "../../../ProIcon/index";
13
8
  import { jsx as _jsx } from "react/jsx-runtime";
14
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
15
- var Panel = _Collapse.Panel;
16
10
  var ProCollapse = props => {
17
11
  var title = props.title,
18
12
  id = props.id,
@@ -62,29 +56,21 @@ var ProCollapse = props => {
62
56
  style: contentStyle,
63
57
  children: children
64
58
  });
65
- var renderPanel = () => {
59
+
60
+ // 生成 Collapse items 配置
61
+ var getCollapseItems = () => {
66
62
  var _title = title;
63
+ var panelClassName = 'pro-collapse-panel';
64
+ var panelProps = {};
67
65
  if (level === '2') {
68
- var level2Panel = classNames({
66
+ panelClassName = classNames({
69
67
  'pro-collapse-level2-collapse': towCollapse,
70
68
  'pro-collapse-level2-no-collapse': !towCollapse,
71
69
  'pro-collapse-panel': true
72
70
  });
73
- var hasCollapse = {};
74
71
  if (!towCollapse) {
75
- hasCollapse.collapsible = 'disabled';
72
+ panelProps.collapsible = 'disabled';
76
73
  }
77
- return /*#__PURE__*/_jsx(Panel, _objectSpread(_objectSpread(_objectSpread({
78
- header: _title,
79
- className: level2Panel,
80
- extra: /*#__PURE__*/_jsx("div", {
81
- className: "extra-info",
82
- children: extra
83
- }),
84
- forceRender: true
85
- }, hasCollapse), collapsePanelProps), {}, {
86
- children: content
87
- }), "1");
88
74
  }
89
75
  if (level === '3') {
90
76
  var level3Panel = classNames({
@@ -92,24 +78,24 @@ var ProCollapse = props => {
92
78
  'pro-collapse-level3-no-collapse': !threeCollapse,
93
79
  'pro-collapse-panel': true
94
80
  });
95
- var _hasCollapse = {};
81
+ var hasCollapse = {};
96
82
  if (!threeCollapse) {
97
- _hasCollapse.collapsible = 'disabled';
83
+ hasCollapse.collapsible = 'disabled';
98
84
  }
99
- return /*#__PURE__*/_jsx(Panel, _objectSpread(_objectSpread(_objectSpread({
100
- header: _title,
101
- className: level3Panel,
85
+ return [_objectSpread(_objectSpread({
86
+ key: '1',
87
+ label: _title,
88
+ children: content,
102
89
  extra: /*#__PURE__*/_jsx("div", {
103
90
  className: "extra-info",
104
91
  children: extra
105
92
  }),
93
+ className: level3Panel,
106
94
  forceRender: true
107
- }, _hasCollapse), collapsePanelProps), {}, {
108
- children: content
109
- }), "1");
95
+ }, hasCollapse), collapsePanelProps)];
110
96
  }
111
97
  if (icon) {
112
- _title = /*#__PURE__*/_jsxs(_Space, {
98
+ _title = /*#__PURE__*/_jsxs(Space, {
113
99
  size: 8,
114
100
  align: "center",
115
101
  children: [/*#__PURE__*/_jsx("div", {
@@ -123,25 +109,25 @@ var ProCollapse = props => {
123
109
  }), title]
124
110
  });
125
111
  }
126
- return /*#__PURE__*/_jsx(Panel, _objectSpread(_objectSpread({
127
- header: _title,
128
- className: "pro-collapse-panel",
112
+ return [_objectSpread(_objectSpread({
113
+ key: '1',
114
+ label: _title,
115
+ children: content,
129
116
  extra: /*#__PURE__*/_jsx("div", {
130
117
  className: "extra-info",
131
118
  children: extra
132
119
  }),
120
+ className: panelClassName,
133
121
  forceRender: true
134
- }, collapsePanelProps), {}, {
135
- children: content
136
- }), "1");
122
+ }, panelProps), collapsePanelProps)];
137
123
  };
138
124
  var renderTitleList = () => {
139
125
  return /*#__PURE__*/_jsxs("div", {
140
126
  className: cls,
141
- children: [/*#__PURE__*/_jsx(_Descriptions, {
127
+ children: [/*#__PURE__*/_jsx(Descriptions, {
142
128
  column: column,
143
129
  children: titleList === null || titleList === void 0 ? void 0 : titleList.map(item => {
144
- return /*#__PURE__*/_jsx(_Descriptions.Item, {
130
+ return /*#__PURE__*/_jsx(Descriptions.Item, {
145
131
  label: item.label,
146
132
  children: item.value || '-'
147
133
  }, item.label);
@@ -182,7 +168,7 @@ var ProCollapse = props => {
182
168
  return /*#__PURE__*/_jsx("div", {
183
169
  id: id,
184
170
  style: style,
185
- children: Array.isArray(titleList) && titleList.length ? renderTitleList() : /*#__PURE__*/_jsx(_Collapse, _objectSpread(_objectSpread({
171
+ children: Array.isArray(titleList) && titleList.length ? renderTitleList() : /*#__PURE__*/_jsx(Collapse, _objectSpread({
186
172
  className: cls,
187
173
  bordered: false,
188
174
  expandIcon: _ref => {
@@ -193,10 +179,9 @@ var ProCollapse = props => {
193
179
  },
194
180
  expandIconPosition: "end",
195
181
  defaultActiveKey: folding ? [] : ['1'],
196
- onChange: onChange
197
- }, finalCollapseProps), {}, {
198
- children: renderPanel()
199
- }))
182
+ onChange: onChange,
183
+ items: getCollapseItems()
184
+ }, finalCollapseProps))
200
185
  });
201
186
  };
202
187
  export default ProCollapse;
@@ -1,5 +1,3 @@
1
- @root-entry-name: 'default';
2
- @import (reference) '~antd/es/style/themes/index.less';
3
1
 
4
2
  .pro-collapse {
5
3
  .pro-collapse-icon{
@@ -33,7 +31,8 @@
33
31
  .@{ant-prefix}-collapse-header {
34
32
  align-items: center !important;
35
33
  padding: 10px var(--zaui-space-size-md, 16px) !important;
36
- background: var(--zaui-area, #fafafa);
34
+ background: #e4f2fe;
35
+ border-radius: 8px !important;
37
36
  }
38
37
 
39
38
  .@{ant-prefix}-collapse-header-text {
@@ -111,6 +110,7 @@
111
110
  padding: 0 8px 6px !important;
112
111
  border-bottom: 1px solid #dee0e3;
113
112
  margin: 0 -8px;
113
+ border-radius: 0 !important;
114
114
  .@{ant-prefix}-collapse-arrow{
115
115
  right: 8px;
116
116
  }
@@ -118,7 +118,7 @@
118
118
 
119
119
  .@{ant-prefix}-collapse-extra {
120
120
  .extra-info {
121
- margin-right: var(--zaui-space-size-lg, 32px);
121
+ margin-right: 4px;
122
122
  }
123
123
  }
124
124
  }
@@ -306,6 +306,7 @@
306
306
  .@{ant-prefix}-collapse-expand-icon {
307
307
  display: block !important;
308
308
  color: #999;
309
+ margin-right: 8px;
309
310
  }
310
311
 
311
312
  .@{ant-prefix}-collapse-header {
@@ -1,7 +1,6 @@
1
- import "antd/es/space/style";
2
- import _Space from "antd/es/space";
3
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
2
  import { useSize } from 'ahooks';
3
+ import { Space } from 'antd';
5
4
  import classnames from 'classnames';
6
5
  import { memo, useEffect } from 'react';
7
6
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -41,7 +40,7 @@ var ProFooter = props => {
41
40
  zIndex,
42
41
  width: `calc(100% - ${size === null || size === void 0 ? void 0 : size.width}px)`
43
42
  }, props.style),
44
- children: /*#__PURE__*/_jsx(_Space, {
43
+ children: /*#__PURE__*/_jsx(Space, {
45
44
  children: children
46
45
  })
47
46
  });
@@ -1,5 +1,3 @@
1
- @root-entry-name: 'default';
2
- @import (reference) '~antd/es/style/themes/index.less';
3
1
 
4
2
  .pro-footer {
5
3
  position: fixed;
@@ -1,11 +1,10 @@
1
- import "antd/es/typography/style";
2
- import _Typography from "antd/es/typography";
1
+ import { Typography } from 'antd';
3
2
  import { ReactSVG } from 'react-svg';
4
3
  import { CheckOutlined } from '@ant-design/icons';
5
4
  import copySvg from "../../../../../assets/copy.svg";
6
5
  import locale from "../../../../../locale";
7
6
  import { jsx as _jsx } from "react/jsx-runtime";
8
- var Paragraph = _Typography.Paragraph;
7
+ var Paragraph = Typography.Paragraph;
9
8
  var Copy = _ref => {
10
9
  var text = _ref.text;
11
10
  return /*#__PURE__*/_jsx(Paragraph, {
@@ -1,6 +1,5 @@
1
- import "antd/es/button/style";
2
- import _Button from "antd/es/button";
3
1
  import { ArrowLeftOutlined } from '@ant-design/icons';
2
+ import { Button } from 'antd';
4
3
  import locale from "../../../../../locale";
5
4
 
6
5
  /**
@@ -20,7 +19,7 @@ var ProBackBtn = _ref => {
20
19
  window.history.back();
21
20
  }
22
21
  };
23
- return /*#__PURE__*/_jsx(_Button, {
22
+ return /*#__PURE__*/_jsx(Button, {
24
23
  icon: /*#__PURE__*/_jsx(ArrowLeftOutlined, {}),
25
24
  className: "back-button-container",
26
25
  onClick: handleClick,
@@ -1,24 +1,22 @@
1
- @root-entry-name: 'default';
2
- @import (reference) '~antd/es/style/themes/index.less';
3
1
 
4
2
  .back-button-container {
5
3
  &.@{ant-prefix}-btn {
6
4
  color : var(--zaui-text);
7
5
  font-weight: 400;
8
- background : var(--zaui-disabled-bg);
9
- border : none;
6
+ background : var(--zaui-disabled-bg) !important;
7
+ border : none !important;
10
8
 
11
9
  &:hover {
12
- color : var(--zaui-aide-text);
13
- background: var(--zaui-disabled-bg);
14
- border : none;
10
+ color : var(--zaui-aide-text) !important;
11
+ background: var(--zaui-disabled-bg) !important;
12
+ border : none !important;
15
13
  }
16
14
 
17
15
  &:active,
18
16
  &:focus {
19
- color : var(--zaui-text);
17
+ color : var(--zaui-text) !important;
20
18
  font-weight: 400;
21
- background : var(--zaui-disabled-bg);
19
+ background : var(--zaui-disabled-bg) !important;
22
20
  }
23
21
  }
24
22
  }