@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
@@ -2,45 +2,172 @@ import { InputProps } from 'antd/es/input';
2
2
  import { PopconfirmProps } from 'antd/es/popconfirm';
3
3
  import { FormInstance } from 'antd/es/form';
4
4
  import React from 'react';
5
- import { ProColumnProps } from '../index';
6
- export interface ContainerProps {
5
+ import type { ProFormColumnType } from '../index';
6
+ export interface ContainerType {
7
+ /**
8
+ * @description 触发方式
9
+ * @default "click"
10
+ */
7
11
  trigger?: 'click' | 'hover';
12
+ /**
13
+ * @description 尺寸
14
+ * @default "middle"
15
+ */
8
16
  size?: 'small' | 'middle' | 'large';
17
+ /**
18
+ * @description 显示模式
19
+ * @default "popup"
20
+ */
9
21
  mode?: 'popup' | 'current';
22
+ /**
23
+ * @description 类型
24
+ * @default "input"
25
+ */
10
26
  type?: 'input' | 'select';
11
27
  }
12
- export interface StateProps {
28
+ export interface StateType {
29
+ /**
30
+ * @description 弹出值
31
+ * @default ""
32
+ */
13
33
  popValue?: string;
34
+ /**
35
+ * @description 确认值
36
+ * @default ""
37
+ */
14
38
  confirmValue?: string;
15
39
  }
16
- export interface PopupProps {
40
+ export interface PopupType {
41
+ /**
42
+ * @description 类型
43
+ * @default -
44
+ */
17
45
  type?: string;
46
+ /**
47
+ * @description 标签
48
+ * @default -
49
+ */
18
50
  label?: string | React.ReactNode;
51
+ /**
52
+ * @description 标题
53
+ * @default -
54
+ */
19
55
  title?: string | React.ReactNode;
56
+ /**
57
+ * @description 提示
58
+ * @default -
59
+ */
20
60
  tip?: string | React.ReactNode;
61
+ /**
62
+ * @description 是否去除空格
63
+ * @default false
64
+ */
21
65
  trim?: boolean;
66
+ /**
67
+ * @description 标签宽度
68
+ * @default -
69
+ */
22
70
  labelWidth?: string | number;
71
+ /**
72
+ * @description 字段属性
73
+ * @default -
74
+ */
23
75
  fieldProps?: any;
24
- columns?: ProColumnProps;
76
+ /**
77
+ * @description 列配置
78
+ * @default -
79
+ */
80
+ columns?: ProFormColumnType;
81
+ /**
82
+ * @description 允许扩展字段
83
+ */
25
84
  [key: string]: any;
26
85
  }
27
- export interface LabelProps extends InputProps {
86
+ export interface LabelType extends InputProps {
87
+ /**
88
+ * @description 是否可见
89
+ * @default false
90
+ */
28
91
  visible?: boolean;
92
+ /**
93
+ * @description 是否打开
94
+ * @default false
95
+ */
29
96
  open?: boolean;
97
+ /**
98
+ * @description 可见性变化回调
99
+ * @default -
100
+ */
30
101
  onVisibleChange?: (open: boolean) => void;
102
+ /**
103
+ * @description 值变化回调
104
+ * @default -
105
+ */
31
106
  onChange?: (value: React.ChangeEvent<HTMLInputElement>) => void;
107
+ /**
108
+ * @description 是否可编辑
109
+ * @default false
110
+ */
32
111
  editable?: boolean;
112
+ /**
113
+ * @description 编辑回调
114
+ * @default -
115
+ */
33
116
  onEdit?: () => void;
34
117
  }
35
- export interface PopupConfirmProps extends Partial<PopconfirmProps> {
36
- popupProps?: PopupProps;
118
+ export interface ProEditLabelType extends Partial<PopconfirmProps> {
119
+ /**
120
+ * @description 弹出属性
121
+ * @default -
122
+ */
123
+ popupProps?: PopupType;
124
+ /**
125
+ * @description 空值显示
126
+ * @default "-"
127
+ */
37
128
  viewEmpty?: '-';
129
+ /**
130
+ * @description 确认回调
131
+ * @default -
132
+ */
38
133
  onConfirm?: (e?: any) => void;
134
+ /**
135
+ * @description 完成回调
136
+ * @default -
137
+ */
39
138
  onFinish?: (e?: any) => void;
139
+ /**
140
+ * @description 打开状态变化回调
141
+ * @default -
142
+ */
40
143
  onOpenChange?: (e?: any) => void;
144
+ /**
145
+ * @description 触发方式
146
+ * @default "click"
147
+ */
41
148
  trigger?: 'click' | 'hover';
149
+ /**
150
+ * @description 值
151
+ * @default -
152
+ */
42
153
  value?: any;
154
+ /**
155
+ * @description 表单实例
156
+ * @default -
157
+ */
43
158
  form?: FormInstance;
159
+ /**
160
+ * @description 是否禁用
161
+ * @default false
162
+ */
44
163
  disabled?: boolean;
164
+ /**
165
+ * @description 允许扩展字段
166
+ */
45
167
  [key: string]: any;
46
168
  }
169
+ export type ContainerProps = ContainerType;
170
+ export type StateProps = StateType;
171
+ export type PopupProps = PopupType;
172
+ export type LabelProps = LabelType;
173
+ export type PopupConfirmProps = ProEditLabelType;
@@ -11,8 +11,8 @@
11
11
  }
12
12
 
13
13
  .pro-form-view-container {
14
+ display: inline-block;
14
15
  word-break: break-all;
15
- display : inline-block;
16
16
  }
17
17
 
18
18
  &.trigger-hover {
@@ -25,20 +25,19 @@
25
25
  display: block;
26
26
  }
27
27
  }
28
-
29
28
  }
30
29
 
31
30
  .anticon-edit {
32
- color : #D8D8D8;
33
- cursor : pointer;
34
31
  padding: var(--zaui-space-size-xs, 4px);
32
+ color: #d8d8d8;
33
+ cursor: pointer;
35
34
 
36
35
  &:hover {
37
- color: var(--zaui-brand, #006AFF);
36
+ color: var(--zaui-brand, #006aff);
38
37
  }
39
38
 
40
39
  &:active {
41
- background : #E3E8F0;
40
+ background: #e3e8f0;
42
41
  border-radius: var(--zaui-border-radius-card, 4px);
43
42
  }
44
43
  }
@@ -54,25 +53,27 @@
54
53
  &.pro-edit-label-large {
55
54
  height: 40px;
56
55
  }
57
-
58
56
  }
59
57
 
60
58
  .@{ant-prefix}-popover {
61
59
  .@{ant-prefix}-btn-sm {
62
- font-size : var(--zaui-font-size-sm, 12px);
63
- min-width : 56px;
60
+ min-width: 56px;
61
+ font-size: var(--zaui-font-size-sm, 12px);
64
62
  line-height: 1;
65
63
 
66
64
  span {
67
65
  letter-spacing: -1px;
68
66
  }
69
-
70
67
  }
71
68
  }
72
69
 
73
70
  .pro-edit-label-popconfirm {
74
71
  z-index: 1001 !important;
75
72
 
73
+ .@{ant-prefix}-popover-inner-content {
74
+ width: 100%;
75
+ }
76
+
76
77
  .@{ant-prefix}-popover-message {
77
78
  display: block;
78
79
  }
@@ -82,26 +83,26 @@
82
83
  }
83
84
 
84
85
  .@{ant-prefix}-popover-content {
85
- width : 360px;
86
+ width: 360px;
86
87
  max-width: 400px;
87
88
  }
88
89
 
89
90
  .pro-edit-label-title {
90
- font-size : var(--zaui-font-size-lg, 16px);
91
- font-weight : 500;
92
- color : var(--zaui-text, #343434);
93
91
  margin-bottom: calc(var(--zaui-space-size-sm, 8px) * var(--zaui-size; 1));
92
+ color: var(--zaui-text, #343434);
93
+ font-weight: 500;
94
+ font-size: var(--zaui-font-size-lg, 16px);
94
95
  }
95
96
 
96
97
  .pro-edit-label-tip {
97
98
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
98
- color : #666;
99
+ color: #666;
99
100
 
100
101
  .anticon-info-circle {
101
- font-size : var(--zaui-font-size-lg, 16px);
102
+ margin-top: var(--zaui-space-size-xs, 4px);
102
103
  margin-right: var(--zaui-space-size-sm, 8px);
103
- color : var(--zaui-warning, #EC9131);
104
- margin-top : var(--zaui-space-size-xs, 4px);
104
+ color: var(--zaui-warning, #ec9131);
105
+ font-size: var(--zaui-font-size-lg, 16px);
105
106
  }
106
107
  }
107
108
 
@@ -119,18 +120,16 @@
119
120
  }
120
121
 
121
122
  .@{ant-prefix}-col-10 {
122
- flex : 0 0 var(--zaui-form-label-width, 130px);
123
- white-space : pre-wrap;
124
- line-height : 1;
125
- overflow : initial;
126
- box-sizing : border-box;
123
+ flex: 0 0 var(--zaui-form-label-width, 130px);
124
+ box-sizing: border-box;
127
125
  padding-right: var(--zaui-space-size-md, 16px);
126
+ overflow: initial;
127
+ line-height: 1;
128
+ white-space: pre-wrap;
128
129
  }
129
-
130
130
  }
131
131
 
132
132
  .@{ant-prefix}-select {
133
133
  width: 100%;
134
134
  }
135
-
136
135
  }
@@ -1,8 +1,8 @@
1
- import { SummaryColumnProps } from '../../propsType';
1
+ import { ProEditTableSummaryColumnType } from '../../propsType';
2
2
  interface SummaryProps<T = any> {
3
3
  data: T[];
4
4
  summary: {
5
- columns: SummaryColumnProps[];
5
+ columns: ProEditTableSummaryColumnType[];
6
6
  total?: boolean;
7
7
  fixed?: boolean | 'top' | 'bottom';
8
8
  };
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ProEditTableProps, ProEditTableRefProps } from './propsType';
3
- declare const ForwardProEditTable: React.ForwardRefExoticComponent<Omit<ProEditTableProps<any>, "ref"> & React.RefAttributes<ProEditTableRefProps>>;
2
+ import { ProEditTableType } from './propsType';
3
+ declare const ForwardProEditTable: React.ForwardRefExoticComponent<Omit<ProEditTableType<any>, "ref"> & React.RefAttributes<import("./propsType").ProEditTableRefProps>>;
4
4
  export default ForwardProEditTable;
@@ -77,7 +77,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
77
77
  disabled = (formFieldProps === null || formFieldProps === void 0 ? void 0 : formFieldProps.disabled) || disabled; // formFieldProps?.disabled可能是函数??
78
78
  }
79
79
  var tableRef = useRef(null);
80
- var valueChangeRef = useRef(null);
80
+ var valueChangeRef = useRef(0);
81
81
  valueChangeRef.current = 0;
82
82
  var _React$useContext = React.useContext(_ConfigProvider.ConfigContext),
83
83
  getPrefixCls = _React$useContext.getPrefixCls;
@@ -88,7 +88,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
88
88
  var requiredAlign = useMemo(function () {
89
89
  var _ref2, _themeConfig$data$zau, _themeConfig$data;
90
90
  return (_ref2 = (_themeConfig$data$zau = themeConfig === null || themeConfig === void 0 ? void 0 : (_themeConfig$data = themeConfig.data) === null || _themeConfig$data === void 0 ? void 0 : _themeConfig$data.zauiFormAlign) !== null && _themeConfig$data$zau !== void 0 ? _themeConfig$data$zau : configRequiredAlign) !== null && _ref2 !== void 0 ? _ref2 : 'left';
91
- }, [themeConfig === null || themeConfig === void 0 ? void 0 : (_themeConfig$data2 = themeConfig.data) === null || _themeConfig$data2 === void 0 ? void 0 : _themeConfig$data2.zauiFormAlign]);
91
+ }, [themeConfig === null || themeConfig === void 0 ? void 0 : (_themeConfig$data2 = themeConfig.data) === null || _themeConfig$data2 === void 0 ? void 0 : _themeConfig$data2.zauiFormAlign, configRequiredAlign]);
92
92
  var _useSetState = useSetState({
93
93
  cellNamePath: [],
94
94
  forceUpdate: {},
@@ -189,14 +189,12 @@ var ProEditTable = function ProEditTable(_ref, ref) {
189
189
  recursive: true
190
190
  });
191
191
  case 7:
192
- if (current !== page.pageNum) {
193
- setState({
194
- page: {
195
- pageNum: current,
196
- pageSize: pageSize !== null && pageSize !== void 0 ? pageSize : page.pageSize
197
- }
198
- });
199
- }
192
+ setState({
193
+ page: {
194
+ pageNum: current,
195
+ pageSize: pageSize !== null && pageSize !== void 0 ? pageSize : page.pageSize
196
+ }
197
+ });
200
198
  case 8:
201
199
  _context.next = 13;
202
200
  break;
@@ -213,7 +211,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
213
211
  return function (_x, _x2) {
214
212
  return _ref4.apply(this, arguments);
215
213
  };
216
- }(), []);
214
+ }(), [pagination, page.pageSize, form, name]);
217
215
  var config = _objectSpread({
218
216
  form: form,
219
217
  mode: mode,
@@ -271,10 +269,12 @@ var ProEditTable = function ProEditTable(_ref, ref) {
271
269
  return item.type === type;
272
270
  });
273
271
  if (typeof (addBtnConfig === null || addBtnConfig === void 0 ? void 0 : addBtnConfig.show) === 'function') {
274
- addBtnConfig.show = addBtnConfig.show();
272
+ var result = addBtnConfig.show();
273
+ addBtnConfig.show = result;
275
274
  }
276
275
  return (addBtnConfig === null || addBtnConfig === void 0 ? void 0 : addBtnConfig.show) === false;
277
276
  }
277
+ return false;
278
278
  }, [toolbarProps]);
279
279
  // 是否隐藏勾选框
280
280
  var isHideCheckBox = isForbiddenBtn('mulDelete');
@@ -306,7 +306,8 @@ var ProEditTable = function ProEditTable(_ref, ref) {
306
306
  className: "com-empty",
307
307
  children: [_jsx("img", {
308
308
  className: "img",
309
- src: Empty
309
+ src: Empty,
310
+ alt: "Empty"
310
311
  }), _jsx("div", {
311
312
  className: "content",
312
313
  children: disabled || isForbiddenBtn('add') ? locale.ProEditTable.noData : _jsxs(_Fragment, {
@@ -359,7 +360,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
359
360
  rowKey: getRowKey(item)
360
361
  });
361
362
  });
362
- onChange(nextValues);
363
+ onChange === null || onChange === void 0 ? void 0 : onChange(nextValues);
363
364
  if (virtualKey) {
364
365
  form.setFieldValue(virtualRowName, nextValues);
365
366
  }
@@ -379,8 +380,8 @@ var ProEditTable = function ProEditTable(_ref, ref) {
379
380
  useEffect(function () {
380
381
  if (toolbarSticky) {
381
382
  var updatePos = function updatePos() {
382
- var _affixRef$current;
383
- affixRef === null || affixRef === void 0 ? void 0 : (_affixRef$current = affixRef.current) === null || _affixRef$current === void 0 ? void 0 : _affixRef$current.updatePosition();
383
+ var _affixRef$current, _affixRef$current$upd;
384
+ affixRef === null || affixRef === void 0 ? void 0 : (_affixRef$current = affixRef.current) === null || _affixRef$current === void 0 ? void 0 : (_affixRef$current$upd = _affixRef$current.updatePosition) === null || _affixRef$current$upd === void 0 ? void 0 : _affixRef$current$upd.call(_affixRef$current);
384
385
  };
385
386
  window.addEventListener('scroll', updatePos, true);
386
387
  return function () {
@@ -482,4 +483,5 @@ ForwardProEditTable.defaultProps = {
482
483
  deletePoConfirmMsg: locale.ProEditTable.deletePoConfirmMsg,
483
484
  mulDeletePoConfirmMsg: locale.ProEditTable.mulDeletePoConfirmMsg
484
485
  };
486
+ // 导出组件
485
487
  export default ForwardProEditTable;