@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,29 +0,0 @@
1
- import type { NamePath } from 'antd/es/form/interface';
2
- /**
3
- * 定义支持多字段依赖的类型
4
- */
5
- export interface NamePathsDependencyType {
6
- type: 'namesPaths';
7
- paths: NamePath[][];
8
- }
9
- /**
10
- * dependencies支持的类型
11
- */
12
- export type Dependencies = NamePath[] | NamePathsDependencyType;
13
- /**
14
- * 处理表单依赖项
15
- *
16
- * 将常规的依赖项数组与namesPaths类型的依赖项进行处理
17
- * 对于namesPaths类型,将其转换为特定格式的字符串:
18
- * - 同一路径内的多级通过下划线(_)连接
19
- * - 不同路径之间通过连字符(-)连接
20
- *
21
- * 例如:
22
- * { type: 'namesPaths', paths: [['a', 'b'], ['c', 'd']] }
23
- * 会被转换成: ['a_b-c_d']
24
- *
25
- * @param dependencies 依赖项配置
26
- * @returns 处理后的依赖项数组
27
- */
28
- export declare function processDependencies(dependencies?: any): any;
29
- export default processDependencies;
@@ -1,34 +0,0 @@
1
- /// <reference types="react" />
2
- /** 列级响应式配置(可能为静态值或 ReactiveFunction) */
3
- export interface ReactiveProps {
4
- show?: any;
5
- disabled?: any;
6
- required?: any;
7
- rules?: any;
8
- fieldProps?: any;
9
- desensitization?: any;
10
- }
11
- /** 解析后的列级响应式值 */
12
- export interface ReactiveValues {
13
- show: any;
14
- disabled: any;
15
- required: any;
16
- rules: any;
17
- fieldProps: any;
18
- desensitization: any;
19
- }
20
- /** 持有解析值的 ref 集合 */
21
- export interface ReactiveRefs {
22
- showRef: React.MutableRefObject<any>;
23
- disabledRef: React.MutableRefObject<any>;
24
- requiredRef: React.MutableRefObject<any>;
25
- rulesRef: React.MutableRefObject<any>;
26
- fieldPropsRef: React.MutableRefObject<any>;
27
- desensitizationRef: React.MutableRefObject<any>;
28
- }
29
- /** 按当前表单值解析 show/disabled/required/rules/fieldProps/desensitization(纯函数,无副作用) */
30
- export declare const resolveReactiveValues: (reactiveProps: ReactiveProps, currentValues: any, ctx: any) => ReactiveValues;
31
- /** 比较解析值与上一次 ref 值是否有变化(纯函数,无副作用) */
32
- export declare const hasReactiveDiff: (refs: ReactiveRefs, next: ReactiveValues) => boolean;
33
- /** 将解析值写回 ref 集合 */
34
- export declare const commitReactiveValues: (refs: ReactiveRefs, next: ReactiveValues) => void;
@@ -1,7 +0,0 @@
1
- export declare const rulesCreator: ({ rules, label, isSelect, names, required }: {
2
- rules?: any[];
3
- label: any;
4
- isSelect: any;
5
- names: any;
6
- required: any;
7
- }) => any[];
@@ -1,10 +0,0 @@
1
- import { FormInstance, FormItemProps } from 'antd';
2
- import { NamePath } from 'antd/es/form/interface';
3
- interface TransformProps extends FormItemProps {
4
- names: NamePath[];
5
- form: FormInstance;
6
- namePath: any[];
7
- }
8
- type TransformFun = 'normalize' | 'getValueProps' | 'shouldUpdate' | 'name';
9
- declare const transformNames: (formItem: TransformProps, form: FormInstance, names: NamePath[], fieldName: string, type?: string) => Pick<TransformProps, TransformFun>;
10
- export default transformNames;
@@ -1,6 +0,0 @@
1
- import { FormInstance, FormItemProps } from 'antd';
2
- import { NamePath } from 'antd/es/form/interface';
3
- import type { StoreValue, Store } from '@rc-component/form/es/interface';
4
- import type { TransformType } from '../propsType';
5
- export declare const transformValue: (names: NamePath[], form: FormInstance, fieldName: NamePath, normalize?: (value: StoreValue, prevValue: StoreValue, allValues: Store) => StoreValue, getValueProps?: FormItemProps['getValueProps']) => TransformType;
6
- export default transformValue;
@@ -1,70 +0,0 @@
1
- /** 脱敏处理函数 */
2
- export declare const maskStringRangeWithRegex: (input: string, range: [number, number]) => string;
3
- declare const _default: {
4
- /** 年月日 */
5
- date: ({ type, toISOString, toCSTString, mode }: {
6
- type: any;
7
- toISOString: any;
8
- toCSTString: any;
9
- mode: any;
10
- }) => {};
11
- /** 年月日 时分秒 */
12
- dateTime: ({ type, toISOString, toCSTString, mode }: {
13
- type: any;
14
- toISOString: any;
15
- toCSTString: any;
16
- mode: any;
17
- }) => {};
18
- /** 年月日 00:00:00 */
19
- dateStartTime: ({ type, toISOString, toCSTString, mode }: {
20
- type: any;
21
- toISOString: any;
22
- toCSTString: any;
23
- mode: any;
24
- }) => {};
25
- /** 年月日 23:59:59 */
26
- dateEndTime: ({ type, toISOString, toCSTString, mode }: {
27
- type: any;
28
- toISOString: any;
29
- toCSTString: any;
30
- mode: any;
31
- }) => {};
32
- /** 年月日 00:00:00 ~ 年月日 23:59:59 */
33
- dateStartEndTime: ({ type, toISOString, toCSTString, mode }: {
34
- type: any;
35
- toISOString: any;
36
- toCSTString: any;
37
- mode: any;
38
- }) => {};
39
- /** 百分比 */
40
- percentage: ({ type, valueType }: {
41
- type: any;
42
- valueType: any;
43
- }) => {
44
- normalize: (value: any) => any;
45
- getValueProps: (value: any) => {
46
- value: any;
47
- };
48
- };
49
- /** 千分比 */
50
- permillage: ({ type, valueType }: {
51
- type: any;
52
- valueType: any;
53
- }) => {
54
- normalize: (value: any) => any;
55
- getValueProps: (value: any) => {
56
- value: any;
57
- };
58
- };
59
- /** 开关 YN转换 */
60
- switch: ({ switchValue }: {
61
- switchValue: any;
62
- }) => Error | {
63
- normalize: (value: boolean) => any;
64
- getValueProps: (value: any) => {
65
- checked: boolean;
66
- value: any;
67
- };
68
- };
69
- };
70
- export default _default;
@@ -1,19 +0,0 @@
1
- export declare const iconMap: {
2
- type: string;
3
- 'text-cn': string;
4
- 'text-en': string;
5
- }[];
6
- export declare const themeMap: {
7
- '#006AFF': string[];
8
- '#00BC70': string[];
9
- '#FF8C16': string[];
10
- '#A00F20': string[];
11
- '#31AF96': string[];
12
- };
13
- export declare const themeFillMap: {
14
- '#006AFF': string[];
15
- '#00BC70': string[];
16
- '#FF8C16': string[];
17
- '#A00F20': string[];
18
- '#31AF96': string[];
19
- };
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import type { ProIconType } from './propsTypes';
3
- declare const ProIcon: FC<ProIconType>;
4
- export default ProIcon;
@@ -1,175 +0,0 @@
1
- import { CSSProperties, ReactNode, MouseEventHandler, ComponentType, ReactElement } from 'react';
2
- import { ButtonProps } from 'antd/lib/button';
3
- /**
4
- * 图标模式
5
- * @description 定义图标的显示模式:纯图标或按钮形式
6
- */
7
- export type ProIconModeType = 'icon' | 'button';
8
- /**
9
- * 图标映射对象
10
- */
11
- interface ProIconMapType {
12
- /**
13
- * 图标类型
14
- * @description 唯一标识图标的类型名称
15
- * @default undefined
16
- */
17
- type: string;
18
- /**
19
- * 中文显示文本
20
- * @description 图标对应的中文描述
21
- * @default undefined
22
- */
23
- 'text-cn'?: string;
24
- /**
25
- * 英文显示文本
26
- * @description 图标对应的英文描述
27
- * @default undefined
28
- */
29
- 'text-en'?: string;
30
- }
31
- /**
32
- * 主题映射对象
33
- */
34
- interface ProIconThemeMapType {
35
- /**
36
- * 主题颜色映射
37
- * @description 不同主题下的颜色值数组
38
- * @default undefined
39
- */
40
- [key: string]: string[];
41
- }
42
- /**
43
- * 操作映射对象
44
- */
45
- interface ProIconActionMapType {
46
- /**
47
- * 主题颜色映射
48
- * @description 不同主题下的颜色映射
49
- * @default undefined
50
- */
51
- themeMap?: ProIconThemeMapType;
52
- /**
53
- * 主题填充颜色映射
54
- * @description 不同主题下的填充颜色映射
55
- * @default undefined
56
- */
57
- themeFillMap?: ProIconThemeMapType;
58
- /**
59
- * 渐变色值
60
- * @description 渐变色值数组
61
- * @default undefined
62
- */
63
- gradation?: string[];
64
- /**
65
- * 填充色值
66
- * @description 填充色值数组
67
- * @default undefined
68
- */
69
- fill?: string[];
70
- }
71
- export interface ProIconType {
72
- /**
73
- * 自定义 SVG 组件
74
- * @description 自定义 SVG React 组件或 SVG 文件路径,支持传入组件类型、组件实例或字符串路径,优先级高于 src 和 type
75
- * @default undefined
76
- */
77
- component?: ComponentType<any> | ReactElement | string;
78
- /**
79
- * 图标路径
80
- * @description 本地import引入的图标路径
81
- * @default undefined
82
- */
83
- src?: string;
84
- /**
85
- * 图标名称
86
- * @description 图标的类型名称,用于识别特定图标
87
- * @default null
88
- */
89
- type?: string | null;
90
- /**
91
- * 图标大小
92
- * @description 图标的大小,同时设置图标的width以及height
93
- * @default '1em'
94
- */
95
- size?: number | string;
96
- /**
97
- * 旋转角度
98
- * @description 图标旋转角度(IE9 无效)
99
- * @default undefined
100
- */
101
- rotate?: number;
102
- /**
103
- * 是否旋转
104
- * @description 图标是否旋转loading效果
105
- * @default false
106
- */
107
- spin?: boolean;
108
- /**
109
- * 图标颜色
110
- * @description 图标的颜色,设置svg的fill属性
111
- * @default undefined
112
- */
113
- color?: string;
114
- /**
115
- * 是否禁用
116
- * @description 设置图标为禁用状态
117
- * @default false
118
- */
119
- disabled?: boolean;
120
- /**
121
- * 提示信息
122
- * @description 鼠标悬停时显示的提示信息
123
- * @default undefined
124
- */
125
- tooltip?: string | ReactNode;
126
- /**
127
- * 是否跟随主题
128
- * @description 是否跟随系统主题色变化
129
- * @default false
130
- */
131
- theme?: boolean;
132
- /**
133
- * 点击事件
134
- * @description 图标的点击事件处理函数
135
- * @default undefined
136
- */
137
- onClick?: MouseEventHandler<SVGSVGElement>;
138
- /**
139
- * 自定义类名
140
- * @description 自定义图标的CSS类名
141
- * @default undefined
142
- */
143
- className?: string;
144
- /**
145
- * 自定义样式
146
- * @description 计算后的svg元素样式,优先级高于size/color/rotate属性
147
- * @default {}
148
- */
149
- style?: CSSProperties;
150
- /**
151
- * 显示模式
152
- * @description 图标的显示模式:图标或按钮
153
- * @default 'icon'
154
- */
155
- mode?: ProIconModeType;
156
- /**
157
- * 按钮属性
158
- * @description mode为button时的按钮属性,与antd Button接收props一致
159
- * @default {}
160
- */
161
- buttonProps?: ButtonProps;
162
- /**
163
- * 图标映射表
164
- * @description 图标与中英文文本的映射表
165
- * @default []
166
- */
167
- mapList?: ProIconMapType[];
168
- /**
169
- * SVG操作表
170
- * @description SVG变更操作表,用于主题配置
171
- * @default undefined
172
- */
173
- actionMap?: ProIconActionMapType;
174
- }
175
- export {};
@@ -1,6 +0,0 @@
1
- export declare const recurseGetNodes: (type: any, node: any, queue: any) => void;
2
- export declare const onBeforeInjection: ({ svg, actionMap, primaryColor }: {
3
- svg: any;
4
- actionMap: any;
5
- primaryColor: any;
6
- }) => void;
@@ -1,4 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { ProLayoutType } from '../../../propTypes';
3
- declare const Header: FC<ProLayoutType>;
4
- export default Header;
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- declare const FoldMenu: FC<any>;
3
- export default FoldMenu;
@@ -1,3 +0,0 @@
1
- import type { OpenMenuPropsType } from './propsType';
2
- declare const OpenMenu: (props: OpenMenuPropsType) => import("react/jsx-runtime").JSX.Element;
3
- export default OpenMenu;
@@ -1,15 +0,0 @@
1
- export interface OpenMenuPropsType {
2
- dataSource: {
3
- menus: any;
4
- iconfontUrl: string;
5
- height?: number;
6
- /** 是否是折叠模式的菜单 */
7
- sideMenu?: boolean;
8
- };
9
- [key: string]: any;
10
- }
11
- export interface StatePropsType {
12
- selectedKeys: string[];
13
- openKeys: string[];
14
- router: string;
15
- }
@@ -1,3 +0,0 @@
1
- import type { FC } from 'react';
2
- declare const SideMenu: FC<any>;
3
- export default SideMenu;
@@ -1,4 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { ProLayoutType } from '../../../propTypes';
3
- declare const Menu: FC<ProLayoutType>;
4
- export default Menu;
@@ -1,4 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { ProLayoutType } from '../../../propTypes';
3
- declare const Notice: FC<ProLayoutType>;
4
- export default Notice;
@@ -1,3 +0,0 @@
1
- export { default as Header } from './Header';
2
- export { default as Notice } from './Notice';
3
- export { default as Menu } from './Menu';
@@ -1,98 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- import { CollapseProps, CollapsePanelProps } from 'antd/es/collapse';
3
- export type levelType = '1' | '2' | '3';
4
- export interface TitleListType {
5
- /**
6
- * @description 描述的标题
7
- * @default -
8
- */
9
- label: string;
10
- /**
11
- * @description 描述的值
12
- * @default -
13
- */
14
- value: string | number | undefined | React.ReactNode;
15
- }
16
- export interface ProCollapseType {
17
- /**
18
- * @description 折叠头部标题
19
- * @default -
20
- */
21
- title?: string | React.ReactNode;
22
- /**
23
- * @description 展开收起状态
24
- * @default false
25
- */
26
- collapsed?: boolean;
27
- /**
28
- * @description 自动适应窗口大小
29
- * @default -
30
- */
31
- autoHeight?: boolean;
32
- /**
33
- * @description 标题前图标
34
- * @default -
35
- */
36
- icon?: React.ReactNode | boolean;
37
- /**
38
- * @description 折叠头部多个标题
39
- * @default []
40
- */
41
- titleList?: TitleListType[];
42
- /**
43
- * @description id用于锚点定位
44
- * @default -
45
- */
46
- id?: string;
47
- /**
48
- * @description 内容区域样式
49
- * @default -
50
- */
51
- contentStyle?: CSSProperties;
52
- /**
53
- * @description 折叠等级
54
- * @default 1
55
- */
56
- level?: levelType;
57
- /**
58
- * @description 二级折叠是否带收起
59
- * @default false
60
- */
61
- towCollapse?: boolean;
62
- /**
63
- * @description 三级折叠是否带收起
64
- * @default false
65
- */
66
- threeCollapse?: boolean;
67
- /**
68
- * @description 标题右侧扩展信息
69
- * @default -
70
- */
71
- extra?: React.ReactNode;
72
- /**
73
- * @description 当有titleList显示的换行的数量
74
- * @default 3
75
- */
76
- column?: number;
77
- /**
78
- * @description 一级标题是否默认折叠
79
- * @default false
80
- */
81
- folding?: boolean;
82
- /**
83
- * @description 控制折叠面板展开状态
84
- * @default -
85
- */
86
- open?: boolean;
87
- /**
88
- * @description antd Collapse属性
89
- * @default -
90
- */
91
- collapseProps?: CollapseProps;
92
- /**
93
- * @description antd CollapsePanel属性
94
- * @default -
95
- */
96
- collapsePanelProps?: CollapsePanelProps;
97
- [key: string]: any;
98
- }
@@ -1,3 +0,0 @@
1
- import type { ProCollapseType } from './PropTypes';
2
- declare const ProCollapse: (props: ProCollapseType) => import("react/jsx-runtime").JSX.Element;
3
- export default ProCollapse;
@@ -1,27 +0,0 @@
1
- export interface stateProps {
2
- width?: number;
3
- [key: string]: any;
4
- }
5
- export interface ProFooterType {
6
- /**
7
- * @description 是否显示
8
- * @default true
9
- */
10
- visible?: boolean;
11
- /**
12
- * @description 层级
13
- * @default 99
14
- */
15
- zIndex?: number;
16
- /**
17
- * @description 侧边栏选择器
18
- * @default '.pro-layout-sider-nav'
19
- */
20
- sideDom?: string;
21
- /**
22
- * @description 内容选择器
23
- * @default '.pro-layout-content'
24
- */
25
- contentDom?: string;
26
- [key: string]: any;
27
- }
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ProFooterType } from './PropTypes';
3
- declare const _default: import("react").MemoExoticComponent<(props: ProFooterType) => import("react/jsx-runtime").JSX.Element>;
4
- export default _default;