@zat-design/sisyphus-react 3.11.14 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.css +26 -15
- package/dist/less.esm.css +26 -15
- package/es/ProAction/index.d.ts +2 -2
- package/es/ProAction/propsType.d.ts +16 -10
- package/es/ProConfigProvider/index.d.ts +7 -7
- package/es/ProDownload/index.d.ts +2 -2
- package/es/ProDownload/propsType.d.ts +2 -1
- package/es/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
- package/es/ProDrawerForm/components/ProModal/index.d.ts +2 -2
- package/es/ProDrawerForm/index.d.ts +1 -2
- package/es/ProDrawerForm/propsType.d.ts +38 -27
- package/es/ProDrawerForm/utils/index.d.ts +2 -2
- package/es/ProEditLabel/components/RenderProForm.d.ts +2 -2
- package/es/ProEditLabel/index.d.ts +2 -2
- package/es/ProEditLabel/propsType.d.ts +135 -8
- package/es/ProEditLabel/style/index.less +24 -25
- package/es/ProEditTable/components/Summary/index.d.ts +2 -2
- package/es/ProEditTable/index.d.ts +2 -2
- package/es/ProEditTable/index.js +18 -16
- package/es/ProEditTable/propsType.d.ts +243 -106
- package/es/ProEditTable/style/index.less +1 -0
- package/es/ProEditTable/utils/index.d.ts +1 -1
- package/es/ProEditTable/utils/index.js +6 -4
- package/es/ProEditTable/utils/tools.d.ts +57 -22
- package/es/ProEditTable/utils/tools.js +47 -21
- package/es/ProEnum/components/Group.d.ts +2 -2
- package/es/ProEnum/components/Tag.d.ts +2 -2
- package/es/ProEnum/hooks/useEnum.d.ts +2 -2
- package/es/ProEnum/hooks/useEnum.js +46 -17
- package/es/ProEnum/hooks/useEnumRequest.d.ts +2 -2
- package/es/ProEnum/index.d.ts +2 -2
- package/es/ProEnum/propsType.d.ts +231 -42
- package/es/ProEnum/propsType.js +0 -6
- package/es/ProEnum/utils/index.d.ts +9 -2
- package/es/ProEnum/utils/index.js +9 -2
- package/es/ProForm/components/FormFooter/index.d.ts +2 -2
- package/es/ProForm/components/FormFooter/propsType.d.ts +8 -3
- package/es/ProForm/components/base/Checkbox/index.d.ts +2 -2
- package/es/ProForm/components/base/Input/index.d.ts +2 -2
- package/es/ProForm/components/base/Input/propsType.d.ts +10 -6
- package/es/ProForm/components/base/InputNumber/index.d.ts +2 -2
- package/es/ProForm/components/base/Radio/index.d.ts +2 -2
- package/es/ProForm/components/base/RangePicker/index.d.ts +2 -2
- package/es/ProForm/components/base/Select/index.d.ts +2 -2
- package/es/ProForm/components/base/Switch/index.d.ts +2 -2
- package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
- package/es/ProForm/components/base/TextArea/index.d.ts +2 -2
- package/es/ProForm/components/base/TimePicker/index.d.ts +2 -2
- package/es/ProForm/components/combination/Container/index.d.ts +2 -2
- package/es/ProForm/components/combination/Container/propsType.d.ts +10 -6
- package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
- package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
- package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
- package/es/ProForm/components/combination/FormList/index.d.ts +2 -2
- package/es/ProForm/components/combination/FormList/propsType.d.ts +18 -10
- package/es/ProForm/components/combination/Group/index.d.ts +2 -2
- package/es/ProForm/components/combination/Group/propsType.d.ts +10 -5
- package/es/ProForm/components/combination/Group/utils.d.ts +6 -6
- package/es/ProForm/components/combination/ProCascader/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
- package/es/ProForm/components/combination/ProCombination/index.d.ts +3 -3
- package/es/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +15 -9
- package/es/ProForm/components/old/EnumSelect/index.d.ts +1 -1
- package/es/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/es/ProForm/components/old/ProAddress/index.d.ts +1 -1
- package/es/ProForm/components/old/ProCertNo/index.d.ts +1 -1
- package/es/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
- package/es/ProForm/components/render/ChangedWrapper.d.ts +2 -2
- package/es/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
- package/es/ProForm/components/render/Render.d.ts +2 -2
- package/es/ProForm/components/render/RenderFields.d.ts +4 -4
- package/es/ProForm/components/render/propsType.d.ts +76 -69
- package/es/ProForm/index.d.ts +2 -2
- package/es/ProForm/propsType.d.ts +26 -17
- package/es/ProForm/propsType.js +0 -1
- package/es/ProForm/utils/transformValue.d.ts +2 -2
- package/es/ProForm/utils/useFieldProps.d.ts +3 -3
- package/es/ProForm/utils/useForm.d.ts +1 -1
- package/es/ProForm/utils/useRules.d.ts +1 -1
- package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/es/ProIcon/index.d.ts +2 -2
- package/es/ProIcon/propsTypes.d.ts +120 -49
- package/es/ProLayout/components/Layout/Header/index.d.ts +2 -2
- package/es/ProLayout/components/Layout/Menu/index.d.ts +2 -2
- package/es/ProLayout/components/Layout/Notice/index.d.ts +2 -2
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
- package/es/ProLayout/components/ProCollapse/index.d.ts +2 -2
- package/es/ProLayout/components/ProCollapse/index.js +12 -4
- package/es/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
- package/es/ProLayout/components/ProFooter/index.d.ts +2 -2
- package/es/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
- package/es/ProLayout/components/ProHeader/index.d.ts +2 -2
- package/es/ProLayout/index.d.ts +5 -5
- package/es/ProLayout/index.js +6 -2
- package/es/ProLayout/propTypes.d.ts +182 -25
- package/es/ProLayout/utils/index.d.ts +2 -2
- package/es/ProSelect/index.d.ts +3 -3
- package/es/ProSelect/propsType.d.ts +141 -31
- package/es/ProStep/components/Anchor/index.d.ts +2 -1
- package/es/ProStep/components/Item/index.d.ts +2 -2
- package/es/ProStep/components/Item/index.js +6 -2
- package/es/ProStep/components/Listener/index.d.ts +4 -3
- package/es/ProStep/components/Listener/index.js +18 -4
- package/es/ProStep/components/Step/index.d.ts +2 -2
- package/es/ProStep/index.d.ts +7 -7
- package/es/ProStep/index.js +19 -4
- package/es/ProStep/propsType.d.ts +200 -12
- package/es/ProStep/utils/index.d.ts +17 -4
- package/es/ProStep/utils/index.js +11 -2
- package/es/ProTable/components/FormatColumn/index.d.ts +2 -2
- package/es/ProTable/components/FormatColumn/index.js +5 -8
- package/es/ProTable/components/RenderTabs/index.d.ts +4 -0
- package/es/ProTable/components/RenderTabs/index.js +78 -0
- package/es/ProTable/components/index.d.ts +25 -0
- package/es/ProTable/components/index.js +26 -1
- package/es/ProTable/hooks/useAntdTable.d.ts +2 -93
- package/es/ProTable/hooks/useAntdTable.js +6 -2
- package/es/ProTable/index.d.ts +2 -2
- package/es/ProTable/index.js +6 -3
- package/es/ProTable/propsType.d.ts +630 -39
- package/es/ProTable/style/index.less +3 -0
- package/es/ProTabs/index.d.ts +2 -2
- package/es/ProTabs/index.js +4 -4
- package/es/ProTabs/propType.d.ts +66 -9
- package/es/ProThemeTools/index.d.ts +2 -2
- package/es/ProThemeTools/propsType.d.ts +136 -14
- package/es/ProTooltip/index.d.ts +2 -2
- package/es/ProTooltip/propsType.d.ts +49 -9
- package/es/ProTree/components/List.d.ts +2 -2
- package/es/ProTree/components/List.js +2 -2
- package/es/ProTree/components/ProTree.d.ts +2 -2
- package/es/ProTree/components/ProTreeSelect/index.d.ts +3 -3
- package/es/ProTree/components/ProTreeSelect/propsType.d.ts +372 -34
- package/es/ProTree/components/SearchTitle.d.ts +2 -2
- package/es/ProTree/components/Tree.d.ts +3 -3
- package/es/ProTree/index.d.ts +2 -2
- package/es/ProTree/index.js +1 -1
- package/es/ProTree/propsType.d.ts +694 -103
- package/es/ProTree/utils.d.ts +7 -7
- package/es/ProTreeModal/components/Cascader.d.ts +3 -3
- package/es/ProTreeModal/components/List.d.ts +3 -3
- package/es/ProTreeModal/components/Tree.d.ts +2 -2
- package/es/ProTreeModal/index.d.ts +2 -2
- package/es/ProTreeModal/index.js +2 -2
- package/es/ProTreeModal/propsType.d.ts +258 -49
- package/es/ProTreeModal/utils.d.ts +7 -7
- package/es/ProUpload/components/ButtonRender.d.ts +2 -2
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
- package/es/ProUpload/components/Example.d.ts +2 -2
- package/es/ProUpload/components/ImageRender.d.ts +2 -2
- package/es/ProUpload/index.d.ts +2 -2
- package/es/ProUpload/index.js +7 -9
- package/es/ProUpload/propsType.d.ts +65 -8
- package/es/ProWaterMark/index.d.ts +2 -2
- package/es/ProWaterMark/propsType.d.ts +2 -1
- package/es/index.d.ts +15 -6
- package/es/index.js +1 -7
- package/lib/ProAction/index.d.ts +2 -2
- package/lib/ProAction/propsType.d.ts +16 -10
- package/lib/ProConfigProvider/index.d.ts +7 -7
- package/lib/ProDownload/index.d.ts +2 -2
- package/lib/ProDownload/propsType.d.ts +2 -1
- package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
- package/lib/ProDrawerForm/components/ProModal/index.d.ts +2 -2
- package/lib/ProDrawerForm/index.d.ts +1 -2
- package/lib/ProDrawerForm/propsType.d.ts +38 -27
- package/lib/ProDrawerForm/utils/index.d.ts +2 -2
- package/lib/ProEditLabel/components/RenderProForm.d.ts +2 -2
- package/lib/ProEditLabel/index.d.ts +2 -2
- package/lib/ProEditLabel/propsType.d.ts +135 -8
- package/lib/ProEditLabel/style/index.less +24 -25
- package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
- package/lib/ProEditTable/index.d.ts +2 -2
- package/lib/ProEditTable/index.js +18 -16
- package/lib/ProEditTable/propsType.d.ts +243 -106
- package/lib/ProEditTable/style/index.less +1 -0
- package/lib/ProEditTable/utils/index.d.ts +1 -1
- package/lib/ProEditTable/utils/index.js +6 -4
- package/lib/ProEditTable/utils/tools.d.ts +57 -22
- package/lib/ProEditTable/utils/tools.js +47 -21
- package/lib/ProEnum/components/Group.d.ts +2 -2
- package/lib/ProEnum/components/Tag.d.ts +2 -2
- package/lib/ProEnum/hooks/useEnum.d.ts +2 -2
- package/lib/ProEnum/hooks/useEnum.js +48 -17
- package/lib/ProEnum/hooks/useEnumRequest.d.ts +2 -2
- package/lib/ProEnum/index.d.ts +2 -2
- package/lib/ProEnum/propsType.d.ts +231 -42
- package/lib/ProEnum/propsType.js +1 -7
- package/lib/ProEnum/utils/index.d.ts +9 -2
- package/lib/ProEnum/utils/index.js +9 -2
- package/lib/ProForm/components/FormFooter/index.d.ts +2 -2
- package/lib/ProForm/components/FormFooter/propsType.d.ts +8 -3
- package/lib/ProForm/components/base/Checkbox/index.d.ts +2 -2
- package/lib/ProForm/components/base/Input/index.d.ts +2 -2
- package/lib/ProForm/components/base/Input/propsType.d.ts +10 -6
- package/lib/ProForm/components/base/InputNumber/index.d.ts +2 -2
- package/lib/ProForm/components/base/Radio/index.d.ts +2 -2
- package/lib/ProForm/components/base/RangePicker/index.d.ts +2 -2
- package/lib/ProForm/components/base/Select/index.d.ts +2 -2
- package/lib/ProForm/components/base/Switch/index.d.ts +2 -2
- package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
- package/lib/ProForm/components/base/TextArea/index.d.ts +2 -2
- package/lib/ProForm/components/base/TimePicker/index.d.ts +2 -2
- package/lib/ProForm/components/combination/Container/index.d.ts +2 -2
- package/lib/ProForm/components/combination/Container/propsType.d.ts +10 -6
- package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
- package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
- package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
- package/lib/ProForm/components/combination/FormList/index.d.ts +2 -2
- package/lib/ProForm/components/combination/FormList/propsType.d.ts +18 -10
- package/lib/ProForm/components/combination/Group/index.d.ts +2 -2
- package/lib/ProForm/components/combination/Group/propsType.d.ts +10 -5
- package/lib/ProForm/components/combination/Group/utils.d.ts +6 -6
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
- package/lib/ProForm/components/combination/ProCombination/index.d.ts +3 -3
- package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
- package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
- package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +15 -9
- package/lib/ProForm/components/old/EnumSelect/index.d.ts +1 -1
- package/lib/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProCertNo/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
- package/lib/ProForm/components/render/ChangedWrapper.d.ts +2 -2
- package/lib/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
- package/lib/ProForm/components/render/Render.d.ts +2 -2
- package/lib/ProForm/components/render/RenderFields.d.ts +4 -4
- package/lib/ProForm/components/render/propsType.d.ts +76 -69
- package/lib/ProForm/index.d.ts +2 -2
- package/lib/ProForm/propsType.d.ts +26 -17
- package/lib/ProForm/propsType.js +0 -15
- package/lib/ProForm/utils/transformValue.d.ts +2 -2
- package/lib/ProForm/utils/useFieldProps.d.ts +3 -3
- package/lib/ProForm/utils/useForm.d.ts +1 -1
- package/lib/ProForm/utils/useRules.d.ts +1 -1
- package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/lib/ProIcon/index.d.ts +2 -2
- package/lib/ProIcon/propsTypes.d.ts +120 -49
- package/lib/ProLayout/components/Layout/Header/index.d.ts +2 -2
- package/lib/ProLayout/components/Layout/Menu/index.d.ts +2 -2
- package/lib/ProLayout/components/Layout/Notice/index.d.ts +2 -2
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
- package/lib/ProLayout/components/ProCollapse/index.d.ts +2 -2
- package/lib/ProLayout/components/ProCollapse/index.js +12 -4
- package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
- package/lib/ProLayout/components/ProFooter/index.d.ts +2 -2
- package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
- package/lib/ProLayout/components/ProHeader/index.d.ts +2 -2
- package/lib/ProLayout/index.d.ts +5 -5
- package/lib/ProLayout/index.js +6 -2
- package/lib/ProLayout/propTypes.d.ts +182 -25
- package/lib/ProLayout/utils/index.d.ts +2 -2
- package/lib/ProSelect/index.d.ts +3 -3
- package/lib/ProSelect/propsType.d.ts +141 -31
- package/lib/ProStep/components/Anchor/index.d.ts +2 -1
- package/lib/ProStep/components/Item/index.d.ts +2 -2
- package/lib/ProStep/components/Item/index.js +6 -2
- package/lib/ProStep/components/Listener/index.d.ts +4 -3
- package/lib/ProStep/components/Listener/index.js +18 -4
- package/lib/ProStep/components/Step/index.d.ts +2 -2
- package/lib/ProStep/index.d.ts +7 -7
- package/lib/ProStep/index.js +19 -4
- package/lib/ProStep/propsType.d.ts +200 -12
- package/lib/ProStep/utils/index.d.ts +17 -4
- package/lib/ProStep/utils/index.js +11 -2
- package/lib/ProTable/components/FormatColumn/index.d.ts +2 -2
- package/lib/ProTable/components/FormatColumn/index.js +5 -8
- package/lib/ProTable/components/RenderTabs/index.d.ts +4 -0
- package/lib/ProTable/components/RenderTabs/index.js +82 -0
- package/lib/ProTable/components/index.d.ts +25 -0
- package/lib/ProTable/components/index.js +8 -1
- package/lib/ProTable/hooks/useAntdTable.d.ts +2 -93
- package/lib/ProTable/hooks/useAntdTable.js +5 -1
- package/lib/ProTable/index.d.ts +2 -2
- package/lib/ProTable/index.js +5 -2
- package/lib/ProTable/propsType.d.ts +630 -39
- package/lib/ProTable/style/index.less +3 -0
- package/lib/ProTabs/index.d.ts +2 -2
- package/lib/ProTabs/index.js +4 -4
- package/lib/ProTabs/propType.d.ts +66 -9
- package/lib/ProThemeTools/index.d.ts +2 -2
- package/lib/ProThemeTools/propsType.d.ts +136 -14
- package/lib/ProTooltip/index.d.ts +2 -2
- package/lib/ProTooltip/propsType.d.ts +49 -9
- package/lib/ProTree/components/List.d.ts +2 -2
- package/lib/ProTree/components/List.js +2 -2
- package/lib/ProTree/components/ProTree.d.ts +2 -2
- package/lib/ProTree/components/ProTreeSelect/index.d.ts +3 -3
- package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +372 -34
- package/lib/ProTree/components/SearchTitle.d.ts +2 -2
- package/lib/ProTree/components/Tree.d.ts +3 -3
- package/lib/ProTree/index.d.ts +2 -2
- package/lib/ProTree/index.js +1 -1
- package/lib/ProTree/propsType.d.ts +694 -103
- package/lib/ProTree/utils.d.ts +7 -7
- package/lib/ProTreeModal/components/Cascader.d.ts +3 -3
- package/lib/ProTreeModal/components/List.d.ts +3 -3
- package/lib/ProTreeModal/components/Tree.d.ts +2 -2
- package/lib/ProTreeModal/index.d.ts +2 -2
- package/lib/ProTreeModal/index.js +2 -2
- package/lib/ProTreeModal/propsType.d.ts +258 -49
- package/lib/ProTreeModal/utils.d.ts +7 -7
- package/lib/ProUpload/components/ButtonRender.d.ts +2 -2
- package/lib/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
- package/lib/ProUpload/components/Example.d.ts +2 -2
- package/lib/ProUpload/components/ImageRender.d.ts +2 -2
- package/lib/ProUpload/index.d.ts +2 -2
- package/lib/ProUpload/index.js +7 -9
- package/lib/ProUpload/propsType.d.ts +65 -8
- package/lib/ProWaterMark/index.d.ts +2 -2
- package/lib/ProWaterMark/propsType.d.ts +2 -1
- package/lib/index.d.ts +15 -6
- package/lib/index.js +7 -71
- package/package.json +1 -1
- package/.vscode/extensions.json +0 -5
- package/test/__mocks__/fileMock.js +0 -0
- package/test/__mocks__/styleMock.js +0 -0
package/es/ProTree/utils.d.ts
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
import {
|
1
|
+
import type { ProTreeFieldNamesType, ProTreeDataType } from './propsType';
|
2
2
|
/**
|
3
3
|
* 树转成铺平的数组
|
4
4
|
* @param originalTreeData
|
5
5
|
* @returns
|
6
6
|
*/
|
7
|
-
export declare function getFlatTreeData(originalTreeData:
|
7
|
+
export declare function getFlatTreeData(originalTreeData: ProTreeDataType[], fieldNames: ProTreeFieldNamesType): any[];
|
8
8
|
/**
|
9
9
|
* 获取 tree 所有的 keys 集合
|
10
10
|
* @param data
|
11
11
|
* @param fieldNames
|
12
12
|
* @returns
|
13
13
|
*/
|
14
|
-
export declare function getAllKeys(data:
|
14
|
+
export declare function getAllKeys(data: ProTreeDataType[], fieldNames: ProTreeFieldNamesType): string[];
|
15
15
|
/**
|
16
16
|
* 获取展开的key
|
17
17
|
* @param key
|
@@ -19,22 +19,22 @@ export declare function getAllKeys(data: TreeDataProps[], fieldNames: FieldNames
|
|
19
19
|
* @param fieldNames
|
20
20
|
* @returns
|
21
21
|
*/
|
22
|
-
export declare const getParentKey: (key: string, tree:
|
23
|
-
export declare function findTreeNodeByKey(treeData:
|
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
24
|
/**
|
25
25
|
* 过滤掉每一层假值(例如 false、null、0、""、undefined 等)
|
26
26
|
* @param data
|
27
27
|
* @param checkedKeys
|
28
28
|
* @returns
|
29
29
|
*/
|
30
|
-
export declare function filterCheckedNodes(data: any, checkedKeys: any, searchStr: string, fieldNames:
|
30
|
+
export declare function filterCheckedNodes(data: any, checkedKeys: any, searchStr: string, fieldNames: ProTreeFieldNamesType): any[];
|
31
31
|
/**
|
32
32
|
* 获取 tree 当前选中节点下的所有子节点的 keys
|
33
33
|
* @param node
|
34
34
|
* @param childrenKeys
|
35
35
|
* @returns
|
36
36
|
*/
|
37
|
-
export declare function getChildrenKeys(node:
|
37
|
+
export declare function getChildrenKeys(node: ProTreeDataType, childrenKeys: string[], fieldNames: ProTreeFieldNamesType, type: 'treeClose' | 'treeCheck'): void;
|
38
38
|
/**
|
39
39
|
* 如果默认全开展那么返回所有key,否则返回空[]
|
40
40
|
* @param isExpand 是否全展开
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import {
|
2
|
+
import type { ProTreeModalFieldNamesType, ProTreeModalDataType } from '../propsType';
|
3
3
|
interface CascaderProps {
|
4
|
-
dataSource:
|
4
|
+
dataSource: ProTreeModalDataType[];
|
5
5
|
checkedValues?: any[];
|
6
6
|
showCodeName?: boolean;
|
7
|
-
fieldNames:
|
7
|
+
fieldNames: ProTreeModalFieldNamesType;
|
8
8
|
searchStr?: string;
|
9
9
|
disabled?: boolean;
|
10
10
|
handleOnChange?: (e: any, value: string) => void;
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
|
-
import {
|
2
|
+
import type { ProTreeModalFieldNamesType, ProTreeModalDataType } from '../propsType';
|
3
3
|
interface ListProps {
|
4
4
|
disabled?: boolean;
|
5
5
|
checkedValues?: any[];
|
6
6
|
treeData: any[];
|
7
7
|
searchStr?: string;
|
8
8
|
showCodeName?: boolean;
|
9
|
-
fieldNames:
|
9
|
+
fieldNames: ProTreeModalFieldNamesType;
|
10
10
|
mode?: 'render' | 'view';
|
11
11
|
modeType?: string;
|
12
12
|
span?: number;
|
13
13
|
draggable?: boolean;
|
14
|
-
flatTreeData?:
|
14
|
+
flatTreeData?: ProTreeModalDataType[];
|
15
15
|
handleOnChange?: (e: any, value: string) => void;
|
16
16
|
handleFilterClose?: (code: string) => void;
|
17
17
|
optionRender?: (item: any, searchStr?: string) => string | ReactNode;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
|
-
import {
|
2
|
+
import type { ProTreeModalFieldNamesType } from '../propsType';
|
3
3
|
interface TreeViewProps {
|
4
4
|
disabled?: boolean;
|
5
5
|
checkedValues?: any[];
|
@@ -9,7 +9,7 @@ interface TreeViewProps {
|
|
9
9
|
searchStr?: string;
|
10
10
|
showCodeName?: boolean;
|
11
11
|
checkStrictly?: boolean;
|
12
|
-
fieldNames:
|
12
|
+
fieldNames: ProTreeModalFieldNamesType;
|
13
13
|
tags?: string[];
|
14
14
|
mode?: 'render' | 'view';
|
15
15
|
draggable?: boolean;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import type { ProTreeModalType } from './propsType';
|
2
2
|
import './style/index.less';
|
3
3
|
export declare const CASCADER = "CASCADER";
|
4
|
-
declare const ProTreeModal: (props:
|
4
|
+
declare const ProTreeModal: (props: ProTreeModalType) => import("react/jsx-runtime").JSX.Element;
|
5
5
|
export default ProTreeModal;
|
package/es/ProTreeModal/index.js
CHANGED
@@ -14,8 +14,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
14
14
|
/*
|
15
15
|
* @Author: ''
|
16
16
|
* @Date: 2024-06-04 10:01:18
|
17
|
-
* @LastEditors:
|
18
|
-
* @LastEditTime:
|
17
|
+
* @LastEditors: za-xuwenli xuwenli@zhongan.io
|
18
|
+
* @LastEditTime: 2025-03-20 11:12:23
|
19
19
|
* @FilePath: /za-material-warehouse/src/ProTreeModal/index.tsx
|
20
20
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
21
21
|
*/
|
@@ -1,91 +1,300 @@
|
|
1
1
|
import { ReactNode, CSSProperties } from 'react';
|
2
2
|
import { Service, Options } from 'ahooks/lib/useRequest/src/types';
|
3
|
-
import {
|
4
|
-
|
3
|
+
import type { ProFormOtherType } from '../ProForm/propsType';
|
4
|
+
/**
|
5
|
+
* 树数据结构
|
6
|
+
* @description 定义树节点的数据结构
|
7
|
+
*/
|
8
|
+
export interface ProTreeModalDataType {
|
9
|
+
/**
|
10
|
+
* 节点标签
|
11
|
+
* @description 显示的节点文本
|
12
|
+
* @default undefined
|
13
|
+
*/
|
5
14
|
label: string;
|
15
|
+
/**
|
16
|
+
* 节点值
|
17
|
+
* @description 节点的唯一标识
|
18
|
+
* @default undefined
|
19
|
+
*/
|
6
20
|
value: string;
|
7
|
-
|
8
|
-
|
21
|
+
/**
|
22
|
+
* 子节点
|
23
|
+
* @description 当前节点的子节点数组
|
24
|
+
* @default undefined
|
25
|
+
*/
|
26
|
+
children?: ProTreeModalDataType[];
|
27
|
+
/**
|
28
|
+
* 是否禁用
|
29
|
+
* @description 禁用不可操作
|
30
|
+
* @default false
|
31
|
+
*/
|
9
32
|
disabled?: boolean;
|
10
|
-
/**
|
33
|
+
/**
|
34
|
+
* 固定位置
|
35
|
+
* @description 处理固定场景
|
36
|
+
* @default undefined
|
37
|
+
*/
|
11
38
|
fixed?: 'left' | 'right';
|
39
|
+
/**
|
40
|
+
* 是否可勾选
|
41
|
+
* @description 是否可以勾选复选框
|
42
|
+
* @default undefined
|
43
|
+
*/
|
12
44
|
checkable?: boolean;
|
45
|
+
/**
|
46
|
+
* 自定义属性
|
47
|
+
* @description 可添加任意其他属性
|
48
|
+
* @default undefined
|
49
|
+
*/
|
13
50
|
[key: string]: any;
|
14
51
|
}
|
15
|
-
|
16
|
-
|
17
|
-
|
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[];
|
18
68
|
}
|
19
|
-
|
69
|
+
/**
|
70
|
+
* 字段名称映射
|
71
|
+
* @description 定义树节点字段的映射关系
|
72
|
+
*/
|
73
|
+
export interface ProTreeModalFieldNamesType {
|
74
|
+
/**
|
75
|
+
* 标签字段名
|
76
|
+
* @description 指定节点标签的属性名
|
77
|
+
* @default 'label'
|
78
|
+
*/
|
20
79
|
label: string;
|
80
|
+
/**
|
81
|
+
* 值字段名
|
82
|
+
* @description 指定节点值的属性名
|
83
|
+
* @default 'value'
|
84
|
+
*/
|
21
85
|
value: string;
|
86
|
+
/**
|
87
|
+
* 子节点字段名
|
88
|
+
* @description 指定子节点的属性名
|
89
|
+
* @default 'children'
|
90
|
+
*/
|
22
91
|
children?: string;
|
23
92
|
}
|
24
|
-
|
25
|
-
|
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
|
+
*/
|
26
108
|
disabled?: boolean | boolean[];
|
27
109
|
}
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
/**
|
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
|
+
*/
|
34
132
|
open?: boolean;
|
35
|
-
/**
|
133
|
+
/**
|
134
|
+
* 列表布局
|
135
|
+
* @description 列表模式下一行放几个
|
136
|
+
* @default 24
|
137
|
+
*/
|
36
138
|
span?: number;
|
37
|
-
/**
|
38
|
-
|
39
|
-
|
139
|
+
/**
|
140
|
+
* 展示类型
|
141
|
+
* @description 展示模式,list为列表展示形式,tree为树形展示,appoint为指定模式
|
142
|
+
* @default 'list'
|
143
|
+
*/
|
144
|
+
mode?: ProTreeModalModeType;
|
145
|
+
/**
|
146
|
+
* 是否指定模式
|
147
|
+
* @description 是否开启指定模式,开启后展示形式会不同
|
148
|
+
* @default false
|
149
|
+
*/
|
40
150
|
appoint?: boolean;
|
41
|
-
/**
|
42
|
-
|
43
|
-
|
151
|
+
/**
|
152
|
+
* 指定模式参数
|
153
|
+
* @description 指定模式下传递的额外参数
|
154
|
+
* @default undefined
|
155
|
+
*/
|
156
|
+
appointProps?: ProTreeModalAppointType;
|
157
|
+
/**
|
158
|
+
* 值包含标签
|
159
|
+
* @description 开启后提交给后端的格式为 [{ label:xx, value: ""}]
|
160
|
+
* @default false
|
161
|
+
*/
|
44
162
|
labelInValue?: boolean;
|
45
|
-
/**
|
163
|
+
/**
|
164
|
+
* 查看模式
|
165
|
+
* @description 是否为查看模式,与disabled效果相同
|
166
|
+
* @default false
|
167
|
+
*/
|
46
168
|
isView?: boolean;
|
47
|
-
/**
|
169
|
+
/**
|
170
|
+
* 枚举代码
|
171
|
+
* @description 使用ProEnum的数据源
|
172
|
+
* @default undefined
|
173
|
+
*/
|
48
174
|
code?: string;
|
49
|
-
/**
|
175
|
+
/**
|
176
|
+
* 触发元素
|
177
|
+
* @description 触发弹框展开的容器
|
178
|
+
* @default undefined
|
179
|
+
*/
|
50
180
|
trigger?: string | ReactNode;
|
51
|
-
/**
|
181
|
+
/**
|
182
|
+
* 显示代码名称
|
183
|
+
* @description 是否展示code-label形式
|
184
|
+
* @default false
|
185
|
+
*/
|
52
186
|
showCodeName?: boolean;
|
53
|
-
/**
|
54
|
-
|
55
|
-
|
187
|
+
/**
|
188
|
+
* 数据源
|
189
|
+
* @description 静态数据源
|
190
|
+
* @default []
|
191
|
+
*/
|
192
|
+
dataSource?: ProTreeModalDataType[];
|
193
|
+
/**
|
194
|
+
* 最小选择个数
|
195
|
+
* @description 设置最小选择个数限制
|
196
|
+
* @default undefined
|
197
|
+
*/
|
56
198
|
min?: number;
|
57
|
-
/**
|
199
|
+
/**
|
200
|
+
* 最大选择个数
|
201
|
+
* @description 设置最大选择个数限制
|
202
|
+
* @default undefined
|
203
|
+
*/
|
58
204
|
max?: number;
|
59
|
-
/**
|
205
|
+
/**
|
206
|
+
* 超限提示
|
207
|
+
* @description 超过最大数量的提示信息,如'最多为{max}个'
|
208
|
+
* @default undefined
|
209
|
+
*/
|
60
210
|
maxMessage?: string;
|
61
|
-
/**
|
211
|
+
/**
|
212
|
+
* 是否可拖拽
|
213
|
+
* @description 列表模式下已选择项是否可拖拽排序
|
214
|
+
* @default false
|
215
|
+
*/
|
62
216
|
draggable?: boolean;
|
63
|
-
/**
|
217
|
+
/**
|
218
|
+
* 是否禁用
|
219
|
+
* @description 禁用整个组件
|
220
|
+
* @default false
|
221
|
+
*/
|
64
222
|
disabled?: any;
|
65
|
-
/**
|
223
|
+
/**
|
224
|
+
* 弹框标题
|
225
|
+
* @description 弹框的标题文本
|
226
|
+
* @default undefined
|
227
|
+
*/
|
66
228
|
title?: string | ReactNode;
|
67
|
-
/**
|
229
|
+
/**
|
230
|
+
* 全选值
|
231
|
+
* @description 全选时传给后端的标识
|
232
|
+
* @default undefined
|
233
|
+
*/
|
68
234
|
allValue?: string | number;
|
69
|
-
/**
|
235
|
+
/**
|
236
|
+
* 占位提示
|
237
|
+
* @description 搜索框提示文本
|
238
|
+
* @default '请输入'
|
239
|
+
*/
|
70
240
|
placeholder?: string;
|
71
|
-
/**
|
241
|
+
/**
|
242
|
+
* 严格选择
|
243
|
+
* @description 父子节点选中状态不再关联
|
244
|
+
* @default false
|
245
|
+
*/
|
72
246
|
checkStrictly?: boolean;
|
73
|
-
/**
|
247
|
+
/**
|
248
|
+
* 触发器样式
|
249
|
+
* @description trigger元素的样式设置
|
250
|
+
* @default undefined
|
251
|
+
*/
|
74
252
|
style?: CSSProperties;
|
75
|
-
/**
|
253
|
+
/**
|
254
|
+
* 标签集合
|
255
|
+
* @description 用于标记分类的标签集合
|
256
|
+
* @default undefined
|
257
|
+
*/
|
76
258
|
tags?: string[];
|
77
|
-
|
78
|
-
|
259
|
+
/**
|
260
|
+
* 其他属性
|
261
|
+
* @description 表单其他配置属性
|
262
|
+
* @default undefined
|
263
|
+
*/
|
264
|
+
otherProps?: ProFormOtherType;
|
265
|
+
/**
|
266
|
+
* 远程请求
|
267
|
+
* @description 远程请求接口配置
|
268
|
+
* @default undefined
|
269
|
+
*/
|
79
270
|
useRequest?: {
|
80
271
|
service?: Service<any, any>;
|
81
272
|
options?: Options<any, any>;
|
82
273
|
};
|
83
|
-
/**
|
84
|
-
|
85
|
-
|
274
|
+
/**
|
275
|
+
* 值变化回调
|
276
|
+
* @description value变化的回调函数
|
277
|
+
* @default undefined
|
278
|
+
*/
|
279
|
+
onChange?: (values: ProTreeModalValueType[] | ProTreeModalValueType) => void;
|
280
|
+
/**
|
281
|
+
* 自定义渲染
|
282
|
+
* @description 自定义选项内容渲染
|
283
|
+
* @default undefined
|
284
|
+
*/
|
86
285
|
optionRender?: (item: any, searchStr: string) => string | ReactNode;
|
87
|
-
/**
|
88
|
-
|
89
|
-
|
286
|
+
/**
|
287
|
+
* 响应数据转换
|
288
|
+
* @description 对后台返回数据进行格式化
|
289
|
+
* @default undefined
|
290
|
+
*/
|
291
|
+
transformResponse?: (data: any) => ProTreeModalDataType[];
|
292
|
+
/**
|
293
|
+
* 打开状态变化
|
294
|
+
* @description 弹框打开/关闭回调
|
295
|
+
* @default undefined
|
296
|
+
*/
|
90
297
|
openChange?: (open: boolean) => void;
|
91
298
|
}
|
299
|
+
export type ProTreeModalProps = ProTreeModalType;
|
300
|
+
export type ProTreeModalAction = ProTreeModalActionType;
|
@@ -1,17 +1,17 @@
|
|
1
|
-
import {
|
1
|
+
import type { ProTreeModalFieldNamesType, ProTreeModalDataType } from './propsType';
|
2
2
|
/**
|
3
3
|
* 树转成铺平的数组
|
4
4
|
* @param originalTreeData
|
5
5
|
* @returns
|
6
6
|
*/
|
7
|
-
export declare function getFlatTreeData(originalTreeData:
|
7
|
+
export declare function getFlatTreeData(originalTreeData: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType, modeType?: string): any[];
|
8
8
|
/**
|
9
9
|
* 获取 tree 所有的 keys 集合
|
10
10
|
* @param data
|
11
11
|
* @param fieldNames
|
12
12
|
* @returns
|
13
13
|
*/
|
14
|
-
export declare function getAllKeys(data:
|
14
|
+
export declare function getAllKeys(data: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType): string[];
|
15
15
|
/**
|
16
16
|
* 获取展开的key
|
17
17
|
* @param key
|
@@ -19,21 +19,21 @@ export declare function getAllKeys(data: TreeDataProps[], fieldNames: FieldNames
|
|
19
19
|
* @param fieldNames
|
20
20
|
* @returns
|
21
21
|
*/
|
22
|
-
export declare const getParentKey: (key: string, tree:
|
23
|
-
export declare function findTreeNodeByKey(treeData:
|
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
24
|
/**
|
25
25
|
* 根据所选的 checkedKeys 筛选出展示的 treeData
|
26
26
|
* @param data
|
27
27
|
* @param checkedKeys
|
28
28
|
* @returns
|
29
29
|
*/
|
30
|
-
export declare function filterCheckedNodes(data: any, checkedKeys: any, searchStr: string, fieldNames:
|
30
|
+
export declare function filterCheckedNodes(data: any, checkedKeys: any, searchStr: string, fieldNames: ProTreeModalFieldNamesType): any[];
|
31
31
|
/**
|
32
32
|
* 获取 tree 当前选中节点下的所有子节点的 keys
|
33
33
|
* @param node
|
34
34
|
* @param childrenKeys
|
35
35
|
* @returns
|
36
36
|
*/
|
37
|
-
export declare function getChildrenKeys(node:
|
37
|
+
export declare function getChildrenKeys(node: ProTreeModalDataType, childrenKeys: string[], fieldNames: ProTreeModalFieldNamesType, type: 'treeClose' | 'treeCheck'): void;
|
38
38
|
export declare const transformMessage: (obj: any, message: string) => string;
|
39
39
|
export declare const addLevelAndParentId: (tree: any[], fieldNames: any, currentLevel?: number, currentParentId?: any) => any[];
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
2
2
|
import { UploadFile } from 'antd';
|
3
|
-
import {
|
4
|
-
interface DragRenderProps extends Pick<
|
3
|
+
import type { ProUploadType } from '../propsType';
|
4
|
+
interface DragRenderProps extends Pick<ProUploadType, 'buttonProps' | 'disabled' | 'maxCount' | 'extraTipText' | 'buttonText'> {
|
5
5
|
isView?: boolean;
|
6
6
|
headerRender: () => ReactNode;
|
7
7
|
footerRender: () => ReactNode;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const DraggableUploadListItem: ({ file, children }:
|
1
|
+
import type { DraggableUploadListItemType } from '../propsType';
|
2
|
+
export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemType) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
2
|
+
import type { ExampleModalType } from '../propsType';
|
3
3
|
interface ExampleProps {
|
4
4
|
exampleContent?: React.ReactNode;
|
5
5
|
className?: string;
|
6
6
|
exampleTitle?: string | React.ReactNode;
|
7
|
-
exampleModalProps?:
|
7
|
+
exampleModalProps?: ExampleModalType;
|
8
8
|
}
|
9
9
|
export declare const Example: React.FC<ExampleProps>;
|
10
10
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
2
2
|
import { UploadFile } from 'antd/es/upload/interface';
|
3
|
-
import {
|
4
|
-
interface DragRenderProps extends Pick<
|
3
|
+
import type { ProUploadType } from '../propsType';
|
4
|
+
interface DragRenderProps extends Pick<ProUploadType, 'buttonProps' | 'disabled' | 'maxCount' | 'extraTipText' | 'showExampleContent' | 'exampleTitle' | 'exampleContent' | 'exampleModalProps'> {
|
5
5
|
isView?: boolean;
|
6
6
|
headerRender: () => ReactNode;
|
7
7
|
footerRender: () => ReactNode;
|
package/es/ProUpload/index.d.ts
CHANGED
package/es/ProUpload/index.js
CHANGED
@@ -22,6 +22,9 @@ import ButtonRender from './components/ButtonRender';
|
|
22
22
|
import ImageRender from './components/ImageRender';
|
23
23
|
import { validateSize, validateFileExt } from './uitls';
|
24
24
|
import locale from '../locale';
|
25
|
+
var defaultCustomRequest = function defaultCustomRequest(option) {
|
26
|
+
return option.onSuccess();
|
27
|
+
};
|
25
28
|
var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
26
29
|
var _locale$ProUpload;
|
27
30
|
var _useState = useState([]),
|
@@ -205,13 +208,6 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
205
208
|
}
|
206
209
|
return headerRender;
|
207
210
|
};
|
208
|
-
// 自定义顶部
|
209
|
-
// const _centerRender = () => {
|
210
|
-
// if (isFunction(centerRender)) {
|
211
|
-
// return centerRender();
|
212
|
-
// }
|
213
|
-
// return centerRender;
|
214
|
-
// };
|
215
211
|
// 自定义底部
|
216
212
|
var _footerRender = function _footerRender() {
|
217
213
|
if (isFunction(footerRender)) {
|
@@ -242,7 +238,7 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
242
238
|
};
|
243
239
|
}, [_fileList]);
|
244
240
|
// 通用props
|
245
|
-
var baseUploadProps = _objectSpread({
|
241
|
+
var baseUploadProps = _objectSpread(_objectSpread({
|
246
242
|
action: action,
|
247
243
|
beforeUpload: handleBeforeUpload,
|
248
244
|
onRemove: handleRemove,
|
@@ -253,7 +249,9 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
253
249
|
accept: accept,
|
254
250
|
data: _objectSpread({}, dataParams),
|
255
251
|
name: name
|
256
|
-
}, residueProps)
|
252
|
+
}, residueProps), {}, {
|
253
|
+
customRequest: !action && !residueProps.customRequest ? defaultCustomRequest : residueProps.customRequest
|
254
|
+
});
|
257
255
|
var baseProps = {
|
258
256
|
isView: isView,
|
259
257
|
headerRender: _headerRender,
|