@zat-design/sisyphus-react 3.11.14 → 3.12.0

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 (332) 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/ProModal/index.d.ts +2 -2
  10. package/es/ProDrawerForm/index.d.ts +1 -2
  11. package/es/ProDrawerForm/propsType.d.ts +38 -27
  12. package/es/ProDrawerForm/utils/index.d.ts +2 -2
  13. package/es/ProEditLabel/components/RenderProForm.d.ts +2 -2
  14. package/es/ProEditLabel/index.d.ts +2 -2
  15. package/es/ProEditLabel/propsType.d.ts +135 -8
  16. package/es/ProEditLabel/style/index.less +24 -25
  17. package/es/ProEditTable/components/Summary/index.d.ts +2 -2
  18. package/es/ProEditTable/index.d.ts +2 -2
  19. package/es/ProEditTable/index.js +18 -16
  20. package/es/ProEditTable/propsType.d.ts +243 -106
  21. package/es/ProEditTable/style/index.less +1 -0
  22. package/es/ProEditTable/utils/index.d.ts +1 -1
  23. package/es/ProEditTable/utils/index.js +6 -4
  24. package/es/ProEditTable/utils/tools.d.ts +57 -22
  25. package/es/ProEditTable/utils/tools.js +47 -21
  26. package/es/ProEnum/components/Group.d.ts +2 -2
  27. package/es/ProEnum/components/Tag.d.ts +2 -2
  28. package/es/ProEnum/hooks/useEnum.d.ts +2 -2
  29. package/es/ProEnum/hooks/useEnum.js +46 -17
  30. package/es/ProEnum/hooks/useEnumRequest.d.ts +2 -2
  31. package/es/ProEnum/index.d.ts +2 -2
  32. package/es/ProEnum/propsType.d.ts +231 -42
  33. package/es/ProEnum/propsType.js +0 -6
  34. package/es/ProEnum/utils/index.d.ts +9 -2
  35. package/es/ProEnum/utils/index.js +9 -2
  36. package/es/ProForm/components/FormFooter/index.d.ts +2 -2
  37. package/es/ProForm/components/FormFooter/propsType.d.ts +8 -3
  38. package/es/ProForm/components/base/Checkbox/index.d.ts +2 -2
  39. package/es/ProForm/components/base/Input/index.d.ts +2 -2
  40. package/es/ProForm/components/base/Input/propsType.d.ts +10 -6
  41. package/es/ProForm/components/base/InputNumber/index.d.ts +2 -2
  42. package/es/ProForm/components/base/Radio/index.d.ts +2 -2
  43. package/es/ProForm/components/base/RangePicker/index.d.ts +2 -2
  44. package/es/ProForm/components/base/Select/index.d.ts +2 -2
  45. package/es/ProForm/components/base/Switch/index.d.ts +2 -2
  46. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
  47. package/es/ProForm/components/base/TextArea/index.d.ts +2 -2
  48. package/es/ProForm/components/base/TimePicker/index.d.ts +2 -2
  49. package/es/ProForm/components/combination/Container/index.d.ts +2 -2
  50. package/es/ProForm/components/combination/Container/propsType.d.ts +10 -6
  51. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
  52. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
  53. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
  54. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
  55. package/es/ProForm/components/combination/FormList/index.d.ts +2 -2
  56. package/es/ProForm/components/combination/FormList/propsType.d.ts +18 -10
  57. package/es/ProForm/components/combination/Group/index.d.ts +2 -2
  58. package/es/ProForm/components/combination/Group/propsType.d.ts +10 -5
  59. package/es/ProForm/components/combination/Group/utils.d.ts +6 -6
  60. package/es/ProForm/components/combination/ProCascader/index.d.ts +2 -2
  61. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
  62. package/es/ProForm/components/combination/ProCombination/index.d.ts +3 -3
  63. package/es/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
  64. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
  65. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
  66. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
  67. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
  68. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +15 -9
  69. package/es/ProForm/components/old/EnumSelect/index.d.ts +1 -1
  70. package/es/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
  71. package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  72. package/es/ProForm/components/old/ProAddress/index.d.ts +1 -1
  73. package/es/ProForm/components/old/ProCertNo/index.d.ts +1 -1
  74. package/es/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
  75. package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
  76. package/es/ProForm/components/render/ChangedWrapper.d.ts +2 -2
  77. package/es/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
  78. package/es/ProForm/components/render/Render.d.ts +2 -2
  79. package/es/ProForm/components/render/RenderFields.d.ts +4 -4
  80. package/es/ProForm/components/render/propsType.d.ts +76 -69
  81. package/es/ProForm/index.d.ts +2 -2
  82. package/es/ProForm/propsType.d.ts +26 -17
  83. package/es/ProForm/propsType.js +0 -1
  84. package/es/ProForm/utils/transformValue.d.ts +2 -2
  85. package/es/ProForm/utils/useFieldProps.d.ts +3 -3
  86. package/es/ProForm/utils/useForm.d.ts +1 -1
  87. package/es/ProForm/utils/useRules.d.ts +1 -1
  88. package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
  89. package/es/ProIcon/index.d.ts +2 -2
  90. package/es/ProIcon/propsTypes.d.ts +120 -49
  91. package/es/ProLayout/components/Layout/Header/index.d.ts +2 -2
  92. package/es/ProLayout/components/Layout/Menu/index.d.ts +2 -2
  93. package/es/ProLayout/components/Layout/Notice/index.d.ts +2 -2
  94. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
  95. package/es/ProLayout/components/ProCollapse/index.d.ts +2 -2
  96. package/es/ProLayout/components/ProCollapse/index.js +12 -4
  97. package/es/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
  98. package/es/ProLayout/components/ProFooter/index.d.ts +2 -2
  99. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
  100. package/es/ProLayout/components/ProHeader/index.d.ts +2 -2
  101. package/es/ProLayout/index.d.ts +5 -5
  102. package/es/ProLayout/index.js +6 -2
  103. package/es/ProLayout/propTypes.d.ts +182 -25
  104. package/es/ProLayout/utils/index.d.ts +2 -2
  105. package/es/ProSelect/index.d.ts +3 -3
  106. package/es/ProSelect/propsType.d.ts +141 -31
  107. package/es/ProStep/components/Anchor/index.d.ts +2 -1
  108. package/es/ProStep/components/Item/index.d.ts +2 -2
  109. package/es/ProStep/components/Item/index.js +6 -2
  110. package/es/ProStep/components/Listener/index.d.ts +4 -3
  111. package/es/ProStep/components/Listener/index.js +18 -4
  112. package/es/ProStep/components/Step/index.d.ts +2 -2
  113. package/es/ProStep/index.d.ts +7 -7
  114. package/es/ProStep/index.js +19 -4
  115. package/es/ProStep/propsType.d.ts +200 -12
  116. package/es/ProStep/utils/index.d.ts +17 -4
  117. package/es/ProStep/utils/index.js +11 -2
  118. package/es/ProTable/components/FormatColumn/index.d.ts +2 -2
  119. package/es/ProTable/components/FormatColumn/index.js +5 -8
  120. package/es/ProTable/components/RenderTabs/index.d.ts +4 -0
  121. package/es/ProTable/components/RenderTabs/index.js +78 -0
  122. package/es/ProTable/components/index.d.ts +25 -0
  123. package/es/ProTable/components/index.js +26 -1
  124. package/es/ProTable/hooks/useAntdTable.d.ts +2 -93
  125. package/es/ProTable/hooks/useAntdTable.js +6 -2
  126. package/es/ProTable/index.d.ts +2 -2
  127. package/es/ProTable/index.js +6 -3
  128. package/es/ProTable/propsType.d.ts +630 -39
  129. package/es/ProTable/style/index.less +3 -0
  130. package/es/ProTabs/index.d.ts +2 -2
  131. package/es/ProTabs/index.js +4 -4
  132. package/es/ProTabs/propType.d.ts +66 -9
  133. package/es/ProThemeTools/index.d.ts +2 -2
  134. package/es/ProThemeTools/propsType.d.ts +136 -14
  135. package/es/ProTooltip/index.d.ts +2 -2
  136. package/es/ProTooltip/propsType.d.ts +49 -9
  137. package/es/ProTree/components/List.d.ts +2 -2
  138. package/es/ProTree/components/List.js +2 -2
  139. package/es/ProTree/components/ProTree.d.ts +2 -2
  140. package/es/ProTree/components/ProTreeSelect/index.d.ts +3 -3
  141. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +372 -34
  142. package/es/ProTree/components/SearchTitle.d.ts +2 -2
  143. package/es/ProTree/components/Tree.d.ts +3 -3
  144. package/es/ProTree/index.d.ts +2 -2
  145. package/es/ProTree/index.js +1 -1
  146. package/es/ProTree/propsType.d.ts +694 -103
  147. package/es/ProTree/utils.d.ts +7 -7
  148. package/es/ProTreeModal/components/Cascader.d.ts +3 -3
  149. package/es/ProTreeModal/components/List.d.ts +3 -3
  150. package/es/ProTreeModal/components/Tree.d.ts +2 -2
  151. package/es/ProTreeModal/index.d.ts +2 -2
  152. package/es/ProTreeModal/index.js +2 -2
  153. package/es/ProTreeModal/propsType.d.ts +258 -49
  154. package/es/ProTreeModal/utils.d.ts +7 -7
  155. package/es/ProUpload/components/ButtonRender.d.ts +2 -2
  156. package/es/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
  157. package/es/ProUpload/components/Example.d.ts +2 -2
  158. package/es/ProUpload/components/ImageRender.d.ts +2 -2
  159. package/es/ProUpload/index.d.ts +2 -2
  160. package/es/ProUpload/index.js +7 -9
  161. package/es/ProUpload/propsType.d.ts +65 -8
  162. package/es/ProWaterMark/index.d.ts +2 -2
  163. package/es/ProWaterMark/propsType.d.ts +2 -1
  164. package/es/index.d.ts +15 -6
  165. package/es/index.js +1 -7
  166. package/lib/ProAction/index.d.ts +2 -2
  167. package/lib/ProAction/propsType.d.ts +16 -10
  168. package/lib/ProConfigProvider/index.d.ts +7 -7
  169. package/lib/ProDownload/index.d.ts +2 -2
  170. package/lib/ProDownload/propsType.d.ts +2 -1
  171. package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
  172. package/lib/ProDrawerForm/components/ProModal/index.d.ts +2 -2
  173. package/lib/ProDrawerForm/index.d.ts +1 -2
  174. package/lib/ProDrawerForm/propsType.d.ts +38 -27
  175. package/lib/ProDrawerForm/utils/index.d.ts +2 -2
  176. package/lib/ProEditLabel/components/RenderProForm.d.ts +2 -2
  177. package/lib/ProEditLabel/index.d.ts +2 -2
  178. package/lib/ProEditLabel/propsType.d.ts +135 -8
  179. package/lib/ProEditLabel/style/index.less +24 -25
  180. package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
  181. package/lib/ProEditTable/index.d.ts +2 -2
  182. package/lib/ProEditTable/index.js +18 -16
  183. package/lib/ProEditTable/propsType.d.ts +243 -106
  184. package/lib/ProEditTable/style/index.less +1 -0
  185. package/lib/ProEditTable/utils/index.d.ts +1 -1
  186. package/lib/ProEditTable/utils/index.js +6 -4
  187. package/lib/ProEditTable/utils/tools.d.ts +57 -22
  188. package/lib/ProEditTable/utils/tools.js +47 -21
  189. package/lib/ProEnum/components/Group.d.ts +2 -2
  190. package/lib/ProEnum/components/Tag.d.ts +2 -2
  191. package/lib/ProEnum/hooks/useEnum.d.ts +2 -2
  192. package/lib/ProEnum/hooks/useEnum.js +48 -17
  193. package/lib/ProEnum/hooks/useEnumRequest.d.ts +2 -2
  194. package/lib/ProEnum/index.d.ts +2 -2
  195. package/lib/ProEnum/propsType.d.ts +231 -42
  196. package/lib/ProEnum/propsType.js +1 -7
  197. package/lib/ProEnum/utils/index.d.ts +9 -2
  198. package/lib/ProEnum/utils/index.js +9 -2
  199. package/lib/ProForm/components/FormFooter/index.d.ts +2 -2
  200. package/lib/ProForm/components/FormFooter/propsType.d.ts +8 -3
  201. package/lib/ProForm/components/base/Checkbox/index.d.ts +2 -2
  202. package/lib/ProForm/components/base/Input/index.d.ts +2 -2
  203. package/lib/ProForm/components/base/Input/propsType.d.ts +10 -6
  204. package/lib/ProForm/components/base/InputNumber/index.d.ts +2 -2
  205. package/lib/ProForm/components/base/Radio/index.d.ts +2 -2
  206. package/lib/ProForm/components/base/RangePicker/index.d.ts +2 -2
  207. package/lib/ProForm/components/base/Select/index.d.ts +2 -2
  208. package/lib/ProForm/components/base/Switch/index.d.ts +2 -2
  209. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
  210. package/lib/ProForm/components/base/TextArea/index.d.ts +2 -2
  211. package/lib/ProForm/components/base/TimePicker/index.d.ts +2 -2
  212. package/lib/ProForm/components/combination/Container/index.d.ts +2 -2
  213. package/lib/ProForm/components/combination/Container/propsType.d.ts +10 -6
  214. package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
  215. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
  216. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
  217. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
  218. package/lib/ProForm/components/combination/FormList/index.d.ts +2 -2
  219. package/lib/ProForm/components/combination/FormList/propsType.d.ts +18 -10
  220. package/lib/ProForm/components/combination/Group/index.d.ts +2 -2
  221. package/lib/ProForm/components/combination/Group/propsType.d.ts +10 -5
  222. package/lib/ProForm/components/combination/Group/utils.d.ts +6 -6
  223. package/lib/ProForm/components/combination/ProCascader/index.d.ts +2 -2
  224. package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
  225. package/lib/ProForm/components/combination/ProCombination/index.d.ts +3 -3
  226. package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
  227. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
  228. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
  229. package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
  230. package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
  231. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +15 -9
  232. package/lib/ProForm/components/old/EnumSelect/index.d.ts +1 -1
  233. package/lib/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
  234. package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  235. package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -1
  236. package/lib/ProForm/components/old/ProCertNo/index.d.ts +1 -1
  237. package/lib/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
  238. package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
  239. package/lib/ProForm/components/render/ChangedWrapper.d.ts +2 -2
  240. package/lib/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
  241. package/lib/ProForm/components/render/Render.d.ts +2 -2
  242. package/lib/ProForm/components/render/RenderFields.d.ts +4 -4
  243. package/lib/ProForm/components/render/propsType.d.ts +76 -69
  244. package/lib/ProForm/index.d.ts +2 -2
  245. package/lib/ProForm/propsType.d.ts +26 -17
  246. package/lib/ProForm/propsType.js +0 -15
  247. package/lib/ProForm/utils/transformValue.d.ts +2 -2
  248. package/lib/ProForm/utils/useFieldProps.d.ts +3 -3
  249. package/lib/ProForm/utils/useForm.d.ts +1 -1
  250. package/lib/ProForm/utils/useRules.d.ts +1 -1
  251. package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
  252. package/lib/ProIcon/index.d.ts +2 -2
  253. package/lib/ProIcon/propsTypes.d.ts +120 -49
  254. package/lib/ProLayout/components/Layout/Header/index.d.ts +2 -2
  255. package/lib/ProLayout/components/Layout/Menu/index.d.ts +2 -2
  256. package/lib/ProLayout/components/Layout/Notice/index.d.ts +2 -2
  257. package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
  258. package/lib/ProLayout/components/ProCollapse/index.d.ts +2 -2
  259. package/lib/ProLayout/components/ProCollapse/index.js +12 -4
  260. package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
  261. package/lib/ProLayout/components/ProFooter/index.d.ts +2 -2
  262. package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
  263. package/lib/ProLayout/components/ProHeader/index.d.ts +2 -2
  264. package/lib/ProLayout/index.d.ts +5 -5
  265. package/lib/ProLayout/index.js +6 -2
  266. package/lib/ProLayout/propTypes.d.ts +182 -25
  267. package/lib/ProLayout/utils/index.d.ts +2 -2
  268. package/lib/ProSelect/index.d.ts +3 -3
  269. package/lib/ProSelect/propsType.d.ts +141 -31
  270. package/lib/ProStep/components/Anchor/index.d.ts +2 -1
  271. package/lib/ProStep/components/Item/index.d.ts +2 -2
  272. package/lib/ProStep/components/Item/index.js +6 -2
  273. package/lib/ProStep/components/Listener/index.d.ts +4 -3
  274. package/lib/ProStep/components/Listener/index.js +18 -4
  275. package/lib/ProStep/components/Step/index.d.ts +2 -2
  276. package/lib/ProStep/index.d.ts +7 -7
  277. package/lib/ProStep/index.js +19 -4
  278. package/lib/ProStep/propsType.d.ts +200 -12
  279. package/lib/ProStep/utils/index.d.ts +17 -4
  280. package/lib/ProStep/utils/index.js +11 -2
  281. package/lib/ProTable/components/FormatColumn/index.d.ts +2 -2
  282. package/lib/ProTable/components/FormatColumn/index.js +5 -8
  283. package/lib/ProTable/components/RenderTabs/index.d.ts +4 -0
  284. package/lib/ProTable/components/RenderTabs/index.js +82 -0
  285. package/lib/ProTable/components/index.d.ts +25 -0
  286. package/lib/ProTable/components/index.js +8 -1
  287. package/lib/ProTable/hooks/useAntdTable.d.ts +2 -93
  288. package/lib/ProTable/hooks/useAntdTable.js +5 -1
  289. package/lib/ProTable/index.d.ts +2 -2
  290. package/lib/ProTable/index.js +5 -2
  291. package/lib/ProTable/propsType.d.ts +630 -39
  292. package/lib/ProTable/style/index.less +3 -0
  293. package/lib/ProTabs/index.d.ts +2 -2
  294. package/lib/ProTabs/index.js +4 -4
  295. package/lib/ProTabs/propType.d.ts +66 -9
  296. package/lib/ProThemeTools/index.d.ts +2 -2
  297. package/lib/ProThemeTools/propsType.d.ts +136 -14
  298. package/lib/ProTooltip/index.d.ts +2 -2
  299. package/lib/ProTooltip/propsType.d.ts +49 -9
  300. package/lib/ProTree/components/List.d.ts +2 -2
  301. package/lib/ProTree/components/List.js +2 -2
  302. package/lib/ProTree/components/ProTree.d.ts +2 -2
  303. package/lib/ProTree/components/ProTreeSelect/index.d.ts +3 -3
  304. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +372 -34
  305. package/lib/ProTree/components/SearchTitle.d.ts +2 -2
  306. package/lib/ProTree/components/Tree.d.ts +3 -3
  307. package/lib/ProTree/index.d.ts +2 -2
  308. package/lib/ProTree/index.js +1 -1
  309. package/lib/ProTree/propsType.d.ts +694 -103
  310. package/lib/ProTree/utils.d.ts +7 -7
  311. package/lib/ProTreeModal/components/Cascader.d.ts +3 -3
  312. package/lib/ProTreeModal/components/List.d.ts +3 -3
  313. package/lib/ProTreeModal/components/Tree.d.ts +2 -2
  314. package/lib/ProTreeModal/index.d.ts +2 -2
  315. package/lib/ProTreeModal/index.js +2 -2
  316. package/lib/ProTreeModal/propsType.d.ts +258 -49
  317. package/lib/ProTreeModal/utils.d.ts +7 -7
  318. package/lib/ProUpload/components/ButtonRender.d.ts +2 -2
  319. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
  320. package/lib/ProUpload/components/Example.d.ts +2 -2
  321. package/lib/ProUpload/components/ImageRender.d.ts +2 -2
  322. package/lib/ProUpload/index.d.ts +2 -2
  323. package/lib/ProUpload/index.js +7 -9
  324. package/lib/ProUpload/propsType.d.ts +65 -8
  325. package/lib/ProWaterMark/index.d.ts +2 -2
  326. package/lib/ProWaterMark/propsType.d.ts +2 -1
  327. package/lib/index.d.ts +15 -6
  328. package/lib/index.js +7 -71
  329. package/package.json +1 -1
  330. package/.vscode/extensions.json +0 -5
  331. package/test/__mocks__/fileMock.js +0 -0
  332. package/test/__mocks__/styleMock.js +0 -0
@@ -1,22 +1,57 @@
1
1
  import React from 'react';
2
2
  import { UploadFile } from 'antd/es/upload/interface';
3
+ import { UploadRequestOption } from 'rc-upload/lib/interface';
3
4
  export type UploadType = 'drag' | 'button' | 'image';
4
- export interface UploadFileRes {
5
+ export interface UploadFileResType {
6
+ /**
7
+ * @description 上传文件返回的URL
8
+ * @default -
9
+ */
5
10
  url: string;
11
+ /**
12
+ * @description 允许扩展字段
13
+ */
6
14
  [key: string]: any;
7
15
  }
8
- export interface ExampleModalProps {
16
+ export interface ExampleModalType {
17
+ /**
18
+ * @description 弹窗宽度
19
+ * @default -
20
+ */
9
21
  width?: string | number;
22
+ /**
23
+ * @description 弹窗外层容器类名
24
+ * @default -
25
+ */
10
26
  wrapClassName?: string;
27
+ /**
28
+ * @description 允许扩展字段
29
+ */
11
30
  [key: string]: any;
12
31
  }
13
- export interface fieldNamesProps {
32
+ export interface FieldNamesType {
33
+ /**
34
+ * @description 文件唯一标识字段
35
+ * @default -
36
+ */
14
37
  uid?: number;
38
+ /**
39
+ * @description 文件名称字段
40
+ * @default -
41
+ */
15
42
  name?: string;
43
+ /**
44
+ * @description 文件URL字段
45
+ * @default -
46
+ */
16
47
  url?: string;
48
+ /**
49
+ * @description 文件状态字段
50
+ * @default -
51
+ */
17
52
  status?: 'done' | 'uploading' | 'error';
18
53
  }
19
- export interface ProUploadProps {
54
+ export interface ProUploadType {
20
55
  /**
21
56
  * @description 顶部的内容(button类型的上传不适用)
22
57
  * @default -
@@ -51,7 +86,7 @@ export interface ProUploadProps {
51
86
  * @description 示例弹窗的属性配置继承与antd 的Modal对话框
52
87
  * @default -
53
88
  */
54
- exampleModalProps?: ExampleModalProps;
89
+ exampleModalProps?: ExampleModalType;
55
90
  /**
56
91
  * @description 接受上传的文件类型, '.png,.jpeg,.jpg,.xlsx,.xls,.json,.doc,.docx' 详见 input accept Attribute
57
92
  * @default -
@@ -168,7 +203,7 @@ export interface ProUploadProps {
168
203
  * @description 上传接口处理方法 返回一个数组 UploadFile【】
169
204
  * @default -
170
205
  */
171
- transformResponse?: (res: any) => UploadFileRes;
206
+ transformResponse?: (res: any) => UploadFileResType;
172
207
  /**
173
208
  * @description 可以调用组件的内部方法,例如:uploadStart方式
174
209
  * @default -
@@ -188,20 +223,42 @@ export interface ProUploadProps {
188
223
  * @description 文件对象的字段映射
189
224
  * @default true
190
225
  */
191
- fieldNames?: fieldNamesProps;
226
+ fieldNames?: FieldNamesType;
192
227
  /**
193
228
  * @description 删除已经上传的文件时是否二次提示
194
229
  * @default false
195
230
  */
196
231
  isConfirmDelete?: boolean;
232
+ /**
233
+ * @description 组件ID
234
+ * @default -
235
+ */
197
236
  id?: string;
198
237
  /**
199
238
  * @description 查看模式
200
239
  * @default false
201
240
  */
202
241
  isView?: boolean;
242
+ /**
243
+ * @description 自定义上传实现
244
+ * @default false
245
+ */
246
+ customRequest?: (option: UploadRequestOption) => void;
203
247
  }
204
- export interface DraggableUploadListItemProps {
248
+ export interface DraggableUploadListItemType {
249
+ /**
250
+ * @description 文件对象
251
+ * @default -
252
+ */
205
253
  file: UploadFile<any>;
254
+ /**
255
+ * @description 子元素
256
+ * @default -
257
+ */
206
258
  children: React.ReactNode;
207
259
  }
260
+ export type UploadFileRes = UploadFileResType;
261
+ export type ExampleModalProps = ExampleModalType;
262
+ export type fieldNamesProps = FieldNamesType;
263
+ export type ProUploadProps = ProUploadType;
264
+ export type DraggableUploadListItemProps = DraggableUploadListItemType;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ProWaterMarkProps } from './propsType';
3
- declare const ProWaterMark: React.FC<ProWaterMarkProps>;
2
+ import type { ProWaterMarkType } from './propsType';
3
+ declare const ProWaterMark: React.FC<ProWaterMarkType>;
4
4
  export default ProWaterMark;
@@ -1,4 +1,4 @@
1
- export interface ProWaterMarkProps {
1
+ export interface ProWaterMarkType {
2
2
  /**
3
3
  * @description 水印是否显示
4
4
  * @default true
@@ -80,3 +80,4 @@ export interface ProWaterMarkProps {
80
80
  */
81
81
  mode?: 'repeat' | 'interval';
82
82
  }
83
+ export type ProWaterMarkProps = ProWaterMarkType;
package/es/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export { default as ProEditTable } from './ProEditTable';
9
9
  export { default as ProDrawerForm } from './ProDrawerForm';
10
10
  export { default as ProEditLabel } from './ProEditLabel';
11
11
  export { default as ProForm } from './ProForm';
12
- export * from './ProForm';
12
+ export { ProFormProvider } from './ProForm';
13
13
  export * from './ProForm/components';
14
14
  export { default as ProSelect } from './ProSelect';
15
15
  export { default as ProEnum } from './ProEnum';
@@ -26,9 +26,18 @@ export * from './locale';
26
26
  export { default as ProBackBtn } from './ProLayout/components/ProHeader/components/ProBackBtn';
27
27
  export { default as ProEditableTable } from './old/ProEditableTable';
28
28
  export { default as ProCertValidity } from './old/ProCertValidity';
29
- export * from './ProForm/propsType';
30
- export * from './ProTable/propsType';
31
- export * from './ProEditTable/propsType';
32
- export * from './ProUpload/propsType';
33
- export * from './ProTabs/propType';
29
+ export type { ProFormType, ProColumnProps, ProFormColumnType } from './ProForm/propsType';
30
+ export type { ProFormComponentType } from './ProForm/components/index.d';
31
+ export type { ProTableType, ProTableColumnType, ProTableSummaryType, ProTableUseAntdTableType, ProTableProps, ProTableSummaryProps, ProTableColumn, UseAntdTableState } from './ProTable/propsType';
32
+ export type { ProUploadType, ProUploadProps } from './ProUpload/propsType';
33
+ export type { ProTabsType, ProTabsItemType, ProTabsProps, ProTabsItemsProps } from './ProTabs/propType';
34
+ export type { BreadcrumbColumnType, SubDescribeColumnType, DescribeColumnType, ProHeaderType, ProHeaderProps, BreadcrumbColumnsProps, SubDescribeColumnsProps, DescribeColumnsProps } from './ProLayout/components/ProHeader/PropTypes';
35
+ export type { ProTooltipType, ProTooltipProps } from './ProTooltip/propsType';
36
+ export type { ProIconType, ProIconProps } from './ProIcon/propsTypes';
37
+ export type { ProTreeType, ProTreeSelectType, ProTreeProps, PropTreeSelectProps } from './ProTree/propsType';
38
+ export type { ProTreeModalType, ProTreeModalActionType, ProTreeModalProps, ProTreeModalAction } from './ProTreeModal/propsType';
39
+ export type { ProEditTableType, ProEditTableColumnType, ProEditTableSummaryColumnType, ProEditTableSummaryConfigType, ProEditTableActionType, ProEditTableProps, ProEditTableColumnsProps, SummaryProps, SummaryColumnProps, BaseActionProps } from './ProEditTable/propsType';
40
+ export type { ProStepType, ProStepContextType, ProStepItemType, ProStepPropsType, ProStepItemPropsType } from './ProStep/propsType';
41
+ export type { ProDrawerFormType, ProDrawerFormPropsType } from './ProDrawerForm/propsType';
42
+ export type { ProModalSelectType, ProModalSelectConfigType, ProModalSelectPropsType } from './ProForm/components/combination/ProModalSelect/propsType';
34
43
  export * from './tokens';
package/es/index.js CHANGED
@@ -13,7 +13,7 @@ export { default as ProDrawerForm } from './ProDrawerForm';
13
13
  export { default as ProEditLabel } from './ProEditLabel';
14
14
  // 表单
15
15
  export { default as ProForm } from './ProForm';
16
- export * from './ProForm';
16
+ export { ProFormProvider } from './ProForm';
17
17
  export * from './ProForm/components'; // ProForm 中组件导出
18
18
  export { default as ProSelect } from './ProSelect';
19
19
  export { default as ProEnum } from './ProEnum';
@@ -32,11 +32,5 @@ export * from './locale';
32
32
  export { default as ProBackBtn } from './ProLayout/components/ProHeader/components/ProBackBtn';
33
33
  export { default as ProEditableTable } from './old/ProEditableTable';
34
34
  export { default as ProCertValidity } from './old/ProCertValidity';
35
- // TS类型导出
36
- export * from './ProForm/propsType';
37
- export * from './ProTable/propsType';
38
- export * from './ProEditTable/propsType';
39
- export * from './ProUpload/propsType';
40
- export * from './ProTabs/propType';
41
35
  // token导出
42
36
  export * from './tokens';
@@ -1,7 +1,7 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
- import { ActionProps } from './propsType';
2
+ import type { ProActionType } from './propsType';
3
3
  import './index.less';
4
4
  declare const ProAction: React.FC<PropsWithChildren<{
5
- config?: ActionProps[];
5
+ config?: ProActionType[];
6
6
  }>>;
7
7
  export default ProAction;
@@ -1,27 +1,31 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Service, Options } from 'ahooks/lib/useRequest/src/types';
3
- export interface ActionProps {
3
+ export interface ProActionType {
4
4
  /**
5
- * check 执行校验并解析错误信息展示
6
- * confirm 确认提示
5
+ * @description 模式类型:check执行校验并解析错误信息展示,confirm确认提示
6
+ * @default -
7
7
  */
8
8
  mode?: 'check' | 'confirm';
9
9
  /**
10
- * 标题
10
+ * @description 标题
11
+ * @default -
11
12
  */
12
13
  title?: string | ReactNode;
13
14
  /**
14
- *
15
+ * @description 操作回调函数
15
16
  * @param previouData 接上一个 useRequest 返回的值
16
17
  * @param args 接所有链式 useRequest 返回的值
17
- * @returns
18
+ * @param index 当前操作的索引
19
+ * @returns void或Promise<void>
20
+ * @default -
18
21
  */
19
22
  onAction?: (previouData?: any, args?: any[], index?: number) => void | Promise<void>;
20
23
  /**
21
- * 自定义请求
24
+ * @description 自定义请求
22
25
  * @param previouData 接上一个 useRequest 返回的值
23
26
  * @param args 接所有链式 useRequest 返回的值
24
- * @returns
27
+ * @returns 包含service、options和transformResponse的对象
28
+ * @default -
25
29
  */
26
30
  useRequest?: (previouData: any, args: any) => {
27
31
  service?: Service<any, any>;
@@ -29,10 +33,12 @@ export interface ActionProps {
29
33
  transformResponse?: (data: any) => any;
30
34
  };
31
35
  /**
32
- * 是否中断链式操作
36
+ * @description 是否中断链式操作
33
37
  * @param previouData 上一个操作的返回数据
34
38
  * @param args 所有链式的数据合集
35
- * @returns
39
+ * @returns 布尔值,返回true继续执行,返回false中断操作
40
+ * @default -
36
41
  */
37
42
  continue?: (previouData: any, args: any[]) => boolean;
38
43
  }
44
+ export type ProActionProps = ProActionType;
@@ -1,15 +1,15 @@
1
1
  import React, { FC } from 'react';
2
2
  import { FormInstance } from 'antd';
3
- import { PropSelectProps } from '../ProSelect/propsType';
4
- import { ProModalSelectPropsType } from '../ProForm/components/combination/ProModalSelect/propsType';
5
- import { ProCascaderProps } from '../ProForm/components/combination/ProCascader/propsType';
6
- import { ProEnumConfig } from '../ProEnum/propsType';
3
+ import type { PropSelectType } from '../ProSelect/propsType';
4
+ import type { ProModalSelectType } from '../ProForm/components/combination/ProModalSelect/propsType';
5
+ import type { ProCascaderType } from '../ProForm/components/combination/ProCascader/propsType';
6
+ import type { ProEnumConfig } from '../ProEnum/propsType';
7
7
  export interface ProConfigState {
8
8
  locale?: string;
9
9
  ProEnum?: Partial<ProEnumConfig>;
10
- ProSelect?: Partial<PropSelectProps> & Record<string, any>;
11
- ProModalSelect?: Partial<ProModalSelectPropsType> & Record<string, any>;
12
- ProAddressBar?: Partial<ProCascaderProps> & Record<string, any>;
10
+ ProSelect?: Partial<PropSelectType> & Record<string, any>;
11
+ ProModalSelect?: Partial<ProModalSelectType> & Record<string, any>;
12
+ ProAddressBar?: Partial<ProCascaderType> & Record<string, any>;
13
13
  forms: Record<string, FormInstance | undefined>;
14
14
  [key: string]: any;
15
15
  }
@@ -1,6 +1,6 @@
1
- import { IProDownloadProps } from './propsType';
1
+ import type { ProDownloadType } from './propsType';
2
2
  declare const ProDownload: {
3
- (props: IProDownloadProps): import("react/jsx-runtime").JSX.Element;
3
+ (props: ProDownloadType): import("react/jsx-runtime").JSX.Element;
4
4
  downLoadRequest: import("./utils").DownloadRequestProps;
5
5
  };
6
6
  export default ProDownload;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import type { ButtonProps } from 'antd';
3
3
  import type { DownloadRequestProps, PropsWithMakeFilePropsType } from './utils';
4
- export interface IProDownloadProps extends ButtonProps {
4
+ export interface ProDownloadType extends ButtonProps {
5
5
  /**
6
6
  * @description 下载资源获取来源:api:通过接口获取,url:通过静态资源链接获取
7
7
  * @default api
@@ -69,3 +69,4 @@ export interface IProDownloadProps extends ButtonProps {
69
69
  children?: string | ReactNode;
70
70
  [key: string]: any;
71
71
  }
72
+ export type IProDownloadProps = ProDownloadType;
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
- import { ProDrawerFormPropsType } from '../../propsType';
2
+ import { ProDrawerFormType } from '../../propsType';
3
3
  /**
4
4
  * 抽屉组件
5
5
  */
6
- declare const ProDrawer: FC<ProDrawerFormPropsType>;
6
+ declare const ProDrawer: FC<ProDrawerFormType>;
7
7
  export default ProDrawer;
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
- import { ProDrawerFormPropsType } from '../../propsType';
2
+ import { ProDrawerFormType } from '../../propsType';
3
3
  /**
4
4
  * 弹窗组件
5
5
  */
6
- declare const ProModal: FC<ProDrawerFormPropsType>;
6
+ declare const ProModal: FC<ProDrawerFormType>;
7
7
  export default ProModal;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
2
  import { FormInstance } from 'antd/es/form/Form';
3
- import { ProDrawerFormPropsType } from './propsType';
4
- declare const ProDrawerForm: React.ForwardRefExoticComponent<ProDrawerFormPropsType & React.RefAttributes<FormInstance<any>>>;
3
+ declare const ProDrawerForm: React.ForwardRefExoticComponent<import("./propsType").ProDrawerFormPropsType & React.RefAttributes<FormInstance<any>>>;
5
4
  export default ProDrawerForm;
@@ -1,17 +1,26 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import type { ModalProps, DrawerProps, FormInstance } from 'antd';
3
- import { ProFormProps } from '../ProForm/propsType';
3
+ import type { ProFormType } from '../ProForm/propsType';
4
+ /**
5
+ * 抽屉尺寸类型定义
6
+ */
4
7
  export type DrawerSizePropsType = 'small' | 'middle' | 'large';
8
+ export type DrawerSizeType = DrawerSizePropsType;
9
+ /**
10
+ * 显示类型定义
11
+ */
5
12
  export type ShowTypePropsType = 'Modal' | 'Drawer';
6
- export interface ProDrawerFormRef {
7
- form: FormInstance<any>;
8
- }
13
+ export type ShowType = ShowTypePropsType;
14
+ /**
15
+ * 为了保持向后兼容,保留原有接口名称
16
+ * @deprecated ProDrawerFormType
17
+ */
9
18
  export interface ProDrawerFormPropsType {
10
- /** @name 内部form */
19
+ /** @name 内部form实例 */
11
20
  form?: FormInstance<any>;
12
21
  /** @name 自定义className */
13
22
  className?: string;
14
- /** @name 控制显示隐藏 */
23
+ /** @name 控制显示隐藏(兼容旧版API) */
15
24
  visible?: ModalProps['open'] | DrawerProps['open'];
16
25
  /** @name 控制显示隐藏 */
17
26
  open: ModalProps['open'] | DrawerProps['open'];
@@ -25,30 +34,22 @@ export interface ProDrawerFormPropsType {
25
34
  isView?: boolean | undefined;
26
35
  /** @name 宽度 */
27
36
  width?: ModalProps['width'] | DrawerProps['width'];
28
- /**
29
- * @name 取消按钮文字
30
- */
37
+ /** @name 取消按钮文字 */
31
38
  cancelText?: ModalProps['cancelText'];
32
- /**
33
- * @name 确认按钮文字
34
- */
39
+ /** @name 确认按钮文字 */
35
40
  okText?: ModalProps['okText'];
36
- /**
37
- * @name 确认按钮loading
38
- */
41
+ /** @name 确认按钮loading状态 */
39
42
  okLoading?: boolean;
40
- /**
41
- * @name 确认按钮disabled
42
- */
43
+ /** @name 确认按钮禁用状态 */
43
44
  okDisabled?: boolean;
44
45
  /** @name 显示方式 (废弃) */
45
- showType?: ShowTypePropsType;
46
+ showType?: ShowType;
46
47
  /** @name 显示方式 */
47
- mode?: ShowTypePropsType;
48
+ mode?: ShowType;
48
49
  /** @name 尺寸 */
49
- size?: DrawerSizePropsType;
50
+ size?: DrawerSizeType;
50
51
  /**
51
- * @name自动选中第一项
52
+ * @name 自动选中第一项
52
53
  * @description 只对有input的类型有效
53
54
  */
54
55
  autoFocusFirstInput?: boolean;
@@ -64,10 +65,14 @@ export interface ProDrawerFormPropsType {
64
65
  isConfirmCloseModalProps?: ModalProps;
65
66
  /**
66
67
  * @name 底部默认取消按钮事件
68
+ * @returns 返回Promise或布尔值可控制弹窗关闭行为
67
69
  */
68
70
  onCancel?: () => Promise<boolean | void | unknown> | boolean | void | unknown;
69
71
  /**
70
72
  * @name 底部默认确定按钮事件
73
+ * @param values 表单值
74
+ * @param form 表单实例
75
+ * @returns 返回Promise或布尔值可控制弹窗关闭行为
71
76
  */
72
77
  onOk?: (values?: any, form?: FormInstance) => Promise<boolean | void | unknown> | boolean | void | unknown;
73
78
  /**
@@ -79,24 +84,30 @@ export interface ProDrawerFormPropsType {
79
84
  */
80
85
  extraLeft?: ReactNode;
81
86
  /**
82
- * @name proForm的属性 配置后children不展示
87
+ * @name proForm的属性
88
+ * @description 配置后children不展示
83
89
  */
84
- proFormProps?: Omit<ProFormProps, 'form'>;
90
+ proFormProps?: Omit<ProFormType, 'form'>;
85
91
  /**
86
- * 不支持 'visible',请使用全局的 visible
87
92
  * @name 弹框的属性
93
+ * @description 不支持'visible',请使用全局的visible/open
88
94
  */
89
95
  modalProps?: Omit<ModalProps, 'visible'>;
90
96
  /**
91
- * 不支持 'visible',请使用全局的 visible
92
97
  * @name 抽屉的属性
98
+ * @description 不支持'visible',请使用全局的visible/open
93
99
  */
94
100
  drawerProps?: Omit<DrawerProps, 'visible'>;
95
101
  /**
96
- * 不支持 'visible',请使用全局的 visible
97
102
  * @name 关闭时弹框或者抽屉是否清空formValues
98
103
  */
99
104
  onCloseClean?: boolean;
105
+ /** @name 子组件 */
100
106
  children?: React.ReactNode;
107
+ /** @name z轴层级 */
101
108
  zIndex?: number;
102
109
  }
110
+ /**
111
+ * 抽屉表单属性类型定义
112
+ */
113
+ export type ProDrawerFormType = ProDrawerFormPropsType;
@@ -1,6 +1,6 @@
1
- import { DrawerSizePropsType } from '../propsType';
1
+ import { DrawerSizeType } from '../propsType';
2
2
  /**
3
3
  * 将枚举值转成数值px,暴露枚举,隐藏真实数值,暂时不让用户自定义
4
4
  * @param size 设计规范的三个尺寸 460 960 1200 对应 'small' | 'middle' | 'large'
5
5
  */
6
- export declare const transformBySize: (size: DrawerSizePropsType) => number;
6
+ export declare const transformBySize: (size: DrawerSizeType) => number;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import type { PopupProps } from '../propsType';
3
- declare const RenderProForm: FC<PopupProps>;
2
+ import type { PopupType } from '../propsType';
3
+ declare const RenderProForm: FC<PopupType>;
4
4
  export default RenderProForm;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import { ContainerProps, LabelProps, PopupConfirmProps } from './propsType';
3
- declare const ProEditLabel: FC<LabelProps & PopupConfirmProps & ContainerProps>;
2
+ import type { ContainerType, LabelType, ProEditLabelType } from './propsType';
3
+ declare const ProEditLabel: FC<LabelType & ProEditLabelType & ContainerType>;
4
4
  export default ProEditLabel;