@zat-design/sisyphus-react 3.11.14 → 3.12.0-beta.1

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 (342) hide show
  1. package/dist/index.esm.css +26 -15
  2. package/dist/less.esm.css +26 -15
  3. package/es/ProAction/index.d.ts +2 -2
  4. package/es/ProAction/propsType.d.ts +16 -10
  5. package/es/ProConfigProvider/index.d.ts +7 -7
  6. package/es/ProDownload/index.d.ts +2 -2
  7. package/es/ProDownload/propsType.d.ts +2 -1
  8. package/es/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
  9. package/es/ProDrawerForm/components/ProDrawer/index.js +12 -2
  10. package/es/ProDrawerForm/components/ProModal/index.d.ts +2 -2
  11. package/es/ProDrawerForm/components/ProModal/index.js +12 -2
  12. package/es/ProDrawerForm/index.d.ts +1 -2
  13. package/es/ProDrawerForm/propsType.d.ts +38 -27
  14. package/es/ProDrawerForm/utils/index.d.ts +2 -2
  15. package/es/ProEditLabel/components/RenderProForm.d.ts +2 -2
  16. package/es/ProEditLabel/index.d.ts +2 -2
  17. package/es/ProEditLabel/propsType.d.ts +135 -8
  18. package/es/ProEditLabel/style/index.less +24 -25
  19. package/es/ProEditTable/components/Summary/index.d.ts +2 -2
  20. package/es/ProEditTable/index.d.ts +2 -2
  21. package/es/ProEditTable/index.js +18 -16
  22. package/es/ProEditTable/propsType.d.ts +243 -106
  23. package/es/ProEditTable/style/index.less +1 -0
  24. package/es/ProEditTable/utils/index.d.ts +1 -1
  25. package/es/ProEditTable/utils/index.js +6 -4
  26. package/es/ProEditTable/utils/tools.d.ts +57 -22
  27. package/es/ProEditTable/utils/tools.js +47 -21
  28. package/es/ProEnum/components/Group.d.ts +2 -2
  29. package/es/ProEnum/components/Tag.d.ts +2 -2
  30. package/es/ProEnum/hooks/useEnum.d.ts +2 -2
  31. package/es/ProEnum/hooks/useEnum.js +46 -17
  32. package/es/ProEnum/hooks/useEnumRequest.d.ts +2 -2
  33. package/es/ProEnum/index.d.ts +2 -2
  34. package/es/ProEnum/propsType.d.ts +231 -42
  35. package/es/ProEnum/propsType.js +0 -6
  36. package/es/ProEnum/utils/index.d.ts +9 -2
  37. package/es/ProEnum/utils/index.js +9 -2
  38. package/es/ProForm/components/FormFooter/index.d.ts +2 -2
  39. package/es/ProForm/components/FormFooter/propsType.d.ts +8 -3
  40. package/es/ProForm/components/base/Checkbox/index.d.ts +2 -2
  41. package/es/ProForm/components/base/Input/index.d.ts +2 -2
  42. package/es/ProForm/components/base/Input/index.js +17 -4
  43. package/es/ProForm/components/base/Input/propsType.d.ts +10 -6
  44. package/es/ProForm/components/base/InputNumber/index.d.ts +2 -2
  45. package/es/ProForm/components/base/Radio/index.d.ts +2 -2
  46. package/es/ProForm/components/base/RangePicker/index.d.ts +2 -2
  47. package/es/ProForm/components/base/Select/index.d.ts +2 -2
  48. package/es/ProForm/components/base/Switch/index.d.ts +2 -2
  49. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
  50. package/es/ProForm/components/base/TextArea/index.d.ts +2 -2
  51. package/es/ProForm/components/base/TimePicker/index.d.ts +2 -2
  52. package/es/ProForm/components/combination/Container/index.d.ts +2 -2
  53. package/es/ProForm/components/combination/Container/propsType.d.ts +10 -6
  54. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
  55. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
  56. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
  57. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
  58. package/es/ProForm/components/combination/FormList/index.d.ts +2 -2
  59. package/es/ProForm/components/combination/FormList/propsType.d.ts +18 -10
  60. package/es/ProForm/components/combination/Group/index.d.ts +2 -2
  61. package/es/ProForm/components/combination/Group/propsType.d.ts +10 -5
  62. package/es/ProForm/components/combination/Group/utils.d.ts +6 -6
  63. package/es/ProForm/components/combination/ProCascader/index.d.ts +2 -2
  64. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
  65. package/es/ProForm/components/combination/ProCombination/index.d.ts +3 -3
  66. package/es/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
  67. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
  68. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
  69. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
  70. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
  71. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +15 -9
  72. package/es/ProForm/components/old/EnumSelect/index.d.ts +1 -1
  73. package/es/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
  74. package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  75. package/es/ProForm/components/old/ProAddress/index.d.ts +1 -1
  76. package/es/ProForm/components/old/ProCertNo/index.d.ts +1 -1
  77. package/es/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
  78. package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
  79. package/es/ProForm/components/render/ChangedWrapper.d.ts +2 -2
  80. package/es/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
  81. package/es/ProForm/components/render/Render.d.ts +2 -2
  82. package/es/ProForm/components/render/RenderFields.d.ts +4 -4
  83. package/es/ProForm/components/render/propsType.d.ts +76 -69
  84. package/es/ProForm/index.d.ts +2 -2
  85. package/es/ProForm/index.js +3 -1
  86. package/es/ProForm/propsType.d.ts +26 -17
  87. package/es/ProForm/propsType.js +0 -1
  88. package/es/ProForm/utils/transformValue.d.ts +2 -2
  89. package/es/ProForm/utils/useFieldProps.d.ts +3 -3
  90. package/es/ProForm/utils/useForm.d.ts +2 -1
  91. package/es/ProForm/utils/useForm.js +3 -2
  92. package/es/ProForm/utils/useRules.d.ts +1 -1
  93. package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
  94. package/es/ProIcon/index.d.ts +2 -2
  95. package/es/ProIcon/propsTypes.d.ts +120 -49
  96. package/es/ProLayout/components/Layout/Header/index.d.ts +2 -2
  97. package/es/ProLayout/components/Layout/Menu/index.d.ts +2 -2
  98. package/es/ProLayout/components/Layout/Notice/index.d.ts +2 -2
  99. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
  100. package/es/ProLayout/components/ProCollapse/index.d.ts +2 -2
  101. package/es/ProLayout/components/ProCollapse/index.js +12 -4
  102. package/es/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
  103. package/es/ProLayout/components/ProFooter/index.d.ts +2 -2
  104. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
  105. package/es/ProLayout/components/ProHeader/index.d.ts +2 -2
  106. package/es/ProLayout/index.d.ts +5 -5
  107. package/es/ProLayout/index.js +6 -2
  108. package/es/ProLayout/propTypes.d.ts +182 -25
  109. package/es/ProLayout/utils/index.d.ts +2 -2
  110. package/es/ProSelect/index.d.ts +3 -3
  111. package/es/ProSelect/propsType.d.ts +141 -31
  112. package/es/ProStep/components/Anchor/index.d.ts +2 -1
  113. package/es/ProStep/components/Item/index.d.ts +2 -2
  114. package/es/ProStep/components/Item/index.js +6 -2
  115. package/es/ProStep/components/Listener/index.d.ts +4 -3
  116. package/es/ProStep/components/Listener/index.js +18 -4
  117. package/es/ProStep/components/Step/index.d.ts +2 -2
  118. package/es/ProStep/index.d.ts +7 -7
  119. package/es/ProStep/index.js +19 -4
  120. package/es/ProStep/propsType.d.ts +200 -12
  121. package/es/ProStep/utils/index.d.ts +17 -4
  122. package/es/ProStep/utils/index.js +11 -2
  123. package/es/ProTable/components/FormatColumn/index.d.ts +2 -2
  124. package/es/ProTable/components/FormatColumn/index.js +5 -8
  125. package/es/ProTable/components/RenderTabs/index.d.ts +4 -0
  126. package/es/ProTable/components/RenderTabs/index.js +78 -0
  127. package/es/ProTable/components/index.d.ts +25 -0
  128. package/es/ProTable/components/index.js +26 -1
  129. package/es/ProTable/hooks/useAntdTable.d.ts +2 -93
  130. package/es/ProTable/hooks/useAntdTable.js +6 -2
  131. package/es/ProTable/index.d.ts +2 -2
  132. package/es/ProTable/index.js +6 -3
  133. package/es/ProTable/propsType.d.ts +630 -39
  134. package/es/ProTable/style/index.less +3 -0
  135. package/es/ProTabs/index.d.ts +2 -2
  136. package/es/ProTabs/index.js +4 -4
  137. package/es/ProTabs/propType.d.ts +66 -9
  138. package/es/ProThemeTools/index.d.ts +2 -2
  139. package/es/ProThemeTools/propsType.d.ts +136 -14
  140. package/es/ProTooltip/index.d.ts +2 -2
  141. package/es/ProTooltip/propsType.d.ts +49 -9
  142. package/es/ProTree/components/List.d.ts +2 -2
  143. package/es/ProTree/components/List.js +2 -2
  144. package/es/ProTree/components/ProTree.d.ts +2 -2
  145. package/es/ProTree/components/ProTreeSelect/index.d.ts +3 -3
  146. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +372 -34
  147. package/es/ProTree/components/SearchTitle.d.ts +2 -2
  148. package/es/ProTree/components/Tree.d.ts +3 -3
  149. package/es/ProTree/index.d.ts +2 -2
  150. package/es/ProTree/index.js +1 -1
  151. package/es/ProTree/propsType.d.ts +694 -103
  152. package/es/ProTree/utils.d.ts +7 -7
  153. package/es/ProTreeModal/components/Cascader.d.ts +3 -3
  154. package/es/ProTreeModal/components/List.d.ts +3 -3
  155. package/es/ProTreeModal/components/Tree.d.ts +2 -2
  156. package/es/ProTreeModal/index.d.ts +2 -2
  157. package/es/ProTreeModal/index.js +2 -2
  158. package/es/ProTreeModal/propsType.d.ts +258 -49
  159. package/es/ProTreeModal/utils.d.ts +7 -7
  160. package/es/ProUpload/components/ButtonRender.d.ts +2 -2
  161. package/es/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
  162. package/es/ProUpload/components/Example.d.ts +2 -2
  163. package/es/ProUpload/components/ImageRender.d.ts +2 -2
  164. package/es/ProUpload/index.d.ts +2 -2
  165. package/es/ProUpload/index.js +7 -9
  166. package/es/ProUpload/propsType.d.ts +65 -8
  167. package/es/ProWaterMark/index.d.ts +2 -2
  168. package/es/ProWaterMark/propsType.d.ts +2 -1
  169. package/es/index.d.ts +15 -6
  170. package/es/index.js +1 -7
  171. package/lib/ProAction/index.d.ts +2 -2
  172. package/lib/ProAction/propsType.d.ts +16 -10
  173. package/lib/ProConfigProvider/index.d.ts +7 -7
  174. package/lib/ProDownload/index.d.ts +2 -2
  175. package/lib/ProDownload/propsType.d.ts +2 -1
  176. package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
  177. package/lib/ProDrawerForm/components/ProDrawer/index.js +12 -2
  178. package/lib/ProDrawerForm/components/ProModal/index.d.ts +2 -2
  179. package/lib/ProDrawerForm/components/ProModal/index.js +12 -2
  180. package/lib/ProDrawerForm/index.d.ts +1 -2
  181. package/lib/ProDrawerForm/propsType.d.ts +38 -27
  182. package/lib/ProDrawerForm/utils/index.d.ts +2 -2
  183. package/lib/ProEditLabel/components/RenderProForm.d.ts +2 -2
  184. package/lib/ProEditLabel/index.d.ts +2 -2
  185. package/lib/ProEditLabel/propsType.d.ts +135 -8
  186. package/lib/ProEditLabel/style/index.less +24 -25
  187. package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
  188. package/lib/ProEditTable/index.d.ts +2 -2
  189. package/lib/ProEditTable/index.js +18 -16
  190. package/lib/ProEditTable/propsType.d.ts +243 -106
  191. package/lib/ProEditTable/style/index.less +1 -0
  192. package/lib/ProEditTable/utils/index.d.ts +1 -1
  193. package/lib/ProEditTable/utils/index.js +6 -4
  194. package/lib/ProEditTable/utils/tools.d.ts +57 -22
  195. package/lib/ProEditTable/utils/tools.js +47 -21
  196. package/lib/ProEnum/components/Group.d.ts +2 -2
  197. package/lib/ProEnum/components/Tag.d.ts +2 -2
  198. package/lib/ProEnum/hooks/useEnum.d.ts +2 -2
  199. package/lib/ProEnum/hooks/useEnum.js +48 -17
  200. package/lib/ProEnum/hooks/useEnumRequest.d.ts +2 -2
  201. package/lib/ProEnum/index.d.ts +2 -2
  202. package/lib/ProEnum/propsType.d.ts +231 -42
  203. package/lib/ProEnum/propsType.js +1 -7
  204. package/lib/ProEnum/utils/index.d.ts +9 -2
  205. package/lib/ProEnum/utils/index.js +9 -2
  206. package/lib/ProForm/components/FormFooter/index.d.ts +2 -2
  207. package/lib/ProForm/components/FormFooter/propsType.d.ts +8 -3
  208. package/lib/ProForm/components/base/Checkbox/index.d.ts +2 -2
  209. package/lib/ProForm/components/base/Input/index.d.ts +2 -2
  210. package/lib/ProForm/components/base/Input/index.js +17 -4
  211. package/lib/ProForm/components/base/Input/propsType.d.ts +10 -6
  212. package/lib/ProForm/components/base/InputNumber/index.d.ts +2 -2
  213. package/lib/ProForm/components/base/Radio/index.d.ts +2 -2
  214. package/lib/ProForm/components/base/RangePicker/index.d.ts +2 -2
  215. package/lib/ProForm/components/base/Select/index.d.ts +2 -2
  216. package/lib/ProForm/components/base/Switch/index.d.ts +2 -2
  217. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
  218. package/lib/ProForm/components/base/TextArea/index.d.ts +2 -2
  219. package/lib/ProForm/components/base/TimePicker/index.d.ts +2 -2
  220. package/lib/ProForm/components/combination/Container/index.d.ts +2 -2
  221. package/lib/ProForm/components/combination/Container/propsType.d.ts +10 -6
  222. package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
  223. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
  224. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
  225. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
  226. package/lib/ProForm/components/combination/FormList/index.d.ts +2 -2
  227. package/lib/ProForm/components/combination/FormList/propsType.d.ts +18 -10
  228. package/lib/ProForm/components/combination/Group/index.d.ts +2 -2
  229. package/lib/ProForm/components/combination/Group/propsType.d.ts +10 -5
  230. package/lib/ProForm/components/combination/Group/utils.d.ts +6 -6
  231. package/lib/ProForm/components/combination/ProCascader/index.d.ts +2 -2
  232. package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
  233. package/lib/ProForm/components/combination/ProCombination/index.d.ts +3 -3
  234. package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
  235. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
  236. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
  237. package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
  238. package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
  239. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +15 -9
  240. package/lib/ProForm/components/old/EnumSelect/index.d.ts +1 -1
  241. package/lib/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
  242. package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  243. package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -1
  244. package/lib/ProForm/components/old/ProCertNo/index.d.ts +1 -1
  245. package/lib/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
  246. package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
  247. package/lib/ProForm/components/render/ChangedWrapper.d.ts +2 -2
  248. package/lib/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
  249. package/lib/ProForm/components/render/Render.d.ts +2 -2
  250. package/lib/ProForm/components/render/RenderFields.d.ts +4 -4
  251. package/lib/ProForm/components/render/propsType.d.ts +76 -69
  252. package/lib/ProForm/index.d.ts +2 -2
  253. package/lib/ProForm/index.js +3 -1
  254. package/lib/ProForm/propsType.d.ts +26 -17
  255. package/lib/ProForm/propsType.js +0 -15
  256. package/lib/ProForm/utils/transformValue.d.ts +2 -2
  257. package/lib/ProForm/utils/useFieldProps.d.ts +3 -3
  258. package/lib/ProForm/utils/useForm.d.ts +2 -1
  259. package/lib/ProForm/utils/useForm.js +3 -2
  260. package/lib/ProForm/utils/useRules.d.ts +1 -1
  261. package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
  262. package/lib/ProIcon/index.d.ts +2 -2
  263. package/lib/ProIcon/propsTypes.d.ts +120 -49
  264. package/lib/ProLayout/components/Layout/Header/index.d.ts +2 -2
  265. package/lib/ProLayout/components/Layout/Menu/index.d.ts +2 -2
  266. package/lib/ProLayout/components/Layout/Notice/index.d.ts +2 -2
  267. package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
  268. package/lib/ProLayout/components/ProCollapse/index.d.ts +2 -2
  269. package/lib/ProLayout/components/ProCollapse/index.js +12 -4
  270. package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
  271. package/lib/ProLayout/components/ProFooter/index.d.ts +2 -2
  272. package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
  273. package/lib/ProLayout/components/ProHeader/index.d.ts +2 -2
  274. package/lib/ProLayout/index.d.ts +5 -5
  275. package/lib/ProLayout/index.js +6 -2
  276. package/lib/ProLayout/propTypes.d.ts +182 -25
  277. package/lib/ProLayout/utils/index.d.ts +2 -2
  278. package/lib/ProSelect/index.d.ts +3 -3
  279. package/lib/ProSelect/propsType.d.ts +141 -31
  280. package/lib/ProStep/components/Anchor/index.d.ts +2 -1
  281. package/lib/ProStep/components/Item/index.d.ts +2 -2
  282. package/lib/ProStep/components/Item/index.js +6 -2
  283. package/lib/ProStep/components/Listener/index.d.ts +4 -3
  284. package/lib/ProStep/components/Listener/index.js +18 -4
  285. package/lib/ProStep/components/Step/index.d.ts +2 -2
  286. package/lib/ProStep/index.d.ts +7 -7
  287. package/lib/ProStep/index.js +19 -4
  288. package/lib/ProStep/propsType.d.ts +200 -12
  289. package/lib/ProStep/utils/index.d.ts +17 -4
  290. package/lib/ProStep/utils/index.js +11 -2
  291. package/lib/ProTable/components/FormatColumn/index.d.ts +2 -2
  292. package/lib/ProTable/components/FormatColumn/index.js +5 -8
  293. package/lib/ProTable/components/RenderTabs/index.d.ts +4 -0
  294. package/lib/ProTable/components/RenderTabs/index.js +82 -0
  295. package/lib/ProTable/components/index.d.ts +25 -0
  296. package/lib/ProTable/components/index.js +8 -1
  297. package/lib/ProTable/hooks/useAntdTable.d.ts +2 -93
  298. package/lib/ProTable/hooks/useAntdTable.js +5 -1
  299. package/lib/ProTable/index.d.ts +2 -2
  300. package/lib/ProTable/index.js +5 -2
  301. package/lib/ProTable/propsType.d.ts +630 -39
  302. package/lib/ProTable/style/index.less +3 -0
  303. package/lib/ProTabs/index.d.ts +2 -2
  304. package/lib/ProTabs/index.js +4 -4
  305. package/lib/ProTabs/propType.d.ts +66 -9
  306. package/lib/ProThemeTools/index.d.ts +2 -2
  307. package/lib/ProThemeTools/propsType.d.ts +136 -14
  308. package/lib/ProTooltip/index.d.ts +2 -2
  309. package/lib/ProTooltip/propsType.d.ts +49 -9
  310. package/lib/ProTree/components/List.d.ts +2 -2
  311. package/lib/ProTree/components/List.js +2 -2
  312. package/lib/ProTree/components/ProTree.d.ts +2 -2
  313. package/lib/ProTree/components/ProTreeSelect/index.d.ts +3 -3
  314. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +372 -34
  315. package/lib/ProTree/components/SearchTitle.d.ts +2 -2
  316. package/lib/ProTree/components/Tree.d.ts +3 -3
  317. package/lib/ProTree/index.d.ts +2 -2
  318. package/lib/ProTree/index.js +1 -1
  319. package/lib/ProTree/propsType.d.ts +694 -103
  320. package/lib/ProTree/utils.d.ts +7 -7
  321. package/lib/ProTreeModal/components/Cascader.d.ts +3 -3
  322. package/lib/ProTreeModal/components/List.d.ts +3 -3
  323. package/lib/ProTreeModal/components/Tree.d.ts +2 -2
  324. package/lib/ProTreeModal/index.d.ts +2 -2
  325. package/lib/ProTreeModal/index.js +2 -2
  326. package/lib/ProTreeModal/propsType.d.ts +258 -49
  327. package/lib/ProTreeModal/utils.d.ts +7 -7
  328. package/lib/ProUpload/components/ButtonRender.d.ts +2 -2
  329. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
  330. package/lib/ProUpload/components/Example.d.ts +2 -2
  331. package/lib/ProUpload/components/ImageRender.d.ts +2 -2
  332. package/lib/ProUpload/index.d.ts +2 -2
  333. package/lib/ProUpload/index.js +7 -9
  334. package/lib/ProUpload/propsType.d.ts +65 -8
  335. package/lib/ProWaterMark/index.d.ts +2 -2
  336. package/lib/ProWaterMark/propsType.d.ts +2 -1
  337. package/lib/index.d.ts +15 -6
  338. package/lib/index.js +7 -71
  339. package/package.json +1 -1
  340. package/.vscode/extensions.json +0 -5
  341. package/test/__mocks__/fileMock.js +0 -0
  342. package/test/__mocks__/styleMock.js +0 -0
@@ -1,17 +1,17 @@
1
- import { FieldNamesType, TreeDataProps } from './propsType';
1
+ import type { ProTreeFieldNamesType, ProTreeDataType } from './propsType';
2
2
  /**
3
3
  * 树转成铺平的数组
4
4
  * @param originalTreeData
5
5
  * @returns
6
6
  */
7
- export declare function getFlatTreeData(originalTreeData: TreeDataProps[], fieldNames: FieldNamesType): any[];
7
+ export declare function getFlatTreeData(originalTreeData: ProTreeDataType[], fieldNames: ProTreeFieldNamesType): any[];
8
8
  /**
9
9
  * 获取 tree 所有的 keys 集合
10
10
  * @param data
11
11
  * @param fieldNames
12
12
  * @returns
13
13
  */
14
- export declare function getAllKeys(data: TreeDataProps[], fieldNames: FieldNamesType): string[];
14
+ export declare function getAllKeys(data: ProTreeDataType[], fieldNames: ProTreeFieldNamesType): string[];
15
15
  /**
16
16
  * 获取展开的key
17
17
  * @param key
@@ -19,22 +19,22 @@ export declare function getAllKeys(data: TreeDataProps[], fieldNames: FieldNames
19
19
  * @param fieldNames
20
20
  * @returns
21
21
  */
22
- export declare const getParentKey: (key: string, tree: TreeDataProps[], fieldNames: FieldNamesType) => string;
23
- export declare function findTreeNodeByKey(treeData: TreeDataProps[], key: string, fieldNames: FieldNamesType): TreeDataProps[];
22
+ export declare const getParentKey: (key: string, tree: ProTreeDataType[], fieldNames: ProTreeFieldNamesType) => string;
23
+ export declare function findTreeNodeByKey(treeData: ProTreeDataType[], key: string, fieldNames: ProTreeFieldNamesType): ProTreeDataType[];
24
24
  /**
25
25
  * 过滤掉每一层假值(例如 false、null、0、""、undefined 等)
26
26
  * @param data
27
27
  * @param checkedKeys
28
28
  * @returns
29
29
  */
30
- export declare function filterCheckedNodes(data: any, checkedKeys: any, searchStr: string, fieldNames: FieldNamesType): any[];
30
+ export declare function filterCheckedNodes(data: any, checkedKeys: any, searchStr: string, fieldNames: ProTreeFieldNamesType): any[];
31
31
  /**
32
32
  * 获取 tree 当前选中节点下的所有子节点的 keys
33
33
  * @param node
34
34
  * @param childrenKeys
35
35
  * @returns
36
36
  */
37
- export declare function getChildrenKeys(node: TreeDataProps, childrenKeys: string[], fieldNames: FieldNamesType, type: 'treeClose' | 'treeCheck'): void;
37
+ export declare function getChildrenKeys(node: ProTreeDataType, childrenKeys: string[], fieldNames: ProTreeFieldNamesType, type: 'treeClose' | 'treeCheck'): void;
38
38
  /**
39
39
  * 如果默认全开展那么返回所有key,否则返回空[]
40
40
  * @param isExpand 是否全展开
@@ -1,10 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
- import { FieldNamesType, TreeDataProps } from '../propsType';
2
+ import type { ProTreeModalFieldNamesType, ProTreeModalDataType } from '../propsType';
3
3
  interface CascaderProps {
4
- dataSource: TreeDataProps[];
4
+ dataSource: ProTreeModalDataType[];
5
5
  checkedValues?: any[];
6
6
  showCodeName?: boolean;
7
- fieldNames: FieldNamesType;
7
+ fieldNames: ProTreeModalFieldNamesType;
8
8
  searchStr?: string;
9
9
  disabled?: boolean;
10
10
  handleOnChange?: (e: any, value: string) => void;
@@ -1,17 +1,17 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { FieldNamesType, TreeDataProps } from '../propsType';
2
+ import type { ProTreeModalFieldNamesType, ProTreeModalDataType } from '../propsType';
3
3
  interface ListProps {
4
4
  disabled?: boolean;
5
5
  checkedValues?: any[];
6
6
  treeData: any[];
7
7
  searchStr?: string;
8
8
  showCodeName?: boolean;
9
- fieldNames: FieldNamesType;
9
+ fieldNames: ProTreeModalFieldNamesType;
10
10
  mode?: 'render' | 'view';
11
11
  modeType?: string;
12
12
  span?: number;
13
13
  draggable?: boolean;
14
- flatTreeData?: TreeDataProps[];
14
+ flatTreeData?: ProTreeModalDataType[];
15
15
  handleOnChange?: (e: any, value: string) => void;
16
16
  handleFilterClose?: (code: string) => void;
17
17
  optionRender?: (item: any, searchStr?: string) => string | ReactNode;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { FieldNamesType } from '../propsType';
2
+ import type { ProTreeModalFieldNamesType } from '../propsType';
3
3
  interface TreeViewProps {
4
4
  disabled?: boolean;
5
5
  checkedValues?: any[];
@@ -9,7 +9,7 @@ interface TreeViewProps {
9
9
  searchStr?: string;
10
10
  showCodeName?: boolean;
11
11
  checkStrictly?: boolean;
12
- fieldNames: FieldNamesType;
12
+ fieldNames: ProTreeModalFieldNamesType;
13
13
  tags?: string[];
14
14
  mode?: 'render' | 'view';
15
15
  draggable?: boolean;
@@ -1,5 +1,5 @@
1
- import { ProTreeModalProps } from './propsType';
1
+ import type { ProTreeModalType } from './propsType';
2
2
  import './style/index.less';
3
3
  export declare const CASCADER = "CASCADER";
4
- declare const ProTreeModal: (props: ProTreeModalProps) => import("react/jsx-runtime").JSX.Element;
4
+ declare const ProTreeModal: (props: ProTreeModalType) => import("react/jsx-runtime").JSX.Element;
5
5
  export default ProTreeModal;
@@ -14,8 +14,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
14
14
  /*
15
15
  * @Author: ''
16
16
  * @Date: 2024-06-04 10:01:18
17
- * @LastEditors: ''
18
- * @LastEditTime: 2024-09-27 11:49:28
17
+ * @LastEditors: za-xuwenli xuwenli@zhongan.io
18
+ * @LastEditTime: 2025-03-20 11:12:23
19
19
  * @FilePath: /za-material-warehouse/src/ProTreeModal/index.tsx
20
20
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
21
21
  */
@@ -1,91 +1,300 @@
1
1
  import { ReactNode, CSSProperties } from 'react';
2
2
  import { Service, Options } from 'ahooks/lib/useRequest/src/types';
3
- import { ProFormOtherProps } from '../ProForm/propsType';
4
- export interface TreeDataProps {
3
+ import type { ProFormOtherType } from '../ProForm/propsType';
4
+ /**
5
+ * 树数据结构
6
+ * @description 定义树节点的数据结构
7
+ */
8
+ export interface ProTreeModalDataType {
9
+ /**
10
+ * 节点标签
11
+ * @description 显示的节点文本
12
+ * @default undefined
13
+ */
5
14
  label: string;
15
+ /**
16
+ * 节点值
17
+ * @description 节点的唯一标识
18
+ * @default undefined
19
+ */
6
20
  value: string;
7
- children?: TreeDataProps[];
8
- /** 禁用不可操作 */
21
+ /**
22
+ * 子节点
23
+ * @description 当前节点的子节点数组
24
+ * @default undefined
25
+ */
26
+ children?: ProTreeModalDataType[];
27
+ /**
28
+ * 是否禁用
29
+ * @description 禁用不可操作
30
+ * @default false
31
+ */
9
32
  disabled?: boolean;
10
- /** 处理固定场景 */
33
+ /**
34
+ * 固定位置
35
+ * @description 处理固定场景
36
+ * @default undefined
37
+ */
11
38
  fixed?: 'left' | 'right';
39
+ /**
40
+ * 是否可勾选
41
+ * @description 是否可以勾选复选框
42
+ * @default undefined
43
+ */
12
44
  checkable?: boolean;
45
+ /**
46
+ * 自定义属性
47
+ * @description 可添加任意其他属性
48
+ * @default undefined
49
+ */
13
50
  [key: string]: any;
14
51
  }
15
- export type AllValueType = string | number;
16
- export interface ProTreeModalAction {
17
- onChange: () => AllValueType[];
52
+ /**
53
+ * 值类型
54
+ * @description 组件接受的值类型
55
+ */
56
+ export type ProTreeModalValueType = string | number;
57
+ /**
58
+ * ProTreeModal操作对象
59
+ * @description ProTreeModal组件的操作接口
60
+ */
61
+ export interface ProTreeModalActionType {
62
+ /**
63
+ * 值变更方法
64
+ * @description 用于获取当前选中的值数组
65
+ * @default undefined
66
+ */
67
+ onChange: () => ProTreeModalValueType[];
18
68
  }
19
- export interface FieldNamesType {
69
+ /**
70
+ * 字段名称映射
71
+ * @description 定义树节点字段的映射关系
72
+ */
73
+ export interface ProTreeModalFieldNamesType {
74
+ /**
75
+ * 标签字段名
76
+ * @description 指定节点标签的属性名
77
+ * @default 'label'
78
+ */
20
79
  label: string;
80
+ /**
81
+ * 值字段名
82
+ * @description 指定节点值的属性名
83
+ * @default 'value'
84
+ */
21
85
  value: string;
86
+ /**
87
+ * 子节点字段名
88
+ * @description 指定子节点的属性名
89
+ * @default 'children'
90
+ */
22
91
  children?: string;
23
92
  }
24
- export type TreeModalMode = 'tree' | 'list' | 'Cascader' | 'Tree' | 'List';
25
- export interface AppointProps {
93
+ /**
94
+ * 树弹框模式
95
+ * @description 弹框展示模式类型
96
+ */
97
+ export type ProTreeModalModeType = 'tree' | 'list' | 'Cascader' | 'Tree' | 'List';
98
+ /**
99
+ * 指定模式属性
100
+ * @description 指定模式下的配置属性
101
+ */
102
+ export interface ProTreeModalAppointType {
103
+ /**
104
+ * 是否禁用
105
+ * @description 禁用指定项或全部项
106
+ * @default undefined
107
+ */
26
108
  disabled?: boolean | boolean[];
27
109
  }
28
- export interface ProTreeModalProps {
29
- /** value */
30
- value?: AllValueType | string[];
31
- /** 默认 label、value、children */
32
- fieldNames?: FieldNamesType;
33
- /** 自定义控制 modal、此时没有 trigger */
110
+ /**
111
+ * ProTreeModal组件属性
112
+ * @description ProTreeModal组件的主要配置属性
113
+ */
114
+ export interface ProTreeModalType {
115
+ /**
116
+ * 选中值
117
+ * @description 当前选中的节点值
118
+ * @default undefined
119
+ */
120
+ value?: ProTreeModalValueType | string[];
121
+ /**
122
+ * 字段名称映射
123
+ * @description 自定义节点的字段名称映射
124
+ * @default { label: 'label', value: 'value', children: 'children' }
125
+ */
126
+ fieldNames?: ProTreeModalFieldNamesType;
127
+ /**
128
+ * 是否展开弹框
129
+ * @description 自定义控制modal的显示,此时没有trigger
130
+ * @default undefined
131
+ */
34
132
  open?: boolean;
35
- /** 列表时候一行放几个 */
133
+ /**
134
+ * 列表布局
135
+ * @description 列表模式下一行放几个
136
+ * @default 24
137
+ */
36
138
  span?: number;
37
- /** 展示类型、默认list 列表展示形式、appoint 指定模式展示形式会不一样 */
38
- mode?: TreeModalMode;
39
- /** 是否开启指定模式 */
139
+ /**
140
+ * 展示类型
141
+ * @description 展示模式,list为列表展示形式,tree为树形展示,appoint为指定模式
142
+ * @default 'list'
143
+ */
144
+ mode?: ProTreeModalModeType;
145
+ /**
146
+ * 是否指定模式
147
+ * @description 是否开启指定模式,开启后展示形式会不同
148
+ * @default false
149
+ */
40
150
  appoint?: boolean;
41
- /** 指定模式下传递的额外参数 */
42
- appointProps?: AppointProps;
43
- /** 开启后、提交给后端 [{ label:xx, value: ""}] 形式 */
151
+ /**
152
+ * 指定模式参数
153
+ * @description 指定模式下传递的额外参数
154
+ * @default undefined
155
+ */
156
+ appointProps?: ProTreeModalAppointType;
157
+ /**
158
+ * 值包含标签
159
+ * @description 开启后提交给后端的格式为 [{ label:xx, value: ""}]
160
+ * @default false
161
+ */
44
162
  labelInValue?: boolean;
45
- /** 查看模式、同 disabled 一样 */
163
+ /**
164
+ * 查看模式
165
+ * @description 是否为查看模式,与disabled效果相同
166
+ * @default false
167
+ */
46
168
  isView?: boolean;
47
- /** 使用ProEnum 的数据源 */
169
+ /**
170
+ * 枚举代码
171
+ * @description 使用ProEnum的数据源
172
+ * @default undefined
173
+ */
48
174
  code?: string;
49
- /** 触发弹框展开的容器 */
175
+ /**
176
+ * 触发元素
177
+ * @description 触发弹框展开的容器
178
+ * @default undefined
179
+ */
50
180
  trigger?: string | ReactNode;
51
- /** 是否展示 code-label 形式 */
181
+ /**
182
+ * 显示代码名称
183
+ * @description 是否展示code-label形式
184
+ * @default false
185
+ */
52
186
  showCodeName?: boolean;
53
- /** 静态数据源 */
54
- dataSource?: TreeDataProps[];
55
- /** 最小选择个数 */
187
+ /**
188
+ * 数据源
189
+ * @description 静态数据源
190
+ * @default []
191
+ */
192
+ dataSource?: ProTreeModalDataType[];
193
+ /**
194
+ * 最小选择个数
195
+ * @description 设置最小选择个数限制
196
+ * @default undefined
197
+ */
56
198
  min?: number;
57
- /** 最大选择个数 */
199
+ /**
200
+ * 最大选择个数
201
+ * @description 设置最大选择个数限制
202
+ * @default undefined
203
+ */
58
204
  max?: number;
59
- /** 超过最大数量的提示信息 */
205
+ /**
206
+ * 超限提示
207
+ * @description 超过最大数量的提示信息,如'最多为{max}个'
208
+ * @default undefined
209
+ */
60
210
  maxMessage?: string;
61
- /** 当为列表时可开启右侧拖动 */
211
+ /**
212
+ * 是否可拖拽
213
+ * @description 列表模式下已选择项是否可拖拽排序
214
+ * @default false
215
+ */
62
216
  draggable?: boolean;
63
- /** 禁用 */
217
+ /**
218
+ * 是否禁用
219
+ * @description 禁用整个组件
220
+ * @default false
221
+ */
64
222
  disabled?: any;
65
- /** 弹框的 title */
223
+ /**
224
+ * 弹框标题
225
+ * @description 弹框的标题文本
226
+ * @default undefined
227
+ */
66
228
  title?: string | ReactNode;
67
- /** 全选的标识给后端 */
229
+ /**
230
+ * 全选值
231
+ * @description 全选时传给后端的标识
232
+ * @default undefined
233
+ */
68
234
  allValue?: string | number;
69
- /** 提示语 */
235
+ /**
236
+ * 占位提示
237
+ * @description 搜索框提示文本
238
+ * @default '请输入'
239
+ */
70
240
  placeholder?: string;
71
- /** 父子节点选中状态不再关联 */
241
+ /**
242
+ * 严格选择
243
+ * @description 父子节点选中状态不再关联
244
+ * @default false
245
+ */
72
246
  checkStrictly?: boolean;
73
- /** trigger 样式设置 */
247
+ /**
248
+ * 触发器样式
249
+ * @description trigger元素的样式设置
250
+ * @default undefined
251
+ */
74
252
  style?: CSSProperties;
75
- /** tags 集合 */
253
+ /**
254
+ * 标签集合
255
+ * @description 用于标记分类的标签集合
256
+ * @default undefined
257
+ */
76
258
  tags?: string[];
77
- otherProps?: ProFormOtherProps;
78
- /** 远程请求接口 */
259
+ /**
260
+ * 其他属性
261
+ * @description 表单其他配置属性
262
+ * @default undefined
263
+ */
264
+ otherProps?: ProFormOtherType;
265
+ /**
266
+ * 远程请求
267
+ * @description 远程请求接口配置
268
+ * @default undefined
269
+ */
79
270
  useRequest?: {
80
271
  service?: Service<any, any>;
81
272
  options?: Options<any, any>;
82
273
  };
83
- /** value 的回调 */
84
- onChange?: (values: AllValueType[] | AllValueType) => void;
85
- /** 自定义展示 */
274
+ /**
275
+ * 值变化回调
276
+ * @description value变化的回调函数
277
+ * @default undefined
278
+ */
279
+ onChange?: (values: ProTreeModalValueType[] | ProTreeModalValueType) => void;
280
+ /**
281
+ * 自定义渲染
282
+ * @description 自定义选项内容渲染
283
+ * @default undefined
284
+ */
86
285
  optionRender?: (item: any, searchStr: string) => string | ReactNode;
87
- /** 对后台返回数据进行格式化 */
88
- transformResponse?: (data: any) => TreeDataProps[];
89
- /** 弹框打开/关闭回调 */
286
+ /**
287
+ * 响应数据转换
288
+ * @description 对后台返回数据进行格式化
289
+ * @default undefined
290
+ */
291
+ transformResponse?: (data: any) => ProTreeModalDataType[];
292
+ /**
293
+ * 打开状态变化
294
+ * @description 弹框打开/关闭回调
295
+ * @default undefined
296
+ */
90
297
  openChange?: (open: boolean) => void;
91
298
  }
299
+ export type ProTreeModalProps = ProTreeModalType;
300
+ export type ProTreeModalAction = ProTreeModalActionType;
@@ -1,17 +1,17 @@
1
- import { FieldNamesType, TreeDataProps } from './propsType';
1
+ import type { ProTreeModalFieldNamesType, ProTreeModalDataType } from './propsType';
2
2
  /**
3
3
  * 树转成铺平的数组
4
4
  * @param originalTreeData
5
5
  * @returns
6
6
  */
7
- export declare function getFlatTreeData(originalTreeData: TreeDataProps[], fieldNames: FieldNamesType, modeType?: string): any[];
7
+ export declare function getFlatTreeData(originalTreeData: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType, modeType?: string): any[];
8
8
  /**
9
9
  * 获取 tree 所有的 keys 集合
10
10
  * @param data
11
11
  * @param fieldNames
12
12
  * @returns
13
13
  */
14
- export declare function getAllKeys(data: TreeDataProps[], fieldNames: FieldNamesType): string[];
14
+ export declare function getAllKeys(data: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType): string[];
15
15
  /**
16
16
  * 获取展开的key
17
17
  * @param key
@@ -19,21 +19,21 @@ export declare function getAllKeys(data: TreeDataProps[], fieldNames: FieldNames
19
19
  * @param fieldNames
20
20
  * @returns
21
21
  */
22
- export declare const getParentKey: (key: string, tree: TreeDataProps[], fieldNames: FieldNamesType) => string;
23
- export declare function findTreeNodeByKey(treeData: TreeDataProps[], key: string, fieldNames: FieldNamesType): TreeDataProps[];
22
+ export declare const getParentKey: (key: string, tree: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType) => string;
23
+ export declare function findTreeNodeByKey(treeData: ProTreeModalDataType[], key: string, fieldNames: ProTreeModalFieldNamesType): ProTreeModalDataType[];
24
24
  /**
25
25
  * 根据所选的 checkedKeys 筛选出展示的 treeData
26
26
  * @param data
27
27
  * @param checkedKeys
28
28
  * @returns
29
29
  */
30
- export declare function filterCheckedNodes(data: any, checkedKeys: any, searchStr: string, fieldNames: FieldNamesType): any[];
30
+ export declare function filterCheckedNodes(data: any, checkedKeys: any, searchStr: string, fieldNames: ProTreeModalFieldNamesType): any[];
31
31
  /**
32
32
  * 获取 tree 当前选中节点下的所有子节点的 keys
33
33
  * @param node
34
34
  * @param childrenKeys
35
35
  * @returns
36
36
  */
37
- export declare function getChildrenKeys(node: TreeDataProps, childrenKeys: string[], fieldNames: FieldNamesType, type: 'treeClose' | 'treeCheck'): void;
37
+ export declare function getChildrenKeys(node: ProTreeModalDataType, childrenKeys: string[], fieldNames: ProTreeModalFieldNamesType, type: 'treeClose' | 'treeCheck'): void;
38
38
  export declare const transformMessage: (obj: any, message: string) => string;
39
39
  export declare const addLevelAndParentId: (tree: any[], fieldNames: any, currentLevel?: number, currentParentId?: any) => any[];
@@ -1,7 +1,7 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { UploadFile } from 'antd';
3
- import { ProUploadProps } from '../propsType';
4
- interface DragRenderProps extends Pick<ProUploadProps, 'buttonProps' | 'disabled' | 'maxCount' | 'extraTipText' | 'buttonText'> {
3
+ import type { ProUploadType } from '../propsType';
4
+ interface DragRenderProps extends Pick<ProUploadType, 'buttonProps' | 'disabled' | 'maxCount' | 'extraTipText' | 'buttonText'> {
5
5
  isView?: boolean;
6
6
  headerRender: () => ReactNode;
7
7
  footerRender: () => ReactNode;
@@ -1,2 +1,2 @@
1
- import { DraggableUploadListItemProps } from '../propsType';
2
- export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) => import("react/jsx-runtime").JSX.Element;
1
+ import type { DraggableUploadListItemType } from '../propsType';
2
+ export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemType) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { ExampleModalProps } from '../propsType';
2
+ import type { ExampleModalType } from '../propsType';
3
3
  interface ExampleProps {
4
4
  exampleContent?: React.ReactNode;
5
5
  className?: string;
6
6
  exampleTitle?: string | React.ReactNode;
7
- exampleModalProps?: ExampleModalProps;
7
+ exampleModalProps?: ExampleModalType;
8
8
  }
9
9
  export declare const Example: React.FC<ExampleProps>;
10
10
  export {};
@@ -1,7 +1,7 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { UploadFile } from 'antd/es/upload/interface';
3
- import { ProUploadProps } from '../propsType';
4
- interface DragRenderProps extends Pick<ProUploadProps, 'buttonProps' | 'disabled' | 'maxCount' | 'extraTipText' | 'showExampleContent' | 'exampleTitle' | 'exampleContent' | 'exampleModalProps'> {
3
+ import type { ProUploadType } from '../propsType';
4
+ interface DragRenderProps extends Pick<ProUploadType, 'buttonProps' | 'disabled' | 'maxCount' | 'extraTipText' | 'showExampleContent' | 'exampleTitle' | 'exampleContent' | 'exampleModalProps'> {
5
5
  isView?: boolean;
6
6
  headerRender: () => ReactNode;
7
7
  footerRender: () => ReactNode;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ProUploadProps } from './propsType';
3
- declare const ProUpload: React.FC<ProUploadProps>;
2
+ import type { ProUploadType } from './propsType';
3
+ declare const ProUpload: React.FC<ProUploadType>;
4
4
  export default ProUpload;
@@ -22,6 +22,9 @@ import ButtonRender from './components/ButtonRender';
22
22
  import ImageRender from './components/ImageRender';
23
23
  import { validateSize, validateFileExt } from './uitls';
24
24
  import locale from '../locale';
25
+ var defaultCustomRequest = function defaultCustomRequest(option) {
26
+ return option.onSuccess();
27
+ };
25
28
  var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
26
29
  var _locale$ProUpload;
27
30
  var _useState = useState([]),
@@ -205,13 +208,6 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
205
208
  }
206
209
  return headerRender;
207
210
  };
208
- // 自定义顶部
209
- // const _centerRender = () => {
210
- // if (isFunction(centerRender)) {
211
- // return centerRender();
212
- // }
213
- // return centerRender;
214
- // };
215
211
  // 自定义底部
216
212
  var _footerRender = function _footerRender() {
217
213
  if (isFunction(footerRender)) {
@@ -242,7 +238,7 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
242
238
  };
243
239
  }, [_fileList]);
244
240
  // 通用props
245
- var baseUploadProps = _objectSpread({
241
+ var baseUploadProps = _objectSpread(_objectSpread({
246
242
  action: action,
247
243
  beforeUpload: handleBeforeUpload,
248
244
  onRemove: handleRemove,
@@ -253,7 +249,9 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
253
249
  accept: accept,
254
250
  data: _objectSpread({}, dataParams),
255
251
  name: name
256
- }, residueProps);
252
+ }, residueProps), {}, {
253
+ customRequest: !action && !residueProps.customRequest ? defaultCustomRequest : residueProps.customRequest
254
+ });
257
255
  var baseProps = {
258
256
  isView: isView,
259
257
  headerRender: _headerRender,