@zat-design/sisyphus-react 3.13.13 → 4.0.0-beta.2

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 (538) hide show
  1. package/babel.config.js +34 -1
  2. package/dist/index.esm.css +557 -341
  3. package/dist/less.esm.css +527 -309
  4. package/es/FormsProvider/index.d.ts +4 -1
  5. package/es/ProAction/components/CheckModalContent/index.js +0 -8
  6. package/es/ProAction/index.js +45 -48
  7. package/es/ProAction/index.less +2 -2
  8. package/es/ProConfigProvider/index.d.ts +21 -4
  9. package/es/ProConfigProvider/index.js +51 -22
  10. package/es/ProDownload/index.js +62 -65
  11. package/es/ProDownload/style/index.less +2 -2
  12. package/es/ProDownload/utils.js +45 -51
  13. package/es/ProDrawerForm/components/ProDrawer/index.js +64 -69
  14. package/es/ProDrawerForm/components/ProModal/index.js +59 -67
  15. package/es/ProDrawerForm/index.d.ts +2 -1
  16. package/es/ProDrawerForm/index.js +4 -6
  17. package/es/ProDrawerForm/propsType.d.ts +7 -18
  18. package/es/ProDrawerForm/style/index.less +8 -14
  19. package/es/ProEditLabel/components/RenderProForm.js +2 -3
  20. package/es/ProEditLabel/index.js +40 -45
  21. package/es/ProEditLabel/propsType.d.ts +1 -6
  22. package/es/ProEditLabel/style/index.less +4 -3
  23. package/es/ProEditTable/components/ActionButton/index.js +5 -8
  24. package/es/ProEditTable/components/RcTable/BaseTable.js +73 -55
  25. package/es/ProEditTable/components/RcTable/DraggableTable.js +66 -47
  26. package/es/ProEditTable/components/RcTable/index.d.ts +0 -2
  27. package/es/ProEditTable/components/RcTable/index.js +1 -3
  28. package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +9 -12
  29. package/es/ProEditTable/components/RenderField/index.d.ts +3 -2
  30. package/es/ProEditTable/components/RenderField/index.js +377 -253
  31. package/es/ProEditTable/components/RenderToolbar/index.js +19 -19
  32. package/es/ProEditTable/components/Summary/index.js +5 -8
  33. package/es/ProEditTable/components/Validator/index.js +3 -6
  34. package/es/ProEditTable/index.js +128 -131
  35. package/es/ProEditTable/propsType.d.ts +1 -7
  36. package/es/ProEditTable/style/index.less +3 -7
  37. package/es/ProEditTable/utils/config.js +31 -35
  38. package/es/ProEditTable/utils/index.js +44 -41
  39. package/es/ProEditTable/utils/tools.js +107 -110
  40. package/es/ProEditTable/utils/useEditTableError.js +12 -4
  41. package/es/ProEnum/hooks/useEnumRequest.js +44 -47
  42. package/es/ProEnum/index.js +10 -17
  43. package/es/ProEnum/style/index.less +2 -2
  44. package/es/ProEnum/utils/index.d.ts +1 -0
  45. package/es/ProEnum/utils/index.js +2 -1
  46. package/es/ProForm/components/Container.d.ts +1 -0
  47. package/es/ProForm/components/Container.js +2 -3
  48. package/es/ProForm/components/FormFooter/index.js +13 -13
  49. package/es/ProForm/components/FormFooter/propsType.d.ts +2 -0
  50. package/es/ProForm/components/base/Checkbox/index.js +3 -4
  51. package/es/ProForm/components/base/DatePicker/index.d.ts +1 -3
  52. package/es/ProForm/components/base/DatePicker/index.js +7 -7
  53. package/es/ProForm/components/base/DatePicker/useDateLimit.d.ts +1 -7
  54. package/es/ProForm/components/base/DatePicker/useDateLimit.js +1 -3
  55. package/es/ProForm/components/base/Input/index.js +6 -13
  56. package/es/ProForm/components/base/InputNumber/index.js +3 -6
  57. package/es/ProForm/components/base/Radio/index.js +3 -4
  58. package/es/ProForm/components/base/RangePicker/index.js +6 -7
  59. package/es/ProForm/components/base/RangePicker/useDateRange.d.ts +5 -5
  60. package/es/ProForm/components/base/Select/index.js +2 -3
  61. package/es/ProForm/components/base/Switch/index.js +2 -3
  62. package/es/ProForm/components/base/SwitchCheckbox/index.js +2 -3
  63. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +2 -2
  64. package/es/ProForm/components/base/TextArea/index.js +3 -4
  65. package/es/ProForm/components/base/TextArea/index.less +12 -2
  66. package/es/ProForm/components/base/TimePicker/index.d.ts +1 -2
  67. package/es/ProForm/components/base/TimePicker/index.js +6 -7
  68. package/es/ProForm/components/base/TimePicker/style/index.less +5 -3
  69. package/es/ProForm/components/combination/Container/style/index.less +2 -2
  70. package/es/ProForm/components/combination/FormList/components/ActionButton.js +28 -26
  71. package/es/ProForm/components/combination/FormList/components/BlockFields.js +3 -6
  72. package/es/ProForm/components/combination/FormList/components/Empty.js +18 -19
  73. package/es/ProForm/components/combination/FormList/components/LineFields.js +2 -3
  74. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +17 -21
  75. package/es/ProForm/components/combination/FormList/index.js +2 -3
  76. package/es/ProForm/components/combination/FormList/style/index.less +38 -2
  77. package/es/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +1 -0
  78. package/es/ProForm/components/combination/Group/index.d.ts +2 -8
  79. package/es/ProForm/components/combination/Group/index.js +12 -6
  80. package/es/ProForm/components/combination/Group/style/index.less +7 -87
  81. package/es/ProForm/components/combination/Group/utils.d.ts +1 -1
  82. package/es/ProForm/components/combination/Group/utils.js +4 -5
  83. package/es/ProForm/components/combination/ProCascader/index.js +21 -20
  84. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +1 -1
  85. package/es/ProForm/components/combination/ProCascader/style/index.less +2 -2
  86. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +6 -8
  87. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
  88. package/es/ProForm/components/combination/ProModalSelect/index.js +97 -116
  89. package/es/ProForm/components/combination/ProModalSelect/style/index.less +13 -14
  90. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +3 -2
  91. package/es/ProForm/components/combination/ProNumberRange/index.js +17 -16
  92. package/es/ProForm/components/combination/ProNumberRange/style/index.less +5 -52
  93. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -23
  94. package/es/ProForm/components/combination/ProRangeLimit/index.js +44 -28
  95. package/es/ProForm/components/combination/ProRangeLimit/propsType.d.ts +23 -0
  96. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +3 -2
  97. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +14 -2
  98. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +5 -6
  99. package/es/ProForm/components/combination/ProTimeLimit/index.js +23 -20
  100. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +66 -6
  101. package/es/ProForm/components/index.d.ts +0 -8
  102. package/es/ProForm/components/index.js +1 -10
  103. package/es/ProForm/components/render/ChangedWrapper.js +8 -9
  104. package/es/ProForm/components/render/ConfirmWrapper.js +28 -29
  105. package/es/ProForm/components/render/Render.js +37 -40
  106. package/es/ProForm/components/render/propsType.d.ts +2 -6
  107. package/es/ProForm/index.js +9 -39
  108. package/es/ProForm/style/index.less +6 -16
  109. package/es/ProForm/utils/index.d.ts +15 -1
  110. package/es/ProForm/utils/index.js +63 -14
  111. package/es/ProForm/utils/useDeepCompareMemo.js +4 -4
  112. package/es/ProForm/utils/useForm.js +84 -74
  113. package/es/ProForm/utils/useShouldUpdate.js +14 -14
  114. package/es/ProForm/utils/valueType.js +8 -8
  115. package/es/ProIcon/index.js +10 -13
  116. package/es/ProIcon/style/index.less +2 -2
  117. package/es/ProLayout/components/Layout/Header/index.js +1 -1
  118. package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +11 -10
  119. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +42 -39
  120. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -4
  121. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +12 -6
  122. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +9 -5
  123. package/es/ProLayout/components/Layout/Menu/index.js +1 -1
  124. package/es/ProLayout/components/Layout/Menu/style/index.less +2 -2
  125. package/es/ProLayout/components/Layout/Notice/style/index.less +2 -2
  126. package/es/ProLayout/components/ProCollapse/index.js +20 -36
  127. package/es/ProLayout/components/ProCollapse/style/index.less +3 -3
  128. package/es/ProLayout/components/ProFooter/index.js +3 -4
  129. package/es/ProLayout/components/ProFooter/style/index.less +2 -2
  130. package/es/ProLayout/components/ProHeader/components/Copy/index.js +2 -3
  131. package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.js +2 -3
  132. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +9 -9
  133. package/es/ProLayout/components/ProHeader/index.js +43 -46
  134. package/es/ProLayout/components/ProHeader/style/index.less +2 -2
  135. package/es/ProLayout/index.js +7 -6
  136. package/es/ProLayout/style/index.less +4 -3
  137. package/es/ProSelect/components/AdaptiveTooltip.js +2 -3
  138. package/es/ProSelect/index.js +7 -17
  139. package/es/ProSelect/index.less +2 -2
  140. package/es/ProSelect/propsType.d.ts +1 -1
  141. package/es/ProStep/components/Anchor/index.js +2 -3
  142. package/es/ProStep/components/Item/index.js +2 -1
  143. package/es/ProStep/components/Listener/index.js +12 -14
  144. package/es/ProStep/components/Step/index.js +1 -0
  145. package/es/ProStep/index.js +39 -47
  146. package/es/ProStep/style/index.less +4 -4
  147. package/es/ProStepTab/index.js +72 -83
  148. package/es/ProTable/components/FormatColumn/index.js +32 -31
  149. package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -1
  150. package/es/ProTable/components/RcTable/components/BaseTable/index.js +2 -4
  151. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +39 -37
  152. package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -1
  153. package/es/ProTable/components/RcTable/components/DraggableTable/index.js +2 -4
  154. package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
  155. package/es/ProTable/components/RenderColumn/index.js +15 -18
  156. package/es/ProTable/components/RenderSummary/index.js +4 -5
  157. package/es/ProTable/components/RenderTableHeader/index.js +3 -4
  158. package/es/ProTable/components/RenderTabs/index.js +3 -6
  159. package/es/ProTable/components/TableResizable/index.js +2 -1
  160. package/es/ProTable/components/TooltipTitle/index.js +2 -3
  161. package/es/ProTable/hooks/useAntdTable.js +21 -26
  162. package/es/ProTable/index.js +15 -16
  163. package/es/ProTable/propsType.d.ts +1 -3
  164. package/es/ProTable/style/index.less +5 -5
  165. package/es/ProTabs/components/Card/index.js +5 -10
  166. package/es/ProTabs/index.js +2 -3
  167. package/es/ProTabs/style/index.less +2 -2
  168. package/es/ProThemeTools/component/ProTools/index.js +18 -22
  169. package/es/ProThemeTools/context/ThemeContext.d.ts +31 -0
  170. package/es/ProThemeTools/context/ThemeContext.js +120 -0
  171. package/es/ProThemeTools/index.d.ts +4 -1
  172. package/es/ProThemeTools/index.js +60 -37
  173. package/es/ProThemeTools/style/index.less +3 -3
  174. package/es/ProThemeTools/utils/index.d.ts +16 -6
  175. package/es/ProThemeTools/utils/index.js +28 -24
  176. package/es/ProTooltip/index.js +14 -9
  177. package/es/ProTooltip/style/index.less +2 -2
  178. package/es/ProTree/components/AdaptiveTooltip.js +2 -3
  179. package/es/ProTree/components/List.js +3 -4
  180. package/es/ProTree/components/ProTree.js +19 -26
  181. package/es/ProTree/components/ProTreeSelect/index.js +38 -37
  182. package/es/ProTree/components/ProTreeSelect/style/index.less +2 -2
  183. package/es/ProTree/components/Tree.js +18 -25
  184. package/es/ProTree/index.js +0 -7
  185. package/es/ProTree/propsType.d.ts +1 -1
  186. package/es/ProTree/style/index.less +10 -6
  187. package/es/ProTreeModal/components/Cascader.js +3 -4
  188. package/es/ProTreeModal/components/List.js +11 -17
  189. package/es/ProTreeModal/components/SortableItem.js +2 -3
  190. package/es/ProTreeModal/components/Tree.js +3 -4
  191. package/es/ProTreeModal/components/Trigger.js +6 -11
  192. package/es/ProTreeModal/index.d.ts +0 -1
  193. package/es/ProTreeModal/index.js +14 -24
  194. package/es/ProTreeModal/style/index.less +14 -3
  195. package/es/ProUpload/components/ButtonRender.js +17 -20
  196. package/es/ProUpload/components/DragRender.js +2 -3
  197. package/es/ProUpload/components/FileItem.d.ts +0 -1
  198. package/es/ProUpload/components/FileItem.js +15 -21
  199. package/es/ProUpload/components/ImageRender.js +34 -43
  200. package/es/ProUpload/index.js +3 -4
  201. package/es/ProUpload/style/index.less +173 -12
  202. package/es/ProViewer/index.js +38 -45
  203. package/es/ProViewer/style/index.less +2 -2
  204. package/es/ProWaterMark/index.js +2 -3
  205. package/es/ProWaterMark/propsType.d.ts +5 -24
  206. package/es/global.less +2 -1
  207. package/es/index.d.ts +4 -2
  208. package/es/index.js +2 -3
  209. package/es/locale/en_US.js +1 -1
  210. package/es/locale/index.d.ts +2 -0
  211. package/es/locale/index.js +11 -2
  212. package/es/locale/zh_CN.js +1 -1
  213. package/es/style/components.less +0 -3
  214. package/es/style/theme/antd.less +38 -48
  215. package/es/style/theme/base.less +89 -0
  216. package/es/style/theme/index.less +2 -89
  217. package/es/utils/index.d.ts +7 -0
  218. package/es/utils/index.js +23 -1
  219. package/lib/FormsProvider/index.d.ts +4 -1
  220. package/lib/ProAction/components/CheckModalContent/index.js +0 -9
  221. package/lib/ProAction/index.js +45 -48
  222. package/lib/ProAction/index.less +2 -2
  223. package/lib/ProConfigProvider/index.d.ts +21 -4
  224. package/lib/ProConfigProvider/index.js +60 -31
  225. package/lib/ProDownload/index.js +62 -65
  226. package/lib/ProDownload/style/index.less +2 -2
  227. package/lib/ProDownload/utils.js +45 -54
  228. package/lib/ProDrawerForm/components/ProDrawer/index.js +64 -69
  229. package/lib/ProDrawerForm/components/ProModal/index.js +59 -67
  230. package/lib/ProDrawerForm/index.d.ts +2 -1
  231. package/lib/ProDrawerForm/index.js +4 -6
  232. package/lib/ProDrawerForm/propsType.d.ts +7 -18
  233. package/lib/ProDrawerForm/style/index.less +8 -14
  234. package/lib/ProEditLabel/components/RenderProForm.js +2 -3
  235. package/lib/ProEditLabel/index.js +40 -45
  236. package/lib/ProEditLabel/propsType.d.ts +1 -6
  237. package/lib/ProEditLabel/style/index.less +4 -3
  238. package/lib/ProEditTable/components/ActionButton/index.js +5 -8
  239. package/lib/ProEditTable/components/RcTable/BaseTable.js +72 -54
  240. package/lib/ProEditTable/components/RcTable/DraggableTable.js +65 -46
  241. package/lib/ProEditTable/components/RcTable/index.d.ts +0 -2
  242. package/lib/ProEditTable/components/RcTable/index.js +1 -8
  243. package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +9 -12
  244. package/lib/ProEditTable/components/RenderField/index.d.ts +3 -2
  245. package/lib/ProEditTable/components/RenderField/index.js +378 -254
  246. package/lib/ProEditTable/components/RenderToolbar/index.js +19 -19
  247. package/lib/ProEditTable/components/Summary/index.js +5 -8
  248. package/lib/ProEditTable/components/Validator/index.js +3 -7
  249. package/lib/ProEditTable/index.js +126 -129
  250. package/lib/ProEditTable/propsType.d.ts +1 -7
  251. package/lib/ProEditTable/style/index.less +3 -7
  252. package/lib/ProEditTable/utils/config.js +31 -35
  253. package/lib/ProEditTable/utils/index.js +44 -41
  254. package/lib/ProEditTable/utils/tools.js +107 -113
  255. package/lib/ProEditTable/utils/useEditTableError.js +12 -4
  256. package/lib/ProEnum/hooks/useEnumRequest.js +43 -46
  257. package/lib/ProEnum/index.js +10 -17
  258. package/lib/ProEnum/style/index.less +2 -2
  259. package/lib/ProEnum/utils/index.d.ts +1 -0
  260. package/lib/ProEnum/utils/index.js +3 -1
  261. package/lib/ProForm/components/Container.d.ts +1 -0
  262. package/lib/ProForm/components/Container.js +2 -3
  263. package/lib/ProForm/components/FormFooter/index.js +13 -13
  264. package/lib/ProForm/components/FormFooter/propsType.d.ts +2 -0
  265. package/lib/ProForm/components/base/Checkbox/index.js +3 -4
  266. package/lib/ProForm/components/base/DatePicker/index.d.ts +1 -3
  267. package/lib/ProForm/components/base/DatePicker/index.js +7 -7
  268. package/lib/ProForm/components/base/DatePicker/useDateLimit.d.ts +1 -7
  269. package/lib/ProForm/components/base/DatePicker/useDateLimit.js +1 -3
  270. package/lib/ProForm/components/base/Input/index.js +6 -13
  271. package/lib/ProForm/components/base/InputNumber/index.js +3 -6
  272. package/lib/ProForm/components/base/Radio/index.js +3 -4
  273. package/lib/ProForm/components/base/RangePicker/index.js +6 -6
  274. package/lib/ProForm/components/base/RangePicker/useDateRange.d.ts +5 -5
  275. package/lib/ProForm/components/base/Select/index.js +2 -3
  276. package/lib/ProForm/components/base/Switch/index.js +2 -3
  277. package/lib/ProForm/components/base/SwitchCheckbox/index.js +2 -3
  278. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +2 -2
  279. package/lib/ProForm/components/base/TextArea/index.js +3 -4
  280. package/lib/ProForm/components/base/TextArea/index.less +12 -2
  281. package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -2
  282. package/lib/ProForm/components/base/TimePicker/index.js +6 -7
  283. package/lib/ProForm/components/base/TimePicker/style/index.less +5 -3
  284. package/lib/ProForm/components/combination/Container/style/index.less +2 -2
  285. package/lib/ProForm/components/combination/FormList/components/ActionButton.js +28 -26
  286. package/lib/ProForm/components/combination/FormList/components/BlockFields.js +3 -6
  287. package/lib/ProForm/components/combination/FormList/components/Empty.js +18 -19
  288. package/lib/ProForm/components/combination/FormList/components/LineFields.js +2 -3
  289. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +17 -21
  290. package/lib/ProForm/components/combination/FormList/index.js +2 -3
  291. package/lib/ProForm/components/combination/FormList/style/index.less +38 -2
  292. package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +1 -0
  293. package/lib/ProForm/components/combination/Group/index.d.ts +2 -8
  294. package/lib/ProForm/components/combination/Group/index.js +13 -6
  295. package/lib/ProForm/components/combination/Group/style/index.less +7 -87
  296. package/lib/ProForm/components/combination/Group/utils.d.ts +1 -1
  297. package/lib/ProForm/components/combination/Group/utils.js +4 -5
  298. package/lib/ProForm/components/combination/ProCascader/index.js +23 -22
  299. package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +1 -1
  300. package/lib/ProForm/components/combination/ProCascader/style/index.less +2 -2
  301. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +6 -8
  302. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
  303. package/lib/ProForm/components/combination/ProModalSelect/index.js +97 -116
  304. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +13 -14
  305. package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +3 -2
  306. package/lib/ProForm/components/combination/ProNumberRange/index.js +17 -16
  307. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +5 -52
  308. package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -23
  309. package/lib/ProForm/components/combination/ProRangeLimit/index.js +44 -28
  310. package/lib/ProForm/components/combination/ProRangeLimit/propsType.d.ts +23 -0
  311. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +3 -2
  312. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +14 -2
  313. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +5 -6
  314. package/lib/ProForm/components/combination/ProTimeLimit/index.js +23 -20
  315. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +66 -6
  316. package/lib/ProForm/components/index.d.ts +0 -8
  317. package/lib/ProForm/components/index.js +1 -63
  318. package/lib/ProForm/components/render/ChangedWrapper.js +8 -9
  319. package/lib/ProForm/components/render/ConfirmWrapper.js +28 -29
  320. package/lib/ProForm/components/render/Render.js +37 -39
  321. package/lib/ProForm/components/render/propsType.d.ts +2 -6
  322. package/lib/ProForm/index.js +8 -38
  323. package/lib/ProForm/style/index.less +6 -16
  324. package/lib/ProForm/utils/index.d.ts +15 -1
  325. package/lib/ProForm/utils/index.js +65 -17
  326. package/lib/ProForm/utils/useDeepCompareMemo.js +4 -4
  327. package/lib/ProForm/utils/useForm.js +83 -73
  328. package/lib/ProForm/utils/useShouldUpdate.js +14 -14
  329. package/lib/ProForm/utils/valueType.js +8 -8
  330. package/lib/ProIcon/index.js +10 -13
  331. package/lib/ProIcon/style/index.less +2 -2
  332. package/lib/ProLayout/components/Layout/Header/index.js +1 -1
  333. package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.js +11 -10
  334. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +42 -39
  335. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -4
  336. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +12 -6
  337. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +9 -5
  338. package/lib/ProLayout/components/Layout/Menu/index.js +1 -1
  339. package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -2
  340. package/lib/ProLayout/components/Layout/Notice/style/index.less +2 -2
  341. package/lib/ProLayout/components/ProCollapse/index.js +20 -36
  342. package/lib/ProLayout/components/ProCollapse/style/index.less +3 -3
  343. package/lib/ProLayout/components/ProFooter/index.js +3 -4
  344. package/lib/ProLayout/components/ProFooter/style/index.less +2 -2
  345. package/lib/ProLayout/components/ProHeader/components/Copy/index.js +2 -3
  346. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.js +2 -3
  347. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +9 -9
  348. package/lib/ProLayout/components/ProHeader/index.js +43 -46
  349. package/lib/ProLayout/components/ProHeader/style/index.less +2 -2
  350. package/lib/ProLayout/index.js +7 -6
  351. package/lib/ProLayout/style/index.less +4 -3
  352. package/lib/ProSelect/components/AdaptiveTooltip.js +2 -3
  353. package/lib/ProSelect/index.js +7 -17
  354. package/lib/ProSelect/index.less +2 -2
  355. package/lib/ProSelect/propsType.d.ts +1 -1
  356. package/lib/ProStep/components/Anchor/index.js +2 -3
  357. package/lib/ProStep/components/Item/index.js +2 -1
  358. package/lib/ProStep/components/Listener/index.js +12 -14
  359. package/lib/ProStep/components/Step/index.js +1 -0
  360. package/lib/ProStep/index.js +39 -47
  361. package/lib/ProStep/style/index.less +4 -4
  362. package/lib/ProStepTab/index.js +72 -83
  363. package/lib/ProTable/components/FormatColumn/index.js +32 -31
  364. package/lib/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -1
  365. package/lib/ProTable/components/RcTable/components/BaseTable/index.js +2 -4
  366. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +38 -36
  367. package/lib/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -1
  368. package/lib/ProTable/components/RcTable/components/DraggableTable/index.js +2 -4
  369. package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
  370. package/lib/ProTable/components/RenderColumn/index.js +15 -18
  371. package/lib/ProTable/components/RenderSummary/index.js +4 -5
  372. package/lib/ProTable/components/RenderTableHeader/index.js +3 -5
  373. package/lib/ProTable/components/RenderTabs/index.js +3 -6
  374. package/lib/ProTable/components/TableResizable/index.js +2 -1
  375. package/lib/ProTable/components/TooltipTitle/index.js +2 -3
  376. package/lib/ProTable/hooks/useAntdTable.js +21 -26
  377. package/lib/ProTable/index.js +15 -16
  378. package/lib/ProTable/propsType.d.ts +1 -3
  379. package/lib/ProTable/style/index.less +5 -5
  380. package/lib/ProTabs/components/Card/index.js +5 -11
  381. package/lib/ProTabs/index.js +2 -3
  382. package/lib/ProTabs/style/index.less +2 -2
  383. package/lib/ProThemeTools/component/ProTools/index.js +18 -22
  384. package/lib/ProThemeTools/context/ThemeContext.d.ts +31 -0
  385. package/lib/ProThemeTools/context/ThemeContext.js +126 -0
  386. package/lib/ProThemeTools/index.d.ts +4 -1
  387. package/lib/ProThemeTools/index.js +69 -35
  388. package/lib/ProThemeTools/style/index.less +3 -3
  389. package/lib/ProThemeTools/utils/index.d.ts +16 -6
  390. package/lib/ProThemeTools/utils/index.js +29 -25
  391. package/lib/ProTooltip/index.js +14 -9
  392. package/lib/ProTooltip/style/index.less +2 -2
  393. package/lib/ProTree/components/AdaptiveTooltip.js +2 -4
  394. package/lib/ProTree/components/List.js +3 -4
  395. package/lib/ProTree/components/ProTree.js +19 -26
  396. package/lib/ProTree/components/ProTreeSelect/index.js +38 -37
  397. package/lib/ProTree/components/ProTreeSelect/style/index.less +2 -2
  398. package/lib/ProTree/components/Tree.js +18 -25
  399. package/lib/ProTree/index.js +0 -8
  400. package/lib/ProTree/propsType.d.ts +1 -1
  401. package/lib/ProTree/style/index.less +10 -6
  402. package/lib/ProTreeModal/components/Cascader.js +3 -4
  403. package/lib/ProTreeModal/components/List.js +11 -17
  404. package/lib/ProTreeModal/components/SortableItem.js +2 -3
  405. package/lib/ProTreeModal/components/Tree.js +3 -4
  406. package/lib/ProTreeModal/components/Trigger.js +6 -11
  407. package/lib/ProTreeModal/index.d.ts +0 -1
  408. package/lib/ProTreeModal/index.js +14 -24
  409. package/lib/ProTreeModal/style/index.less +14 -3
  410. package/lib/ProUpload/components/ButtonRender.js +17 -20
  411. package/lib/ProUpload/components/DragRender.js +2 -3
  412. package/lib/ProUpload/components/FileItem.d.ts +0 -1
  413. package/lib/ProUpload/components/FileItem.js +15 -21
  414. package/lib/ProUpload/components/ImageRender.js +34 -43
  415. package/lib/ProUpload/index.js +3 -4
  416. package/lib/ProUpload/style/index.less +173 -12
  417. package/lib/ProViewer/index.js +39 -47
  418. package/lib/ProViewer/style/index.less +2 -2
  419. package/lib/ProWaterMark/index.js +3 -4
  420. package/lib/ProWaterMark/propsType.d.ts +5 -24
  421. package/lib/global.less +2 -1
  422. package/lib/index.d.ts +4 -2
  423. package/lib/index.js +36 -16
  424. package/lib/locale/en_US.js +1 -1
  425. package/lib/locale/index.d.ts +2 -0
  426. package/lib/locale/index.js +12 -2
  427. package/lib/locale/zh_CN.js +1 -1
  428. package/lib/style/components.less +0 -3
  429. package/lib/style/theme/antd.less +38 -48
  430. package/lib/style/theme/base.less +89 -0
  431. package/lib/style/theme/index.less +2 -89
  432. package/lib/utils/index.d.ts +7 -0
  433. package/lib/utils/index.js +26 -2
  434. package/package.json +31 -18
  435. package/es/ProEditTable/components/RcTable/VirtualTable.d.ts +0 -3
  436. package/es/ProEditTable/components/RcTable/VirtualTable.js +0 -8
  437. package/es/ProForm/components/combination/ProCombination/index.d.ts +0 -6
  438. package/es/ProForm/components/combination/ProCombination/index.js +0 -204
  439. package/es/ProForm/components/combination/ProCombination/propsType.d.ts +0 -68
  440. package/es/ProForm/components/combination/ProCombination/style/index.less +0 -18
  441. package/es/ProForm/components/old/EnumSelect/hooks/useRequestList.d.ts +0 -33
  442. package/es/ProForm/components/old/EnumSelect/hooks/useRequestList.js +0 -108
  443. package/es/ProForm/components/old/EnumSelect/index.d.ts +0 -4
  444. package/es/ProForm/components/old/EnumSelect/index.js +0 -272
  445. package/es/ProForm/components/old/EnumSelect/interface.d.ts +0 -29
  446. package/es/ProForm/components/old/EnumSelect/interface.js +0 -1
  447. package/es/ProForm/components/old/EnumSelect/style/index.less +0 -113
  448. package/es/ProForm/components/old/InputRange/index.d.ts +0 -16
  449. package/es/ProForm/components/old/InputRange/index.js +0 -100
  450. package/es/ProForm/components/old/InputWithSuffix/index.d.ts +0 -3
  451. package/es/ProForm/components/old/InputWithSuffix/index.js +0 -46
  452. package/es/ProForm/components/old/InputWithSuffix/propsTypes.d.ts +0 -11
  453. package/es/ProForm/components/old/InputWithSuffix/propsTypes.js +0 -1
  454. package/es/ProForm/components/old/ProAddress/index.d.ts +0 -27
  455. package/es/ProForm/components/old/ProAddress/index.js +0 -298
  456. package/es/ProForm/components/old/ProAddress/propsTypes.d.ts +0 -16
  457. package/es/ProForm/components/old/ProAddress/propsTypes.js +0 -1
  458. package/es/ProForm/components/old/ProCertNo/index.d.ts +0 -14
  459. package/es/ProForm/components/old/ProCertNo/index.js +0 -66
  460. package/es/ProForm/components/old/ProCertNo/propsType.d.ts +0 -18
  461. package/es/ProForm/components/old/ProCertNo/propsType.js +0 -1
  462. package/es/ProForm/components/old/ProCertValidity/index.d.ts +0 -9
  463. package/es/ProForm/components/old/ProCertValidity/index.js +0 -188
  464. package/es/ProForm/components/old/ProCertValidity/propsType.d.ts +0 -19
  465. package/es/ProForm/components/old/ProCertValidity/propsType.js +0 -1
  466. package/es/ProForm/components/old/ProRangeBox/index.d.ts +0 -2
  467. package/es/ProForm/components/old/ProRangeBox/index.js +0 -97
  468. package/es/ProForm/components/old/ProRangeBox/propsType.d.ts +0 -3
  469. package/es/ProForm/components/old/ProRangeBox/propsType.js +0 -1
  470. package/es/ProForm/utils/_useChanged.d.ts +0 -8
  471. package/es/ProForm/utils/_useChanged.js +0 -25
  472. package/es/ProForm/utils/_useListChanged.d.ts +0 -16
  473. package/es/ProForm/utils/_useListChanged.js +0 -93
  474. package/es/ProUpload/style/fileItem.less +0 -159
  475. package/es/old/ProCertValidity/index.d.ts +0 -9
  476. package/es/old/ProCertValidity/index.js +0 -188
  477. package/es/old/ProCertValidity/propsType.d.ts +0 -19
  478. package/es/old/ProCertValidity/propsType.js +0 -1
  479. package/es/old/ProEditableTable/index.d.ts +0 -4
  480. package/es/old/ProEditableTable/index.js +0 -594
  481. package/es/old/ProEditableTable/propsType.d.ts +0 -68
  482. package/es/old/ProEditableTable/propsType.js +0 -1
  483. package/es/old/ProEditableTable/style/index.less +0 -75
  484. package/es/old/ProEditableTable/utils.d.ts +0 -29
  485. package/es/old/ProEditableTable/utils.js +0 -323
  486. package/lib/ProEditTable/components/RcTable/VirtualTable.d.ts +0 -3
  487. package/lib/ProEditTable/components/RcTable/VirtualTable.js +0 -14
  488. package/lib/ProForm/components/combination/ProCombination/index.d.ts +0 -6
  489. package/lib/ProForm/components/combination/ProCombination/index.js +0 -213
  490. package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +0 -68
  491. package/lib/ProForm/components/combination/ProCombination/style/index.less +0 -18
  492. package/lib/ProForm/components/old/EnumSelect/hooks/useRequestList.d.ts +0 -33
  493. package/lib/ProForm/components/old/EnumSelect/hooks/useRequestList.js +0 -115
  494. package/lib/ProForm/components/old/EnumSelect/index.d.ts +0 -4
  495. package/lib/ProForm/components/old/EnumSelect/index.js +0 -279
  496. package/lib/ProForm/components/old/EnumSelect/interface.d.ts +0 -29
  497. package/lib/ProForm/components/old/EnumSelect/interface.js +0 -5
  498. package/lib/ProForm/components/old/EnumSelect/style/index.less +0 -113
  499. package/lib/ProForm/components/old/InputRange/index.d.ts +0 -16
  500. package/lib/ProForm/components/old/InputRange/index.js +0 -108
  501. package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +0 -3
  502. package/lib/ProForm/components/old/InputWithSuffix/index.js +0 -53
  503. package/lib/ProForm/components/old/InputWithSuffix/propsTypes.d.ts +0 -11
  504. package/lib/ProForm/components/old/InputWithSuffix/propsTypes.js +0 -5
  505. package/lib/ProForm/components/old/ProAddress/index.d.ts +0 -27
  506. package/lib/ProForm/components/old/ProAddress/index.js +0 -306
  507. package/lib/ProForm/components/old/ProAddress/propsTypes.d.ts +0 -16
  508. package/lib/ProForm/components/old/ProAddress/propsTypes.js +0 -5
  509. package/lib/ProForm/components/old/ProCertNo/index.d.ts +0 -14
  510. package/lib/ProForm/components/old/ProCertNo/index.js +0 -73
  511. package/lib/ProForm/components/old/ProCertNo/propsType.d.ts +0 -18
  512. package/lib/ProForm/components/old/ProCertNo/propsType.js +0 -5
  513. package/lib/ProForm/components/old/ProCertValidity/index.d.ts +0 -9
  514. package/lib/ProForm/components/old/ProCertValidity/index.js +0 -193
  515. package/lib/ProForm/components/old/ProCertValidity/propsType.d.ts +0 -19
  516. package/lib/ProForm/components/old/ProCertValidity/propsType.js +0 -5
  517. package/lib/ProForm/components/old/ProRangeBox/index.d.ts +0 -2
  518. package/lib/ProForm/components/old/ProRangeBox/index.js +0 -105
  519. package/lib/ProForm/components/old/ProRangeBox/propsType.d.ts +0 -3
  520. package/lib/ProForm/components/old/ProRangeBox/propsType.js +0 -5
  521. package/lib/ProForm/utils/_useChanged.d.ts +0 -8
  522. package/lib/ProForm/utils/_useChanged.js +0 -32
  523. package/lib/ProForm/utils/_useListChanged.d.ts +0 -16
  524. package/lib/ProForm/utils/_useListChanged.js +0 -100
  525. package/lib/ProUpload/style/fileItem.less +0 -159
  526. package/lib/old/ProCertValidity/index.d.ts +0 -9
  527. package/lib/old/ProCertValidity/index.js +0 -193
  528. package/lib/old/ProCertValidity/propsType.d.ts +0 -19
  529. package/lib/old/ProCertValidity/propsType.js +0 -5
  530. package/lib/old/ProEditableTable/index.d.ts +0 -4
  531. package/lib/old/ProEditableTable/index.js +0 -601
  532. package/lib/old/ProEditableTable/propsType.d.ts +0 -68
  533. package/lib/old/ProEditableTable/propsType.js +0 -5
  534. package/lib/old/ProEditableTable/style/index.less +0 -75
  535. package/lib/old/ProEditableTable/utils.d.ts +0 -29
  536. package/lib/old/ProEditableTable/utils.js +0 -330
  537. /package/es/ProForm/components/combination/{ProCombination → ProRangeLimit}/propsType.js +0 -0
  538. /package/lib/ProForm/components/combination/{ProCombination → ProRangeLimit}/propsType.js +0 -0
@@ -1,298 +0,0 @@
1
- import "antd/es/input/style";
2
- import _Input from "antd/es/input";
3
- import "antd/es/col/style";
4
- import _Col from "antd/es/col";
5
- import "antd/es/row/style";
6
- import _Row from "antd/es/row";
7
- import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
8
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
9
- import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
10
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
11
- import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
12
- import _extends from "@babel/runtime/helpers/esm/extends";
13
- import "antd/es/select/style";
14
- import _Select from "antd/es/select";
15
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
16
- import { useEffect, useState } from 'react';
17
- var Option = _Select.Option;
18
- var defaultStyle = {
19
- marginRight: '15px',
20
- minWidth: '140px'
21
- };
22
- // 全量数据时 dataSourse isAllData必传 <ProAddress dataSource={mockData} isAllData/>,
23
- // 逐级数据时 service params isALLData={false} <ProAddress service={AndCity} isAllData={false} params={params} />
24
- // normalize 可以改变表单获取值的code or name
25
- export var transferAddressInfoToRegion = function transferAddressInfoToRegion() {
26
- return {
27
- normalize: function normalize(value) {
28
- var _ref = value || {},
29
- province = _ref.province,
30
- city = _ref.city,
31
- secondCity = _ref.secondCity,
32
- detail = _ref.detail;
33
- return {
34
- province: province === null || province === void 0 ? void 0 : province.code,
35
- city: city === null || city === void 0 ? void 0 : city.code,
36
- county: secondCity === null || secondCity === void 0 ? void 0 : secondCity.code,
37
- detail: detail,
38
- address: detail
39
- };
40
- },
41
- getValueProps: function getValueProps(value) {
42
- var _ref2 = value || {},
43
- province = _ref2.province,
44
- city = _ref2.city,
45
- county = _ref2.county,
46
- address = _ref2.address;
47
- return {
48
- value: {
49
- province: {
50
- code: province || null
51
- },
52
- city: {
53
- code: city || null
54
- },
55
- secondCity: {
56
- code: county || null
57
- },
58
- address: address || null,
59
- detail: address || null
60
- }
61
- };
62
- }
63
- };
64
- };
65
- export function ProAddress(_ref3) {
66
- var props = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3));
67
- var value = props.value,
68
- onChange = props.onChange,
69
- disabled = props.disabled,
70
- service = props.service,
71
- params = props.params,
72
- _props$dataSource = props.dataSource,
73
- dataSource = _props$dataSource === void 0 ? [] : _props$dataSource,
74
- defaultProps = props.defaultProps,
75
- _props$isAllData = props.isAllData,
76
- isAllData = _props$isAllData === void 0 ? true : _props$isAllData;
77
- var _ref4 = value || {},
78
- province = _ref4.province,
79
- city = _ref4.city,
80
- secondCity = _ref4.secondCity,
81
- detail = _ref4.detail;
82
- var _useState = useState([]),
83
- _useState2 = _slicedToArray(_useState, 2),
84
- provinces = _useState2[0],
85
- setProvinces = _useState2[1];
86
- var _useState3 = useState([]),
87
- _useState4 = _slicedToArray(_useState3, 2),
88
- citys = _useState4[0],
89
- setCitys = _useState4[1];
90
- var _useState5 = useState([]),
91
- _useState6 = _slicedToArray(_useState5, 2),
92
- secondCitys = _useState6[0],
93
- setSecondCitys = _useState6[1];
94
- var queryCity = /*#__PURE__*/function () {
95
- var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(code, type) {
96
- var cityList, _cityList, newList, _secondCitys;
97
- return _regeneratorRuntime().wrap(function _callee$(_context) {
98
- while (1) switch (_context.prev = _context.next) {
99
- case 0:
100
- // 全量数据时
101
- if (isAllData && type === 'city') {
102
- cityList = dataSource.filter(function (item) {
103
- return item.code == code;
104
- });
105
- setCitys(cityList[0].children);
106
- } else if (isAllData && type === 'secondCity') {
107
- _cityList = dataSource.filter(function (item) {
108
- return item.code == (province === null || province === void 0 ? void 0 : province.code);
109
- });
110
- newList = _cityList[0].children;
111
- _secondCitys = newList.filter(function (item) {
112
- return item.code == (city === null || city === void 0 ? void 0 : city.code);
113
- });
114
- setSecondCitys(_secondCitys[0].children);
115
- }
116
- // 逐级查询时
117
- if (!isAllData) {
118
- service(_objectSpread(_objectSpread({}, params), {}, {
119
- valueParentCode: code
120
- })).then(function (res) {
121
- var _res$data;
122
- if (res && ((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length)) {
123
- if (type === 'city') {
124
- setCitys(res ? res.data : []);
125
- } else if (type === 'secondCity') {
126
- setSecondCitys(res ? res.data : []);
127
- }
128
- }
129
- });
130
- }
131
- case 2:
132
- case "end":
133
- return _context.stop();
134
- }
135
- }, _callee);
136
- }));
137
- return function queryCity(_x, _x2) {
138
- return _ref5.apply(this, arguments);
139
- };
140
- }();
141
- var handleProvinceChange = function handleProvinceChange(val) {
142
- if (!val) {
143
- onChange && onChange({
144
- province: {},
145
- city: {},
146
- secondCity: {},
147
- detail: undefined
148
- });
149
- return;
150
- }
151
- var provinceDto = provinces.find(function (item) {
152
- return item.code === val;
153
- });
154
- onChange && onChange({
155
- province: {
156
- name: provinceDto === null || provinceDto === void 0 ? void 0 : provinceDto.name,
157
- code: provinceDto === null || provinceDto === void 0 ? void 0 : provinceDto.code
158
- },
159
- city: {},
160
- secondCity: {},
161
- detail: undefined
162
- });
163
- };
164
- var handleCityChange = function handleCityChange(val) {
165
- if (!val) {
166
- onChange && onChange(_objectSpread(_objectSpread({}, value), {}, {
167
- city: {},
168
- secondCity: {},
169
- detail: undefined
170
- }));
171
- return;
172
- }
173
- var cityDto = citys.find(function (item) {
174
- return item.code === val;
175
- });
176
- onChange && onChange(_objectSpread(_objectSpread({}, value), {}, {
177
- city: {
178
- name: cityDto.name,
179
- code: cityDto.code
180
- },
181
- secondCity: {},
182
- detail: undefined
183
- }));
184
- };
185
- var handleSecondCityChange = function handleSecondCityChange(val) {
186
- if (!val) {
187
- onChange && onChange(_objectSpread(_objectSpread({}, value), {}, {
188
- secondCity: {},
189
- detail: undefined
190
- }));
191
- return;
192
- }
193
- var secondCityDto = secondCitys.find(function (item) {
194
- return item.code === val;
195
- });
196
- onChange && onChange(_objectSpread(_objectSpread({}, value), {}, {
197
- secondCity: {
198
- name: secondCityDto.name,
199
- code: secondCityDto.code
200
- },
201
- detail: undefined
202
- }));
203
- };
204
- var handleDetailChange = function handleDetailChange(e) {
205
- onChange && onChange(_objectSpread(_objectSpread({}, value), {}, {
206
- detail: e.target.value
207
- }));
208
- };
209
- useEffect(function () {
210
- if (!isAllData) {
211
- service(_objectSpread(_objectSpread({}, params), {}, {
212
- valueParentCode: province === null || province === void 0 ? void 0 : province.code
213
- })).then(function (res) {
214
- setProvinces(res.data);
215
- });
216
- }
217
- }, []);
218
- useEffect(function () {
219
- dataSource.length && setProvinces(dataSource);
220
- }, [dataSource === null || dataSource === void 0 ? void 0 : dataSource.length]);
221
- useEffect(function () {
222
- (province === null || province === void 0 ? void 0 : province.code) && queryCity(province.code, 'city');
223
- setSecondCitys([]);
224
- }, [province === null || province === void 0 ? void 0 : province.code]);
225
- useEffect(function () {
226
- (city === null || city === void 0 ? void 0 : city.code) && queryCity(city.code, 'secondCity');
227
- }, [city === null || city === void 0 ? void 0 : city.code]);
228
- return _jsxs(_Row, {
229
- gutter: 10,
230
- children: [_jsx(_Col, {
231
- span: 6,
232
- children: _jsx(_Select, _objectSpread(_objectSpread({
233
- disabled: disabled,
234
- value: province === null || province === void 0 ? void 0 : province.code,
235
- placeholder: "\u8BF7\u9009\u62E9\u7701\u4EFD",
236
- onChange: handleProvinceChange,
237
- style: defaultStyle,
238
- getPopupContainer: function getPopupContainer(trigger) {
239
- return trigger === null || trigger === void 0 ? void 0 : trigger.parentElement;
240
- }
241
- }, defaultProps), {}, {
242
- children: provinces === null || provinces === void 0 ? void 0 : provinces.map(function (item) {
243
- return _jsxs(Option, {
244
- value: item.code,
245
- children: [item.code, "-", item.name]
246
- }, item.code);
247
- })
248
- }))
249
- }), _jsx(_Col, {
250
- span: 6,
251
- children: _jsx(_Select, _objectSpread(_objectSpread({
252
- disabled: disabled,
253
- value: city === null || city === void 0 ? void 0 : city.code,
254
- placeholder: "\u8BF7\u9009\u62E9\u5E02",
255
- onChange: handleCityChange,
256
- style: defaultStyle,
257
- getPopupContainer: function getPopupContainer(trigger) {
258
- return trigger === null || trigger === void 0 ? void 0 : trigger.parentElement;
259
- }
260
- }, defaultProps), {}, {
261
- children: citys === null || citys === void 0 ? void 0 : citys.map(function (item) {
262
- return _jsxs(Option, {
263
- value: item.code,
264
- children: [item.code, "-", item.name]
265
- }, item.code);
266
- })
267
- }))
268
- }), _jsx(_Col, {
269
- span: 6,
270
- children: _jsx(_Select, _objectSpread(_objectSpread({
271
- disabled: disabled,
272
- value: secondCity === null || secondCity === void 0 ? void 0 : secondCity.code,
273
- placeholder: "\u8BF7\u9009\u62E9\u533A/\u53BF",
274
- onChange: handleSecondCityChange,
275
- style: defaultStyle,
276
- getPopupContainer: function getPopupContainer(trigger) {
277
- return trigger === null || trigger === void 0 ? void 0 : trigger.parentElement;
278
- }
279
- }, defaultProps), {}, {
280
- children: secondCitys === null || secondCitys === void 0 ? void 0 : secondCitys.map(function (item) {
281
- return _jsxs(Option, {
282
- value: item.code,
283
- children: [item.code, "-", item.name]
284
- }, item.code);
285
- })
286
- }))
287
- }), _jsx(_Col, {
288
- span: 6,
289
- children: _jsx(_Input, {
290
- disabled: disabled,
291
- value: detail,
292
- placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740",
293
- onChange: handleDetailChange
294
- })
295
- })]
296
- });
297
- }
298
- export default ProAddress;
@@ -1,16 +0,0 @@
1
- export interface ValueProps {
2
- province?: any;
3
- city?: any;
4
- secondCity?: any;
5
- detail?: string;
6
- }
7
- export interface ProAddressPropsType {
8
- value?: ValueProps;
9
- onChange?: (value: ValueProps) => void;
10
- disabled?: boolean;
11
- service?: any;
12
- params?: object;
13
- dataSource?: any;
14
- defaultProps?: object;
15
- isAllData: boolean;
16
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import type { IProps } from './propsType';
3
- /**
4
- * 证件号码 + 证件类型
5
- * @date 2022-01-06
6
- * @param {any} onChange
7
- * @param {any} disabled=false
8
- * @param {any} isRange=false
9
- * @param {any} getPopupContainer=defaultPopupContainer
10
- * @param {any} ...restProps}:ProCertValidityPropsType
11
- * @returns {any}
12
- */
13
- export declare const ProCertNo: import("react").ForwardRefExoticComponent<IProps & import("react").RefAttributes<unknown>>;
14
- export default ProCertNo;
@@ -1,66 +0,0 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
- import "antd/es/select/style";
3
- import _Select from "antd/es/select";
4
- import "antd/es/form/style";
5
- import _Form from "antd/es/form";
6
- import "antd/es/input/style";
7
- import _Input from "antd/es/input";
8
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
9
- var _excluded = ["dataSource", "nameKey", "codeKey"];
10
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
- import { forwardRef } from 'react';
12
- /**
13
- * 证件号码 + 证件类型
14
- * @date 2022-01-06
15
- * @param {any} onChange
16
- * @param {any} disabled=false
17
- * @param {any} isRange=false
18
- * @param {any} getPopupContainer=defaultPopupContainer
19
- * @param {any} ...restProps}:ProCertValidityPropsType
20
- * @returns {any}
21
- */
22
- export var ProCertNo = /*#__PURE__*/forwardRef(function (_ref, ref) {
23
- var _certTypeProps$fileNa, _certTypeProps$rules, _restCertTypeProps$pl, _certNoProps$fileName, _certNoProps$rules, _certNoProps$placehol;
24
- var certNoProps = _ref.certNoProps,
25
- certTypeProps = _ref.certTypeProps;
26
- var _certTypeProps$dataSo = certTypeProps.dataSource,
27
- dataSource = _certTypeProps$dataSo === void 0 ? [] : _certTypeProps$dataSo,
28
- _certTypeProps$nameKe = certTypeProps.nameKey,
29
- nameKey = _certTypeProps$nameKe === void 0 ? 'name' : _certTypeProps$nameKe,
30
- _certTypeProps$codeKe = certTypeProps.codeKey,
31
- codeKey = _certTypeProps$codeKe === void 0 ? 'code' : _certTypeProps$codeKe,
32
- restCertTypeProps = _objectWithoutProperties(certTypeProps, _excluded);
33
- return _jsxs(_Input.Group, {
34
- compact: true,
35
- children: [_jsx(_Form.Item, {
36
- noStyle: true,
37
- name: (_certTypeProps$fileNa = certTypeProps.fileName) !== null && _certTypeProps$fileNa !== void 0 ? _certTypeProps$fileNa : 'certType',
38
- rules: (_certTypeProps$rules = certTypeProps.rules) !== null && _certTypeProps$rules !== void 0 ? _certTypeProps$rules : [],
39
- children: _jsx(_Select, _objectSpread(_objectSpread({
40
- style: {
41
- width: '40%'
42
- }
43
- }, restCertTypeProps), {}, {
44
- placeholder: (_restCertTypeProps$pl = restCertTypeProps === null || restCertTypeProps === void 0 ? void 0 : restCertTypeProps.placeholder) !== null && _restCertTypeProps$pl !== void 0 ? _restCertTypeProps$pl : '请选择',
45
- children: (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) && dataSource.map(function (item) {
46
- return _jsx(_Select.Option, {
47
- value: item[codeKey],
48
- children: item[nameKey]
49
- }, item[codeKey]);
50
- })
51
- }))
52
- }), _jsx(_Form.Item, {
53
- noStyle: true,
54
- name: (_certNoProps$fileName = certNoProps.fileName) !== null && _certNoProps$fileName !== void 0 ? _certNoProps$fileName : 'certNo',
55
- rules: (_certNoProps$rules = certNoProps.rules) !== null && _certNoProps$rules !== void 0 ? _certNoProps$rules : [],
56
- children: _jsx(_Input, _objectSpread(_objectSpread({
57
- style: {
58
- width: '60%'
59
- }
60
- }, certNoProps), {}, {
61
- placeholder: (_certNoProps$placehol = certNoProps === null || certNoProps === void 0 ? void 0 : certNoProps.placeholder) !== null && _certNoProps$placehol !== void 0 ? _certNoProps$placehol : '请输入'
62
- }))
63
- })]
64
- });
65
- });
66
- export default ProCertNo;
@@ -1,18 +0,0 @@
1
- import { InputProps, SelectProps } from 'antd';
2
- import { Rule } from 'antd/es/form';
3
- interface ICertTypeProps extends SelectProps<any> {
4
- dataSource: [];
5
- nameKey?: string;
6
- codeKey?: string;
7
- fileName?: string;
8
- rules?: Rule[];
9
- }
10
- interface ICertNoProps extends InputProps {
11
- fileName?: string;
12
- rules?: Rule[];
13
- }
14
- export interface IProps {
15
- certNoProps: ICertNoProps;
16
- certTypeProps: ICertTypeProps;
17
- }
18
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ProCertValidityPropsType } from './propsType';
3
- /**
4
- * 继承了antd原本DatePicker 与 RangePicker接口,
5
- * 可以在这里使用所有原有antd DatePicker的属性和事件,
6
- * 并根据自身需要进行扩展
7
- */
8
- export declare const ProCertValidity: import("react").ForwardRefExoticComponent<ProCertValidityPropsType & import("react").RefAttributes<unknown>>;
9
- export default ProCertValidity;
@@ -1,188 +0,0 @@
1
- import "antd/es/checkbox/style";
2
- import _Checkbox from "antd/es/checkbox";
3
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
- import "antd/es/input/style";
5
- import _Input from "antd/es/input";
6
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
7
- import "antd/es/date-picker/style";
8
- import _DatePicker from "antd/es/date-picker";
9
- var _excluded = ["value", "onChange", "disabled", "isRange", "getPopupContainer", "showForever", "proformmode"];
10
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
- // @ts-nocheck
12
-
13
- import moment from 'moment';
14
- import { forwardRef, useMemo, useRef } from 'react';
15
- var RangePicker = _DatePicker.RangePicker;
16
- var defaultFormatDate = 'YYYY-MM-DD';
17
- var defaultPopupContainer = function defaultPopupContainer(triggerNode) {
18
- return triggerNode.parentNode || document.body;
19
- };
20
- // 校验当前时间是否永久
21
- var checkIsForever = function checkIsForever(date) {
22
- return date === '9999-01-01';
23
- };
24
- /**
25
- * 继承了antd原本DatePicker 与 RangePicker接口,
26
- * 可以在这里使用所有原有antd DatePicker的属性和事件,
27
- * 并根据自身需要进行扩展
28
- */
29
- export var ProCertValidity = /*#__PURE__*/forwardRef(function (_ref, ref) {
30
- var _value4;
31
- var value = _ref.value,
32
- onChange = _ref.onChange,
33
- _ref$disabled = _ref.disabled,
34
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
35
- _ref$isRange = _ref.isRange,
36
- isRange = _ref$isRange === void 0 ? false : _ref$isRange,
37
- _ref$getPopupContaine = _ref.getPopupContainer,
38
- getPopupContainer = _ref$getPopupContaine === void 0 ? defaultPopupContainer : _ref$getPopupContaine,
39
- _ref$showForever = _ref.showForever,
40
- showForever = _ref$showForever === void 0 ? true : _ref$showForever,
41
- proformmode = _ref.proformmode,
42
- restProps = _objectWithoutProperties(_ref, _excluded);
43
- var isChange = useRef(false);
44
- var rangeTime = useMemo(function () {
45
- value = value || {};
46
- if (isRange) {
47
- var _value2 = value,
48
- startTime = _value2.startTime,
49
- endTime = _value2.endTime,
50
- forever = _value2.forever;
51
- if (forever === 'Y') {
52
- return {
53
- range: [moment('9999-01-01'), moment('9999-01-01')],
54
- forever: true
55
- };
56
- }
57
- if (startTime && endTime) {
58
- var tempStartDate = moment(startTime).format(defaultFormatDate);
59
- var tempEndDate = moment(endTime).format(defaultFormatDate);
60
- if ((!forever || forever === 'N') && !checkIsForever(tempStartDate) && !checkIsForever(tempEndDate)) {
61
- return {
62
- range: [moment(startTime), moment(endTime)],
63
- forever: false
64
- };
65
- }
66
- if (checkIsForever(tempStartDate) && checkIsForever(tempEndDate) && !isChange.current) {
67
- return {
68
- range: [moment('9999-01-01'), moment('9999-01-01')],
69
- forever: true
70
- };
71
- }
72
- }
73
- } else {
74
- if (typeof value === 'string' || value._isAMomentObject) {
75
- var tempDate = moment(value).format(defaultFormatDate);
76
- if (tempDate && tempDate === '9999-01-01') {
77
- return {
78
- range: moment('9999-01-01'),
79
- forever: true
80
- };
81
- }
82
- return {
83
- range: moment(value),
84
- forever: false
85
- };
86
- }
87
- var _value3 = value,
88
- dateTime = _value3.dateTime,
89
- _forever = _value3.forever;
90
- if (_forever === 'Y') {
91
- return {
92
- range: moment('9999-01-01'),
93
- forever: true
94
- };
95
- }
96
- if (dateTime) {
97
- var _tempDate = moment(dateTime).format(defaultFormatDate);
98
- if ((!_forever || _forever === 'N') && _tempDate !== '9999-01-01') {
99
- return {
100
- range: moment(dateTime),
101
- forever: false
102
- };
103
- }
104
- if (_tempDate && _tempDate === '9999-01-01' && !isChange.current) {
105
- return {
106
- range: moment('9999-01-01'),
107
- forever: true
108
- };
109
- }
110
- }
111
- }
112
- return {};
113
- }, [value, (_value4 = value) === null || _value4 === void 0 ? void 0 : _value4.dateTime]);
114
- var changeRangeTime = function changeRangeTime(values) {
115
- onChange({
116
- startTime: values ? moment(values === null || values === void 0 ? void 0 : values[0]).format(defaultFormatDate) : null,
117
- endTime: values ? moment(values === null || values === void 0 ? void 0 : values[1]).format(defaultFormatDate) : null,
118
- forever: 'N'
119
- });
120
- };
121
- var changeDateTime = function changeDateTime(values) {
122
- onChange({
123
- dateTime: values ? values.format(defaultFormatDate) : null,
124
- forever: 'N'
125
- });
126
- };
127
- var changeForever = function changeForever(e) {
128
- var tempValue = isRange ? {
129
- dateTime: e.target.checked ? '9999-01-01' : null,
130
- forever: e.target.checked ? 'Y' : 'N',
131
- isLong: e.target.checked ? 'Y' : 'N'
132
- } : {
133
- startTime: '9999-01-01',
134
- endTime: '9999-01-01',
135
- forever: e.target.checked ? 'Y' : 'N'
136
- };
137
- isChange.current = true;
138
- onChange(tempValue);
139
- };
140
- if (proformmode === 'view') {
141
- var _value = '';
142
- if (rangeTime.forever) {
143
- _value = '长期';
144
- } else {
145
- _value = rangeTime.range ? moment(rangeTime.range).format(defaultFormatDate) : null;
146
- }
147
- return _jsx(_Input, {
148
- value: _value,
149
- disabled: true,
150
- bordered: false
151
- });
152
- }
153
- return _jsxs(_Input.Group, {
154
- compact: true,
155
- children: [isRange ? _jsx(RangePicker, _objectSpread({
156
- value: rangeTime.range,
157
- onChange: changeRangeTime,
158
- getPopupContainer: getPopupContainer,
159
- disabled: disabled || rangeTime.forever,
160
- style: {
161
- width: 'calc(100% - 84px)'
162
- }
163
- }, restProps)) : _jsx(_DatePicker, _objectSpread({
164
- value: rangeTime.range,
165
- onChange: changeDateTime,
166
- getPopupContainer: getPopupContainer,
167
- disabled: disabled || rangeTime.forever,
168
- style: {
169
- width: 'calc(100% - 84px)'
170
- }
171
- }, restProps)), showForever && _jsx("div", {
172
- className: "ant-input",
173
- style: {
174
- width: '84px'
175
- },
176
- children: _jsx(_Checkbox, {
177
- checked: rangeTime.forever,
178
- onChange: changeForever,
179
- disabled: disabled,
180
- style: {
181
- width: '60px'
182
- },
183
- children: "\u957F\u671F"
184
- })
185
- })]
186
- });
187
- });
188
- export default ProCertValidity;
@@ -1,19 +0,0 @@
1
- import { DatePickerProps, RangePickerProps } from 'antd/es/date-picker';
2
- import moment from 'moment';
3
- interface ICertValidityValuePropsType {
4
- dateTime?: moment.Moment | string;
5
- forever?: string;
6
- }
7
- interface ICertValidityRangeValuePropsType {
8
- startTime?: moment.Moment | string;
9
- endTime?: moment.Moment | string;
10
- forever?: string;
11
- }
12
- interface IProCertValidityExtraPropsType {
13
- value: ICertValidityValuePropsType | ICertValidityRangeValuePropsType | string;
14
- disabled?: boolean;
15
- isRange?: boolean;
16
- getPopupContainer?: ((node: HTMLElement) => HTMLElement) & ((node: HTMLElement) => Node & ParentNode);
17
- }
18
- export declare type ProCertValidityPropsType = (DatePickerProps & IProCertValidityExtraPropsType) | (RangePickerProps & IProCertValidityExtraPropsType);
19
- export {};
@@ -1,2 +0,0 @@
1
- import type { ProRangeBoxPropsType } from './propsType';
2
- export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): import("react/jsx-runtime").JSX.Element;