@zat-design/sisyphus-react 4.2.0-beta.2 → 4.2.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (789) hide show
  1. package/dist/index.esm.css +1 -1
  2. package/dist/less.esm.css +1 -1
  3. package/es/FormsProvider/index.js +7 -7
  4. package/es/ProAction/components/CheckModalContent/index.js +5 -5
  5. package/es/ProAction/index.js +98 -164
  6. package/es/ProConfigProvider/index.js +71 -60
  7. package/es/ProDownload/index.js +97 -184
  8. package/es/ProDownload/utils.js +98 -149
  9. package/es/ProDrawerForm/components/ProDrawer/index.js +100 -177
  10. package/es/ProDrawerForm/components/ProModal/index.js +73 -140
  11. package/es/ProDrawerForm/index.js +36 -54
  12. package/es/ProDrawerForm/utils/index.js +1 -1
  13. package/es/ProEditLabel/components/RenderProForm.js +29 -35
  14. package/es/ProEditLabel/index.js +97 -167
  15. package/es/ProEditLabel/utils/index.js +1 -1
  16. package/es/ProEditTable/components/ActionButton/index.js +61 -56
  17. package/es/ProEditTable/components/RcTable/BaseTable.js +51 -65
  18. package/es/ProEditTable/components/RcTable/DraggableTable.js +112 -106
  19. package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +107 -98
  20. package/es/ProEditTable/components/RenderField/index.js +465 -598
  21. package/es/ProEditTable/components/RenderToolbar/index.js +71 -90
  22. package/es/ProEditTable/components/Summary/index.js +40 -35
  23. package/es/ProEditTable/components/Validator/index.js +7 -6
  24. package/es/ProEditTable/index.js +256 -307
  25. package/es/ProEditTable/utils/config.js +158 -184
  26. package/es/ProEditTable/utils/diffOriginal.js +45 -37
  27. package/es/ProEditTable/utils/getDefaultProps.js +23 -19
  28. package/es/ProEditTable/utils/index.js +189 -215
  29. package/es/ProEditTable/utils/tools.js +213 -344
  30. package/es/ProEditTable/utils/transform.js +10 -14
  31. package/es/ProEditTable/utils/useEditTableError.js +18 -29
  32. package/es/ProEditTable/utils/useShouldUpdateForTable.js +55 -63
  33. package/es/ProEnum/components/Group.js +17 -25
  34. package/es/ProEnum/components/Tag.js +12 -19
  35. package/es/ProEnum/hooks/useEnum.js +54 -72
  36. package/es/ProEnum/hooks/useEnumRequest.js +226 -341
  37. package/es/ProEnum/hooks/useFrequentEnumRequest.js +49 -69
  38. package/es/ProEnum/index.js +127 -137
  39. package/es/ProEnum/utils/eventCenter.js +2 -2
  40. package/es/ProEnum/utils/frequentEnum.js +55 -74
  41. package/es/ProEnum/utils/getEnumLabel.js +29 -29
  42. package/es/ProEnum/utils/index.js +107 -239
  43. package/es/ProForm/components/Container.js +10 -8
  44. package/es/ProForm/components/FormFooter/index.js +42 -44
  45. package/es/ProForm/components/base/Checkbox/index.js +29 -34
  46. package/es/ProForm/components/base/DatePicker/index.js +41 -39
  47. package/es/ProForm/components/base/DatePicker/useDateLimit.js +2 -11
  48. package/es/ProForm/components/base/Input/index.js +54 -55
  49. package/es/ProForm/components/base/InputNumber/index.js +115 -136
  50. package/es/ProForm/components/base/Radio/index.js +26 -32
  51. package/es/ProForm/components/base/RangePicker/index.js +63 -57
  52. package/es/ProForm/components/base/RangePicker/useDateRange.js +11 -19
  53. package/es/ProForm/components/base/Select/index.js +44 -50
  54. package/es/ProForm/components/base/Switch/index.js +21 -24
  55. package/es/ProForm/components/base/SwitchCheckbox/index.js +26 -29
  56. package/es/ProForm/components/base/TextArea/index.js +25 -29
  57. package/es/ProForm/components/base/TimePicker/index.js +24 -28
  58. package/es/ProForm/components/combination/Container/index.js +34 -33
  59. package/es/ProForm/components/combination/FormList/components/ActionButton.js +181 -207
  60. package/es/ProForm/components/combination/FormList/components/BlockFields.js +30 -29
  61. package/es/ProForm/components/combination/FormList/components/BlockTitle.js +12 -10
  62. package/es/ProForm/components/combination/FormList/components/Empty.js +32 -60
  63. package/es/ProForm/components/combination/FormList/components/LineFields.js +42 -42
  64. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +98 -120
  65. package/es/ProForm/components/combination/FormList/index.js +78 -70
  66. package/es/ProForm/components/combination/FormList/utils.js +13 -13
  67. package/es/ProForm/components/combination/Group/component/AddonWrapper/index.js +6 -4
  68. package/es/ProForm/components/combination/Group/component/ComRender.js +77 -69
  69. package/es/ProForm/components/combination/Group/component/FlexibleGroup.js +101 -105
  70. package/es/ProForm/components/combination/Group/hooks/index.js +101 -99
  71. package/es/ProForm/components/combination/Group/index.js +83 -80
  72. package/es/ProForm/components/combination/Group/utils/index.js +155 -163
  73. package/es/ProForm/components/combination/ProCascader/index.js +145 -169
  74. package/es/ProForm/components/combination/ProCascader/utils/index.js +15 -18
  75. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +65 -90
  76. package/es/ProForm/components/combination/ProModalSelect/index.js +384 -502
  77. package/es/ProForm/components/combination/ProModalSelect/utils/index.js +11 -11
  78. package/es/ProForm/components/combination/ProNumberRange/index.js +64 -72
  79. package/es/ProForm/components/combination/ProRangeLimit/index.js +82 -109
  80. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +10 -18
  81. package/es/ProForm/components/combination/ProTimeLimit/index.js +78 -88
  82. package/es/ProForm/components/render/ChangedWrapper.js +71 -64
  83. package/es/ProForm/components/render/ConfirmWrapper.js +52 -113
  84. package/es/ProForm/components/render/CustomComponentViewWrapper.js +42 -45
  85. package/es/ProForm/components/render/Render.js +202 -220
  86. package/es/ProForm/components/render/RenderFields.js +99 -93
  87. package/es/ProForm/components/render/propsType.js +1 -1
  88. package/es/ProForm/index.js +128 -143
  89. package/es/ProForm/propsType.js +1 -1
  90. package/es/ProForm/utils/diffOriginal.js +39 -33
  91. package/es/ProForm/utils/getDefaultProps.js +24 -19
  92. package/es/ProForm/utils/index.js +115 -132
  93. package/es/ProForm/utils/processDependencies.js +7 -3
  94. package/es/ProForm/utils/rulesCreator.js +28 -36
  95. package/es/ProForm/utils/transformNames.js +18 -19
  96. package/es/ProForm/utils/transformValue.js +16 -25
  97. package/es/ProForm/utils/useDeepCompareMemo.js +7 -7
  98. package/es/ProForm/utils/useFieldProps.js +3 -3
  99. package/es/ProForm/utils/useForm.js +106 -190
  100. package/es/ProForm/utils/useRules.js +23 -20
  101. package/es/ProForm/utils/useShouldUpdate.js +107 -110
  102. package/es/ProForm/utils/useWatch.js +30 -37
  103. package/es/ProForm/utils/valueType.js +122 -143
  104. package/es/ProIcon/config/index.js +3 -3
  105. package/es/ProIcon/index.js +152 -167
  106. package/es/ProIcon/utils/index.js +28 -27
  107. package/es/ProLayout/components/Layout/Header/index.js +28 -36
  108. package/es/ProLayout/components/Layout/Icon/Icon.js +10 -9
  109. package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +61 -55
  110. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +57 -66
  111. package/es/ProLayout/components/Layout/Menu/SideMenu/index.js +18 -14
  112. package/es/ProLayout/components/Layout/Menu/index.js +30 -40
  113. package/es/ProLayout/components/Layout/Notice/index.js +6 -4
  114. package/es/ProLayout/components/ProCollapse/index.js +63 -68
  115. package/es/ProLayout/components/ProFooter/index.js +16 -22
  116. package/es/ProLayout/components/ProHeader/components/Copy/index.js +6 -3
  117. package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.js +5 -5
  118. package/es/ProLayout/components/ProHeader/index.js +132 -149
  119. package/es/ProLayout/components/ProHeader/utils/index.js +5 -5
  120. package/es/ProLayout/components/TabsManager/components/TabContextMenu.js +20 -31
  121. package/es/ProLayout/components/TabsManager/components/TabItem.js +18 -18
  122. package/es/ProLayout/components/TabsManager/components/TabsContext.js +1 -1
  123. package/es/ProLayout/components/TabsManager/components/TabsHeader.js +9 -17
  124. package/es/ProLayout/components/TabsManager/hooks/useActiveTab.js +2 -2
  125. package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.js +1 -1
  126. package/es/ProLayout/components/TabsManager/hooks/useTabsCache.js +15 -15
  127. package/es/ProLayout/components/TabsManager/hooks/useTabsState.js +103 -119
  128. package/es/ProLayout/components/TabsManager/index.js +51 -60
  129. package/es/ProLayout/components/TabsManager/propTypes.js +1 -1
  130. package/es/ProLayout/components/TabsManager/utils/index.js +20 -21
  131. package/es/ProLayout/index.js +84 -98
  132. package/es/ProLayout/propTypes.js +2 -4
  133. package/es/ProLayout/utils/index.js +66 -85
  134. package/es/ProSelect/components/AdaptiveTooltip.js +8 -16
  135. package/es/ProSelect/index.js +168 -186
  136. package/es/ProSelect/utils/index.js +49 -77
  137. package/es/ProStep/components/Anchor/index.js +21 -19
  138. package/es/ProStep/components/Item/index.js +32 -39
  139. package/es/ProStep/components/Listener/index.js +36 -60
  140. package/es/ProStep/components/Step/index.js +26 -40
  141. package/es/ProStep/index.js +104 -192
  142. package/es/ProStep/utils/index.js +20 -23
  143. package/es/ProStepTab/index.js +117 -235
  144. package/es/ProTable/components/FormatColumn/index.js +246 -219
  145. package/es/ProTable/components/RcTable/components/BaseTable/index.js +21 -25
  146. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +111 -143
  147. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +52 -60
  148. package/es/ProTable/components/RcTable/components/DraggableTable/index.js +28 -30
  149. package/es/ProTable/components/RenderColumn/index.js +58 -66
  150. package/es/ProTable/components/RenderEmptyText/index.js +7 -7
  151. package/es/ProTable/components/RenderFooter/index.js +10 -8
  152. package/es/ProTable/components/RenderSummary/index.js +31 -30
  153. package/es/ProTable/components/RenderTableHeader/index.js +19 -17
  154. package/es/ProTable/components/RenderTabs/index.js +31 -45
  155. package/es/ProTable/components/TableResizable/index.js +33 -50
  156. package/es/ProTable/components/TooltipTitle/index.js +10 -7
  157. package/es/ProTable/hooks/useAntdTable.js +214 -267
  158. package/es/ProTable/index.js +192 -234
  159. package/es/ProTable/utils/index.js +23 -31
  160. package/es/ProTabs/components/Card/index.js +10 -8
  161. package/es/ProTabs/index.js +51 -61
  162. package/es/ProThemeTools/component/ProTools/index.js +65 -71
  163. package/es/ProThemeTools/context/ThemeContext.js +97 -93
  164. package/es/ProThemeTools/index.js +79 -91
  165. package/es/ProThemeTools/utils/index.js +49 -71
  166. package/es/ProTooltip/index.js +110 -120
  167. package/es/ProTree/components/AdaptiveTooltip.js +3 -2
  168. package/es/ProTree/components/CloseIcon.js +3 -7
  169. package/es/ProTree/components/List.js +21 -27
  170. package/es/ProTree/components/ProTree.js +162 -204
  171. package/es/ProTree/components/ProTreeSelect/index.js +250 -265
  172. package/es/ProTree/components/SearchTitle.js +18 -17
  173. package/es/ProTree/components/Tree.js +109 -148
  174. package/es/ProTree/index.js +15 -15
  175. package/es/ProTree/utils.js +48 -83
  176. package/es/ProTreeModal/components/Cascader.js +28 -41
  177. package/es/ProTreeModal/components/CloseIcon.js +3 -7
  178. package/es/ProTreeModal/components/List.js +90 -96
  179. package/es/ProTreeModal/components/SearchTitle.js +9 -8
  180. package/es/ProTreeModal/components/SortableItem.js +40 -37
  181. package/es/ProTreeModal/components/Tree.js +53 -69
  182. package/es/ProTreeModal/components/Trigger.js +55 -67
  183. package/es/ProTreeModal/index.js +203 -217
  184. package/es/ProTreeModal/utils.js +61 -101
  185. package/es/ProUpload/components/ButtonRender.js +31 -58
  186. package/es/ProUpload/components/DragRender.js +41 -42
  187. package/es/ProUpload/components/DraggableUploadListItem.js +19 -21
  188. package/es/ProUpload/components/Example.js +14 -25
  189. package/es/ProUpload/components/FileItem.js +39 -38
  190. package/es/ProUpload/components/ImageRender.js +59 -100
  191. package/es/ProUpload/index.js +129 -131
  192. package/es/ProUpload/uitls.js +3 -3
  193. package/es/ProUtils/utils/index.js +6 -10
  194. package/es/ProViewer/index.js +66 -102
  195. package/es/ProWaterMark/index.js +8 -10
  196. package/es/locale/index.js +5 -5
  197. package/es/tokens.js +1 -1
  198. package/es/utils/index.js +11 -20
  199. package/package.json +10 -10
  200. package/.claudeignore +0 -40
  201. package/lib/FormsProvider/index.d.ts +0 -18
  202. package/lib/FormsProvider/index.js +0 -44
  203. package/lib/ProAction/components/CheckModalContent/index.css +0 -22
  204. package/lib/ProAction/components/CheckModalContent/index.d.ts +0 -8
  205. package/lib/ProAction/components/CheckModalContent/index.js +0 -34
  206. package/lib/ProAction/components/CheckModalContent/index.less +0 -28
  207. package/lib/ProAction/index.d.ts +0 -7
  208. package/lib/ProAction/index.js +0 -232
  209. package/lib/ProAction/index.less +0 -8
  210. package/lib/ProAction/propsType.d.ts +0 -45
  211. package/lib/ProAction/propsType.js +0 -5
  212. package/lib/ProConfigProvider/index.d.ts +0 -9
  213. package/lib/ProConfigProvider/index.js +0 -158
  214. package/lib/ProConfigProvider/propsType.d.ts +0 -55
  215. package/lib/ProConfigProvider/propsType.js +0 -5
  216. package/lib/ProDownload/index.d.ts +0 -6
  217. package/lib/ProDownload/index.js +0 -208
  218. package/lib/ProDownload/propsType.d.ts +0 -71
  219. package/lib/ProDownload/propsType.js +0 -5
  220. package/lib/ProDownload/style/index.less +0 -9
  221. package/lib/ProDownload/utils.d.ts +0 -60
  222. package/lib/ProDownload/utils.js +0 -213
  223. package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +0 -7
  224. package/lib/ProDrawerForm/components/ProDrawer/index.js +0 -287
  225. package/lib/ProDrawerForm/components/ProModal/index.d.ts +0 -7
  226. package/lib/ProDrawerForm/components/ProModal/index.js +0 -222
  227. package/lib/ProDrawerForm/components/index.d.ts +0 -2
  228. package/lib/ProDrawerForm/components/index.js +0 -20
  229. package/lib/ProDrawerForm/index.d.ts +0 -6
  230. package/lib/ProDrawerForm/index.js +0 -106
  231. package/lib/ProDrawerForm/propsType.d.ts +0 -100
  232. package/lib/ProDrawerForm/propsType.js +0 -5
  233. package/lib/ProDrawerForm/style/index.less +0 -172
  234. package/lib/ProDrawerForm/utils/index.d.ts +0 -6
  235. package/lib/ProDrawerForm/utils/index.js +0 -23
  236. package/lib/ProEditLabel/components/RenderProForm.d.ts +0 -4
  237. package/lib/ProEditLabel/components/RenderProForm.js +0 -87
  238. package/lib/ProEditLabel/index.d.ts +0 -4
  239. package/lib/ProEditLabel/index.js +0 -361
  240. package/lib/ProEditLabel/propsType.d.ts +0 -163
  241. package/lib/ProEditLabel/propsType.js +0 -5
  242. package/lib/ProEditLabel/style/index.less +0 -135
  243. package/lib/ProEditLabel/utils/index.d.ts +0 -7
  244. package/lib/ProEditLabel/utils/index.js +0 -24
  245. package/lib/ProEditTable/components/ActionButton/index.d.ts +0 -2
  246. package/lib/ProEditTable/components/ActionButton/index.js +0 -189
  247. package/lib/ProEditTable/components/RcTable/BaseTable.d.ts +0 -6
  248. package/lib/ProEditTable/components/RcTable/BaseTable.js +0 -125
  249. package/lib/ProEditTable/components/RcTable/DraggableTable.d.ts +0 -7
  250. package/lib/ProEditTable/components/RcTable/DraggableTable.js +0 -219
  251. package/lib/ProEditTable/components/RcTable/index.d.ts +0 -4
  252. package/lib/ProEditTable/components/RcTable/index.js +0 -20
  253. package/lib/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +0 -17
  254. package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +0 -244
  255. package/lib/ProEditTable/components/RenderField/index.d.ts +0 -3
  256. package/lib/ProEditTable/components/RenderField/index.js +0 -1169
  257. package/lib/ProEditTable/components/RenderToolbar/index.d.ts +0 -2
  258. package/lib/ProEditTable/components/RenderToolbar/index.js +0 -148
  259. package/lib/ProEditTable/components/Summary/index.d.ts +0 -12
  260. package/lib/ProEditTable/components/Summary/index.js +0 -89
  261. package/lib/ProEditTable/components/Validator/index.d.ts +0 -10
  262. package/lib/ProEditTable/components/Validator/index.js +0 -34
  263. package/lib/ProEditTable/components/index.d.ts +0 -5
  264. package/lib/ProEditTable/components/index.js +0 -41
  265. package/lib/ProEditTable/index.d.ts +0 -4
  266. package/lib/ProEditTable/index.js +0 -535
  267. package/lib/ProEditTable/propsType.d.ts +0 -439
  268. package/lib/ProEditTable/propsType.js +0 -5
  269. package/lib/ProEditTable/style/index.less +0 -448
  270. package/lib/ProEditTable/utils/config.d.ts +0 -25
  271. package/lib/ProEditTable/utils/config.js +0 -293
  272. package/lib/ProEditTable/utils/diffOriginal.d.ts +0 -22
  273. package/lib/ProEditTable/utils/diffOriginal.js +0 -142
  274. package/lib/ProEditTable/utils/getDefaultProps.d.ts +0 -1
  275. package/lib/ProEditTable/utils/getDefaultProps.js +0 -39
  276. package/lib/ProEditTable/utils/index.d.ts +0 -9
  277. package/lib/ProEditTable/utils/index.js +0 -473
  278. package/lib/ProEditTable/utils/tools.d.ts +0 -93
  279. package/lib/ProEditTable/utils/tools.js +0 -572
  280. package/lib/ProEditTable/utils/transform.d.ts +0 -13
  281. package/lib/ProEditTable/utils/transform.js +0 -50
  282. package/lib/ProEditTable/utils/useEditTableError.d.ts +0 -7
  283. package/lib/ProEditTable/utils/useEditTableError.js +0 -108
  284. package/lib/ProEditTable/utils/useShouldUpdateForTable.d.ts +0 -16
  285. package/lib/ProEditTable/utils/useShouldUpdateForTable.js +0 -174
  286. package/lib/ProEnum/components/Group.d.ts +0 -10
  287. package/lib/ProEnum/components/Group.js +0 -76
  288. package/lib/ProEnum/components/Tag.d.ts +0 -7
  289. package/lib/ProEnum/components/Tag.js +0 -52
  290. package/lib/ProEnum/hooks/useEnum.d.ts +0 -29
  291. package/lib/ProEnum/hooks/useEnum.js +0 -282
  292. package/lib/ProEnum/hooks/useEnumRequest.d.ts +0 -4
  293. package/lib/ProEnum/hooks/useEnumRequest.js +0 -422
  294. package/lib/ProEnum/hooks/useFrequentEnumRequest.d.ts +0 -14
  295. package/lib/ProEnum/hooks/useFrequentEnumRequest.js +0 -91
  296. package/lib/ProEnum/index.d.ts +0 -8
  297. package/lib/ProEnum/index.js +0 -304
  298. package/lib/ProEnum/propsType.d.ts +0 -310
  299. package/lib/ProEnum/propsType.js +0 -5
  300. package/lib/ProEnum/style/index.less +0 -109
  301. package/lib/ProEnum/utils/eventCenter.d.ts +0 -1
  302. package/lib/ProEnum/utils/eventCenter.js +0 -33
  303. package/lib/ProEnum/utils/frequentEnum.d.ts +0 -40
  304. package/lib/ProEnum/utils/frequentEnum.js +0 -165
  305. package/lib/ProEnum/utils/getEnumLabel.d.ts +0 -2
  306. package/lib/ProEnum/utils/getEnumLabel.js +0 -83
  307. package/lib/ProEnum/utils/index.d.ts +0 -69
  308. package/lib/ProEnum/utils/index.js +0 -406
  309. package/lib/ProForm/components/Container.d.ts +0 -9
  310. package/lib/ProForm/components/Container.js +0 -40
  311. package/lib/ProForm/components/FormFooter/index.d.ts +0 -5
  312. package/lib/ProForm/components/FormFooter/index.js +0 -98
  313. package/lib/ProForm/components/FormFooter/propsType.d.ts +0 -22
  314. package/lib/ProForm/components/FormFooter/propsType.js +0 -5
  315. package/lib/ProForm/components/base/Checkbox/index.d.ts +0 -14
  316. package/lib/ProForm/components/base/Checkbox/index.js +0 -88
  317. package/lib/ProForm/components/base/DatePicker/index.d.ts +0 -11
  318. package/lib/ProForm/components/base/DatePicker/index.js +0 -110
  319. package/lib/ProForm/components/base/DatePicker/useDateLimit.d.ts +0 -3
  320. package/lib/ProForm/components/base/DatePicker/useDateLimit.js +0 -23
  321. package/lib/ProForm/components/base/Input/index.d.ts +0 -3
  322. package/lib/ProForm/components/base/Input/index.js +0 -137
  323. package/lib/ProForm/components/base/Input/propsType.d.ts +0 -21
  324. package/lib/ProForm/components/base/Input/propsType.js +0 -5
  325. package/lib/ProForm/components/base/InputNumber/index.d.ts +0 -11
  326. package/lib/ProForm/components/base/InputNumber/index.js +0 -317
  327. package/lib/ProForm/components/base/Radio/index.d.ts +0 -15
  328. package/lib/ProForm/components/base/Radio/index.js +0 -78
  329. package/lib/ProForm/components/base/RangePicker/index.d.ts +0 -19
  330. package/lib/ProForm/components/base/RangePicker/index.js +0 -201
  331. package/lib/ProForm/components/base/RangePicker/useDateRange.d.ts +0 -15
  332. package/lib/ProForm/components/base/RangePicker/useDateRange.js +0 -45
  333. package/lib/ProForm/components/base/Select/index.d.ts +0 -11
  334. package/lib/ProForm/components/base/Select/index.js +0 -122
  335. package/lib/ProForm/components/base/Switch/index.d.ts +0 -10
  336. package/lib/ProForm/components/base/Switch/index.js +0 -53
  337. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +0 -10
  338. package/lib/ProForm/components/base/SwitchCheckbox/index.js +0 -78
  339. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +0 -13
  340. package/lib/ProForm/components/base/TextArea/index.d.ts +0 -11
  341. package/lib/ProForm/components/base/TextArea/index.js +0 -63
  342. package/lib/ProForm/components/base/TextArea/index.less +0 -28
  343. package/lib/ProForm/components/base/TimePicker/index.d.ts +0 -13
  344. package/lib/ProForm/components/base/TimePicker/index.js +0 -56
  345. package/lib/ProForm/components/base/TimePicker/style/index.less +0 -6
  346. package/lib/ProForm/components/combination/Container/index.d.ts +0 -4
  347. package/lib/ProForm/components/combination/Container/index.js +0 -79
  348. package/lib/ProForm/components/combination/Container/propsType.d.ts +0 -13
  349. package/lib/ProForm/components/combination/Container/propsType.js +0 -5
  350. package/lib/ProForm/components/combination/Container/style/index.less +0 -47
  351. package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +0 -24
  352. package/lib/ProForm/components/combination/FormList/components/ActionButton.js +0 -378
  353. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +0 -23
  354. package/lib/ProForm/components/combination/FormList/components/BlockFields.js +0 -148
  355. package/lib/ProForm/components/combination/FormList/components/BlockTitle.d.ts +0 -13
  356. package/lib/ProForm/components/combination/FormList/components/BlockTitle.js +0 -36
  357. package/lib/ProForm/components/combination/FormList/components/Empty.d.ts +0 -13
  358. package/lib/ProForm/components/combination/FormList/components/Empty.js +0 -105
  359. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +0 -20
  360. package/lib/ProForm/components/combination/FormList/components/LineFields.js +0 -108
  361. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +0 -12
  362. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +0 -186
  363. package/lib/ProForm/components/combination/FormList/index.d.ts +0 -4
  364. package/lib/ProForm/components/combination/FormList/index.js +0 -204
  365. package/lib/ProForm/components/combination/FormList/propsType.d.ts +0 -69
  366. package/lib/ProForm/components/combination/FormList/propsType.js +0 -5
  367. package/lib/ProForm/components/combination/FormList/style/index.less +0 -175
  368. package/lib/ProForm/components/combination/FormList/utils.d.ts +0 -18
  369. package/lib/ProForm/components/combination/FormList/utils.js +0 -60
  370. package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +0 -9
  371. package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.js +0 -26
  372. package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.less +0 -10
  373. package/lib/ProForm/components/combination/Group/component/ComRender.d.ts +0 -28
  374. package/lib/ProForm/components/combination/Group/component/ComRender.js +0 -165
  375. package/lib/ProForm/components/combination/Group/component/FlexibleGroup.d.ts +0 -10
  376. package/lib/ProForm/components/combination/Group/component/FlexibleGroup.js +0 -414
  377. package/lib/ProForm/components/combination/Group/hooks/index.d.ts +0 -34
  378. package/lib/ProForm/components/combination/Group/hooks/index.js +0 -284
  379. package/lib/ProForm/components/combination/Group/index.d.ts +0 -9
  380. package/lib/ProForm/components/combination/Group/index.js +0 -202
  381. package/lib/ProForm/components/combination/Group/propsType.d.ts +0 -99
  382. package/lib/ProForm/components/combination/Group/propsType.js +0 -5
  383. package/lib/ProForm/components/combination/Group/style/index.less +0 -525
  384. package/lib/ProForm/components/combination/Group/utils/index.d.ts +0 -154
  385. package/lib/ProForm/components/combination/Group/utils/index.js +0 -444
  386. package/lib/ProForm/components/combination/ProCascader/index.d.ts +0 -4
  387. package/lib/ProForm/components/combination/ProCascader/index.js +0 -373
  388. package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +0 -48
  389. package/lib/ProForm/components/combination/ProCascader/propsType.js +0 -5
  390. package/lib/ProForm/components/combination/ProCascader/style/index.less +0 -28
  391. package/lib/ProForm/components/combination/ProCascader/utils/index.d.ts +0 -14
  392. package/lib/ProForm/components/combination/ProCascader/utils/index.js +0 -43
  393. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +0 -33
  394. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +0 -167
  395. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +0 -4
  396. package/lib/ProForm/components/combination/ProModalSelect/index.js +0 -885
  397. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +0 -106
  398. package/lib/ProForm/components/combination/ProModalSelect/propsType.js +0 -5
  399. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +0 -182
  400. package/lib/ProForm/components/combination/ProModalSelect/utils/index.d.ts +0 -1
  401. package/lib/ProForm/components/combination/ProModalSelect/utils/index.js +0 -32
  402. package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +0 -4
  403. package/lib/ProForm/components/combination/ProNumberRange/index.js +0 -270
  404. package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +0 -85
  405. package/lib/ProForm/components/combination/ProNumberRange/propsType.js +0 -5
  406. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +0 -50
  407. package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +0 -4
  408. package/lib/ProForm/components/combination/ProRangeLimit/index.js +0 -228
  409. package/lib/ProForm/components/combination/ProRangeLimit/propsType.d.ts +0 -23
  410. package/lib/ProForm/components/combination/ProRangeLimit/propsType.js +0 -5
  411. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +0 -9
  412. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +0 -49
  413. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +0 -33
  414. package/lib/ProForm/components/combination/ProTimeLimit/index.js +0 -189
  415. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +0 -99
  416. package/lib/ProForm/components/index.d.ts +0 -29
  417. package/lib/ProForm/components/index.js +0 -194
  418. package/lib/ProForm/components/render/ChangedWrapper.d.ts +0 -17
  419. package/lib/ProForm/components/render/ChangedWrapper.js +0 -152
  420. package/lib/ProForm/components/render/ConfirmWrapper.d.ts +0 -10
  421. package/lib/ProForm/components/render/ConfirmWrapper.js +0 -135
  422. package/lib/ProForm/components/render/CustomComponentViewWrapper.d.ts +0 -30
  423. package/lib/ProForm/components/render/CustomComponentViewWrapper.js +0 -127
  424. package/lib/ProForm/components/render/Render.d.ts +0 -4
  425. package/lib/ProForm/components/render/Render.js +0 -590
  426. package/lib/ProForm/components/render/RenderFields.d.ts +0 -26
  427. package/lib/ProForm/components/render/RenderFields.js +0 -265
  428. package/lib/ProForm/components/render/propsType.d.ts +0 -296
  429. package/lib/ProForm/components/render/propsType.js +0 -31
  430. package/lib/ProForm/index.d.ts +0 -6
  431. package/lib/ProForm/index.js +0 -334
  432. package/lib/ProForm/propsType.d.ts +0 -131
  433. package/lib/ProForm/propsType.js +0 -13
  434. package/lib/ProForm/style/index.less +0 -567
  435. package/lib/ProForm/utils/diffOriginal.d.ts +0 -10
  436. package/lib/ProForm/utils/diffOriginal.js +0 -129
  437. package/lib/ProForm/utils/getDefaultProps.d.ts +0 -1
  438. package/lib/ProForm/utils/getDefaultProps.js +0 -39
  439. package/lib/ProForm/utils/index.d.ts +0 -119
  440. package/lib/ProForm/utils/index.js +0 -544
  441. package/lib/ProForm/utils/processDependencies.d.ts +0 -29
  442. package/lib/ProForm/utils/processDependencies.js +0 -72
  443. package/lib/ProForm/utils/rulesCreator.d.ts +0 -7
  444. package/lib/ProForm/utils/rulesCreator.js +0 -96
  445. package/lib/ProForm/utils/transformNames.d.ts +0 -10
  446. package/lib/ProForm/utils/transformNames.js +0 -39
  447. package/lib/ProForm/utils/transformValue.d.ts +0 -6
  448. package/lib/ProForm/utils/transformValue.js +0 -73
  449. package/lib/ProForm/utils/useDeepCompareMemo.d.ts +0 -2
  450. package/lib/ProForm/utils/useDeepCompareMemo.js +0 -23
  451. package/lib/ProForm/utils/useFieldProps.d.ts +0 -4
  452. package/lib/ProForm/utils/useFieldProps.js +0 -13
  453. package/lib/ProForm/utils/useForm.d.ts +0 -22
  454. package/lib/ProForm/utils/useForm.js +0 -276
  455. package/lib/ProForm/utils/useRules.d.ts +0 -16
  456. package/lib/ProForm/utils/useRules.js +0 -86
  457. package/lib/ProForm/utils/useShouldUpdate.d.ts +0 -27
  458. package/lib/ProForm/utils/useShouldUpdate.js +0 -399
  459. package/lib/ProForm/utils/useWatch.d.ts +0 -12
  460. package/lib/ProForm/utils/useWatch.js +0 -196
  461. package/lib/ProForm/utils/valueType.d.ts +0 -70
  462. package/lib/ProForm/utils/valueType.js +0 -323
  463. package/lib/ProIcon/config/index.d.ts +0 -19
  464. package/lib/ProIcon/config/index.js +0 -281
  465. package/lib/ProIcon/index.d.ts +0 -4
  466. package/lib/ProIcon/index.js +0 -405
  467. package/lib/ProIcon/propsTypes.d.ts +0 -181
  468. package/lib/ProIcon/propsTypes.js +0 -5
  469. package/lib/ProIcon/style/index.less +0 -27
  470. package/lib/ProIcon/utils/index.d.ts +0 -6
  471. package/lib/ProIcon/utils/index.js +0 -95
  472. package/lib/ProLayout/components/Layout/Header/index.d.ts +0 -4
  473. package/lib/ProLayout/components/Layout/Header/index.js +0 -188
  474. package/lib/ProLayout/components/Layout/Header/style/index.less +0 -277
  475. package/lib/ProLayout/components/Layout/Icon/Icon.d.ts +0 -10
  476. package/lib/ProLayout/components/Layout/Icon/Icon.js +0 -41
  477. package/lib/ProLayout/components/Layout/Icon/index.d.ts +0 -2
  478. package/lib/ProLayout/components/Layout/Icon/index.js +0 -9
  479. package/lib/ProLayout/components/Layout/Icon/style/index.less +0 -7
  480. package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +0 -3
  481. package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.js +0 -212
  482. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +0 -111
  483. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +0 -3
  484. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +0 -214
  485. package/lib/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +0 -15
  486. package/lib/ProLayout/components/Layout/Menu/OpenMenu/propsType.js +0 -5
  487. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -177
  488. package/lib/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +0 -3
  489. package/lib/ProLayout/components/Layout/Menu/SideMenu/index.js +0 -47
  490. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +0 -124
  491. package/lib/ProLayout/components/Layout/Menu/index.d.ts +0 -4
  492. package/lib/ProLayout/components/Layout/Menu/index.js +0 -178
  493. package/lib/ProLayout/components/Layout/Menu/style/index.less +0 -136
  494. package/lib/ProLayout/components/Layout/Notice/index.d.ts +0 -4
  495. package/lib/ProLayout/components/Layout/Notice/index.js +0 -37
  496. package/lib/ProLayout/components/Layout/Notice/style/index.less +0 -37
  497. package/lib/ProLayout/components/Layout/index.d.ts +0 -4
  498. package/lib/ProLayout/components/Layout/index.js +0 -34
  499. package/lib/ProLayout/components/Layout/index.less +0 -4
  500. package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +0 -98
  501. package/lib/ProLayout/components/ProCollapse/PropTypes.js +0 -5
  502. package/lib/ProLayout/components/ProCollapse/index.d.ts +0 -3
  503. package/lib/ProLayout/components/ProCollapse/index.js +0 -200
  504. package/lib/ProLayout/components/ProCollapse/style/index.less +0 -357
  505. package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +0 -27
  506. package/lib/ProLayout/components/ProFooter/PropTypes.js +0 -5
  507. package/lib/ProLayout/components/ProFooter/index.d.ts +0 -4
  508. package/lib/ProLayout/components/ProFooter/index.js +0 -59
  509. package/lib/ProLayout/components/ProFooter/style/index.less +0 -12
  510. package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +0 -206
  511. package/lib/ProLayout/components/ProHeader/PropTypes.js +0 -5
  512. package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +0 -4
  513. package/lib/ProLayout/components/ProHeader/components/Copy/index.js +0 -29
  514. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.d.ts +0 -9
  515. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.js +0 -35
  516. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/propsType.d.ts +0 -4
  517. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/propsType.js +0 -5
  518. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +0 -23
  519. package/lib/ProLayout/components/ProHeader/components/index.d.ts +0 -2
  520. package/lib/ProLayout/components/ProHeader/components/index.js +0 -20
  521. package/lib/ProLayout/components/ProHeader/index.d.ts +0 -4
  522. package/lib/ProLayout/components/ProHeader/index.js +0 -559
  523. package/lib/ProLayout/components/ProHeader/style/index.less +0 -416
  524. package/lib/ProLayout/components/ProHeader/utils/index.d.ts +0 -5
  525. package/lib/ProLayout/components/ProHeader/utils/index.js +0 -21
  526. package/lib/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +0 -7
  527. package/lib/ProLayout/components/TabsManager/components/TabContextMenu.js +0 -106
  528. package/lib/ProLayout/components/TabsManager/components/TabItem.d.ts +0 -26
  529. package/lib/ProLayout/components/TabsManager/components/TabItem.js +0 -75
  530. package/lib/ProLayout/components/TabsManager/components/TabsContext.d.ts +0 -6
  531. package/lib/ProLayout/components/TabsManager/components/TabsContext.js +0 -11
  532. package/lib/ProLayout/components/TabsManager/components/TabsHeader.d.ts +0 -12
  533. package/lib/ProLayout/components/TabsManager/components/TabsHeader.js +0 -58
  534. package/lib/ProLayout/components/TabsManager/hooks/useActiveTab.d.ts +0 -6
  535. package/lib/ProLayout/components/TabsManager/hooks/useActiveTab.js +0 -20
  536. package/lib/ProLayout/components/TabsManager/hooks/useProLayoutTabs.d.ts +0 -18
  537. package/lib/ProLayout/components/TabsManager/hooks/useProLayoutTabs.js +0 -31
  538. package/lib/ProLayout/components/TabsManager/hooks/useTabsCache.d.ts +0 -31
  539. package/lib/ProLayout/components/TabsManager/hooks/useTabsCache.js +0 -103
  540. package/lib/ProLayout/components/TabsManager/hooks/useTabsState.d.ts +0 -5
  541. package/lib/ProLayout/components/TabsManager/hooks/useTabsState.js +0 -417
  542. package/lib/ProLayout/components/TabsManager/index.d.ts +0 -7
  543. package/lib/ProLayout/components/TabsManager/index.js +0 -196
  544. package/lib/ProLayout/components/TabsManager/propTypes.d.ts +0 -75
  545. package/lib/ProLayout/components/TabsManager/propTypes.js +0 -21
  546. package/lib/ProLayout/components/TabsManager/style/index.less +0 -310
  547. package/lib/ProLayout/components/TabsManager/utils/index.d.ts +0 -41
  548. package/lib/ProLayout/components/TabsManager/utils/index.js +0 -126
  549. package/lib/ProLayout/components/index.d.ts +0 -3
  550. package/lib/ProLayout/components/index.js +0 -27
  551. package/lib/ProLayout/images/close.png +0 -0
  552. package/lib/ProLayout/images/logoImg.png +0 -0
  553. package/lib/ProLayout/images/tipMsg.png +0 -0
  554. package/lib/ProLayout/index.d.ts +0 -20
  555. package/lib/ProLayout/index.js +0 -285
  556. package/lib/ProLayout/propTypes.d.ts +0 -435
  557. package/lib/ProLayout/propTypes.js +0 -46
  558. package/lib/ProLayout/style/index.less +0 -344
  559. package/lib/ProLayout/utils/index.d.ts +0 -43
  560. package/lib/ProLayout/utils/index.js +0 -278
  561. package/lib/ProSelect/components/AdaptiveTooltip.d.ts +0 -4
  562. package/lib/ProSelect/components/AdaptiveTooltip.js +0 -54
  563. package/lib/ProSelect/index.d.ts +0 -5
  564. package/lib/ProSelect/index.js +0 -524
  565. package/lib/ProSelect/propsType.d.ts +0 -160
  566. package/lib/ProSelect/propsType.js +0 -5
  567. package/lib/ProSelect/style/index.less +0 -21
  568. package/lib/ProSelect/utils/index.d.ts +0 -4
  569. package/lib/ProSelect/utils/index.js +0 -146
  570. package/lib/ProStep/components/Anchor/index.d.ts +0 -4
  571. package/lib/ProStep/components/Anchor/index.js +0 -117
  572. package/lib/ProStep/components/Item/index.d.ts +0 -3
  573. package/lib/ProStep/components/Item/index.js +0 -104
  574. package/lib/ProStep/components/Listener/index.d.ts +0 -4
  575. package/lib/ProStep/components/Listener/index.js +0 -80
  576. package/lib/ProStep/components/Step/index.d.ts +0 -5
  577. package/lib/ProStep/components/Step/index.js +0 -99
  578. package/lib/ProStep/index.d.ts +0 -11
  579. package/lib/ProStep/index.js +0 -266
  580. package/lib/ProStep/propsType.d.ts +0 -222
  581. package/lib/ProStep/propsType.js +0 -5
  582. package/lib/ProStep/style/index.less +0 -220
  583. package/lib/ProStep/utils/index.d.ts +0 -22
  584. package/lib/ProStep/utils/index.js +0 -78
  585. package/lib/ProStepTab/index.d.ts +0 -22
  586. package/lib/ProStepTab/index.js +0 -384
  587. package/lib/ProStepTab/propsType.d.ts +0 -114
  588. package/lib/ProStepTab/propsType.js +0 -5
  589. package/lib/ProTable/components/FormatColumn/index.d.ts +0 -20
  590. package/lib/ProTable/components/FormatColumn/index.js +0 -699
  591. package/lib/ProTable/components/FormatColumn/propsType.d.ts +0 -29
  592. package/lib/ProTable/components/FormatColumn/propsType.js +0 -5
  593. package/lib/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -10
  594. package/lib/ProTable/components/RcTable/components/BaseTable/index.js +0 -49
  595. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +0 -18
  596. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +0 -205
  597. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.d.ts +0 -8
  598. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +0 -182
  599. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.d.ts +0 -61
  600. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.js +0 -5
  601. package/lib/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -10
  602. package/lib/ProTable/components/RcTable/components/DraggableTable/index.js +0 -65
  603. package/lib/ProTable/components/RcTable/index.d.ts +0 -4
  604. package/lib/ProTable/components/RcTable/index.js +0 -20
  605. package/lib/ProTable/components/RenderColumn/index.d.ts +0 -22
  606. package/lib/ProTable/components/RenderColumn/index.js +0 -278
  607. package/lib/ProTable/components/RenderEmptyText/index.d.ts +0 -3
  608. package/lib/ProTable/components/RenderEmptyText/index.js +0 -28
  609. package/lib/ProTable/components/RenderFooter/index.d.ts +0 -2
  610. package/lib/ProTable/components/RenderFooter/index.js +0 -20
  611. package/lib/ProTable/components/RenderSummary/index.d.ts +0 -3
  612. package/lib/ProTable/components/RenderSummary/index.js +0 -60
  613. package/lib/ProTable/components/RenderTableHeader/index.d.ts +0 -2
  614. package/lib/ProTable/components/RenderTableHeader/index.js +0 -67
  615. package/lib/ProTable/components/RenderTabs/index.d.ts +0 -4
  616. package/lib/ProTable/components/RenderTabs/index.js +0 -97
  617. package/lib/ProTable/components/TableResizable/index.d.ts +0 -13
  618. package/lib/ProTable/components/TableResizable/index.js +0 -109
  619. package/lib/ProTable/components/TooltipTitle/index.d.ts +0 -11
  620. package/lib/ProTable/components/TooltipTitle/index.js +0 -26
  621. package/lib/ProTable/components/index.d.ts +0 -30
  622. package/lib/ProTable/components/index.js +0 -48
  623. package/lib/ProTable/hooks/useAntdTable.d.ts +0 -7
  624. package/lib/ProTable/hooks/useAntdTable.js +0 -581
  625. package/lib/ProTable/index.d.ts +0 -16
  626. package/lib/ProTable/index.js +0 -476
  627. package/lib/ProTable/propsType.d.ts +0 -757
  628. package/lib/ProTable/propsType.js +0 -5
  629. package/lib/ProTable/style/index.less +0 -644
  630. package/lib/ProTable/utils/index.d.ts +0 -38
  631. package/lib/ProTable/utils/index.js +0 -142
  632. package/lib/ProTabs/components/Card/index.d.ts +0 -3
  633. package/lib/ProTabs/components/Card/index.js +0 -54
  634. package/lib/ProTabs/components/index.d.ts +0 -1
  635. package/lib/ProTabs/components/index.js +0 -13
  636. package/lib/ProTabs/index.d.ts +0 -4
  637. package/lib/ProTabs/index.js +0 -138
  638. package/lib/ProTabs/propType.d.ts +0 -94
  639. package/lib/ProTabs/propType.js +0 -5
  640. package/lib/ProTabs/style/index.less +0 -157
  641. package/lib/ProThemeTools/component/ProTools/index.d.ts +0 -3
  642. package/lib/ProThemeTools/component/ProTools/index.js +0 -301
  643. package/lib/ProThemeTools/component/ProTools/style/index.less +0 -178
  644. package/lib/ProThemeTools/component/index.d.ts +0 -1
  645. package/lib/ProThemeTools/component/index.js +0 -13
  646. package/lib/ProThemeTools/context/ThemeContext.d.ts +0 -43
  647. package/lib/ProThemeTools/context/ThemeContext.js +0 -291
  648. package/lib/ProThemeTools/index.d.ts +0 -9
  649. package/lib/ProThemeTools/index.js +0 -302
  650. package/lib/ProThemeTools/propsType.d.ts +0 -170
  651. package/lib/ProThemeTools/propsType.js +0 -5
  652. package/lib/ProThemeTools/style/index.less +0 -74
  653. package/lib/ProThemeTools/utils/index.d.ts +0 -51
  654. package/lib/ProThemeTools/utils/index.js +0 -261
  655. package/lib/ProTooltip/index.d.ts +0 -3
  656. package/lib/ProTooltip/index.js +0 -309
  657. package/lib/ProTooltip/propsType.d.ts +0 -57
  658. package/lib/ProTooltip/propsType.js +0 -5
  659. package/lib/ProTooltip/style/index.less +0 -34
  660. package/lib/ProTree/components/AdaptiveTooltip.d.ts +0 -4
  661. package/lib/ProTree/components/AdaptiveTooltip.js +0 -23
  662. package/lib/ProTree/components/CloseIcon.d.ts +0 -2
  663. package/lib/ProTree/components/CloseIcon.js +0 -38
  664. package/lib/ProTree/components/List.d.ts +0 -17
  665. package/lib/ProTree/components/List.js +0 -79
  666. package/lib/ProTree/components/ProTree.d.ts +0 -3
  667. package/lib/ProTree/components/ProTree.js +0 -505
  668. package/lib/ProTree/components/ProTreeSelect/index.d.ts +0 -5
  669. package/lib/ProTree/components/ProTreeSelect/index.js +0 -770
  670. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +0 -439
  671. package/lib/ProTree/components/ProTreeSelect/propsType.js +0 -5
  672. package/lib/ProTree/components/ProTreeSelect/style/index.less +0 -119
  673. package/lib/ProTree/components/SearchTitle.d.ts +0 -11
  674. package/lib/ProTree/components/SearchTitle.js +0 -60
  675. package/lib/ProTree/components/Tree.d.ts +0 -27
  676. package/lib/ProTree/components/Tree.js +0 -393
  677. package/lib/ProTree/components/index.d.ts +0 -4
  678. package/lib/ProTree/components/index.js +0 -34
  679. package/lib/ProTree/index.d.ts +0 -3
  680. package/lib/ProTree/index.js +0 -30
  681. package/lib/ProTree/propsType.d.ts +0 -812
  682. package/lib/ProTree/propsType.js +0 -5
  683. package/lib/ProTree/style/index.less +0 -393
  684. package/lib/ProTree/utils.d.ts +0 -43
  685. package/lib/ProTree/utils.js +0 -221
  686. package/lib/ProTreeModal/components/Cascader.d.ts +0 -14
  687. package/lib/ProTreeModal/components/Cascader.js +0 -110
  688. package/lib/ProTreeModal/components/CloseIcon.d.ts +0 -2
  689. package/lib/ProTreeModal/components/CloseIcon.js +0 -38
  690. package/lib/ProTreeModal/components/List.d.ts +0 -21
  691. package/lib/ProTreeModal/components/List.js +0 -294
  692. package/lib/ProTreeModal/components/SearchTitle.d.ts +0 -7
  693. package/lib/ProTreeModal/components/SearchTitle.js +0 -27
  694. package/lib/ProTreeModal/components/SortableItem.d.ts +0 -12
  695. package/lib/ProTreeModal/components/SortableItem.js +0 -80
  696. package/lib/ProTreeModal/components/Tree.d.ts +0 -25
  697. package/lib/ProTreeModal/components/Tree.js +0 -241
  698. package/lib/ProTreeModal/components/Trigger.d.ts +0 -21
  699. package/lib/ProTreeModal/components/Trigger.js +0 -195
  700. package/lib/ProTreeModal/components/index.d.ts +0 -6
  701. package/lib/ProTreeModal/components/index.js +0 -48
  702. package/lib/ProTreeModal/index.d.ts +0 -4
  703. package/lib/ProTreeModal/index.js +0 -837
  704. package/lib/ProTreeModal/propsType.d.ts +0 -298
  705. package/lib/ProTreeModal/propsType.js +0 -5
  706. package/lib/ProTreeModal/style/index.less +0 -414
  707. package/lib/ProTreeModal/utils.d.ts +0 -39
  708. package/lib/ProTreeModal/utils.js +0 -243
  709. package/lib/ProUpload/components/ButtonRender.d.ts +0 -20
  710. package/lib/ProUpload/components/ButtonRender.js +0 -114
  711. package/lib/ProUpload/components/DragRender.d.ts +0 -21
  712. package/lib/ProUpload/components/DragRender.js +0 -196
  713. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +0 -2
  714. package/lib/ProUpload/components/DraggableUploadListItem.js +0 -42
  715. package/lib/ProUpload/components/Example.d.ts +0 -10
  716. package/lib/ProUpload/components/Example.js +0 -61
  717. package/lib/ProUpload/components/FileItem.d.ts +0 -33
  718. package/lib/ProUpload/components/FileItem.js +0 -238
  719. package/lib/ProUpload/components/ImageRender.d.ts +0 -19
  720. package/lib/ProUpload/components/ImageRender.js +0 -279
  721. package/lib/ProUpload/index.d.ts +0 -4
  722. package/lib/ProUpload/index.js +0 -311
  723. package/lib/ProUpload/propsType.d.ts +0 -264
  724. package/lib/ProUpload/propsType.js +0 -5
  725. package/lib/ProUpload/style/icon-PDF.png +0 -0
  726. package/lib/ProUpload/style/icon-TXT.png +0 -0
  727. package/lib/ProUpload/style/icon-excel.png +0 -0
  728. package/lib/ProUpload/style/icon-pic.png +0 -0
  729. package/lib/ProUpload/style/icon-word.png +0 -0
  730. package/lib/ProUpload/style/index.less +0 -480
  731. package/lib/ProUpload/uitls.d.ts +0 -3
  732. package/lib/ProUpload/uitls.js +0 -22
  733. package/lib/ProUtils/utils/index.d.ts +0 -6
  734. package/lib/ProUtils/utils/index.js +0 -26
  735. package/lib/ProViewer/index.d.ts +0 -4
  736. package/lib/ProViewer/index.js +0 -229
  737. package/lib/ProViewer/propsType.d.ts +0 -35
  738. package/lib/ProViewer/propsType.js +0 -3
  739. package/lib/ProViewer/style/index.less +0 -10
  740. package/lib/ProWaterMark/index.d.ts +0 -4
  741. package/lib/ProWaterMark/index.js +0 -26
  742. package/lib/ProWaterMark/propsType.d.ts +0 -6
  743. package/lib/ProWaterMark/propsType.js +0 -5
  744. package/lib/assets/apps.svg +0 -23
  745. package/lib/assets/arrow.svg +0 -1
  746. package/lib/assets/catalog.svg +0 -30
  747. package/lib/assets/close.svg +0 -1
  748. package/lib/assets/close2.svg +0 -1
  749. package/lib/assets/copy.svg +0 -1
  750. package/lib/assets/customColumn.svg +0 -2
  751. package/lib/assets/delete.svg +0 -1
  752. package/lib/assets/disabled.svg +0 -18
  753. package/lib/assets/download.svg +0 -1
  754. package/lib/assets/drag.svg +0 -1
  755. package/lib/assets/empty.png +0 -0
  756. package/lib/assets/fold.svg +0 -27
  757. package/lib/assets/header_bg.png +0 -0
  758. package/lib/assets/input-search.svg +0 -11
  759. package/lib/assets/look.svg +0 -1
  760. package/lib/assets/reset.svg +0 -11
  761. package/lib/assets/search.svg +0 -1
  762. package/lib/assets/setting.svg +0 -14
  763. package/lib/assets/view.svg +0 -20
  764. package/lib/global.less +0 -57
  765. package/lib/index.d.ts +0 -47
  766. package/lib/index.js +0 -276
  767. package/lib/locale/en_US.d.ts +0 -176
  768. package/lib/locale/en_US.js +0 -181
  769. package/lib/locale/index.d.ts +0 -15
  770. package/lib/locale/index.js +0 -65
  771. package/lib/locale/zh_CN.d.ts +0 -176
  772. package/lib/locale/zh_CN.js +0 -181
  773. package/lib/style/components.less +0 -27
  774. package/lib/style/core/compatible.less +0 -5
  775. package/lib/style/core/index.less +0 -3
  776. package/lib/style/core/mixins.less +0 -77
  777. package/lib/style/core/normalize.less +0 -251
  778. package/lib/style/index.less +0 -2
  779. package/lib/style/less.less +0 -2
  780. package/lib/style/theme/antd.less +0 -743
  781. package/lib/style/theme/base.less +0 -90
  782. package/lib/style/theme/index.less +0 -2
  783. package/lib/style/theme/tokens.less +0 -90
  784. package/lib/style/variables.less +0 -2
  785. package/lib/tokens.d.ts +0 -83
  786. package/lib/tokens.js +0 -91
  787. package/lib/utils/index.d.ts +0 -21
  788. package/lib/utils/index.js +0 -116
  789. package/typings.d.ts +0 -17
@@ -1,11 +1,9 @@
1
- var _excluded = ["title", "valueType", "format", "precision", "ellipsis", "code", "copyable", "width", "tooltip", "transform", "prefix", "suffix", "dataIndex", "toolTipProps", "minWidth", "onDiff"];
2
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
8
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
+ import _omit from "lodash/omit";
2
+ import _isBoolean from "lodash/isBoolean";
3
+ import _isObject from "lodash/isObject";
4
+ import _isString from "lodash/isString";
5
+ import _isFunction from "lodash/isFunction";
6
+ import _isEqual from "lodash/isEqual";
9
7
  /**
10
8
  * FormatColumn - 表格列格式化组件
11
9
  * 重构优化:提取公共逻辑,修复 key prop 警告
@@ -15,7 +13,6 @@ import dayjs from 'dayjs';
15
13
  import classnames from 'classnames';
16
14
  import { createRoot } from 'react-dom/client';
17
15
  import { Space } from 'antd';
18
- import { isEqual, isFunction, isString, isObject, isBoolean, omit } from 'lodash';
19
16
  import { tools } from '@zat-design/utils';
20
17
  import TooltipTitle from "../TooltipTitle";
21
18
  import RenderColumn from "../RenderColumn";
@@ -24,38 +21,41 @@ import { isEmpty } from "../../../utils";
24
21
  import getEnumLabel from "../../../ProEnum/utils/getEnumLabel";
25
22
  import { ProCascader } from "../../../ProForm/components";
26
23
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
27
- var isReactElement = element => /*#__PURE__*/isValidElement(element);
24
+ const isReactElement = element => /*#__PURE__*/isValidElement(element);
28
25
 
29
26
  // 需要从 otherProps 中排除的属性(不应传递给 RenderColumn)
30
- var EXCLUDED_PROPS = ['key', 'render', 'children', 'onCell', 'onHeaderCell'];
27
+ const EXCLUDED_PROPS = ['key', 'render', 'children', 'onCell', 'onHeaderCell'];
31
28
 
32
29
  /**
33
30
  * 获取安全的 props(排除 key 等不应通过 spread 传递的属性)
34
31
  */
35
- var getSafeProps = props => omit(props, EXCLUDED_PROPS);
36
- var getDiffContext = (value, record, originalObj, rowKey, dataIndex, isInNewRow) => {
37
- var result = getOriginalValue(value, record, originalObj, rowKey, dataIndex);
38
- return _objectSpread(_objectSpread({}, result), {}, {
32
+ const getSafeProps = props => _omit(props, EXCLUDED_PROPS);
33
+ const getDiffContext = (value, record, originalObj, rowKey, dataIndex, isInNewRow) => {
34
+ const result = getOriginalValue(value, record, originalObj, rowKey, dataIndex);
35
+ return {
36
+ ...result,
39
37
  isInNewRowFlag: isInNewRow(record)
40
- });
38
+ };
41
39
  };
42
- var createRenderColumn = _ref => {
43
- var baseProps = _ref.baseProps,
44
- valueType = _ref.valueType,
45
- ellipsis = _ref.ellipsis,
46
- width = _ref.width,
47
- toolTipProps = _ref.toolTipProps,
48
- minWidth = _ref.minWidth,
49
- node = _ref.node,
50
- value = _ref.value,
51
- currentValue = _ref.currentValue,
52
- originalValue = _ref.originalValue,
53
- isChanged = _ref.isChanged,
54
- isInNewRowFlag = _ref.isInNewRowFlag,
55
- isAddCell = _ref.isAddCell,
56
- copyable = _ref.copyable;
57
- var safeProps = getSafeProps(baseProps);
58
- return /*#__PURE__*/_jsx(RenderColumn, _objectSpread(_objectSpread({}, safeProps), {}, {
40
+ const createRenderColumn = ({
41
+ baseProps,
42
+ valueType,
43
+ ellipsis,
44
+ width,
45
+ toolTipProps,
46
+ minWidth,
47
+ node,
48
+ value,
49
+ currentValue,
50
+ originalValue,
51
+ isChanged,
52
+ isInNewRowFlag,
53
+ isAddCell,
54
+ copyable
55
+ }) => {
56
+ const safeProps = getSafeProps(baseProps);
57
+ return /*#__PURE__*/_jsx(RenderColumn, {
58
+ ...safeProps,
59
59
  isChanged: isChanged,
60
60
  valueType: valueType,
61
61
  originalValue: originalValue,
@@ -69,21 +69,22 @@ var createRenderColumn = _ref => {
69
69
  isInNewRowFlag: isInNewRowFlag,
70
70
  isAddCell: isAddCell,
71
71
  copyable: copyable
72
- }));
72
+ });
73
73
  };
74
- var calcMinWidth = _ref2 => {
75
- var minWidth = _ref2.minWidth,
76
- width = _ref2.width,
77
- title = _ref2.title,
78
- isMaxContentOverFlow = _ref2.isMaxContentOverFlow,
79
- callback = _ref2.callback;
74
+ const calcMinWidth = ({
75
+ minWidth,
76
+ width,
77
+ title,
78
+ isMaxContentOverFlow,
79
+ callback
80
+ }) => {
80
81
  if (!minWidth && !width && isMaxContentOverFlow) {
81
- var tempEl = document.createElement('div');
82
+ const tempEl = document.createElement('div');
82
83
  tempEl.style.display = 'inline-block';
83
84
  document.body.appendChild(tempEl);
84
- var root = null;
85
- if (isFunction(title)) {
86
- var component = title();
85
+ let root = null;
86
+ if (_isFunction(title)) {
87
+ const component = title();
87
88
  root = createRoot(tempEl);
88
89
  root.render(component);
89
90
  } else if (isReactElement(title)) {
@@ -93,44 +94,44 @@ var calcMinWidth = _ref2 => {
93
94
  tempEl.innerHTML = title;
94
95
  }
95
96
  requestAnimationFrame(() => {
96
- var _root;
97
- var _width = tempEl.offsetWidth;
98
- (_root = root) === null || _root === void 0 || _root.unmount();
97
+ const _width = tempEl.offsetWidth;
98
+ root?.unmount();
99
99
  tempEl.remove();
100
100
  callback(_width);
101
101
  });
102
102
  }
103
103
  };
104
- export var formatColumn = _ref3 => {
105
- var column = _ref3.column,
106
- originalObj = _ref3.originalObj,
107
- rowKey = _ref3.rowKey,
108
- wrapToolTipProps = _ref3.wrapToolTipProps,
109
- scroll = _ref3.scroll,
110
- onUpdateMinWidth = _ref3.onUpdateMinWidth,
111
- isInNewRow = _ref3.isInNewRow,
112
- diffConfig = _ref3.diffConfig;
113
- var title = column.title,
114
- valueType = column.valueType,
115
- _column$format = column.format,
116
- format = _column$format === void 0 ? 'YYYY-MM-DD HH:mm:ss' : _column$format,
117
- precision = column.precision,
118
- ellipsis = column.ellipsis,
119
- code = column.code,
120
- copyable = column.copyable,
121
- width = column.width,
122
- tooltip = column.tooltip,
123
- transform = column.transform,
124
- prefix = column.prefix,
125
- suffix = column.suffix,
126
- dataIndex = column.dataIndex,
127
- _column$toolTipProps = column.toolTipProps,
128
- toolTipProps = _column$toolTipProps === void 0 ? {} : _column$toolTipProps,
129
- minWidth = column.minWidth,
130
- onDiff = column.onDiff,
131
- otherProps = _objectWithoutProperties(column, _excluded);
104
+ export const formatColumn = ({
105
+ column,
106
+ originalObj,
107
+ rowKey,
108
+ wrapToolTipProps,
109
+ scroll,
110
+ onUpdateMinWidth,
111
+ isInNewRow,
112
+ diffConfig
113
+ }) => {
114
+ const {
115
+ title,
116
+ valueType,
117
+ format = 'YYYY-MM-DD HH:mm:ss',
118
+ precision,
119
+ ellipsis,
120
+ code,
121
+ copyable,
122
+ width,
123
+ tooltip,
124
+ transform,
125
+ prefix,
126
+ suffix,
127
+ dataIndex,
128
+ toolTipProps = {},
129
+ minWidth,
130
+ onDiff,
131
+ ...otherProps
132
+ } = column;
132
133
  otherProps.scroll = scroll;
133
- var isMaxContentOverFlow = isObject(scroll) ? (scroll === null || scroll === void 0 ? void 0 : scroll.x) === 'max-content' && Reflect.ownKeys(scroll).includes('y') : false;
134
+ const isMaxContentOverFlow = _isObject(scroll) ? scroll?.x === 'max-content' && Reflect.ownKeys(scroll).includes('y') : false;
134
135
  calcMinWidth({
135
136
  minWidth,
136
137
  width,
@@ -138,45 +139,48 @@ export var formatColumn = _ref3 => {
138
139
  isMaxContentOverFlow,
139
140
  callback: onUpdateMinWidth
140
141
  });
141
- var _toolTipProps = _objectSpread(_objectSpread({}, toolTipProps), wrapToolTipProps);
142
+ const _toolTipProps = {
143
+ ...toolTipProps,
144
+ ...wrapToolTipProps
145
+ };
142
146
 
143
147
  // 前缀处理
144
- var prefixNode = (value, record, index) => {
148
+ const prefixNode = (value, record, index) => {
145
149
  if (!prefix) {
146
150
  if (valueType === 'thousandthCNY') {
147
151
  return 'CNY';
148
152
  }
149
153
  return '';
150
154
  }
151
- if (isString(prefix) || /*#__PURE__*/isValidElement(prefix)) {
155
+ if (_isString(prefix) || /*#__PURE__*/isValidElement(prefix)) {
152
156
  return prefix;
153
157
  }
154
- if (isFunction(prefix)) {
158
+ if (_isFunction(prefix)) {
155
159
  return prefix(value, record, index);
156
160
  }
157
161
  };
158
162
 
159
163
  // 后缀处理
160
- var suffixNode = (value, record, index) => {
161
- if (isString(suffix) || /*#__PURE__*/isValidElement(suffix)) {
164
+ const suffixNode = (value, record, index) => {
165
+ if (_isString(suffix) || /*#__PURE__*/isValidElement(suffix)) {
162
166
  return suffix;
163
167
  }
164
- if (isFunction(suffix)) {
168
+ if (_isFunction(suffix)) {
165
169
  return suffix(value, record, index);
166
170
  }
167
171
  };
168
172
 
169
173
  // 创建带前后缀的节点
170
- var createNodeWithAffixes = (value, renderValue, record, index) => /*#__PURE__*/_jsxs(Space, {
174
+ const createNodeWithAffixes = (value, renderValue, record, index) => /*#__PURE__*/_jsxs(Space, {
171
175
  size: 8,
172
176
  children: [prefixNode(value, record, index), renderValue, suffixNode(value, record, index)]
173
177
  });
174
178
 
175
179
  // 处理自定义 diff 逻辑
176
- var processDiffResult = (diffResult, currentIsAddCell, props) => {
177
- var _isAddCell = currentIsAddCell;
178
- var _isChanged = props.isChanged;
179
- if (isBoolean(diffResult)) {
180
+ const processDiffResult = (diffResult, currentIsAddCell, props) => {
181
+ let _isAddCell = currentIsAddCell;
182
+ let _isChanged = props.isChanged;
183
+ if (_isBoolean(diffResult)) {
180
184
  _isChanged = diffResult;
181
185
  _isAddCell = false;
182
186
  } else if (typeof diffResult === 'string') {
@@ -202,54 +206,57 @@ export var formatColumn = _ref3 => {
202
206
  };
203
207
 
204
208
  // 自定义 render 处理
205
- if (column !== null && column !== void 0 && column.render) {
206
- var originalRender = column.render;
209
+ if (column?.render) {
210
+ const originalRender = column.render;
207
211
  column.render = (value, record, index) => {
208
- var isFn = isFunction(originalRender);
209
- var _value = isFn ? originalRender === null || originalRender === void 0 ? void 0 : originalRender(value, record !== null && record !== void 0 ? record : {}, index) : null;
210
- var ctx = getDiffContext(value, record !== null && record !== void 0 ? record : {}, originalObj, rowKey, dataIndex, isInNewRow);
211
- var originalValue = ctx.originalValue,
212
- isAddCell = ctx.isAddCell;
213
- var isChanged = ctx.isChanged,
214
- isInNewRowFlag = ctx.isInNewRowFlag;
215
- var currentIsChanged = isChanged;
216
- if (Array.isArray(diffConfig === null || diffConfig === void 0 ? void 0 : diffConfig.originalDataSource)) {
217
- if (isFunction(otherProps === null || otherProps === void 0 ? void 0 : otherProps.viewRender)) {
218
- var _originalObj$record$r;
219
- var diffResult = otherProps.viewRender({
212
+ const isFn = _isFunction(originalRender);
213
+ const _value = isFn ? originalRender?.(value, record ?? {}, index) : null;
214
+ const ctx = getDiffContext(value, record ?? {}, originalObj, rowKey, dataIndex, isInNewRow);
215
+ let {
216
+ originalValue,
217
+ isAddCell
218
+ } = ctx;
219
+ const {
220
+ isChanged,
221
+ isInNewRowFlag
222
+ } = ctx;
223
+ let currentIsChanged = isChanged;
224
+ if (Array.isArray(diffConfig?.originalDataSource)) {
225
+ if (_isFunction(otherProps?.viewRender)) {
226
+ const diffResult = otherProps.viewRender({
220
227
  originValue: originalValue,
221
- originRecord: (_originalObj$record$r = originalObj === null || originalObj === void 0 ? void 0 : originalObj[record === null || record === void 0 ? void 0 : record[rowKey]]) !== null && _originalObj$record$r !== void 0 ? _originalObj$record$r : {},
228
+ originRecord: originalObj?.[record?.[rowKey]] ?? {},
222
229
  value,
223
230
  record,
224
231
  index
225
232
  });
226
- var processed = processDiffResult(diffResult, isAddCell, {
233
+ const processed = processDiffResult(diffResult, isAddCell, {
227
234
  isChanged: currentIsChanged
228
235
  });
229
236
  isAddCell = processed.isAddCell;
230
237
  currentIsChanged = processed.isChanged;
231
238
  originalValue = diffResult;
232
239
  }
233
- if (isFunction(onDiff)) {
234
- var _originalObj$record$r2;
235
- var _diffResult = onDiff({
240
+ if (_isFunction(onDiff)) {
241
+ const diffResult = onDiff({
236
242
  originValue: originalValue,
237
- originRecord: (_originalObj$record$r2 = originalObj === null || originalObj === void 0 ? void 0 : originalObj[record === null || record === void 0 ? void 0 : record[rowKey]]) !== null && _originalObj$record$r2 !== void 0 ? _originalObj$record$r2 : {},
243
+ originRecord: originalObj?.[record?.[rowKey]] ?? {},
238
244
  value,
239
245
  record,
240
246
  index
241
247
  });
242
- var _processed = processDiffResult(_diffResult, isAddCell, {
248
+ const processed = processDiffResult(diffResult, isAddCell, {
243
249
  isChanged: currentIsChanged
244
250
  });
245
- isAddCell = _processed.isAddCell;
246
- currentIsChanged = _processed.isChanged;
251
+ isAddCell = processed.isAddCell;
252
+ currentIsChanged = processed.isChanged;
247
253
  }
248
254
  }
249
255
  return createRenderColumn({
250
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
256
+ baseProps: {
257
+ ...otherProps,
251
258
  isChanged: currentIsChanged
252
- }),
259
+ },
253
260
  valueType,
254
261
  ellipsis,
255
262
  width,
@@ -275,24 +282,26 @@ export var formatColumn = _ref3 => {
275
282
  if (ellipsis) {
276
283
  column.ellipsis = false;
277
284
  }
278
- var valueTypePrecision = precision !== null && precision !== void 0 ? precision : 0;
285
+ let valueTypePrecision = precision ?? 0;
279
286
  if (['percentage', 'permillage', 'thousandth', 'thousandthCNY'].includes(valueType)) {
280
- valueTypePrecision = precision !== null && precision !== void 0 ? precision : 2;
287
+ valueTypePrecision = precision ?? 2;
281
288
  }
282
289
 
283
290
  // 百分比、千分比
284
291
  if (['percentage', 'permillage'].includes(valueType)) {
285
292
  column.render = (value, record, index) => {
286
- var multiple = valueType === 'percentage' ? 100 : 1000;
287
- var realValue = tools.calc(Number(value !== null && value !== void 0 ? value : 0), '*', multiple);
288
- var renderValue = getDecimalDigits(value) > valueTypePrecision ? realValue : realValue.toFixed(valueTypePrecision);
289
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
290
- var originalValue = ctx.originalValue,
291
- isAddCell = ctx.isAddCell,
292
- isInNewRowFlag = ctx.isInNewRowFlag,
293
- isChanged = ctx.isChanged;
294
- var originalRealValue = tools.calc(Number(originalValue || null), '*', multiple);
295
- var originalRenderValue = getDecimalDigits(originalValue) > valueTypePrecision ? originalRealValue : originalRealValue.toFixed(valueTypePrecision);
293
+ const multiple = valueType === 'percentage' ? 100 : 1000;
294
+ const realValue = tools.calc(Number(value ?? 0), '*', multiple);
295
+ const renderValue = getDecimalDigits(value) > valueTypePrecision ? realValue : realValue.toFixed(valueTypePrecision);
296
+ const ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
297
+ const {
298
+ originalValue,
299
+ isAddCell,
300
+ isInNewRowFlag,
301
+ isChanged
302
+ } = ctx;
303
+ const originalRealValue = tools.calc(Number(originalValue || null), '*', multiple);
304
+ let originalRenderValue = getDecimalDigits(originalValue) > valueTypePrecision ? originalRealValue : originalRealValue.toFixed(valueTypePrecision);
296
305
  if (isEmpty(originalValue)) {
297
306
  originalRenderValue = '-';
298
307
  }
@@ -305,9 +314,10 @@ export var formatColumn = _ref3 => {
305
314
  });
306
315
  }
307
316
  return createRenderColumn({
308
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
317
+ baseProps: {
318
+ ...otherProps,
309
319
  isChanged
310
- }),
320
+ },
311
321
  valueType,
312
322
  ellipsis,
313
323
  width,
@@ -325,15 +335,17 @@ export var formatColumn = _ref3 => {
325
335
  } else if (['thousandth', 'thousandthCNY'].includes(valueType)) {
326
336
  // 千分位, 千分位带CNY前缀
327
337
  column.render = (value, record, index) => {
328
- var valueStr = valueTypePrecision || valueTypePrecision === 0 ? `${Number(value).toFixed(valueTypePrecision)}` : `${value}`;
329
- var renderValue = valueStr.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
330
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
331
- var originalValue = ctx.originalValue,
332
- isAddCell = ctx.isAddCell,
333
- isInNewRowFlag = ctx.isInNewRowFlag,
334
- isChanged = ctx.isChanged;
335
- var originalRealValue = valueTypePrecision ? `${Number(originalValue).toFixed(valueTypePrecision)}` : `${originalValue}`;
336
- var originalRenderValue = originalRealValue.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
338
+ const valueStr = valueTypePrecision || valueTypePrecision === 0 ? `${Number(value).toFixed(valueTypePrecision)}` : `${value}`;
339
+ const renderValue = valueStr.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
340
+ const ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
341
+ const {
342
+ originalValue,
343
+ isAddCell,
344
+ isInNewRowFlag,
345
+ isChanged
346
+ } = ctx;
347
+ const originalRealValue = valueTypePrecision ? `${Number(originalValue).toFixed(valueTypePrecision)}` : `${originalValue}`;
348
+ let originalRenderValue = originalRealValue.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
337
349
  if (isEmpty(originalValue)) {
338
350
  originalRenderValue = '-';
339
351
  }
@@ -346,9 +358,10 @@ export var formatColumn = _ref3 => {
346
358
  });
347
359
  }
348
360
  return createRenderColumn({
349
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
361
+ baseProps: {
362
+ ...otherProps,
350
363
  isChanged
351
- }),
364
+ },
352
365
  valueType,
353
366
  ellipsis,
354
367
  width,
@@ -366,34 +379,35 @@ export var formatColumn = _ref3 => {
366
379
  } else if (['datePicker', 'date', 'dateTime', 'dateStartTime', 'dateEndTime', 'dateStartEndTime'].includes(valueType)) {
367
380
  // 日期类型
368
381
  column.render = (value, record, index) => {
369
- var _dayjs, _dayjs2, _dayjs3, _dayjs4, _dayjs5, _dayjs6, _dayjs7, _dayjs8, _dayjs9, _dayjs10, _dayjs11, _dayjs12, _dayjs13, _dayjs14;
370
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
371
- var originalValue = ctx.originalValue,
372
- isAddCell = ctx.isAddCell,
373
- isInNewRowFlag = ctx.isInNewRowFlag,
374
- isChanged = ctx.isChanged;
375
- var renderValue = (_dayjs = dayjs(value)) === null || _dayjs === void 0 ? void 0 : _dayjs.format(format);
376
- var originalRenderValue = (_dayjs2 = dayjs(originalValue)) === null || _dayjs2 === void 0 ? void 0 : _dayjs2.format(format);
382
+ const ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
383
+ const {
384
+ originalValue,
385
+ isAddCell,
386
+ isInNewRowFlag,
387
+ isChanged
388
+ } = ctx;
389
+ let renderValue = dayjs(value)?.format(format);
390
+ let originalRenderValue = dayjs(originalValue)?.format(format);
377
391
  switch (valueType) {
378
392
  case 'date':
379
- renderValue = (_dayjs3 = dayjs(value)) === null || _dayjs3 === void 0 ? void 0 : _dayjs3.format('YYYY-MM-DD');
380
- originalRenderValue = (_dayjs4 = dayjs(originalValue)) === null || _dayjs4 === void 0 ? void 0 : _dayjs4.format('YYYY-MM-DD');
393
+ renderValue = dayjs(value)?.format('YYYY-MM-DD');
394
+ originalRenderValue = dayjs(originalValue)?.format('YYYY-MM-DD');
381
395
  break;
382
396
  case 'dateTime':
383
- renderValue = (_dayjs5 = dayjs(value)) === null || _dayjs5 === void 0 ? void 0 : _dayjs5.format('YYYY-MM-DD HH:mm:ss');
384
- originalRenderValue = (_dayjs6 = dayjs(originalValue)) === null || _dayjs6 === void 0 ? void 0 : _dayjs6.format('YYYY-MM-DD HH:mm:ss');
397
+ renderValue = dayjs(value)?.format('YYYY-MM-DD HH:mm:ss');
398
+ originalRenderValue = dayjs(originalValue)?.format('YYYY-MM-DD HH:mm:ss');
385
399
  break;
386
400
  case 'dateStartTime':
387
- renderValue = `${(_dayjs7 = dayjs(value)) === null || _dayjs7 === void 0 ? void 0 : _dayjs7.format('YYYY-MM-DD')} 00:00:00`;
388
- originalRenderValue = `${(_dayjs8 = dayjs(originalValue)) === null || _dayjs8 === void 0 ? void 0 : _dayjs8.format('YYYY-MM-DD')} 00:00:00`;
401
+ renderValue = `${dayjs(value)?.format('YYYY-MM-DD')} 00:00:00`;
402
+ originalRenderValue = `${dayjs(originalValue)?.format('YYYY-MM-DD')} 00:00:00`;
389
403
  break;
390
404
  case 'dateEndTime':
391
- renderValue = `${(_dayjs9 = dayjs(value)) === null || _dayjs9 === void 0 ? void 0 : _dayjs9.format('YYYY-MM-DD')} 23:59:59`;
392
- originalRenderValue = `${(_dayjs10 = dayjs(originalValue)) === null || _dayjs10 === void 0 ? void 0 : _dayjs10.format('YYYY-MM-DD')} 23:59:59`;
405
+ renderValue = `${dayjs(value)?.format('YYYY-MM-DD')} 23:59:59`;
406
+ originalRenderValue = `${dayjs(originalValue)?.format('YYYY-MM-DD')} 23:59:59`;
393
407
  break;
394
408
  case 'dateStartEndTime':
395
- renderValue = `${(_dayjs11 = dayjs(value === null || value === void 0 ? void 0 : value[0])) === null || _dayjs11 === void 0 ? void 0 : _dayjs11.format('YYYY-MM-DD')} 00:00:00~${(_dayjs12 = dayjs(value === null || value === void 0 ? void 0 : value[1])) === null || _dayjs12 === void 0 ? void 0 : _dayjs12.format('YYYY-MM-DD')} 23:59:59`;
396
- originalRenderValue = `${(_dayjs13 = dayjs(originalValue === null || originalValue === void 0 ? void 0 : originalValue[0])) === null || _dayjs13 === void 0 ? void 0 : _dayjs13.format('YYYY-MM-DD')} 00:00:00~${(_dayjs14 = dayjs(originalValue === null || originalValue === void 0 ? void 0 : originalValue[1])) === null || _dayjs14 === void 0 ? void 0 : _dayjs14.format('YYYY-MM-DD')} 23:59:59`;
409
+ renderValue = `${dayjs(value?.[0])?.format('YYYY-MM-DD')} 00:00:00~${dayjs(value?.[1])?.format('YYYY-MM-DD')} 23:59:59`;
410
+ originalRenderValue = `${dayjs(originalValue?.[0])?.format('YYYY-MM-DD')} 00:00:00~${dayjs(originalValue?.[1])?.format('YYYY-MM-DD')} 23:59:59`;
397
411
  break;
398
412
  }
399
413
  if (!value) renderValue = '-';
@@ -407,9 +421,10 @@ export var formatColumn = _ref3 => {
407
421
  });
408
422
  }
409
423
  return createRenderColumn({
410
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
424
+ baseProps: {
425
+ ...otherProps,
411
426
  isChanged
412
- }),
427
+ },
413
428
  valueType,
414
429
  ellipsis,
415
430
  width,
@@ -427,17 +442,18 @@ export var formatColumn = _ref3 => {
427
442
  } else if (['enumName', 'enumCodeName'].includes(valueType)) {
428
443
  // 枚举类型
429
444
  column.render = (value, record, index) => {
430
- var realCode = typeof code === 'function' ? code(value, record) : code;
431
- var renderValue = getEnumLabel(realCode, value, valueType === 'enumCodeName');
432
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
433
- var originalValue = ctx.originalValue,
434
- isAddCell = ctx.isAddCell,
435
- isInNewRowFlag = ctx.isInNewRowFlag,
436
- isChanged = ctx.isChanged;
437
- var originalRenderValue = getEnumLabel(realCode, originalValue, valueType === 'enumCodeName');
438
- if (Array.isArray(column === null || column === void 0 ? void 0 : column.codeValues) && !realCode) {
439
- var _column$codeValues$fi;
440
- var labelName = column === null || column === void 0 || (_column$codeValues$fi = column.codeValues.find(item => item.value === value)) === null || _column$codeValues$fi === void 0 ? void 0 : _column$codeValues$fi.label;
445
+ const realCode = typeof code === 'function' ? code(value, record) : code;
446
+ let renderValue = getEnumLabel(realCode, value, valueType === 'enumCodeName');
447
+ const ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
448
+ const {
449
+ originalValue,
450
+ isAddCell,
451
+ isInNewRowFlag,
452
+ isChanged
453
+ } = ctx;
454
+ const originalRenderValue = getEnumLabel(realCode, originalValue, valueType === 'enumCodeName');
455
+ if (Array.isArray(column?.codeValues) && !realCode) {
456
+ const labelName = column?.codeValues.find(item => item.value === value)?.label;
441
457
  if (valueType === 'enumName') {
442
458
  renderValue = /*#__PURE__*/_jsx(_Fragment, {
443
459
  children: labelName || '-'
@@ -450,9 +466,10 @@ export var formatColumn = _ref3 => {
450
466
  }
451
467
  }
452
468
  return createRenderColumn({
453
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
469
+ baseProps: {
470
+ ...otherProps,
454
471
  isChanged
455
- }),
472
+ },
456
473
  valueType,
457
474
  ellipsis,
458
475
  width,
@@ -470,13 +487,15 @@ export var formatColumn = _ref3 => {
470
487
  } else if (precision || prefix || suffix) {
471
488
  // 精度或前后缀
472
489
  column.render = (value, record, index) => {
473
- var renderValue = typeof value === 'number' ? value.toFixed(precision) : value;
474
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
475
- var originalValue = ctx.originalValue,
476
- isAddCell = ctx.isAddCell,
477
- isInNewRowFlag = ctx.isInNewRowFlag,
478
- isChanged = ctx.isChanged;
479
- var originalRenderValue = typeof originalValue === 'number' ? originalValue.toFixed(precision) : originalValue;
490
+ const renderValue = typeof value === 'number' ? value.toFixed(precision) : value;
491
+ const ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
492
+ const {
493
+ originalValue,
494
+ isAddCell,
495
+ isInNewRowFlag,
496
+ isChanged
497
+ } = ctx;
498
+ let originalRenderValue = typeof originalValue === 'number' ? originalValue.toFixed(precision) : originalValue;
480
499
  if (isEmpty(originalValue)) {
481
500
  originalRenderValue = '-';
482
501
  }
@@ -489,9 +508,10 @@ export var formatColumn = _ref3 => {
489
508
  });
490
509
  }
491
510
  return createRenderColumn({
492
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
511
+ baseProps: {
512
+ ...otherProps,
493
513
  isChanged
494
- }),
514
+ },
495
515
  valueType,
496
516
  ellipsis,
497
517
  width,
@@ -509,16 +529,17 @@ export var formatColumn = _ref3 => {
509
529
  } else if (valueType === 'address') {
510
530
  // 地址类型
511
531
  column.render = (value, record, index) => {
512
- var _realValue$filter;
513
- var realValue = transform ? transform(value, record) : value;
514
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
515
- var originalValue = ctx.originalValue,
516
- isAddCell = ctx.isAddCell,
517
- isInNewRowFlag = ctx.isInNewRowFlag,
518
- isChanged = ctx.isChanged;
519
- var originalRealValue = transform ? transform(originalValue, record) : originalValue;
520
- var isEmptyValue = !realValue || Array.isArray(realValue) && (realValue === null || realValue === void 0 || (_realValue$filter = realValue.filter(item => !!item)) === null || _realValue$filter === void 0 ? void 0 : _realValue$filter.length) === 0;
521
- if (isEqual(value, originalValue) && isEmptyValue) {
532
+ const realValue = transform ? transform(value, record) : value;
533
+ const ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
534
+ const {
535
+ originalValue,
536
+ isAddCell,
537
+ isInNewRowFlag,
538
+ isChanged
539
+ } = ctx;
540
+ const originalRealValue = transform ? transform(originalValue, record) : originalValue;
541
+ const isEmptyValue = !realValue || Array.isArray(realValue) && realValue?.filter(item => !!item)?.length === 0;
542
+ if (_isEqual(value, originalValue) && isEmptyValue) {
522
543
  return /*#__PURE__*/_jsx("div", {
523
544
  style: {
524
545
  minWidth
@@ -526,23 +547,23 @@ export var formatColumn = _ref3 => {
526
547
  children: "-"
527
548
  });
528
549
  }
529
- var className = classnames({
550
+ const className = classnames({
530
551
  'empty-cell': isEmptyValue
531
552
  });
532
- var realCode = typeof code === 'function' ? code(value, record) : code;
533
- var renderValue = /*#__PURE__*/_jsx(ProCascader, {
553
+ const realCode = typeof code === 'function' ? code(value, record) : code;
554
+ const renderValue = /*#__PURE__*/_jsx(ProCascader, {
534
555
  isView: true,
535
556
  mode: "address",
536
557
  code: realCode,
537
558
  value: realValue
538
559
  });
539
- var originalRenderValue = /*#__PURE__*/_jsx(ProCascader, {
560
+ const originalRenderValue = /*#__PURE__*/_jsx(ProCascader, {
540
561
  isView: true,
541
562
  mode: "address",
542
563
  code: realCode,
543
564
  value: originalRealValue
544
565
  });
545
- var renderNode = /*#__PURE__*/_jsx(ProCascader, {
566
+ const renderNode = /*#__PURE__*/_jsx(ProCascader, {
546
567
  className: className,
547
568
  isView: true,
548
569
  mode: "address",
@@ -551,9 +572,10 @@ export var formatColumn = _ref3 => {
551
572
  tooltip: false
552
573
  });
553
574
  return createRenderColumn({
554
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
575
+ baseProps: {
576
+ ...otherProps,
555
577
  isChanged
556
- }),
578
+ },
557
579
  valueType,
558
580
  ellipsis,
559
581
  width,
@@ -571,13 +593,14 @@ export var formatColumn = _ref3 => {
571
593
  } else if (copyable) {
572
594
  // 可复制
573
595
  column.render = (value, record, index) => {
574
- var isInNewRowFlag = isInNewRow(record);
596
+ const isInNewRowFlag = isInNewRow(record);
575
597
  return /*#__PURE__*/_jsxs(Space, {
576
598
  size: 8,
577
599
  children: [prefixNode(value, record, index), createRenderColumn({
578
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
600
+ baseProps: {
601
+ ...otherProps,
579
602
  isChanged: false
580
- }),
603
+ },
581
604
  valueType,
582
605
  ellipsis,
583
606
  width,
@@ -597,11 +620,13 @@ export var formatColumn = _ref3 => {
597
620
  } else if (ellipsis) {
598
621
  // 省略号
599
622
  column.render = (value, record, index) => {
600
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
601
- var originalValue = ctx.originalValue,
602
- isAddCell = ctx.isAddCell,
603
- isInNewRowFlag = ctx.isInNewRowFlag,
604
- isChanged = ctx.isChanged;
623
+ const ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
624
+ const {
625
+ originalValue,
626
+ isAddCell,
627
+ isInNewRowFlag,
628
+ isChanged
629
+ } = ctx;
605
630
  if (!value && value !== 0 && value === originalValue) {
606
631
  return /*#__PURE__*/_jsx("div", {
607
632
  style: {
@@ -613,9 +638,10 @@ export var formatColumn = _ref3 => {
613
638
  return /*#__PURE__*/_jsxs(Space, {
614
639
  size: 8,
615
640
  children: [prefixNode(value, record, index), createRenderColumn({
616
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
641
+ baseProps: {
642
+ ...otherProps,
617
643
  isChanged
618
- }),
644
+ },
619
645
  valueType,
620
646
  ellipsis,
621
647
  width,
@@ -634,11 +660,13 @@ export var formatColumn = _ref3 => {
634
660
  } else {
635
661
  // 默认渲染
636
662
  column.render = (value, record, index) => {
637
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
638
- var originalValue = ctx.originalValue,
639
- isAddCell = ctx.isAddCell,
640
- isInNewRowFlag = ctx.isInNewRowFlag,
641
- isChanged = ctx.isChanged;
663
+ const ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
664
+ const {
665
+ originalValue,
666
+ isAddCell,
667
+ isInNewRowFlag,
668
+ isChanged
669
+ } = ctx;
642
670
  if (!value && value !== 0 && value === originalValue) {
643
671
  return /*#__PURE__*/_jsx("div", {
644
672
  style: {
@@ -648,9 +676,10 @@ export var formatColumn = _ref3 => {
648
676
  });
649
677
  }
650
678
  return createRenderColumn({
651
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
679
+ baseProps: {
680
+ ...otherProps,
652
681
  isChanged
653
- }),
682
+ },
654
683
  valueType,
655
684
  ellipsis,
656
685
  width,
@@ -671,14 +700,12 @@ export var formatColumn = _ref3 => {
671
700
  /**
672
701
  * 查找最近的父级className
673
702
  */
674
- export var getParentElement = function getParentElement(element, name) {
675
- var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'className';
676
- var result = /*#__PURE__*/_jsx(_Fragment, {});
703
+ export const getParentElement = (element, name, type = 'className') => {
704
+ let result = /*#__PURE__*/_jsx(_Fragment, {});
677
705
  if (!element || !name) {
678
706
  return result;
679
707
  }
680
- var searchDom = function searchDom(el, searchName) {
681
- var searchType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'className';
708
+ const searchDom = (el, searchName, searchType = 'className') => {
682
709
  if (el.parentElement[searchType] === searchName) {
683
710
  result = el.parentElement;
684
711
  return false;