@zat-design/sisyphus-react 4.5.0 → 4.5.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 (290) hide show
  1. package/dist/index.esm.css +1 -1
  2. package/dist/less.esm.css +1 -1
  3. package/es/ProDrawerForm/components/ProDrawer/index.js +58 -86
  4. package/es/ProDrawerForm/components/ProModal/index.js +44 -20
  5. package/es/ProDrawerForm/hooks/useConfirmClose.js +70 -0
  6. package/es/ProDrawerForm/index.js +7 -11
  7. package/es/ProDrawerForm/utils/index.js +36 -0
  8. package/es/ProEditTable/components/RcTable/BaseTable.js +10 -0
  9. package/es/ProEditTable/components/Summary/index.js +3 -2
  10. package/es/ProEditTable/utils/tools.js +1 -1
  11. package/es/ProEnum/index.js +6 -3
  12. package/es/ProForm/components/combination/FormList/components/ActionButton.js +7 -6
  13. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +4 -3
  14. package/es/ProForm/components/combination/ProModalSelect/index.js +7 -2
  15. package/es/ProForm/components/combination/ProModalSelect/utils/mergeSelectedRows.js +26 -0
  16. package/es/ProForm/components/render/RenderFields.js +3 -1
  17. package/es/ProForm/hooks/useWatch.js +8 -10
  18. package/es/ProLayout/components/ProHeader/index.js +28 -15
  19. package/es/ProSelect/index.js +77 -178
  20. package/es/ProSelect/utils/index.js +174 -0
  21. package/es/ProTree/components/ProTreeSelect/index.js +41 -14
  22. package/es/ProTree/components/ProTreeSelect/style/index.less +13 -4
  23. package/es/ProTree/style/index.less +20 -9
  24. package/es/ProTree/utils.js +26 -0
  25. package/es/ProTreeModal/style/index.less +1 -1
  26. package/es/ProUpload/components/DragRender.js +2 -1
  27. package/es/ProUpload/index.js +1 -1
  28. package/es/ProViewer/propsType.js +3 -1
  29. package/es/index.js +10 -0
  30. package/package.json +7 -13
  31. package/es/FormsProvider/index.d.ts +0 -18
  32. package/es/ProAction/components/CheckModalContent/index.d.ts +0 -8
  33. package/es/ProAction/index.d.ts +0 -7
  34. package/es/ProAction/propsType.d.ts +0 -45
  35. package/es/ProConfigProvider/index.d.ts +0 -9
  36. package/es/ProConfigProvider/propsType.d.ts +0 -78
  37. package/es/ProDownload/index.d.ts +0 -6
  38. package/es/ProDownload/propsType.d.ts +0 -71
  39. package/es/ProDownload/utils.d.ts +0 -60
  40. package/es/ProDrawerForm/components/ProDrawer/index.d.ts +0 -7
  41. package/es/ProDrawerForm/components/ProModal/index.d.ts +0 -7
  42. package/es/ProDrawerForm/components/index.d.ts +0 -2
  43. package/es/ProDrawerForm/index.d.ts +0 -6
  44. package/es/ProDrawerForm/propsType.d.ts +0 -100
  45. package/es/ProDrawerForm/utils/index.d.ts +0 -6
  46. package/es/ProEditLabel/components/RenderProForm.d.ts +0 -4
  47. package/es/ProEditLabel/index.d.ts +0 -4
  48. package/es/ProEditLabel/propsType.d.ts +0 -163
  49. package/es/ProEditLabel/utils/index.d.ts +0 -7
  50. package/es/ProEditTable/components/ActionButton/index.d.ts +0 -2
  51. package/es/ProEditTable/components/RcTable/BaseTable.d.ts +0 -6
  52. package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +0 -7
  53. package/es/ProEditTable/components/RcTable/index.d.ts +0 -4
  54. package/es/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +0 -4
  55. package/es/ProEditTable/components/RenderField/index.d.ts +0 -3
  56. package/es/ProEditTable/components/RenderField/propsType.d.ts +0 -30
  57. package/es/ProEditTable/components/RenderField/tools.d.ts +0 -22
  58. package/es/ProEditTable/components/RenderToolbar/index.d.ts +0 -2
  59. package/es/ProEditTable/components/Summary/index.d.ts +0 -12
  60. package/es/ProEditTable/components/Validator/index.d.ts +0 -19
  61. package/es/ProEditTable/components/index.d.ts +0 -5
  62. package/es/ProEditTable/index.d.ts +0 -4
  63. package/es/ProEditTable/propsType.d.ts +0 -437
  64. package/es/ProEditTable/utils/config.d.ts +0 -25
  65. package/es/ProEditTable/utils/diffOriginal.d.ts +0 -22
  66. package/es/ProEditTable/utils/getDefaultProps.d.ts +0 -1
  67. package/es/ProEditTable/utils/index.d.ts +0 -23
  68. package/es/ProEditTable/utils/tools.d.ts +0 -128
  69. package/es/ProEditTable/utils/transform.d.ts +0 -13
  70. package/es/ProEditTable/utils/useEditTableError.d.ts +0 -7
  71. package/es/ProEditTable/utils/useShouldUpdateForTable.d.ts +0 -16
  72. package/es/ProEditTable/utils/validateAll.d.ts +0 -89
  73. package/es/ProEnum/components/Group.d.ts +0 -10
  74. package/es/ProEnum/components/Tag.d.ts +0 -7
  75. package/es/ProEnum/hooks/useEnum.d.ts +0 -29
  76. package/es/ProEnum/hooks/useEnumRequest.d.ts +0 -4
  77. package/es/ProEnum/hooks/useFrequentEnumRequest.d.ts +0 -14
  78. package/es/ProEnum/index.d.ts +0 -10
  79. package/es/ProEnum/propsType.d.ts +0 -310
  80. package/es/ProEnum/utils/eventCenter.d.ts +0 -1
  81. package/es/ProEnum/utils/frequentEnum.d.ts +0 -39
  82. package/es/ProEnum/utils/getEnum.d.ts +0 -47
  83. package/es/ProEnum/utils/getEnumLabel.d.ts +0 -2
  84. package/es/ProEnum/utils/index.d.ts +0 -84
  85. package/es/ProForm/components/Container.d.ts +0 -9
  86. package/es/ProForm/components/FormFooter/index.d.ts +0 -5
  87. package/es/ProForm/components/FormFooter/propsType.d.ts +0 -22
  88. package/es/ProForm/components/base/Checkbox/index.d.ts +0 -14
  89. package/es/ProForm/components/base/DatePicker/index.d.ts +0 -11
  90. package/es/ProForm/components/base/Input/index.d.ts +0 -3
  91. package/es/ProForm/components/base/Input/propsType.d.ts +0 -21
  92. package/es/ProForm/components/base/InputNumber/index.d.ts +0 -11
  93. package/es/ProForm/components/base/Radio/index.d.ts +0 -15
  94. package/es/ProForm/components/base/RangePicker/index.d.ts +0 -19
  95. package/es/ProForm/components/base/RangePicker/useDateRange.d.ts +0 -15
  96. package/es/ProForm/components/base/Select/index.d.ts +0 -11
  97. package/es/ProForm/components/base/Switch/index.d.ts +0 -10
  98. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +0 -10
  99. package/es/ProForm/components/base/TextArea/index.d.ts +0 -11
  100. package/es/ProForm/components/base/TimePicker/index.d.ts +0 -13
  101. package/es/ProForm/components/combination/Container/index.d.ts +0 -4
  102. package/es/ProForm/components/combination/Container/propsType.d.ts +0 -13
  103. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +0 -24
  104. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +0 -23
  105. package/es/ProForm/components/combination/FormList/components/Empty.d.ts +0 -13
  106. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +0 -20
  107. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +0 -12
  108. package/es/ProForm/components/combination/FormList/index.d.ts +0 -4
  109. package/es/ProForm/components/combination/FormList/propsType.d.ts +0 -69
  110. package/es/ProForm/components/combination/FormList/utils.d.ts +0 -18
  111. package/es/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +0 -9
  112. package/es/ProForm/components/combination/Group/component/ComRender.d.ts +0 -28
  113. package/es/ProForm/components/combination/Group/component/FlexibleGroup.d.ts +0 -10
  114. package/es/ProForm/components/combination/Group/hooks/index.d.ts +0 -34
  115. package/es/ProForm/components/combination/Group/index.d.ts +0 -9
  116. package/es/ProForm/components/combination/Group/propsType.d.ts +0 -99
  117. package/es/ProForm/components/combination/Group/utils/index.d.ts +0 -154
  118. package/es/ProForm/components/combination/ProCascader/index.d.ts +0 -4
  119. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +0 -48
  120. package/es/ProForm/components/combination/ProCascader/utils/index.d.ts +0 -14
  121. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +0 -33
  122. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +0 -4
  123. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +0 -106
  124. package/es/ProForm/components/combination/ProModalSelect/utils/index.d.ts +0 -1
  125. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +0 -4
  126. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +0 -85
  127. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +0 -4
  128. package/es/ProForm/components/combination/ProRangeLimit/propsType.d.ts +0 -23
  129. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +0 -9
  130. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +0 -33
  131. package/es/ProForm/components/index.d.ts +0 -29
  132. package/es/ProForm/components/render/ChangedWrapper.d.ts +0 -17
  133. package/es/ProForm/components/render/ConfirmWrapper.d.ts +0 -10
  134. package/es/ProForm/components/render/CustomComponentViewWrapper.d.ts +0 -30
  135. package/es/ProForm/components/render/Render.d.ts +0 -4
  136. package/es/ProForm/components/render/RenderFields.d.ts +0 -26
  137. package/es/ProForm/components/render/propsType.d.ts +0 -279
  138. package/es/ProForm/hooks/useControlled.d.ts +0 -1
  139. package/es/ProForm/hooks/useDeepCompareMemo.d.ts +0 -2
  140. package/es/ProForm/hooks/useFieldProps.d.ts +0 -4
  141. package/es/ProForm/hooks/useForm.d.ts +0 -8
  142. package/es/ProForm/hooks/useRules.d.ts +0 -16
  143. package/es/ProForm/hooks/useShouldUpdate.d.ts +0 -31
  144. package/es/ProForm/hooks/useWatch.d.ts +0 -22
  145. package/es/ProForm/index.d.ts +0 -6
  146. package/es/ProForm/propsType.d.ts +0 -143
  147. package/es/ProForm/utils/buildFormItemProps.d.ts +0 -25
  148. package/es/ProForm/utils/diffOriginal.d.ts +0 -10
  149. package/es/ProForm/utils/getDefaultProps.d.ts +0 -1
  150. package/es/ProForm/utils/index.d.ts +0 -109
  151. package/es/ProForm/utils/processDependencies.d.ts +0 -29
  152. package/es/ProForm/utils/reactiveValues.d.ts +0 -34
  153. package/es/ProForm/utils/rulesCreator.d.ts +0 -7
  154. package/es/ProForm/utils/transformNames.d.ts +0 -10
  155. package/es/ProForm/utils/transformValue.d.ts +0 -6
  156. package/es/ProForm/utils/valueType.d.ts +0 -70
  157. package/es/ProIcon/config/index.d.ts +0 -19
  158. package/es/ProIcon/index.d.ts +0 -4
  159. package/es/ProIcon/propsTypes.d.ts +0 -175
  160. package/es/ProIcon/utils/index.d.ts +0 -6
  161. package/es/ProLayout/components/Layout/Header/index.d.ts +0 -4
  162. package/es/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +0 -3
  163. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +0 -3
  164. package/es/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +0 -15
  165. package/es/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +0 -3
  166. package/es/ProLayout/components/Layout/Menu/index.d.ts +0 -4
  167. package/es/ProLayout/components/Layout/Notice/index.d.ts +0 -4
  168. package/es/ProLayout/components/Layout/index.d.ts +0 -3
  169. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +0 -98
  170. package/es/ProLayout/components/ProCollapse/index.d.ts +0 -3
  171. package/es/ProLayout/components/ProFooter/PropTypes.d.ts +0 -27
  172. package/es/ProLayout/components/ProFooter/index.d.ts +0 -4
  173. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +0 -206
  174. package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +0 -4
  175. package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.d.ts +0 -9
  176. package/es/ProLayout/components/ProHeader/components/ProBackBtn/propsType.d.ts +0 -4
  177. package/es/ProLayout/components/ProHeader/components/index.d.ts +0 -2
  178. package/es/ProLayout/components/ProHeader/index.d.ts +0 -4
  179. package/es/ProLayout/components/ProHeader/utils/index.d.ts +0 -5
  180. package/es/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +0 -7
  181. package/es/ProLayout/components/TabsManager/components/TabItem.d.ts +0 -26
  182. package/es/ProLayout/components/TabsManager/components/TabsContext.d.ts +0 -6
  183. package/es/ProLayout/components/TabsManager/components/TabsHeader.d.ts +0 -10
  184. package/es/ProLayout/components/TabsManager/hooks/useActiveTab.d.ts +0 -6
  185. package/es/ProLayout/components/TabsManager/hooks/useIframeRoute.d.ts +0 -25
  186. package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.d.ts +0 -18
  187. package/es/ProLayout/components/TabsManager/hooks/useTabsCache.d.ts +0 -31
  188. package/es/ProLayout/components/TabsManager/hooks/useTabsState.d.ts +0 -5
  189. package/es/ProLayout/components/TabsManager/index.d.ts +0 -7
  190. package/es/ProLayout/components/TabsManager/propTypes.d.ts +0 -89
  191. package/es/ProLayout/components/TabsManager/utils/index.d.ts +0 -47
  192. package/es/ProLayout/components/index.d.ts +0 -3
  193. package/es/ProLayout/index.d.ts +0 -20
  194. package/es/ProLayout/propTypes.d.ts +0 -533
  195. package/es/ProLayout/utils/index.d.ts +0 -43
  196. package/es/ProSelect/components/AdaptiveTooltip.d.ts +0 -4
  197. package/es/ProSelect/index.d.ts +0 -5
  198. package/es/ProSelect/propsType.d.ts +0 -160
  199. package/es/ProSelect/utils/index.d.ts +0 -4
  200. package/es/ProStep/components/Anchor/index.d.ts +0 -4
  201. package/es/ProStep/components/Item/index.d.ts +0 -3
  202. package/es/ProStep/components/LazyLoad/index.d.ts +0 -19
  203. package/es/ProStep/components/Listener/index.d.ts +0 -4
  204. package/es/ProStep/components/Step/index.d.ts +0 -5
  205. package/es/ProStep/index.d.ts +0 -11
  206. package/es/ProStep/propsType.d.ts +0 -224
  207. package/es/ProStep/utils/index.d.ts +0 -22
  208. package/es/ProStepTab/index.d.ts +0 -22
  209. package/es/ProStepTab/propsType.d.ts +0 -114
  210. package/es/ProTable/components/EditableCell/EditIcon.d.ts +0 -6
  211. package/es/ProTable/components/EditableCell/index.d.ts +0 -4
  212. package/es/ProTable/components/EditableCell/propsType.d.ts +0 -24
  213. package/es/ProTable/components/FormatColumn/index.d.ts +0 -22
  214. package/es/ProTable/components/FormatColumn/propsType.d.ts +0 -29
  215. package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -3
  216. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +0 -18
  217. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.d.ts +0 -8
  218. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.d.ts +0 -61
  219. package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -3
  220. package/es/ProTable/components/RcTable/index.d.ts +0 -4
  221. package/es/ProTable/components/RenderColumn/index.d.ts +0 -22
  222. package/es/ProTable/components/RenderEmptyText/index.d.ts +0 -3
  223. package/es/ProTable/components/RenderFooter/index.d.ts +0 -2
  224. package/es/ProTable/components/RenderSummary/index.d.ts +0 -3
  225. package/es/ProTable/components/RenderTableHeader/index.d.ts +0 -2
  226. package/es/ProTable/components/RenderTabs/index.d.ts +0 -4
  227. package/es/ProTable/components/TableResizable/index.d.ts +0 -13
  228. package/es/ProTable/components/TooltipTitle/index.d.ts +0 -11
  229. package/es/ProTable/components/index.d.ts +0 -31
  230. package/es/ProTable/hooks/useAntdTable.d.ts +0 -7
  231. package/es/ProTable/index.d.ts +0 -17
  232. package/es/ProTable/propsType.d.ts +0 -792
  233. package/es/ProTable/utils/columnStorage.d.ts +0 -35
  234. package/es/ProTable/utils/index.d.ts +0 -52
  235. package/es/ProTabs/components/Card/index.d.ts +0 -3
  236. package/es/ProTabs/components/index.d.ts +0 -1
  237. package/es/ProTabs/index.d.ts +0 -4
  238. package/es/ProTabs/propType.d.ts +0 -94
  239. package/es/ProThemeTools/component/ProTools/index.d.ts +0 -3
  240. package/es/ProThemeTools/component/index.d.ts +0 -1
  241. package/es/ProThemeTools/context/ThemeContext.d.ts +0 -43
  242. package/es/ProThemeTools/index.d.ts +0 -9
  243. package/es/ProThemeTools/propsType.d.ts +0 -170
  244. package/es/ProThemeTools/utils/index.d.ts +0 -51
  245. package/es/ProTooltip/index.d.ts +0 -3
  246. package/es/ProTooltip/propsType.d.ts +0 -57
  247. package/es/ProTree/components/AdaptiveTooltip.d.ts +0 -4
  248. package/es/ProTree/components/CloseIcon.d.ts +0 -2
  249. package/es/ProTree/components/List.d.ts +0 -17
  250. package/es/ProTree/components/ProTree.d.ts +0 -3
  251. package/es/ProTree/components/ProTreeSelect/index.d.ts +0 -5
  252. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +0 -439
  253. package/es/ProTree/components/SearchTitle.d.ts +0 -11
  254. package/es/ProTree/components/Tree.d.ts +0 -27
  255. package/es/ProTree/components/index.d.ts +0 -4
  256. package/es/ProTree/index.d.ts +0 -3
  257. package/es/ProTree/propsType.d.ts +0 -812
  258. package/es/ProTree/utils.d.ts +0 -52
  259. package/es/ProTreeModal/components/Cascader.d.ts +0 -14
  260. package/es/ProTreeModal/components/CloseIcon.d.ts +0 -2
  261. package/es/ProTreeModal/components/List.d.ts +0 -21
  262. package/es/ProTreeModal/components/SearchTitle.d.ts +0 -7
  263. package/es/ProTreeModal/components/SortableItem.d.ts +0 -12
  264. package/es/ProTreeModal/components/Tree.d.ts +0 -25
  265. package/es/ProTreeModal/components/Trigger.d.ts +0 -21
  266. package/es/ProTreeModal/components/index.d.ts +0 -6
  267. package/es/ProTreeModal/index.d.ts +0 -4
  268. package/es/ProTreeModal/propsType.d.ts +0 -298
  269. package/es/ProTreeModal/utils.d.ts +0 -39
  270. package/es/ProUpload/components/ButtonRender.d.ts +0 -20
  271. package/es/ProUpload/components/DragRender.d.ts +0 -21
  272. package/es/ProUpload/components/DraggableUploadListItem.d.ts +0 -2
  273. package/es/ProUpload/components/Example.d.ts +0 -10
  274. package/es/ProUpload/components/FileItem.d.ts +0 -33
  275. package/es/ProUpload/components/ImageRender.d.ts +0 -19
  276. package/es/ProUpload/index.d.ts +0 -4
  277. package/es/ProUpload/propsType.d.ts +0 -264
  278. package/es/ProUpload/uitls.d.ts +0 -3
  279. package/es/ProUtils/utils/index.d.ts +0 -6
  280. package/es/ProViewer/index.d.ts +0 -4
  281. package/es/ProViewer/propsType.d.ts +0 -35
  282. package/es/ProWaterMark/index.d.ts +0 -4
  283. package/es/ProWaterMark/propsType.d.ts +0 -6
  284. package/es/hooks/useDraggableRow.d.ts +0 -34
  285. package/es/index.d.ts +0 -47
  286. package/es/locale/en_US.d.ts +0 -176
  287. package/es/locale/index.d.ts +0 -15
  288. package/es/locale/zh_CN.d.ts +0 -176
  289. package/es/tokens.d.ts +0 -83
  290. package/es/utils/index.d.ts +0 -20
@@ -1,264 +0,0 @@
1
- import React from 'react';
2
- import { UploadFile } from 'antd/es/upload/interface';
3
- import type { UploadRequestOption } from '@rc-component/upload/es/interface';
4
- export type UploadType = 'drag' | 'button' | 'image';
5
- export interface UploadFileResType {
6
- /**
7
- * @description 上传文件返回的URL
8
- * @default -
9
- */
10
- url: string;
11
- /**
12
- * @description 允许扩展字段
13
- */
14
- [key: string]: any;
15
- }
16
- export interface ExampleModalType {
17
- /**
18
- * @description 弹窗宽度
19
- * @default -
20
- */
21
- width?: string | number;
22
- /**
23
- * @description 弹窗外层容器类名
24
- * @default -
25
- */
26
- wrapClassName?: string;
27
- /**
28
- * @description 允许扩展字段
29
- */
30
- [key: string]: any;
31
- }
32
- export interface FieldNamesType {
33
- /**
34
- * @description 文件唯一标识字段
35
- * @default -
36
- */
37
- uid?: number;
38
- /**
39
- * @description 文件名称字段
40
- * @default -
41
- */
42
- name?: string;
43
- /**
44
- * @description 文件URL字段
45
- * @default -
46
- */
47
- url?: string;
48
- /**
49
- * @description 文件状态字段
50
- * @default -
51
- */
52
- status?: 'done' | 'uploading' | 'error';
53
- }
54
- export interface ProUploadType {
55
- /**
56
- * @description 顶部的内容(button类型的上传不适用)
57
- * @default -
58
- */
59
- headerRender?: React.ReactNode | (() => React.ReactNode);
60
- /**
61
- * @description 是否过滤掉file对象中的originFileObj
62
- * @default false
63
- */
64
- filterOriginFileObj?: boolean;
65
- /**
66
- * @description 拖拽框底部内容
67
- * @default -
68
- */
69
- footerRender?: React.ReactNode | (() => React.ReactNode);
70
- /**
71
- * @description 自定义上传区域的内容
72
- * @default -
73
- */
74
- centerRender?: React.ReactNode | (() => React.ReactNode);
75
- /**
76
- * @description 自定义上传区域的文案
77
- * @default -
78
- */
79
- customTextRender?: React.ReactNode;
80
- /**
81
- * @description 是否显示示例弹窗
82
- * @default false
83
- */
84
- showExampleContent?: boolean;
85
- /**
86
- * @description 示例弹窗的内容
87
- * @default -
88
- */
89
- exampleContent?: React.ReactNode;
90
- /**
91
- * @description 示例弹窗的属性配置继承与antd 的Modal对话框
92
- * @default -
93
- */
94
- exampleModalProps?: ExampleModalType;
95
- /**
96
- * @description 接受上传的文件类型, '.png,.jpeg,.jpg,.xlsx,.xls,.json,.doc,.docx' 详见 input accept Attribute
97
- * @default -
98
- */
99
- accept?: string;
100
- /**
101
- * @description 控制文件的上传大小,单位MB
102
- * @default 10
103
- */
104
- size?: number;
105
- /**
106
- * @description 上传请求的地址
107
- * @default -
108
- */
109
- action?: string;
110
- /**
111
- * @description 组件的ui类型 drag 拖拽 button 上传按钮 image 类型
112
- * @default drag
113
- */
114
- uploadType: UploadType;
115
- /**
116
- * @description 上传格式提示文案
117
- * @default -
118
- */
119
- extraTipText?: string | (() => React.ReactNode);
120
- /**
121
- * @description 组件类型为button时可用, 参考 [antd button的api](https://ant-design.gitee.io/components/button-cn#api)
122
- * @default -
123
- */
124
- buttonProps?: Object;
125
- /**
126
- * @description 组件文案 仅按钮类型的可用。
127
- * @default -
128
- */
129
- buttonText?: string;
130
- /**
131
- * @description 上传所需额外参数或返回上传额外参数的方法
132
- * @default -
133
- */
134
- dataParams?: Object;
135
- /**
136
- * @description 用来设置控件的默认已经上传的文件列表
137
- * @default -
138
- */
139
- defaultValue?: UploadFile[];
140
- /**
141
- * @description 用来设置控件的已经上传的文件列表
142
- * @default -
143
- */
144
- value?: UploadFile[];
145
- /**
146
- * @description 是否禁用
147
- * @default false
148
- */
149
- disabled?: boolean;
150
- /**
151
- * @description 设置上传的请求头部,IE10 以上有效
152
- * @default -
153
- */
154
- headers?: {
155
- [key: string]: any;
156
- };
157
- /**
158
- * @description 限制上传数量。当为 1 时,始终用最新上传的文件代替当前文件
159
- * @default 1
160
- */
161
- maxCount?: number;
162
- /**
163
- * @description 上传请求的 http method
164
- * @default "post"
165
- */
166
- method?: 'post' | 'POST' | 'PUT' | 'PATCH' | 'put' | 'patch';
167
- /**
168
- * @description 发到后台的文件参数名
169
- * @default -
170
- */
171
- name?: string;
172
- /**
173
- * @description 查看示例title
174
- * @default "查看示例"
175
- */
176
- exampleTitle?: string | React.ReactNode;
177
- /**
178
- * @description 上传文件之前的钩子,参数为上传的文件,若返回 false 则停止上传。支持返回一个 Promise 对象,Promise 对象 reject 时则停止上传,resolve 时开始上传( resolve 传入 File 或 Blob 对象则上传 resolve 传入对象);也可以返回 Upload.LIST_IGNORE,此时列表中将不展示此文件。 注意:IE9 不支持该方法
179
- * @default -
180
- */
181
- beforeUpload?: (file: any, fileList: any) => boolean | Promise<File>;
182
- /**
183
- * @description 上传文件改变时的回调,详见 onChange
184
- * @default -
185
- */
186
- onChange?: (value: Array<UploadFile>) => void;
187
- /**
188
- * @description 点击下载文件时的回调,如果没有指定,则默认跳转到文件 url 对应的标签页
189
- * @default -
190
- */
191
- onDownload?: (file: UploadFile) => void;
192
- /**
193
- * @description 点击文件链接或预览图标时的回调
194
- * @default -
195
- */
196
- onPreview?: (file: UploadFile) => any;
197
- /**
198
- * @description 点击移除文件时的回调,返回值为 false 时不移除。支持返回一个 Promise 对象,Promise 对象 resolve(false) 或 reject 时不移除
199
- * @default -
200
- */
201
- onRemove?: (file: UploadFile) => boolean | Promise<any>;
202
- /**
203
- * @description 样式类名
204
- * @default -
205
- */
206
- className?: string;
207
- /**
208
- * @description 上传接口处理方法 返回一个数组 UploadFile【】
209
- * @default -
210
- */
211
- transformResponse?: (res: any) => UploadFileResType;
212
- /**
213
- * @description 可以调用组件的内部方法,例如:uploadStart方式
214
- * @default -
215
- */
216
- ref?: any;
217
- /**
218
- * @description 按钮类型的右侧辅助信息
219
- * @default -
220
- */
221
- afterRender?: React.ReactNode;
222
- /**
223
- * @description 是否展示文件列表
224
- * @default true
225
- */
226
- showUploadList?: boolean;
227
- /**
228
- * @description 文件对象的字段映射
229
- * @default true
230
- */
231
- fieldNames?: FieldNamesType;
232
- /**
233
- * @description 删除已经上传的文件时是否二次提示
234
- * @default false
235
- */
236
- isConfirmDelete?: boolean;
237
- /**
238
- * @description 组件ID
239
- * @default -
240
- */
241
- id?: string;
242
- /**
243
- * @description 查看模式
244
- * @default false
245
- */
246
- isView?: boolean;
247
- /**
248
- * @description 自定义上传实现
249
- * @default false
250
- */
251
- customRequest?: (option: UploadRequestOption) => void;
252
- }
253
- export interface DraggableUploadListItemType {
254
- /**
255
- * @description 文件对象
256
- * @default -
257
- */
258
- file: UploadFile<any>;
259
- /**
260
- * @description 子元素
261
- * @default -
262
- */
263
- children: React.ReactNode;
264
- }
@@ -1,3 +0,0 @@
1
- import { UploadFile } from 'antd/lib/upload/interface';
2
- export declare const validateSize: (size: number, file: UploadFile) => boolean;
3
- export declare const validateFileExt: (fileExts: string[], file: UploadFile) => boolean;
@@ -1,6 +0,0 @@
1
- export declare const valueTypeRender: {
2
- percentage: (val: any, precision: any) => string;
3
- permillage: (val: any, precision: any) => string;
4
- thousandth: (val: any, precision: any) => string;
5
- thousandthCNY: (val: any, precision: any) => string;
6
- };
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ProViewerPropsType } from './propsType';
3
- declare const ProViewer: React.ForwardRefExoticComponent<Omit<ProViewerPropsType, "ref"> & React.RefAttributes<unknown>>;
4
- export default ProViewer;
@@ -1,35 +0,0 @@
1
- import { ButtonProps, ModalProps } from 'antd';
2
- import React from 'react';
3
- export type ProViewerModePropsType = 'modal' | 'page';
4
- export type ProViewerFilePropsType = 'pdf' | 'img' | 'word' | 'excel';
5
- export type PreviewFileHandlerPropsType = () => PromiseLike<any>;
6
- export type BufferSource = ArrayBufferView | ArrayBuffer;
7
- export type BlobPart = string | Blob | BufferSource;
8
- declare module 'antd' {
9
- interface ModalProps {
10
- height?: string;
11
- }
12
- }
13
- export interface JumpPagePropsType {
14
- blob?: Blob;
15
- src?: string;
16
- }
17
- export interface StatePropsType {
18
- imgVisible?: boolean;
19
- modalVisible?: boolean;
20
- url: string;
21
- }
22
- export interface ProViewerPropsType {
23
- disabled?: boolean;
24
- mode: ProViewerModePropsType | string;
25
- fileType?: ProViewerFilePropsType;
26
- src?: string;
27
- onClick?: () => void;
28
- icon?: React.ReactNode;
29
- modalProps?: ModalProps;
30
- buttonProps?: Omit<ButtonProps, 'onClick'>;
31
- previewFile?: PreviewFileHandlerPropsType;
32
- previewData?: any;
33
- children?: any;
34
- [key: string]: any;
35
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { ProWaterMarkType } from './propsType';
3
- declare const ProWaterMark: React.FC<ProWaterMarkType>;
4
- export default ProWaterMark;
@@ -1,6 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { WatermarkProps } from 'antd';
3
- export interface ProWaterMarkType extends WatermarkProps {
4
- children?: ReactNode;
5
- [key: string]: any;
6
- }
@@ -1,34 +0,0 @@
1
- import React from 'react';
2
- import type { CollisionDetection, DragEndEvent, DragStartEvent } from '@dnd-kit/core';
3
- /**
4
- * 行拖拽 hook 公共实现(薄封装)
5
- * - 仅封装 dnd-kit 集成(useSortable + DndContext + SortableContext)
6
- * - 业务方各自处理拖拽手柄渲染、树形/简单 arrayMove、占位行检查、rowDraggable 等差异化逻辑
7
- */
8
- export interface UseDraggableRowStateOptions {
9
- id: string;
10
- disabled?: boolean;
11
- }
12
- export declare const useDraggableRowState: ({ id, disabled }: UseDraggableRowStateOptions) => {
13
- setNodeRef: (node: HTMLElement) => void;
14
- style: React.CSSProperties;
15
- listeners: import("@dnd-kit/core/dist/hooks/utilities").SyntheticListenerMap;
16
- attributes: import("@dnd-kit/core").DraggableAttributes;
17
- isDragging: boolean;
18
- };
19
- export interface SortableTableContextProps {
20
- /** 是否启用拖拽 */
21
- draggable?: boolean;
22
- /** 整体禁用(与 draggable=false 等价:不包装 DndContext) */
23
- disabled?: boolean;
24
- /** 排序条目 id 列表(rowKey) */
25
- items: (string | number)[];
26
- /** 拖拽开始回调 */
27
- onDragStart?: (event: DragStartEvent) => void | Promise<void>;
28
- /** 拖拽结束回调 */
29
- onDragEnd?: (event: DragEndEvent) => void | Promise<void>;
30
- /** 碰撞检测策略(默认 dnd-kit 内置 closestCenter) */
31
- collisionDetection?: CollisionDetection;
32
- children: React.ReactNode;
33
- }
34
- export declare const SortableTableContext: React.FC<SortableTableContextProps>;
package/es/index.d.ts DELETED
@@ -1,47 +0,0 @@
1
- /// <reference types="typings" />
2
- export { default as ProLayout } from './ProLayout';
3
- export { default as ProStep } from './ProStep';
4
- export { default as ProTabs } from './ProTabs';
5
- export { ProCollapse, ProFooter, ProHeader } from './ProLayout/components';
6
- export { default as ProTable } from './ProTable';
7
- export { default as ProTooltip } from './ProTooltip';
8
- export { default as ProViewer } from './ProViewer';
9
- export { default as ProEditTable } from './ProEditTable';
10
- export { default as ProDrawerForm } from './ProDrawerForm';
11
- export { default as ProEditLabel } from './ProEditLabel';
12
- export { default as ProStepTab } from './ProStepTab';
13
- export { default as ProForm } from './ProForm';
14
- export { ProFormProvider } from './ProForm';
15
- export * from './ProForm/components';
16
- export { default as ProSelect } from './ProSelect';
17
- export { default as ProEnum } from './ProEnum';
18
- export { default as ProIcon } from './ProIcon';
19
- export { default as ProDownload } from './ProDownload';
20
- export { default as ProWaterMark } from './ProWaterMark';
21
- export { default as ProConfigProvider } from './ProConfigProvider';
22
- export { default as FormsProvider } from './FormsProvider';
23
- export { default as ProUpload } from './ProUpload';
24
- export { default as ProThemeTools } from './ProThemeTools';
25
- export { ThemeProvider, useTheme } from './ProThemeTools';
26
- export { default as ProAction } from './ProAction';
27
- export * from './ProConfigProvider';
28
- export * from './locale';
29
- export { default as ProBackBtn } from './ProLayout/components/ProHeader/components/ProBackBtn';
30
- export type { ProConfigProviderType } from './ProConfigProvider';
31
- export type { ProFormType, ProFormColumnType } from './ProForm/propsType';
32
- export type { ProFormComponentType } from './ProForm/components';
33
- export type { ProTableType, ProTableColumnType, ProTableSummaryType, ProTableUseAntdTableType, } from './ProTable/propsType';
34
- export type { ProUploadType } from './ProUpload/propsType';
35
- export type { ProTabsType, ProTabsItemType } from './ProTabs/propType';
36
- export type { BreadcrumbColumnType, SubDescribeColumnType, DescribeColumnType, ProHeaderType, } from './ProLayout/components/ProHeader/PropTypes';
37
- export type { ProLayoutType } from './ProLayout/propTypes';
38
- export type { ProTooltipType } from './ProTooltip/propsType';
39
- export type { ProIconType } from './ProIcon/propsTypes';
40
- export type { ProTreeType, ProTreeSelectType } from './ProTree/propsType';
41
- export type { ProTreeModalType, ProTreeModalActionType } from './ProTreeModal/propsType';
42
- export type { ProEditTableType, ProEditTableColumnType, ProEditTableSummaryColumnType, ProEditTableSummaryConfigType, ProEditTableActionType, } from './ProEditTable/propsType';
43
- export type { ProStepType, ProStepContextType, ProStepItemType } from './ProStep/propsType';
44
- export type { ProDrawerFormType } from './ProDrawerForm/propsType';
45
- export type { ProModalSelectType, ProModalSelectConfigType, } from './ProForm/components/combination/ProModalSelect/propsType';
46
- export type { ProStepTabType, ProStepTabResultType } from './ProStepTab/propsType';
47
- export * from './tokens';
@@ -1,176 +0,0 @@
1
- declare const _default: {
2
- ProDrawerForm: {
3
- save: string;
4
- confirm: string;
5
- cancel: string;
6
- isSureClose: string;
7
- secondTipsWhenSave: string;
8
- };
9
- ProLayout: {
10
- tipAlt: string;
11
- closeAlt: string;
12
- tabMaxLimitMessage: string;
13
- };
14
- ProHeader: {
15
- versionTitle: string;
16
- confirm: string;
17
- cancel: string;
18
- confirmTitle: string;
19
- backText: string;
20
- copyTooltips: string[];
21
- };
22
- ProDownload: {
23
- errorMessage: string;
24
- };
25
- ProForm: {
26
- unfold: string;
27
- packUp: string;
28
- inputPlaceholder: string;
29
- treeSelectPlaceholder: string;
30
- selectPlaceHolder: string;
31
- switchText: string[];
32
- ruleStartEndText: string[];
33
- search: string;
34
- reset: string;
35
- ruleText: string;
36
- completeText: string;
37
- halfRuleText: string;
38
- formListActions: string[];
39
- formListConfirmMessage: string;
40
- noData: string;
41
- moreItems: string;
42
- };
43
- ProAction: {
44
- errorMessage: string;
45
- defaultTitle: string;
46
- };
47
- ProTable: {
48
- noData: string;
49
- resetColumnWidth: string;
50
- customColumns: string;
51
- transformResponseMsg: string;
52
- deselect: string;
53
- selectCurPage: string;
54
- selectAll: string;
55
- hasSelected: string;
56
- total: string;
57
- };
58
- ProAddressBar: {
59
- placeholder: string;
60
- detailPlaceholder: string;
61
- };
62
- ProTree: {
63
- inputPlaceholder: string;
64
- unExpand: string;
65
- expand: string;
66
- all: string;
67
- emptyTips: string;
68
- };
69
- ProUpload: {
70
- exampleTitle: string;
71
- errorInfoExt: string;
72
- errorInfoSize: string;
73
- buttonText: string;
74
- draggerSelect: string;
75
- draggerDelete: string;
76
- draggerTips: string;
77
- draggerBtnTxt: string;
78
- draggerFileExt: string;
79
- draggerLimitless: string;
80
- view: string;
81
- delete: string;
82
- download: string;
83
- };
84
- ProStep: {
85
- catalogue: string;
86
- };
87
- ProEditTable: {
88
- confirm: string;
89
- cancel: string;
90
- noData: string;
91
- clickAdd: string;
92
- select: string;
93
- enter: string;
94
- add: string;
95
- edit: string;
96
- copy: string;
97
- delete: string;
98
- mulDelete: string;
99
- save: string;
100
- custom: string;
101
- operation: string;
102
- total: string;
103
- onlyOneLineMsg: string;
104
- deletePoConfirmMsg: string;
105
- mulDeletePoConfirmMsg: string;
106
- };
107
- ProModalSelect: {
108
- checkMsg: string;
109
- select: string;
110
- total: string;
111
- };
112
- ProSelect: {
113
- checkMsg: string;
114
- select: string;
115
- };
116
- ProEnum: {
117
- errorDataSource: string;
118
- errorMessage: string;
119
- errorArrayMessage: string;
120
- errorNoEnumType: string;
121
- mainInitByRequest: string;
122
- mainInitByCache: string;
123
- requestError: string;
124
- mainInitOnce: string;
125
- sonInitEvent: string;
126
- };
127
- ProTreeModal: {
128
- checkMsg: string;
129
- select: string;
130
- input: string;
131
- errorArrayMessage: string;
132
- selectMin: string;
133
- selectMax: string;
134
- noCheck: string;
135
- checkAll: string;
136
- checkAll1: string;
137
- check: string;
138
- clearAll: string;
139
- checkNumber: string;
140
- noFinal: string;
141
- specifyMode: string[];
142
- };
143
- ProTimeLimit: {
144
- foreverText: string;
145
- };
146
- ProThemeTools: {
147
- title: string;
148
- copySuccess: string;
149
- layout: string;
150
- layoutMode: string[];
151
- themeColor: string;
152
- formLabel: string;
153
- bigText: string;
154
- flex: string[];
155
- switchText: string[];
156
- tableBorder: string;
157
- tableStripe: string;
158
- reset: string;
159
- };
160
- ProViewer: {
161
- preview: string;
162
- };
163
- ProIcon: {
164
- language: string;
165
- };
166
- RangePicker: {
167
- ranges: {
168
- today: string;
169
- lastWeek: string;
170
- lastMonth: string;
171
- last3Months: string;
172
- lastYear: string;
173
- };
174
- };
175
- };
176
- export default _default;
@@ -1,15 +0,0 @@
1
- import 'dayjs/locale/zh-cn';
2
- import 'dayjs/locale/en';
3
- /** 设置语言
4
- * lang当前语言
5
- * isReload 切换语言后是否刷新页面,一般在项目上使用都需要刷新
6
- */
7
- export declare const setLanguage: (lang: string, isReload?: boolean) => void;
8
- /**
9
- * @param str 待替换字符串 eg: 我是{name},年龄{age}
10
- * @param variables 变量对象 {name: 'xx', age: 23}
11
- * @returns 替换后字符串 我是xx,年龄23
12
- */
13
- export declare function formatMessage(str: string, variables: object): string;
14
- declare const _default: any;
15
- export default _default;