@zat-design/sisyphus-react 4.5.1 → 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 (276) hide show
  1. package/es/ProEditTable/components/Summary/index.js +3 -2
  2. package/es/ProEditTable/utils/tools.js +1 -1
  3. package/es/ProForm/components/combination/FormList/components/ActionButton.js +7 -6
  4. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +4 -3
  5. package/es/ProForm/components/combination/ProModalSelect/index.js +1 -1
  6. package/es/ProForm/components/render/RenderFields.js +3 -1
  7. package/es/ProForm/hooks/useWatch.js +8 -10
  8. package/es/ProLayout/components/ProHeader/index.js +28 -15
  9. package/es/ProSelect/index.js +74 -187
  10. package/es/ProSelect/utils/index.js +174 -0
  11. package/es/ProTree/components/ProTreeSelect/index.js +17 -3
  12. package/es/ProUpload/components/DragRender.js +2 -1
  13. package/es/ProUpload/index.js +1 -1
  14. package/package.json +1 -1
  15. package/es/FormsProvider/index.d.ts +0 -18
  16. package/es/ProAction/components/CheckModalContent/index.d.ts +0 -8
  17. package/es/ProAction/index.d.ts +0 -7
  18. package/es/ProAction/propsType.d.ts +0 -45
  19. package/es/ProConfigProvider/index.d.ts +0 -9
  20. package/es/ProConfigProvider/propsType.d.ts +0 -78
  21. package/es/ProDownload/index.d.ts +0 -6
  22. package/es/ProDownload/propsType.d.ts +0 -71
  23. package/es/ProDownload/utils.d.ts +0 -60
  24. package/es/ProDrawerForm/components/ProDrawer/index.d.ts +0 -7
  25. package/es/ProDrawerForm/components/ProModal/index.d.ts +0 -7
  26. package/es/ProDrawerForm/components/index.d.ts +0 -2
  27. package/es/ProDrawerForm/hooks/useConfirmClose.d.ts +0 -25
  28. package/es/ProDrawerForm/index.d.ts +0 -6
  29. package/es/ProDrawerForm/propsType.d.ts +0 -111
  30. package/es/ProDrawerForm/utils/index.d.ts +0 -25
  31. package/es/ProEditLabel/components/RenderProForm.d.ts +0 -4
  32. package/es/ProEditLabel/index.d.ts +0 -4
  33. package/es/ProEditLabel/propsType.d.ts +0 -163
  34. package/es/ProEditLabel/utils/index.d.ts +0 -7
  35. package/es/ProEditTable/components/ActionButton/index.d.ts +0 -2
  36. package/es/ProEditTable/components/RcTable/BaseTable.d.ts +0 -6
  37. package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +0 -7
  38. package/es/ProEditTable/components/RcTable/index.d.ts +0 -4
  39. package/es/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +0 -4
  40. package/es/ProEditTable/components/RenderField/index.d.ts +0 -3
  41. package/es/ProEditTable/components/RenderField/propsType.d.ts +0 -30
  42. package/es/ProEditTable/components/RenderField/tools.d.ts +0 -22
  43. package/es/ProEditTable/components/RenderToolbar/index.d.ts +0 -2
  44. package/es/ProEditTable/components/Summary/index.d.ts +0 -12
  45. package/es/ProEditTable/components/Validator/index.d.ts +0 -19
  46. package/es/ProEditTable/components/index.d.ts +0 -5
  47. package/es/ProEditTable/index.d.ts +0 -4
  48. package/es/ProEditTable/propsType.d.ts +0 -437
  49. package/es/ProEditTable/utils/config.d.ts +0 -25
  50. package/es/ProEditTable/utils/diffOriginal.d.ts +0 -22
  51. package/es/ProEditTable/utils/getDefaultProps.d.ts +0 -1
  52. package/es/ProEditTable/utils/index.d.ts +0 -23
  53. package/es/ProEditTable/utils/tools.d.ts +0 -128
  54. package/es/ProEditTable/utils/transform.d.ts +0 -13
  55. package/es/ProEditTable/utils/useEditTableError.d.ts +0 -7
  56. package/es/ProEditTable/utils/useShouldUpdateForTable.d.ts +0 -16
  57. package/es/ProEditTable/utils/validateAll.d.ts +0 -89
  58. package/es/ProEnum/components/Group.d.ts +0 -10
  59. package/es/ProEnum/components/Tag.d.ts +0 -7
  60. package/es/ProEnum/hooks/useEnum.d.ts +0 -29
  61. package/es/ProEnum/hooks/useEnumRequest.d.ts +0 -4
  62. package/es/ProEnum/hooks/useFrequentEnumRequest.d.ts +0 -14
  63. package/es/ProEnum/index.d.ts +0 -10
  64. package/es/ProEnum/propsType.d.ts +0 -310
  65. package/es/ProEnum/utils/eventCenter.d.ts +0 -1
  66. package/es/ProEnum/utils/frequentEnum.d.ts +0 -39
  67. package/es/ProEnum/utils/getEnum.d.ts +0 -47
  68. package/es/ProEnum/utils/getEnumLabel.d.ts +0 -2
  69. package/es/ProEnum/utils/index.d.ts +0 -84
  70. package/es/ProForm/components/Container.d.ts +0 -9
  71. package/es/ProForm/components/FormFooter/index.d.ts +0 -5
  72. package/es/ProForm/components/FormFooter/propsType.d.ts +0 -22
  73. package/es/ProForm/components/base/Checkbox/index.d.ts +0 -14
  74. package/es/ProForm/components/base/DatePicker/index.d.ts +0 -11
  75. package/es/ProForm/components/base/Input/index.d.ts +0 -3
  76. package/es/ProForm/components/base/Input/propsType.d.ts +0 -21
  77. package/es/ProForm/components/base/InputNumber/index.d.ts +0 -11
  78. package/es/ProForm/components/base/Radio/index.d.ts +0 -15
  79. package/es/ProForm/components/base/RangePicker/index.d.ts +0 -19
  80. package/es/ProForm/components/base/RangePicker/useDateRange.d.ts +0 -15
  81. package/es/ProForm/components/base/Select/index.d.ts +0 -11
  82. package/es/ProForm/components/base/Switch/index.d.ts +0 -10
  83. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +0 -10
  84. package/es/ProForm/components/base/TextArea/index.d.ts +0 -11
  85. package/es/ProForm/components/base/TimePicker/index.d.ts +0 -13
  86. package/es/ProForm/components/combination/Container/index.d.ts +0 -4
  87. package/es/ProForm/components/combination/Container/propsType.d.ts +0 -13
  88. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +0 -24
  89. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +0 -23
  90. package/es/ProForm/components/combination/FormList/components/Empty.d.ts +0 -13
  91. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +0 -20
  92. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +0 -12
  93. package/es/ProForm/components/combination/FormList/index.d.ts +0 -4
  94. package/es/ProForm/components/combination/FormList/propsType.d.ts +0 -69
  95. package/es/ProForm/components/combination/FormList/utils.d.ts +0 -18
  96. package/es/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +0 -9
  97. package/es/ProForm/components/combination/Group/component/ComRender.d.ts +0 -28
  98. package/es/ProForm/components/combination/Group/component/FlexibleGroup.d.ts +0 -10
  99. package/es/ProForm/components/combination/Group/hooks/index.d.ts +0 -34
  100. package/es/ProForm/components/combination/Group/index.d.ts +0 -9
  101. package/es/ProForm/components/combination/Group/propsType.d.ts +0 -99
  102. package/es/ProForm/components/combination/Group/utils/index.d.ts +0 -154
  103. package/es/ProForm/components/combination/ProCascader/index.d.ts +0 -4
  104. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +0 -48
  105. package/es/ProForm/components/combination/ProCascader/utils/index.d.ts +0 -14
  106. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +0 -33
  107. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +0 -4
  108. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +0 -106
  109. package/es/ProForm/components/combination/ProModalSelect/utils/index.d.ts +0 -1
  110. package/es/ProForm/components/combination/ProModalSelect/utils/mergeSelectedRows.d.ts +0 -14
  111. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +0 -4
  112. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +0 -85
  113. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +0 -4
  114. package/es/ProForm/components/combination/ProRangeLimit/propsType.d.ts +0 -23
  115. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +0 -9
  116. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +0 -33
  117. package/es/ProForm/components/index.d.ts +0 -29
  118. package/es/ProForm/components/render/ChangedWrapper.d.ts +0 -17
  119. package/es/ProForm/components/render/ConfirmWrapper.d.ts +0 -10
  120. package/es/ProForm/components/render/CustomComponentViewWrapper.d.ts +0 -30
  121. package/es/ProForm/components/render/Render.d.ts +0 -4
  122. package/es/ProForm/components/render/RenderFields.d.ts +0 -26
  123. package/es/ProForm/components/render/propsType.d.ts +0 -279
  124. package/es/ProForm/hooks/useControlled.d.ts +0 -1
  125. package/es/ProForm/hooks/useDeepCompareMemo.d.ts +0 -2
  126. package/es/ProForm/hooks/useFieldProps.d.ts +0 -4
  127. package/es/ProForm/hooks/useForm.d.ts +0 -8
  128. package/es/ProForm/hooks/useRules.d.ts +0 -16
  129. package/es/ProForm/hooks/useShouldUpdate.d.ts +0 -31
  130. package/es/ProForm/hooks/useWatch.d.ts +0 -22
  131. package/es/ProForm/index.d.ts +0 -6
  132. package/es/ProForm/propsType.d.ts +0 -143
  133. package/es/ProForm/utils/buildFormItemProps.d.ts +0 -25
  134. package/es/ProForm/utils/diffOriginal.d.ts +0 -10
  135. package/es/ProForm/utils/getDefaultProps.d.ts +0 -1
  136. package/es/ProForm/utils/index.d.ts +0 -109
  137. package/es/ProForm/utils/processDependencies.d.ts +0 -29
  138. package/es/ProForm/utils/reactiveValues.d.ts +0 -34
  139. package/es/ProForm/utils/rulesCreator.d.ts +0 -7
  140. package/es/ProForm/utils/transformNames.d.ts +0 -10
  141. package/es/ProForm/utils/transformValue.d.ts +0 -6
  142. package/es/ProForm/utils/valueType.d.ts +0 -70
  143. package/es/ProIcon/config/index.d.ts +0 -19
  144. package/es/ProIcon/index.d.ts +0 -4
  145. package/es/ProIcon/propsTypes.d.ts +0 -175
  146. package/es/ProIcon/utils/index.d.ts +0 -6
  147. package/es/ProLayout/components/Layout/Header/index.d.ts +0 -4
  148. package/es/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +0 -3
  149. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +0 -3
  150. package/es/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +0 -15
  151. package/es/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +0 -3
  152. package/es/ProLayout/components/Layout/Menu/index.d.ts +0 -4
  153. package/es/ProLayout/components/Layout/Notice/index.d.ts +0 -4
  154. package/es/ProLayout/components/Layout/index.d.ts +0 -3
  155. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +0 -98
  156. package/es/ProLayout/components/ProCollapse/index.d.ts +0 -3
  157. package/es/ProLayout/components/ProFooter/PropTypes.d.ts +0 -27
  158. package/es/ProLayout/components/ProFooter/index.d.ts +0 -4
  159. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +0 -206
  160. package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +0 -4
  161. package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.d.ts +0 -9
  162. package/es/ProLayout/components/ProHeader/components/ProBackBtn/propsType.d.ts +0 -4
  163. package/es/ProLayout/components/ProHeader/components/index.d.ts +0 -2
  164. package/es/ProLayout/components/ProHeader/index.d.ts +0 -4
  165. package/es/ProLayout/components/ProHeader/utils/index.d.ts +0 -5
  166. package/es/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +0 -7
  167. package/es/ProLayout/components/TabsManager/components/TabItem.d.ts +0 -26
  168. package/es/ProLayout/components/TabsManager/components/TabsContext.d.ts +0 -6
  169. package/es/ProLayout/components/TabsManager/components/TabsHeader.d.ts +0 -10
  170. package/es/ProLayout/components/TabsManager/hooks/useActiveTab.d.ts +0 -6
  171. package/es/ProLayout/components/TabsManager/hooks/useIframeRoute.d.ts +0 -25
  172. package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.d.ts +0 -18
  173. package/es/ProLayout/components/TabsManager/hooks/useTabsCache.d.ts +0 -31
  174. package/es/ProLayout/components/TabsManager/hooks/useTabsState.d.ts +0 -5
  175. package/es/ProLayout/components/TabsManager/index.d.ts +0 -7
  176. package/es/ProLayout/components/TabsManager/propTypes.d.ts +0 -89
  177. package/es/ProLayout/components/TabsManager/utils/index.d.ts +0 -47
  178. package/es/ProLayout/components/index.d.ts +0 -3
  179. package/es/ProLayout/index.d.ts +0 -20
  180. package/es/ProLayout/propTypes.d.ts +0 -533
  181. package/es/ProLayout/utils/index.d.ts +0 -43
  182. package/es/ProSelect/components/AdaptiveTooltip.d.ts +0 -4
  183. package/es/ProSelect/index.d.ts +0 -5
  184. package/es/ProSelect/propsType.d.ts +0 -162
  185. package/es/ProSelect/utils/index.d.ts +0 -4
  186. package/es/ProStep/components/Anchor/index.d.ts +0 -4
  187. package/es/ProStep/components/Item/index.d.ts +0 -3
  188. package/es/ProStep/components/LazyLoad/index.d.ts +0 -19
  189. package/es/ProStep/components/Listener/index.d.ts +0 -4
  190. package/es/ProStep/components/Step/index.d.ts +0 -5
  191. package/es/ProStep/index.d.ts +0 -11
  192. package/es/ProStep/propsType.d.ts +0 -224
  193. package/es/ProStep/utils/index.d.ts +0 -22
  194. package/es/ProStepTab/index.d.ts +0 -22
  195. package/es/ProStepTab/propsType.d.ts +0 -114
  196. package/es/ProTable/components/EditableCell/EditIcon.d.ts +0 -6
  197. package/es/ProTable/components/EditableCell/index.d.ts +0 -4
  198. package/es/ProTable/components/EditableCell/propsType.d.ts +0 -24
  199. package/es/ProTable/components/FormatColumn/index.d.ts +0 -22
  200. package/es/ProTable/components/FormatColumn/propsType.d.ts +0 -29
  201. package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -3
  202. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +0 -18
  203. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.d.ts +0 -8
  204. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.d.ts +0 -61
  205. package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -3
  206. package/es/ProTable/components/RcTable/index.d.ts +0 -4
  207. package/es/ProTable/components/RenderColumn/index.d.ts +0 -22
  208. package/es/ProTable/components/RenderEmptyText/index.d.ts +0 -3
  209. package/es/ProTable/components/RenderFooter/index.d.ts +0 -2
  210. package/es/ProTable/components/RenderSummary/index.d.ts +0 -3
  211. package/es/ProTable/components/RenderTableHeader/index.d.ts +0 -2
  212. package/es/ProTable/components/RenderTabs/index.d.ts +0 -4
  213. package/es/ProTable/components/TableResizable/index.d.ts +0 -13
  214. package/es/ProTable/components/TooltipTitle/index.d.ts +0 -11
  215. package/es/ProTable/components/index.d.ts +0 -31
  216. package/es/ProTable/hooks/useAntdTable.d.ts +0 -7
  217. package/es/ProTable/index.d.ts +0 -17
  218. package/es/ProTable/propsType.d.ts +0 -792
  219. package/es/ProTable/utils/columnStorage.d.ts +0 -35
  220. package/es/ProTable/utils/index.d.ts +0 -52
  221. package/es/ProTabs/components/Card/index.d.ts +0 -3
  222. package/es/ProTabs/components/index.d.ts +0 -1
  223. package/es/ProTabs/index.d.ts +0 -4
  224. package/es/ProTabs/propType.d.ts +0 -94
  225. package/es/ProThemeTools/component/ProTools/index.d.ts +0 -3
  226. package/es/ProThemeTools/component/index.d.ts +0 -1
  227. package/es/ProThemeTools/context/ThemeContext.d.ts +0 -43
  228. package/es/ProThemeTools/index.d.ts +0 -9
  229. package/es/ProThemeTools/propsType.d.ts +0 -170
  230. package/es/ProThemeTools/utils/index.d.ts +0 -51
  231. package/es/ProTooltip/index.d.ts +0 -3
  232. package/es/ProTooltip/propsType.d.ts +0 -57
  233. package/es/ProTree/components/AdaptiveTooltip.d.ts +0 -4
  234. package/es/ProTree/components/CloseIcon.d.ts +0 -2
  235. package/es/ProTree/components/List.d.ts +0 -17
  236. package/es/ProTree/components/ProTree.d.ts +0 -3
  237. package/es/ProTree/components/ProTreeSelect/index.d.ts +0 -5
  238. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +0 -445
  239. package/es/ProTree/components/SearchTitle.d.ts +0 -11
  240. package/es/ProTree/components/Tree.d.ts +0 -27
  241. package/es/ProTree/components/index.d.ts +0 -4
  242. package/es/ProTree/index.d.ts +0 -3
  243. package/es/ProTree/propsType.d.ts +0 -818
  244. package/es/ProTree/utils.d.ts +0 -62
  245. package/es/ProTreeModal/components/Cascader.d.ts +0 -14
  246. package/es/ProTreeModal/components/CloseIcon.d.ts +0 -2
  247. package/es/ProTreeModal/components/List.d.ts +0 -21
  248. package/es/ProTreeModal/components/SearchTitle.d.ts +0 -7
  249. package/es/ProTreeModal/components/SortableItem.d.ts +0 -12
  250. package/es/ProTreeModal/components/Tree.d.ts +0 -25
  251. package/es/ProTreeModal/components/Trigger.d.ts +0 -21
  252. package/es/ProTreeModal/components/index.d.ts +0 -6
  253. package/es/ProTreeModal/index.d.ts +0 -4
  254. package/es/ProTreeModal/propsType.d.ts +0 -298
  255. package/es/ProTreeModal/utils.d.ts +0 -39
  256. package/es/ProUpload/components/ButtonRender.d.ts +0 -20
  257. package/es/ProUpload/components/DragRender.d.ts +0 -21
  258. package/es/ProUpload/components/DraggableUploadListItem.d.ts +0 -2
  259. package/es/ProUpload/components/Example.d.ts +0 -10
  260. package/es/ProUpload/components/FileItem.d.ts +0 -33
  261. package/es/ProUpload/components/ImageRender.d.ts +0 -19
  262. package/es/ProUpload/index.d.ts +0 -4
  263. package/es/ProUpload/propsType.d.ts +0 -264
  264. package/es/ProUpload/uitls.d.ts +0 -3
  265. package/es/ProUtils/utils/index.d.ts +0 -6
  266. package/es/ProViewer/index.d.ts +0 -4
  267. package/es/ProViewer/propsType.d.ts +0 -37
  268. package/es/ProWaterMark/index.d.ts +0 -4
  269. package/es/ProWaterMark/propsType.d.ts +0 -6
  270. package/es/hooks/useDraggableRow.d.ts +0 -34
  271. package/es/index.d.ts +0 -58
  272. package/es/locale/en_US.d.ts +0 -176
  273. package/es/locale/index.d.ts +0 -15
  274. package/es/locale/zh_CN.d.ts +0 -176
  275. package/es/tokens.d.ts +0 -83
  276. package/es/utils/index.d.ts +0 -20
@@ -1,62 +0,0 @@
1
- import type { ProTreeFieldNamesType, ProTreeDataType } from './propsType';
2
- /**
3
- * 树转成铺平的数组
4
- * @param originalTreeData
5
- * @returns
6
- */
7
- export declare function getFlatTreeData(originalTreeData: ProTreeDataType[], fieldNames: ProTreeFieldNamesType): any[];
8
- /**
9
- * 获取 tree 所有的 keys 集合
10
- * @param data
11
- * @param fieldNames
12
- * @returns
13
- */
14
- export declare function getAllKeys(data: ProTreeDataType[], fieldNames: ProTreeFieldNamesType): string[];
15
- /**
16
- * 获取展开的key
17
- * @param key
18
- * @param tree
19
- * @param fieldNames
20
- * @returns
21
- */
22
- export declare const getParentKey: (key: string, tree: ProTreeDataType[], fieldNames: ProTreeFieldNamesType) => string;
23
- export declare function findTreeNodeByKey(treeData: ProTreeDataType[], key: string, fieldNames: ProTreeFieldNamesType): ProTreeDataType[];
24
- /**
25
- * 过滤掉每一层假值(例如 false、null、0、""、undefined 等)
26
- * @param data
27
- * @param checkedKeys
28
- * @returns
29
- */
30
- export declare function filterCheckedNodes(data: any, checkedKeys: any, searchStr: string, fieldNames: ProTreeFieldNamesType): any[];
31
- /**
32
- * 获取 tree 当前选中节点下的所有子节点的 keys
33
- * @param node
34
- * @param childrenKeys
35
- * @returns
36
- */
37
- export declare function getChildrenKeys(node: ProTreeDataType, childrenKeys: string[], fieldNames: ProTreeFieldNamesType, type: 'treeClose' | 'treeCheck'): void;
38
- /**
39
- * 还原 showCodeName 合并到 label 上的 `${value}-` 前缀
40
- * showCodeName 仅影响展示,回调返回的 option 应保持原始 label
41
- * 注意:此处 option 已是标准格式(label, value)
42
- * @param option 单个或数组形式的选项(标准格式)
43
- * @param showCodeName 是否开启了 code-name 展示
44
- * @returns 还原 label 后的新对象/数组(不可变)
45
- */
46
- export declare function restoreCodeNameLabel<T extends Record<string, any>>(option: T | T[], showCodeName?: boolean): T | T[];
47
- /**
48
- * 如果默认全开展那么返回所有key,否则返回空[]
49
- * @param isExpand 是否全展开
50
- * @param allkeys 所有key
51
- */
52
- export declare function getDefaultExpandKeys(isExpand: any, allKeys: any): any;
53
- /**
54
- * checkLeaf 模式:只能选择叶子节点,非叶子节点设 disabled=true 整行置灰不可点
55
- * 数据已是标准格式(label, value, children),仅单选 treeSelect 场景使用
56
- * 不可变:返回全新数组,不修改入参
57
- * @param data 标准格式树数据
58
- * @returns 标记后的新树数据
59
- */
60
- export declare function applyCheckLeaf<T extends {
61
- children?: T[];
62
- }>(data: T[]): T[];
@@ -1,14 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import type { ProTreeModalFieldNamesType, ProTreeModalDataType } from '../propsType';
3
- interface CascaderProps {
4
- dataSource: ProTreeModalDataType[];
5
- checkedValues?: any[];
6
- showCodeName?: boolean;
7
- fieldNames: ProTreeModalFieldNamesType;
8
- searchStr?: string;
9
- disabled?: boolean;
10
- handleOnChange?: (e: any, value: string) => void;
11
- optionRender?: (item: any, searchStr: string) => string | ReactNode;
12
- }
13
- declare const Cascader: (props: CascaderProps) => import("react/jsx-runtime").JSX.Element;
14
- export default Cascader;
@@ -1,2 +0,0 @@
1
- declare function CloseIcon(props: any): import("react/jsx-runtime").JSX.Element;
2
- export default CloseIcon;
@@ -1,21 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import type { ProTreeModalFieldNamesType, ProTreeModalDataType } from '../propsType';
3
- interface ListProps {
4
- disabled?: boolean;
5
- checkedValues?: any[];
6
- treeData: any[];
7
- searchStr?: string;
8
- showCodeName?: boolean;
9
- fieldNames: ProTreeModalFieldNamesType;
10
- mode?: 'render' | 'view';
11
- modeType?: string;
12
- span?: number;
13
- draggable?: boolean;
14
- flatTreeData?: ProTreeModalDataType[];
15
- handleOnChange?: (e: any, value: string) => void;
16
- handleFilterClose?: (code: string) => void;
17
- optionRender?: (item: any, searchStr?: string) => string | ReactNode;
18
- handleDragEndChange?: (values: any[]) => void;
19
- }
20
- declare const _default: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<unknown>>;
21
- export default _default;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- declare function SearchTitle(props: {
3
- searchStr: string;
4
- label: string;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- declare const _default: import("react").MemoExoticComponent<typeof SearchTitle>;
7
- export default _default;
@@ -1,12 +0,0 @@
1
- import { FC } from 'react';
2
- interface SortableItemProps {
3
- drag?: boolean;
4
- label: string;
5
- item: any;
6
- style?: any;
7
- disabled?: boolean;
8
- onClose: (e: any) => void;
9
- index: number;
10
- }
11
- declare const SortableItem: FC<SortableItemProps>;
12
- export default SortableItem;
@@ -1,25 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import type { ProTreeModalFieldNamesType } from '../propsType';
3
- interface TreeViewProps {
4
- disabled?: boolean;
5
- checkedValues?: any[];
6
- originalTreeData?: any[];
7
- flatTreeData?: any[];
8
- treeData: any[];
9
- searchStr?: string;
10
- showCodeName?: boolean;
11
- checkStrictly?: boolean;
12
- fieldNames: ProTreeModalFieldNamesType;
13
- tags?: string[];
14
- mode?: 'render' | 'view';
15
- draggable?: boolean;
16
- min?: number;
17
- max?: number;
18
- span?: number;
19
- onCheck?: (checkedKeys: any, info: any) => void;
20
- optionRender?: (item: any, searchStr?: string) => string | ReactNode;
21
- handleFilterClose?: (code: string, node?: any) => void;
22
- handleDragEndChange?: (values: any[]) => void;
23
- }
24
- declare const _default: React.ForwardRefExoticComponent<TreeViewProps & React.RefAttributes<unknown>>;
25
- export default _default;
@@ -1,21 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- interface AppointProps {
3
- disabled?: boolean | boolean[];
4
- }
5
- interface TriggerProps {
6
- checkedValues: any[];
7
- value: any;
8
- label?: React.ReactNode;
9
- disabled?: boolean;
10
- isView?: boolean;
11
- checkAll?: boolean;
12
- appoint: boolean;
13
- appointProps?: AppointProps;
14
- allValue?: string | number;
15
- triggerStyle?: CSSProperties;
16
- handleClick: () => void;
17
- handleClearAll: () => void;
18
- appointChange: (appoint?: boolean) => void;
19
- }
20
- declare function Trigger(props: TriggerProps): import("react/jsx-runtime").JSX.Element;
21
- export default Trigger;
@@ -1,6 +0,0 @@
1
- export { default as CloseIcon } from './CloseIcon';
2
- export { default as Trigger } from './Trigger';
3
- export { default as SearchTitle } from './SearchTitle';
4
- export { default as ListView } from './List';
5
- export { default as TreeView } from './Tree';
6
- export { default as Cascader } from './Cascader';
@@ -1,4 +0,0 @@
1
- import type { ProTreeModalType } from './propsType';
2
- export declare const CASCADER = "CASCADER";
3
- declare const ProTreeModal: (props: ProTreeModalType) => import("react/jsx-runtime").JSX.Element;
4
- export default ProTreeModal;
@@ -1,298 +0,0 @@
1
- import { ReactNode, CSSProperties } from 'react';
2
- import { Service, Options } from 'ahooks/lib/useRequest/src/types';
3
- import type { ProFormOtherType } from '../ProForm/propsType';
4
- /**
5
- * 树数据结构
6
- * @description 定义树节点的数据结构
7
- */
8
- export interface ProTreeModalDataType {
9
- /**
10
- * 节点标签
11
- * @description 显示的节点文本
12
- * @default undefined
13
- */
14
- label: string;
15
- /**
16
- * 节点值
17
- * @description 节点的唯一标识
18
- * @default undefined
19
- */
20
- value: string;
21
- /**
22
- * 子节点
23
- * @description 当前节点的子节点数组
24
- * @default undefined
25
- */
26
- children?: ProTreeModalDataType[];
27
- /**
28
- * 是否禁用
29
- * @description 禁用不可操作
30
- * @default false
31
- */
32
- disabled?: boolean;
33
- /**
34
- * 固定位置
35
- * @description 处理固定场景
36
- * @default undefined
37
- */
38
- fixed?: 'left' | 'right';
39
- /**
40
- * 是否可勾选
41
- * @description 是否可以勾选复选框
42
- * @default undefined
43
- */
44
- checkable?: boolean;
45
- /**
46
- * 自定义属性
47
- * @description 可添加任意其他属性
48
- * @default undefined
49
- */
50
- [key: string]: any;
51
- }
52
- /**
53
- * 值类型
54
- * @description 组件接受的值类型
55
- */
56
- export type ProTreeModalValueType = string | number;
57
- /**
58
- * ProTreeModal操作对象
59
- * @description ProTreeModal组件的操作接口
60
- */
61
- export interface ProTreeModalActionType {
62
- /**
63
- * 值变更方法
64
- * @description 用于获取当前选中的值数组
65
- * @default undefined
66
- */
67
- onChange: () => ProTreeModalValueType[];
68
- }
69
- /**
70
- * 字段名称映射
71
- * @description 定义树节点字段的映射关系
72
- */
73
- export interface ProTreeModalFieldNamesType {
74
- /**
75
- * 标签字段名
76
- * @description 指定节点标签的属性名
77
- * @default 'label'
78
- */
79
- label: string;
80
- /**
81
- * 值字段名
82
- * @description 指定节点值的属性名
83
- * @default 'value'
84
- */
85
- value: string;
86
- /**
87
- * 子节点字段名
88
- * @description 指定子节点的属性名
89
- * @default 'children'
90
- */
91
- children?: string;
92
- }
93
- /**
94
- * 树弹框模式
95
- * @description 弹框展示模式类型
96
- */
97
- export type ProTreeModalModeType = 'tree' | 'list' | 'Cascader' | 'Tree' | 'List';
98
- /**
99
- * 指定模式属性
100
- * @description 指定模式下的配置属性
101
- */
102
- export interface ProTreeModalAppointType {
103
- /**
104
- * 是否禁用
105
- * @description 禁用指定项或全部项
106
- * @default undefined
107
- */
108
- disabled?: boolean | boolean[];
109
- }
110
- /**
111
- * ProTreeModal组件属性
112
- * @description ProTreeModal组件的主要配置属性
113
- */
114
- export interface ProTreeModalType {
115
- /**
116
- * 选中值
117
- * @description 当前选中的节点值
118
- * @default undefined
119
- */
120
- value?: ProTreeModalValueType | string[];
121
- /**
122
- * 字段名称映射
123
- * @description 自定义节点的字段名称映射
124
- * @default { label: 'label', value: 'value', children: 'children' }
125
- */
126
- fieldNames?: ProTreeModalFieldNamesType;
127
- /**
128
- * 是否展开弹框
129
- * @description 自定义控制modal的显示,此时没有trigger
130
- * @default undefined
131
- */
132
- open?: boolean;
133
- /**
134
- * 列表布局
135
- * @description 列表模式下一行放几个
136
- * @default 24
137
- */
138
- span?: number;
139
- /**
140
- * 展示类型
141
- * @description 展示模式,list为列表展示形式,tree为树形展示,appoint为指定模式
142
- * @default 'list'
143
- */
144
- mode?: ProTreeModalModeType;
145
- /**
146
- * 是否指定模式
147
- * @description 是否开启指定模式,开启后展示形式会不同
148
- * @default false
149
- */
150
- appoint?: boolean;
151
- /**
152
- * 指定模式参数
153
- * @description 指定模式下传递的额外参数
154
- * @default undefined
155
- */
156
- appointProps?: ProTreeModalAppointType;
157
- /**
158
- * 值包含标签
159
- * @description 开启后提交给后端的格式为 [{ label:xx, value: ""}]
160
- * @default false
161
- */
162
- labelInValue?: boolean;
163
- /**
164
- * 查看模式
165
- * @description 是否为查看模式,与disabled效果相同
166
- * @default false
167
- */
168
- isView?: boolean;
169
- /**
170
- * 枚举代码
171
- * @description 使用ProEnum的数据源
172
- * @default undefined
173
- */
174
- code?: string;
175
- /**
176
- * 触发元素
177
- * @description 触发弹框展开的容器
178
- * @default undefined
179
- */
180
- trigger?: string | ReactNode;
181
- /**
182
- * 显示代码名称
183
- * @description 是否展示code-label形式
184
- * @default false
185
- */
186
- showCodeName?: boolean;
187
- /**
188
- * 数据源
189
- * @description 静态数据源
190
- * @default []
191
- */
192
- dataSource?: ProTreeModalDataType[];
193
- /**
194
- * 最小选择个数
195
- * @description 设置最小选择个数限制
196
- * @default undefined
197
- */
198
- min?: number;
199
- /**
200
- * 最大选择个数
201
- * @description 设置最大选择个数限制
202
- * @default undefined
203
- */
204
- max?: number;
205
- /**
206
- * 超限提示
207
- * @description 超过最大数量的提示信息,如'最多为{max}个'
208
- * @default undefined
209
- */
210
- maxMessage?: string;
211
- /**
212
- * 是否可拖拽
213
- * @description 列表模式下已选择项是否可拖拽排序
214
- * @default false
215
- */
216
- draggable?: boolean;
217
- /**
218
- * 是否禁用
219
- * @description 禁用整个组件
220
- * @default false
221
- */
222
- disabled?: any;
223
- /**
224
- * 弹框标题
225
- * @description 弹框的标题文本
226
- * @default undefined
227
- */
228
- title?: string | ReactNode;
229
- /**
230
- * 全选值
231
- * @description 全选时传给后端的标识
232
- * @default undefined
233
- */
234
- allValue?: string | number;
235
- /**
236
- * 占位提示
237
- * @description 搜索框提示文本
238
- * @default '请输入'
239
- */
240
- placeholder?: string;
241
- /**
242
- * 严格选择
243
- * @description 父子节点选中状态不再关联
244
- * @default false
245
- */
246
- checkStrictly?: boolean;
247
- /**
248
- * 触发器样式
249
- * @description trigger元素的样式设置
250
- * @default undefined
251
- */
252
- style?: CSSProperties;
253
- /**
254
- * 标签集合
255
- * @description 用于标记分类的标签集合
256
- * @default undefined
257
- */
258
- tags?: string[];
259
- /**
260
- * 其他属性
261
- * @description 表单其他配置属性
262
- * @default undefined
263
- */
264
- otherProps?: ProFormOtherType;
265
- /**
266
- * 远程请求
267
- * @description 远程请求接口配置
268
- * @default undefined
269
- */
270
- useRequest?: {
271
- service?: Service<any, any>;
272
- options?: Options<any, any>;
273
- };
274
- /**
275
- * 值变化回调
276
- * @description value变化的回调函数
277
- * @default undefined
278
- */
279
- onChange?: (values: ProTreeModalValueType[] | ProTreeModalValueType) => void;
280
- /**
281
- * 自定义渲染
282
- * @description 自定义选项内容渲染
283
- * @default undefined
284
- */
285
- optionRender?: (item: any, searchStr: string) => string | ReactNode;
286
- /**
287
- * 响应数据转换
288
- * @description 对后台返回数据进行格式化
289
- * @default undefined
290
- */
291
- transformResponse?: (data: any) => ProTreeModalDataType[];
292
- /**
293
- * 打开状态变化
294
- * @description 弹框打开/关闭回调
295
- * @default undefined
296
- */
297
- openChange?: (open: boolean) => void;
298
- }
@@ -1,39 +0,0 @@
1
- import type { ProTreeModalFieldNamesType, ProTreeModalDataType } from './propsType';
2
- /**
3
- * 树转成铺平的数组
4
- * @param originalTreeData
5
- * @returns
6
- */
7
- export declare function getFlatTreeData(originalTreeData: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType, modeType?: string): any[];
8
- /**
9
- * 获取 tree 所有的 keys 集合
10
- * @param data
11
- * @param fieldNames
12
- * @returns
13
- */
14
- export declare function getAllKeys(data: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType): string[];
15
- /**
16
- * 获取展开的key
17
- * @param key
18
- * @param tree
19
- * @param fieldNames
20
- * @returns
21
- */
22
- export declare const getParentKey: (key: string, tree: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType) => string;
23
- export declare function findTreeNodeByKey(treeData: ProTreeModalDataType[], key: string, fieldNames: ProTreeModalFieldNamesType): ProTreeModalDataType[];
24
- /**
25
- * 根据所选的 checkedKeys 筛选出展示的 treeData
26
- * @param data
27
- * @param checkedKeys
28
- * @returns
29
- */
30
- export declare function filterCheckedNodes(data: any, checkedKeys: any, searchStr: string, fieldNames: ProTreeModalFieldNamesType): any[];
31
- /**
32
- * 获取 tree 当前选中节点下的所有子节点的 keys
33
- * @param node
34
- * @param childrenKeys
35
- * @returns
36
- */
37
- export declare function getChildrenKeys(node: ProTreeModalDataType, childrenKeys: string[], fieldNames: ProTreeModalFieldNamesType, type: 'treeClose' | 'treeCheck'): void;
38
- export declare const transformMessage: (obj: any, message: string) => string;
39
- export declare const addLevelAndParentId: (tree: any[], fieldNames: any, currentLevel?: number, currentParentId?: any) => any[];
@@ -1,20 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { UploadFile } from 'antd';
3
- import type { ProUploadType } from '../propsType';
4
- interface DragRenderProps extends Pick<ProUploadType, 'buttonProps' | 'disabled' | 'maxCount' | 'extraTipText' | 'buttonText'> {
5
- isView?: boolean;
6
- headerRender: () => ReactNode;
7
- footerRender: () => ReactNode;
8
- sensor: any;
9
- fileList: UploadFile[];
10
- baseUploadProps: any;
11
- onDragEnd: any;
12
- onPreview: any;
13
- onDownload: any;
14
- afterRender: string | ReactNode;
15
- extExt: any[];
16
- isConfirmDelete?: boolean;
17
- onRemove?: (file: UploadFile) => any | Promise<any>;
18
- }
19
- declare const ButtonRender: FC<DragRenderProps>;
20
- export default ButtonRender;
@@ -1,21 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { UploadFile } from 'antd/es/upload/interface';
3
- interface DragRenderProps {
4
- isView?: boolean;
5
- headerRender: () => ReactNode;
6
- footerRender: () => ReactNode;
7
- sensor: any;
8
- fileList: UploadFile[];
9
- baseUploadProps: any;
10
- disabled: boolean;
11
- onDragEnd: any;
12
- onPreview: any;
13
- onDownload: any;
14
- extExt: any[];
15
- setFileList: any;
16
- onChange: any;
17
- maxCount: number;
18
- customTextRender?: ReactNode;
19
- }
20
- declare const DragRender: FC<DragRenderProps>;
21
- export default DragRender;
@@ -1,2 +0,0 @@
1
- import type { DraggableUploadListItemType } from '../propsType';
2
- export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemType) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { ExampleModalType } from '../propsType';
3
- interface ExampleProps {
4
- exampleContent?: React.ReactNode;
5
- className?: string;
6
- exampleTitle?: string | React.ReactNode;
7
- exampleModalProps?: ExampleModalType;
8
- }
9
- export declare const Example: React.FC<ExampleProps>;
10
- export {};
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import { UploadFile } from 'antd/es/upload/interface';
3
- /**
4
- * @description: b 转成 Kb
5
- * @param {*} num
6
- * @return {*}
7
- */
8
- export declare const bToKb: (num: any) => string;
9
- /**
10
- * @description: 获取文件后缀名
11
- * @param {*} fileName
12
- * @return {*}
13
- */
14
- export declare const getFileExt: (fileName: string) => string;
15
- /**
16
- * @description: 根据文件扩展名获取图标地址
17
- * @param {string} fileExt
18
- * @return {*}
19
- */
20
- export declare const getFileIcon: (fileExt: string) => any;
21
- interface FileItemProps {
22
- file: UploadFile;
23
- hideFileIcon?: boolean;
24
- showRemoveIcon?: boolean;
25
- onRemove?: Function;
26
- onDownload?: Function;
27
- onPreview?: Function;
28
- disabled?: boolean;
29
- isConfirmDelete?: boolean;
30
- }
31
- declare const FileItem: React.FC<FileItemProps>;
32
- declare const DragSingleFileItem: React.FC<FileItemProps>;
33
- export { DragSingleFileItem, FileItem };
@@ -1,19 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { UploadFile } from 'antd/es/upload/interface';
3
- import type { ProUploadType } from '../propsType';
4
- interface DragRenderProps extends Pick<ProUploadType, 'buttonProps' | 'disabled' | 'maxCount' | 'extraTipText' | 'showExampleContent' | 'exampleTitle' | 'exampleContent' | 'exampleModalProps'> {
5
- isView?: boolean;
6
- headerRender: () => ReactNode;
7
- footerRender: () => ReactNode;
8
- centerRender: React.ReactNode | (() => React.ReactNode);
9
- sensor: any;
10
- fileList: UploadFile[];
11
- baseUploadProps: any;
12
- onDragEnd: any;
13
- onPreview: any;
14
- onDownload: any;
15
- extExt: any[];
16
- onRemove: (file: UploadFile) => any | Promise<any>;
17
- }
18
- declare const ImageRender: FC<DragRenderProps>;
19
- export default ImageRender;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { ProUploadType } from './propsType';
3
- declare const ProUpload: React.FC<ProUploadType>;
4
- export default ProUpload;