@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,770 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.ProTreeSelect = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _ahooks = require("ahooks");
9
- var _antd = require("antd");
10
- var _classnames = _interopRequireDefault(require("classnames"));
11
- var _lodash = require("lodash");
12
- var _utils = require("@zat-design/utils");
13
- var _locale = _interopRequireDefault(require("../../../locale"));
14
- var _ProConfigProvider = require("../../../ProConfigProvider");
15
- var _Container = _interopRequireDefault(require("../../../ProForm/components/Container"));
16
- var _AdaptiveTooltip = _interopRequireDefault(require("../AdaptiveTooltip"));
17
- var _utils2 = require("../../utils");
18
- var _jsxRuntime = require("react/jsx-runtime");
19
- var _excluded = ["disabled", "code", "dataSource", "defaultDisableValue", "onChange", "useRequest", "transformResponse", "fieldNames", "placeholder", "tooltip", "showSearch", "filterTreeNode", "treeNodeFilterProp", "defaultExpandAll", "expandedKeys", "treeCheckable", "onSearch", "otherProps", "width", "dropdownStyle", "popupClassName", "style", "allowClear", "listHeight", "showCodeName", "className", "checkStrictly", "checkable"];
20
- /* eslint-disable @typescript-eslint/no-use-before-define */
21
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
25
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
26
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
27
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
28
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
29
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
30
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
31
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
32
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33
- 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; }
34
- 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; }
35
- 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; }
36
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
37
- 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); }
38
- 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; }
39
- 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; }
40
- var SHOW_PARENT = _antd.TreeSelect.SHOW_PARENT;
41
- var ProTreeSelect = (props, ref) => {
42
- var _useRequest$options, _useRequest$options3, _selectProps$classNam, _selectProps$classNam2, _selectProps$styles, _selectProps$styles2;
43
- // 全局属性配置在ConfigProvider
44
- var _ref = (0, _ProConfigProvider.useProConfig)('ProTreeSelect') || {},
45
- _ref$fieldNames = _ref.fieldNames,
46
- proSelectFieldNames = _ref$fieldNames === void 0 ? {} : _ref$fieldNames;
47
- var _useProConfig = (0, _ProConfigProvider.useProConfig)('ProEnum'),
48
- _useProConfig$dics = _useProConfig.dics,
49
- dics = _useProConfig$dics === void 0 ? {} : _useProConfig$dics;
50
-
51
- // 配置属性
52
- var disabled = props.disabled,
53
- enumCode = props.code,
54
- dataSource = props.dataSource,
55
- defaultDisableValue = props.defaultDisableValue,
56
- onChange = props.onChange,
57
- useRequest = props.useRequest,
58
- transformResponse = props.transformResponse,
59
- fieldNames = props.fieldNames,
60
- placeholder = props.placeholder,
61
- _props$tooltip = props.tooltip,
62
- tooltip = _props$tooltip === void 0 ? false : _props$tooltip,
63
- _props$showSearch = props.showSearch,
64
- showSearch = _props$showSearch === void 0 ? true : _props$showSearch,
65
- filterTreeNode = props.filterTreeNode,
66
- _props$treeNodeFilter = props.treeNodeFilterProp,
67
- treeNodeFilterProp = _props$treeNodeFilter === void 0 ? 'label' : _props$treeNodeFilter,
68
- _props$defaultExpandA = props.defaultExpandAll,
69
- defaultExpandAll = _props$defaultExpandA === void 0 ? true : _props$defaultExpandA,
70
- expandedKeys = props.expandedKeys,
71
- _props$treeCheckable = props.treeCheckable,
72
- treeCheckable = _props$treeCheckable === void 0 ? true : _props$treeCheckable,
73
- _onSearch = props.onSearch,
74
- otherProps = props.otherProps,
75
- width = props.width,
76
- dropdownStyle = props.dropdownStyle,
77
- popupClassName = props.popupClassName,
78
- style = props.style,
79
- allowClear = props.allowClear,
80
- listHeight = props.listHeight,
81
- showCodeName = props.showCodeName,
82
- className = props.className,
83
- checkStrictly = props.checkStrictly,
84
- checkable = props.checkable,
85
- selectProps = _objectWithoutProperties(props, _excluded);
86
- var _props$value = props.value,
87
- value = _props$value === void 0 ? undefined : _props$value;
88
- var _props$showEllipse = props.showEllipse,
89
- showEllipse = _props$showEllipse === void 0 ? true : _props$showEllipse;
90
- var _ref2 = otherProps !== null && otherProps !== void 0 ? otherProps : {},
91
- isDiffChange = _ref2.isDiffChange;
92
- var _showEllipse = showEllipse && !isDiffChange;
93
- var _ref3 = otherProps || {},
94
- isView = _ref3.isView,
95
- viewEmpty = _ref3.viewEmpty;
96
-
97
- // 合并全局和组件级别的 fieldNames,优先级:组件级 > 全局
98
- var finalFieldNames = _objectSpread(_objectSpread({
99
- label: 'label',
100
- value: 'value',
101
- children: 'children'
102
- }, proSelectFieldNames), fieldNames);
103
-
104
- /**
105
- * 使用 tools.transformDataName 统一转换字段名
106
- * 将原始数据转换为标准格式(label, value, children)
107
- * tools.transformDataName 会自动检查数据是否已经是标准格式,如果是则直接返回
108
- */
109
- var transformFieldNames = (0, _react.useCallback)(data => {
110
- if (!data || !Array.isArray(data) || !data.length) {
111
- return data || [];
112
- }
113
-
114
- // 使用 tools.transformDataName 转换字段名
115
- // 它会自动检查数据是否已经是标准格式(label, value, children),如果是则直接返回
116
- return _utils.tools.transformDataName(data, {
117
- label: finalFieldNames.label,
118
- value: finalFieldNames.value,
119
- children: finalFieldNames.children
120
- });
121
- }, [finalFieldNames]);
122
- // 经过处理后的枚举数据,可能来自用户配置的处理函数后返回的结果
123
- var _useSetState = (0, _ahooks.useSetState)({}),
124
- _useSetState2 = _slicedToArray(_useSetState, 2),
125
- state = _useSetState2[0],
126
- setState = _useSetState2[1];
127
- var _state$selectList = state.selectList,
128
- selectList = _state$selectList === void 0 ? [] : _state$selectList,
129
- _state$origDataSource = state.origDataSource,
130
- origDataSource = _state$origDataSource === void 0 ? [] : _state$origDataSource;
131
-
132
- /**
133
- * 如果数据少于10条那么将数据平铺返回
134
- * 注意:当 treeCheckable 为 false 时(单选模式),应保持树形结构,不进行平铺
135
- * @param dictsEnum 原始数据
136
- * @returns 平铺或者原始数据
137
- */
138
- var countChild = dictsEnum => {
139
- if (treeCheckable) {
140
- return dictsEnum;
141
- }
142
- // 单选模式(treeCheckable=false)时,保持树形结构,不进行平铺
143
- // 因为 TreeSelect 在单选模式下也需要树形结构来正确展示层级关系
144
- return dictsEnum;
145
- };
146
-
147
- /**
148
- * 如果要展示code-name,那么将源数据的label转为code-name
149
- * 注意:此时数据已经是标准格式(label, value, children)
150
- * @param dataArr 源数据(标准格式)
151
- * @param showCodeAndName 是否展示code-name
152
- * @returns 转换结果
153
- */
154
- var transferDataSource = (dataArr, showCodeAndName) => {
155
- if (!showCodeAndName) {
156
- return dataArr;
157
- }
158
- var copyData = (0, _lodash.cloneDeep)(dataArr);
159
- var loop = arr => {
160
- arr.map(item => {
161
- item.label = `${item.value}-${item.label}`;
162
- if (item.children) {
163
- loop(item.children);
164
- }
165
- return item;
166
- });
167
- };
168
- loop(copyData);
169
- return copyData;
170
- };
171
- var defaultOnSuccessFun = res => {
172
- var _res$status = res.status,
173
- status = _res$status === void 0 ? 200 : _res$status,
174
- msg = res.message,
175
- data = res.data;
176
- if (status !== 200) {
177
- _antd.message.error(msg);
178
- return;
179
- }
180
- // 先转换字段名,再处理 code-name 展示
181
- var transformedData = transformFieldNames(data || []);
182
- var resultData = transferDataSource(transformedData, showCodeName);
183
- setState({
184
- selectList: resultData || [],
185
- origDataSource: resultData || []
186
- });
187
- };
188
- var successTransformDataHandle = (0, _react.useCallback)(res => {
189
- if (transformResponse && typeof transformResponse === 'function') {
190
- return transformResponse(res);
191
- }
192
- var _ref4 = res || {},
193
- _ref4$status = _ref4.status,
194
- status = _ref4$status === void 0 ? 200 : _ref4$status,
195
- msg = _ref4.message,
196
- data = _ref4.data;
197
- if (status !== 200) {
198
- _antd.message.error(msg);
199
- return;
200
- }
201
- return data;
202
- }, []);
203
-
204
- // 配置了异步数据源,拉取枚举数据逻辑 如果有code不掉接口从local里根据code取值
205
- var fetchFunction = (0, _ahooks.useRequest)(useRequest === null || useRequest === void 0 ? void 0 : useRequest.service, _objectSpread({
206
- manual: true,
207
- debounceWait: 300,
208
- onSuccess: data => {
209
- if (transformResponse && typeof transformResponse === 'function') {
210
- var responseData = transformResponse(data);
211
- // 先转换字段名,再处理 code-name 展示
212
- var transformedData = transformFieldNames(responseData);
213
- var resultData = transferDataSource(transformedData, showCodeName);
214
- setState({
215
- selectList: countChild(resultData),
216
- origDataSource: resultData
217
- });
218
- } else {
219
- defaultOnSuccessFun(fetchFunction.data);
220
- }
221
- }
222
- }, useRequest === null || useRequest === void 0 ? void 0 : useRequest.options));
223
- var cacheList = useRequest !== null && useRequest !== void 0 && (_useRequest$options = useRequest.options) !== null && _useRequest$options !== void 0 && _useRequest$options.cacheKey ? successTransformDataHandle(fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.data) : [];
224
- (0, _react.useImperativeHandle)(ref, () => ({
225
- useRequestRef: fetchFunction
226
- }));
227
-
228
- // 设置cacheKey后使用缓存的数据
229
- (0, _ahooks.useDeepCompareEffect)(() => {
230
- var _useRequest$options2;
231
- if (fetchFunction !== null && fetchFunction !== void 0 && fetchFunction.data, useRequest !== null && useRequest !== void 0 && (_useRequest$options2 = useRequest.options) !== null && _useRequest$options2 !== void 0 && _useRequest$options2.cacheKey) {
232
- if (transformResponse && typeof transformResponse === 'function') {
233
- var responseData = transformResponse(fetchFunction.data);
234
- // 先转换字段名,再处理 code-name 展示
235
- var transformedData = transformFieldNames(responseData);
236
- var resultData = transferDataSource(transformedData, showCodeName);
237
- setState({
238
- selectList: countChild(resultData),
239
- origDataSource: resultData
240
- });
241
- } else {
242
- defaultOnSuccessFun(fetchFunction.data);
243
- }
244
- }
245
- }, [fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.data, useRequest === null || useRequest === void 0 || (_useRequest$options3 = useRequest.options) === null || _useRequest$options3 === void 0 ? void 0 : _useRequest$options3.cacheKey]);
246
- (0, _ahooks.useDeepCompareEffect)(() => {
247
- if (enumCode) {
248
- var dictEnum = dics[enumCode] || [];
249
- // 先转换字段名,再处理 code-name 展示
250
- var transformedData = transformFieldNames(dictEnum);
251
- var resultData = transferDataSource(transformedData, showCodeName);
252
- var processedList = countChild(resultData);
253
- setState({
254
- selectList: processedList,
255
- origDataSource: resultData
256
- });
257
- } else if (dataSource) {
258
- // 先转换字段名,再处理 code-name 展示
259
- var _transformedData = transformFieldNames(dataSource);
260
- var _resultData = transferDataSource(_transformedData, showCodeName);
261
- var _processedList = countChild(_resultData);
262
- setState({
263
- selectList: _processedList,
264
- origDataSource: _resultData
265
- });
266
- }
267
- }, [enumCode, dataSource, showCodeName]);
268
- (0, _ahooks.useDeepCompareEffect)(() => {
269
- // code存在huo dataSource存在,不执行接口请求
270
- if (enumCode || dataSource) {
271
- return undefined;
272
- }
273
- // 如果配置手动加载,不执行请求
274
- var _ref5 = (useRequest === null || useRequest === void 0 ? void 0 : useRequest.options) || {},
275
- defaultParams = _ref5.defaultParams,
276
- manual = _ref5.manual;
277
- // disabled 状态时,不查询接口
278
- if (defaultDisableValue || !useRequest) {
279
- return undefined;
280
- }
281
- if (manual || cacheList !== null && cacheList !== void 0 && cacheList.length) {
282
- return;
283
- }
284
- var params = Array.isArray(defaultParams) ? defaultParams === null || defaultParams === void 0 ? void 0 : defaultParams[0] : defaultParams || {};
285
- // 执行用户配置的枚举服务,拉取枚举数据进行更新
286
- fetchFunction.run(params);
287
- }, [useRequest === null || useRequest === void 0 ? void 0 : useRequest.options, defaultDisableValue]);
288
-
289
- // disable默认值
290
- if (defaultDisableValue) {
291
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
292
- title: defaultDisableValue,
293
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Input, {
294
- disabled: true,
295
- defaultValue: defaultDisableValue,
296
- style: props === null || props === void 0 ? void 0 : props.style
297
- })
298
- });
299
- }
300
-
301
- /**
302
- * 根据值进行回显
303
- * 注意:此时数据已经是标准格式(label, value, children)
304
- * @param value 输入值
305
- * @returns 对应枚举label
306
- */
307
- var transToLabel = value => {
308
- if (!Array.isArray(origDataSource) || !origDataSource.length) {
309
- return viewEmpty;
310
- }
311
- var labelResult = [];
312
- var queryLabel = dicts => dicts.map(item => {
313
- if (value.includes(item.value)) {
314
- var labelText = item.label;
315
- labelResult.push(labelText);
316
- }
317
- if (item.children) {
318
- queryLabel(item.children);
319
- }
320
- return item;
321
- });
322
- queryLabel(origDataSource);
323
- return labelResult === null || labelResult === void 0 ? void 0 : labelResult.join(',');
324
- };
325
-
326
- // 优化的maxTagPlaceholder实现,支持hover显示完整标签内容
327
- // 必须在条件返回之前定义所有hooks,避免hooks数量不一致错误
328
- var maxTagPlaceholder = (0, _react.useCallback)(omittedValues => {
329
- // 获取扁平化的树数据用于查找标签
330
- var flatData = (0, _utils2.getFlatTreeData)(selectList, finalFieldNames);
331
-
332
- // 提取被省略的标签文本
333
- var omittedLabels = omittedValues.map(valueObj => {
334
- // TreeSelect的maxTagPlaceholder参数是选中项的完整对象
335
- var targetValue = valueObj.value || valueObj[finalFieldNames.value];
336
-
337
- // 从扁平化的选项列表中查找匹配项
338
- var matchedItem = flatData.find(item => item[finalFieldNames.value] === targetValue);
339
- if (matchedItem) {
340
- // 支持showCodeName格式
341
- return showCodeName ? `${matchedItem[finalFieldNames.value]}-${matchedItem[finalFieldNames.label]}` : matchedItem[finalFieldNames.label];
342
- }
343
-
344
- // 备选方案1:直接提取valueObj的label
345
- if (valueObj.label) {
346
- var _valueObj$label;
347
- // 处理可能的React元素或带HTML的标签
348
- if (typeof valueObj.label === 'object' && (_valueObj$label = valueObj.label) !== null && _valueObj$label !== void 0 && _valueObj$label.props) {
349
- var _valueObj$label2, _children$props, _valueObj$label3;
350
- var children = (_valueObj$label2 = valueObj.label) === null || _valueObj$label2 === void 0 || (_valueObj$label2 = _valueObj$label2.props) === null || _valueObj$label2 === void 0 ? void 0 : _valueObj$label2.children;
351
- if (children !== null && children !== void 0 && (_children$props = children.props) !== null && _children$props !== void 0 && (_children$props = _children$props.dangerouslySetInnerHTML) !== null && _children$props !== void 0 && _children$props.__html) {
352
- return children.props.dangerouslySetInnerHTML.__html;
353
- }
354
- if ((_valueObj$label3 = valueObj.label) !== null && _valueObj$label3 !== void 0 && (_valueObj$label3 = _valueObj$label3.props) !== null && _valueObj$label3 !== void 0 && (_valueObj$label3 = _valueObj$label3.dangerouslySetInnerHTML) !== null && _valueObj$label3 !== void 0 && _valueObj$label3.__html) {
355
- return valueObj.label.props.dangerouslySetInnerHTML.__html;
356
- }
357
- // 如果是React元素,尝试提取文本内容
358
- return children || valueObj.label;
359
- }
360
- return valueObj.label;
361
- }
362
-
363
- // 备选方案2:使用value作为fallback
364
- return targetValue;
365
- });
366
- var tooltipContent = omittedLabels.join('、');
367
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Tooltip, {
368
- title: tooltipContent,
369
- placement: "topLeft",
370
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
371
- children: ["+ ", /*#__PURE__*/(0, _jsxRuntime.jsx)("b", {
372
- className: "pro-tree-more-count",
373
- children: omittedValues.length
374
- }), "..."]
375
- })
376
- });
377
- }, [selectList, finalFieldNames, showCodeName]);
378
-
379
- // 纯展示处理
380
- if (isView || props.isView) {
381
- if (Array.isArray(value)) {
382
- // 从selectProps或props中获取maxTagCount,因为此时treeProps还未定义
383
- var maxTagCount = selectProps.maxTagCount || props.maxTagCount;
384
- // 如果设置了maxTagCount且超出数量,需要截断显示
385
- var shouldTruncate = typeof maxTagCount === 'number' && value.length > maxTagCount;
386
- if (shouldTruncate) {
387
- var _locale$ProForm;
388
- // 截断显示:显示前N项 + "更多N项..."的hover提示
389
- var maxCount = typeof maxTagCount === 'number' ? maxTagCount : 0;
390
- var visibleItems = value.slice(0, maxCount);
391
- var hiddenItems = value.slice(maxCount);
392
- var hiddenCount = value.length - maxCount;
393
- var visibleText = transToLabel(visibleItems);
394
- var hiddenText = transToLabel(hiddenItems); // 只显示被隐藏的标签
395
- var moreText = _locale.default !== null && _locale.default !== void 0 && (_locale$ProForm = _locale.default.ProForm) !== null && _locale$ProForm !== void 0 && _locale$ProForm.moreItems ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
396
- children: [_locale.default.ProForm.moreItems.split('{count}')[0], /*#__PURE__*/(0, _jsxRuntime.jsx)("b", {
397
- className: "pro-tree-more-count",
398
- children: hiddenCount
399
- }), _locale.default.ProForm.moreItems.split('{count}')[1]]
400
- }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
401
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("b", {
402
- className: "pro-tree-more-count",
403
- children: hiddenCount
404
- }), " more..."]
405
- });
406
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Container.default, {
407
- viewEmpty: viewEmpty,
408
- children: [visibleText, "\u3001", /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Tooltip, {
409
- title: hiddenText,
410
- placement: "topLeft",
411
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
412
- children: moreText
413
- })
414
- })]
415
- });
416
- }
417
-
418
- // 不需要截断,正常显示
419
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Container.default, {
420
- tooltip: true,
421
- viewEmpty: viewEmpty,
422
- children: transToLabel(value)
423
- });
424
- }
425
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Container.default, {
426
- viewEmpty: viewEmpty,
427
- children: value ? transToLabel([value]) : null
428
- });
429
- }
430
- var Icon = () => {
431
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
432
- className: "icon",
433
- viewBox: "0 0 1433 1024",
434
- version: "1.1",
435
- xmlns: "http://www.w3.org/2000/svg",
436
- "p-id": "2318",
437
- width: "1em",
438
- height: "1em",
439
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
440
- d: "M209.92 337.2032l362.0864 361.984L1223.68 47.5136l144.7936 144.896-796.4672 796.4672-506.88-506.88z",
441
- "p-id": "2319",
442
- fill: "currentColor"
443
- })
444
- });
445
- };
446
-
447
- /**
448
- * 自定义渲染子树
449
- * 注意:此时数据已经是标准格式(label, value, children)
450
- * @param node 每个节点数据对象(标准格式)
451
- * @returns 整个react节点树
452
- */
453
- var renderTreeNode = (node, grade) => {
454
- var children = node.children,
455
- icon = node.icon,
456
- label = node.label,
457
- nodeValue = node.value,
458
- nodeKey = node.key;
459
- var labelText = label;
460
- var value = nodeValue;
461
- var key = nodeValue; // 使用 value 作为 key,如果有 key 字段则使用 key
462
- if (nodeKey !== undefined) {
463
- key = nodeKey;
464
- }
465
- // 三无走默认
466
- if (['undefined-undefined', 'undefined'].includes(labelText) && !value && !key) {
467
- if (showCodeName) {
468
- labelText = `${node === null || node === void 0 ? void 0 : node.value}-${node === null || node === void 0 ? void 0 : node.label}`;
469
- } else {
470
- labelText = node === null || node === void 0 ? void 0 : node.label;
471
- }
472
- value = node === null || node === void 0 ? void 0 : node.value;
473
- key = node === null || node === void 0 ? void 0 : node.value;
474
- }
475
- var titleHtml = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
476
- dangerouslySetInnerHTML: {
477
- __html: labelText
478
- }
479
- });
480
- var searchKey = '';
481
- if (showCodeName) {
482
- searchKey = `${value}-${labelText}`;
483
- } else {
484
- searchKey = labelText;
485
- }
486
- var title = treeCheckable ? titleHtml : /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
487
- className: "check-option-text",
488
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
489
- className: "check-option-text-content",
490
- children: titleHtml
491
- }), !disabled ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
492
- className: "check-mark-icon",
493
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {})
494
- }) : null]
495
- });
496
- if (_showEllipse) {
497
- title = /*#__PURE__*/(0, _jsxRuntime.jsx)(_AdaptiveTooltip.default, {
498
- children: treeCheckable ? titleHtml : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
499
- className: "check-option-text",
500
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
501
- className: "check-option-text-content",
502
- children: titleHtml
503
- })
504
- })
505
- });
506
- }
507
- if (!children) {
508
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.TreeSelect.TreeNode, {
509
- value: value,
510
- title: title,
511
- label: searchKey,
512
- disabled: node.disabled,
513
- checkable: node.checkable,
514
- icon: icon,
515
- className: `node-val-${value}`
516
- }, key);
517
- }
518
- var sonGrade = grade + 1;
519
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.TreeSelect.TreeNode, {
520
- value: value,
521
- title: title,
522
- label: searchKey,
523
- disabled: node.disabled,
524
- checkable: node.checkable,
525
- className: `node-val-${value}`,
526
- children: children.map(child => renderTreeNode(child, sonGrade))
527
- }, key);
528
- };
529
-
530
- /**
531
- * 从树形数据中找出用户搜索得数据,并且将搜索字符串高亮标识
532
- * 注意:此时数据已经是标准格式(label, value, children)
533
- * @param data 全量树(标准格式)
534
- * @param searchStr 搜索字符串
535
- * @returns 处理后得树
536
- */
537
- function filterTree(sourceList, keyWord) {
538
- var filterData = function filterData(data) {
539
- var currentAllNodeChild = []; // 记录当前节点得所有子节点
540
- // 遍历数组
541
- for (var i = 0; i < data.length; i++) {
542
- var item = data[i];
543
- // 一直递归到最后一层子节点
544
- var currentNodeChild = []; // 记录当前节点下得子节点匹配到的节点个数
545
- if (item.children && item.children.length > 0) {
546
- currentNodeChild = filterData(item.children);
547
- }
548
- // 迭代完子节点向上回溯,如果有匹配到得子节点,那么加入当前节点得孩子对象上,否则加入得是空数组
549
- item.children = currentNodeChild;
550
- // 判断节点label是否包含关键字 如果有,那么直接进行下一循环
551
- // @ts-ignore
552
- if (item.label && item.label.indexOf(keyWord) > -1 && (selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode) !== 'treeSelect') {
553
- var regExp = new RegExp(keyWord);
554
- item.label = item.label.replace(regExp, `<span class="highlight-search-text">${keyWord}</span>`);
555
- }
556
- currentAllNodeChild.push(item);
557
- }
558
- return currentAllNodeChild;
559
- };
560
- sourceList = filterData(sourceList);
561
- return sourceList;
562
- }
563
- var searchTreeEvent = (0, _lodash.debounce)( /*#__PURE__*/function () {
564
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchVal) {
565
- var result;
566
- return _regeneratorRuntime().wrap(function _callee$(_context) {
567
- while (1) switch (_context.prev = _context.next) {
568
- case 0:
569
- if (searchVal) {
570
- _context.next = 3;
571
- break;
572
- }
573
- setState({
574
- selectList: (0, _lodash.cloneDeep)(origDataSource || [])
575
- });
576
- return _context.abrupt("return", null);
577
- case 3:
578
- result = filterTree((0, _lodash.cloneDeep)(origDataSource || []), searchVal);
579
- setState({
580
- selectList: result || []
581
- });
582
- case 5:
583
- case "end":
584
- return _context.stop();
585
- }
586
- }, _callee);
587
- }));
588
- return function (_x) {
589
- return _ref6.apply(this, arguments);
590
- };
591
- }(), 500);
592
-
593
- /**
594
- * 从树形数据中查找节点
595
- * 注意:此时数据已经是标准格式(label, value, children)
596
- * @param treeList 树形数据(标准格式)
597
- * @param nodeValue 节点值
598
- * @returns 找到的节点
599
- */
600
- function findTreeNode(treeList, nodeValue) {
601
- var result = {};
602
- var filterData = function filterData(data) {
603
- for (var i = 0; i < data.length; i++) {
604
- var item = data[i];
605
- if (item.value === nodeValue || Array.isArray(nodeValue) && nodeValue.includes(item.value)) {
606
- result = _objectSpread({}, item);
607
- // 删除 children 字段,避免循环引用
608
- delete result.children;
609
- return null;
610
- }
611
- // 一直递归到最后一层子节点
612
- if (item.children && item.children.length > 0) {
613
- filterData(item.children);
614
- }
615
- }
616
- };
617
- filterData(treeList);
618
- return result;
619
- }
620
- /**
621
- * 根据值获取标签
622
- * 注意:此时数据已经是标准格式(label, value, children)
623
- * @param treeList 树形数据(标准格式)
624
- * @param nodeValue 节点值
625
- * @returns 标签对象或数组
626
- */
627
- function getLabelByValue(treeList, nodeValue) {
628
- var result = nodeValue;
629
- if (nodeValue) {
630
- if (Array.isArray(nodeValue)) {
631
- result = [];
632
- nodeValue.map(item => {
633
- var res = findTreeNode(treeList, item === null || item === void 0 ? void 0 : item.value);
634
- res && result.push(res);
635
- return item;
636
- });
637
- } else {
638
- result = findTreeNode(treeList, nodeValue.value);
639
- }
640
- }
641
- return result;
642
- }
643
- var handleChange = (newVal, label, extra) => {
644
- // newVal回来得一定是label、value
645
- // 注意:此时数据已经是标准格式(label, value, children)
646
- var _selectList = selectList.map(item => {
647
- var _label = item.label;
648
- if (_label) {
649
- var regex = /<span class="highlight-search-text">(.*?)<\/span>/g;
650
- _label = item.label = _label.replace(regex, '$1');
651
- }
652
- return _objectSpread(_objectSpread({}, item), {}, {
653
- label: _label
654
- });
655
- });
656
- var result = newVal;
657
- if (props !== null && props !== void 0 && props.labelInValue) {
658
- result = getLabelByValue(_selectList, newVal);
659
- }
660
- var options = findTreeNode(_selectList, extra === null || extra === void 0 ? void 0 : extra.triggerValue);
661
- onChange && onChange(result, options, extra);
662
- // 重置搜索
663
- showSearch && searchTreeEvent('');
664
- };
665
-
666
- /**
667
- * 全局点击事件, 如果是单选的情况那么点击选中节点后取消勾选
668
- * @param e 事件源
669
- */
670
- var nodeChangeEvent = e => {
671
- var el = e.target;
672
- var classStr = el.className;
673
- if (classStr && !treeCheckable && typeof classStr === 'string') {
674
- var _classStr$split = classStr.split(' '),
675
- _classStr$split2 = _slicedToArray(_classStr$split, 1),
676
- valStr = _classStr$split2[0];
677
- if (valStr && classStr.startsWith('node-val-')) {
678
- var choiceVal = valStr.replace('node-val-', '');
679
- if (value === choiceVal) {
680
- onChange && onChange(undefined, [], null);
681
- }
682
- }
683
- }
684
- };
685
-
686
- // 如果单选情况下只有10条那么设置class控制样式
687
- var tenCountClass = '';
688
- var countTen = enums => {
689
- if (!enums) {
690
- return '';
691
- }
692
- var noneChild = true;
693
- var loopCount = data => {
694
- data.map(item => {
695
- var _item$children;
696
- if (item !== null && item !== void 0 && (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length) {
697
- noneChild = false;
698
- }
699
- return item;
700
- });
701
- };
702
- loopCount(enums);
703
- return noneChild ? 'ten-count-tree-node' : '';
704
- };
705
- tenCountClass = countTen(selectList);
706
- var cls = (0, _classnames.default)({
707
- 'pro-tree-select': true,
708
- [`${className}`]: className
709
- });
710
- var innerClass = treeCheckable ? 'checkable-tree pro' : `${tenCountClass} signal-tree`;
711
- var dropDownClassName = (0, _classnames.default)({
712
- 'pro-tree-select-drop-down-container': true,
713
- [`${innerClass}`]: true,
714
- [`${popupClassName}`]: popupClassName
715
- });
716
- var treeProps = _objectSpread(_objectSpread({
717
- disabled,
718
- showSearch,
719
- // 默认支持搜索
720
- treeDefaultExpandAll: defaultExpandAll,
721
- // 展开下拉配置,默认全展开
722
- treeExpandedKeys: expandedKeys,
723
- treeCheckable,
724
- // 可以复选;*枚举数据里必须有key
725
- showCheckedStrategy: SHOW_PARENT,
726
- // 选择后的值只显示父级
727
- value,
728
- onChange: handleChange,
729
- listHeight: listHeight || 320,
730
- style: _objectSpread({
731
- width: width || '100%'
732
- }, style),
733
- onSearch: searchTreeEvent,
734
- allowClear: allowClear || true,
735
- treeNodeFilterProp,
736
- virtual: true,
737
- treeCheckStrictly: checkStrictly
738
- }, selectProps), {}, {
739
- // 使用新的 API 替代弃用的 popupClassName 和 dropdownStyle
740
- classNames: _objectSpread(_objectSpread({}, selectProps === null || selectProps === void 0 ? void 0 : selectProps.classNames), {}, {
741
- popup: _objectSpread(_objectSpread({}, selectProps === null || selectProps === void 0 || (_selectProps$classNam = selectProps.classNames) === null || _selectProps$classNam === void 0 ? void 0 : _selectProps$classNam.popup), {}, {
742
- root: [selectProps === null || selectProps === void 0 || (_selectProps$classNam2 = selectProps.classNames) === null || _selectProps$classNam2 === void 0 || (_selectProps$classNam2 = _selectProps$classNam2.popup) === null || _selectProps$classNam2 === void 0 ? void 0 : _selectProps$classNam2.root, dropDownClassName].filter(Boolean).join(' ')
743
- })
744
- }),
745
- styles: _objectSpread(_objectSpread({}, selectProps === null || selectProps === void 0 ? void 0 : selectProps.styles), {}, {
746
- popup: _objectSpread(_objectSpread({}, selectProps === null || selectProps === void 0 || (_selectProps$styles = selectProps.styles) === null || _selectProps$styles === void 0 ? void 0 : _selectProps$styles.popup), {}, {
747
- root: _objectSpread(_objectSpread({
748
- maxHeight: 320,
749
- paddingTop: '0px',
750
- maxWidth: '580px'
751
- }, dropdownStyle), selectProps === null || selectProps === void 0 || (_selectProps$styles2 = selectProps.styles) === null || _selectProps$styles2 === void 0 || (_selectProps$styles2 = _selectProps$styles2.popup) === null || _selectProps$styles2 === void 0 ? void 0 : _selectProps$styles2.root)
752
- })
753
- })
754
- });
755
- if (value === null) {
756
- delete treeProps.value;
757
- }
758
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
759
- onClick: nodeChangeEvent,
760
- className: cls,
761
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.TreeSelect, _objectSpread(_objectSpread({
762
- placeholder: placeholder || _locale.default.ProForm.treeSelectPlaceholder,
763
- maxTagPlaceholder: maxTagPlaceholder
764
- }, treeProps), {}, {
765
- children: selectList.map(node => renderTreeNode(node, 1))
766
- }))
767
- });
768
- };
769
- exports.ProTreeSelect = ProTreeSelect;
770
- var _default = exports.default = /*#__PURE__*/(0, _react.forwardRef)(ProTreeSelect);