@zat-design/sisyphus-react 3.11.14 → 3.12.0-beta.1
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/ProDrawer/index.js +12 -2
- package/es/ProDrawerForm/components/ProModal/index.d.ts +2 -2
- package/es/ProDrawerForm/components/ProModal/index.js +12 -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/index.js +17 -4
- 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/index.js +3 -1
- 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 +2 -1
- package/es/ProForm/utils/useForm.js +3 -2
- 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/ProDrawer/index.js +12 -2
- package/lib/ProDrawerForm/components/ProModal/index.d.ts +2 -2
- package/lib/ProDrawerForm/components/ProModal/index.js +12 -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/index.js +17 -4
- 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/index.js +3 -1
- 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 +2 -1
- package/lib/ProForm/utils/useForm.js +3 -2
- 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
@@ -1,22 +1,57 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { UploadFile } from 'antd/es/upload/interface';
|
3
|
+
import { UploadRequestOption } from 'rc-upload/lib/interface';
|
3
4
|
export type UploadType = 'drag' | 'button' | 'image';
|
4
|
-
export interface
|
5
|
+
export interface UploadFileResType {
|
6
|
+
/**
|
7
|
+
* @description 上传文件返回的URL
|
8
|
+
* @default -
|
9
|
+
*/
|
5
10
|
url: string;
|
11
|
+
/**
|
12
|
+
* @description 允许扩展字段
|
13
|
+
*/
|
6
14
|
[key: string]: any;
|
7
15
|
}
|
8
|
-
export interface
|
16
|
+
export interface ExampleModalType {
|
17
|
+
/**
|
18
|
+
* @description 弹窗宽度
|
19
|
+
* @default -
|
20
|
+
*/
|
9
21
|
width?: string | number;
|
22
|
+
/**
|
23
|
+
* @description 弹窗外层容器类名
|
24
|
+
* @default -
|
25
|
+
*/
|
10
26
|
wrapClassName?: string;
|
27
|
+
/**
|
28
|
+
* @description 允许扩展字段
|
29
|
+
*/
|
11
30
|
[key: string]: any;
|
12
31
|
}
|
13
|
-
export interface
|
32
|
+
export interface FieldNamesType {
|
33
|
+
/**
|
34
|
+
* @description 文件唯一标识字段
|
35
|
+
* @default -
|
36
|
+
*/
|
14
37
|
uid?: number;
|
38
|
+
/**
|
39
|
+
* @description 文件名称字段
|
40
|
+
* @default -
|
41
|
+
*/
|
15
42
|
name?: string;
|
43
|
+
/**
|
44
|
+
* @description 文件URL字段
|
45
|
+
* @default -
|
46
|
+
*/
|
16
47
|
url?: string;
|
48
|
+
/**
|
49
|
+
* @description 文件状态字段
|
50
|
+
* @default -
|
51
|
+
*/
|
17
52
|
status?: 'done' | 'uploading' | 'error';
|
18
53
|
}
|
19
|
-
export interface
|
54
|
+
export interface ProUploadType {
|
20
55
|
/**
|
21
56
|
* @description 顶部的内容(button类型的上传不适用)
|
22
57
|
* @default -
|
@@ -51,7 +86,7 @@ export interface ProUploadProps {
|
|
51
86
|
* @description 示例弹窗的属性配置继承与antd 的Modal对话框
|
52
87
|
* @default -
|
53
88
|
*/
|
54
|
-
exampleModalProps?:
|
89
|
+
exampleModalProps?: ExampleModalType;
|
55
90
|
/**
|
56
91
|
* @description 接受上传的文件类型, '.png,.jpeg,.jpg,.xlsx,.xls,.json,.doc,.docx' 详见 input accept Attribute
|
57
92
|
* @default -
|
@@ -168,7 +203,7 @@ export interface ProUploadProps {
|
|
168
203
|
* @description 上传接口处理方法 返回一个数组 UploadFile【】
|
169
204
|
* @default -
|
170
205
|
*/
|
171
|
-
transformResponse?: (res: any) =>
|
206
|
+
transformResponse?: (res: any) => UploadFileResType;
|
172
207
|
/**
|
173
208
|
* @description 可以调用组件的内部方法,例如:uploadStart方式
|
174
209
|
* @default -
|
@@ -188,20 +223,42 @@ export interface ProUploadProps {
|
|
188
223
|
* @description 文件对象的字段映射
|
189
224
|
* @default true
|
190
225
|
*/
|
191
|
-
fieldNames?:
|
226
|
+
fieldNames?: FieldNamesType;
|
192
227
|
/**
|
193
228
|
* @description 删除已经上传的文件时是否二次提示
|
194
229
|
* @default false
|
195
230
|
*/
|
196
231
|
isConfirmDelete?: boolean;
|
232
|
+
/**
|
233
|
+
* @description 组件ID
|
234
|
+
* @default -
|
235
|
+
*/
|
197
236
|
id?: string;
|
198
237
|
/**
|
199
238
|
* @description 查看模式
|
200
239
|
* @default false
|
201
240
|
*/
|
202
241
|
isView?: boolean;
|
242
|
+
/**
|
243
|
+
* @description 自定义上传实现
|
244
|
+
* @default false
|
245
|
+
*/
|
246
|
+
customRequest?: (option: UploadRequestOption) => void;
|
203
247
|
}
|
204
|
-
export interface
|
248
|
+
export interface DraggableUploadListItemType {
|
249
|
+
/**
|
250
|
+
* @description 文件对象
|
251
|
+
* @default -
|
252
|
+
*/
|
205
253
|
file: UploadFile<any>;
|
254
|
+
/**
|
255
|
+
* @description 子元素
|
256
|
+
* @default -
|
257
|
+
*/
|
206
258
|
children: React.ReactNode;
|
207
259
|
}
|
260
|
+
export type UploadFileRes = UploadFileResType;
|
261
|
+
export type ExampleModalProps = ExampleModalType;
|
262
|
+
export type fieldNamesProps = FieldNamesType;
|
263
|
+
export type ProUploadProps = ProUploadType;
|
264
|
+
export type DraggableUploadListItemProps = DraggableUploadListItemType;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
3
|
-
declare const ProWaterMark: React.FC<
|
2
|
+
import type { ProWaterMarkType } from './propsType';
|
3
|
+
declare const ProWaterMark: React.FC<ProWaterMarkType>;
|
4
4
|
export default ProWaterMark;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export interface
|
1
|
+
export interface ProWaterMarkType {
|
2
2
|
/**
|
3
3
|
* @description 水印是否显示
|
4
4
|
* @default true
|
@@ -80,3 +80,4 @@ export interface ProWaterMarkProps {
|
|
80
80
|
*/
|
81
81
|
mode?: 'repeat' | 'interval';
|
82
82
|
}
|
83
|
+
export type ProWaterMarkProps = ProWaterMarkType;
|
package/lib/index.d.ts
CHANGED
@@ -9,7 +9,7 @@ export { default as ProEditTable } from './ProEditTable';
|
|
9
9
|
export { default as ProDrawerForm } from './ProDrawerForm';
|
10
10
|
export { default as ProEditLabel } from './ProEditLabel';
|
11
11
|
export { default as ProForm } from './ProForm';
|
12
|
-
export
|
12
|
+
export { ProFormProvider } from './ProForm';
|
13
13
|
export * from './ProForm/components';
|
14
14
|
export { default as ProSelect } from './ProSelect';
|
15
15
|
export { default as ProEnum } from './ProEnum';
|
@@ -26,9 +26,18 @@ export * from './locale';
|
|
26
26
|
export { default as ProBackBtn } from './ProLayout/components/ProHeader/components/ProBackBtn';
|
27
27
|
export { default as ProEditableTable } from './old/ProEditableTable';
|
28
28
|
export { default as ProCertValidity } from './old/ProCertValidity';
|
29
|
-
export
|
30
|
-
export
|
31
|
-
export
|
32
|
-
export
|
33
|
-
export
|
29
|
+
export type { ProFormType, ProColumnProps, ProFormColumnType } from './ProForm/propsType';
|
30
|
+
export type { ProFormComponentType } from './ProForm/components/index.d';
|
31
|
+
export type { ProTableType, ProTableColumnType, ProTableSummaryType, ProTableUseAntdTableType, ProTableProps, ProTableSummaryProps, ProTableColumn, UseAntdTableState } from './ProTable/propsType';
|
32
|
+
export type { ProUploadType, ProUploadProps } from './ProUpload/propsType';
|
33
|
+
export type { ProTabsType, ProTabsItemType, ProTabsProps, ProTabsItemsProps } from './ProTabs/propType';
|
34
|
+
export type { BreadcrumbColumnType, SubDescribeColumnType, DescribeColumnType, ProHeaderType, ProHeaderProps, BreadcrumbColumnsProps, SubDescribeColumnsProps, DescribeColumnsProps } from './ProLayout/components/ProHeader/PropTypes';
|
35
|
+
export type { ProTooltipType, ProTooltipProps } from './ProTooltip/propsType';
|
36
|
+
export type { ProIconType, ProIconProps } from './ProIcon/propsTypes';
|
37
|
+
export type { ProTreeType, ProTreeSelectType, ProTreeProps, PropTreeSelectProps } from './ProTree/propsType';
|
38
|
+
export type { ProTreeModalType, ProTreeModalActionType, ProTreeModalProps, ProTreeModalAction } from './ProTreeModal/propsType';
|
39
|
+
export type { ProEditTableType, ProEditTableColumnType, ProEditTableSummaryColumnType, ProEditTableSummaryConfigType, ProEditTableActionType, ProEditTableProps, ProEditTableColumnsProps, SummaryProps, SummaryColumnProps, BaseActionProps } from './ProEditTable/propsType';
|
40
|
+
export type { ProStepType, ProStepContextType, ProStepItemType, ProStepPropsType, ProStepItemPropsType } from './ProStep/propsType';
|
41
|
+
export type { ProDrawerFormType, ProDrawerFormPropsType } from './ProDrawerForm/propsType';
|
42
|
+
export type { ProModalSelectType, ProModalSelectConfigType, ProModalSelectPropsType } from './ProForm/components/combination/ProModalSelect/propsType';
|
34
43
|
export * from './tokens';
|
package/lib/index.js
CHANGED
@@ -16,6 +16,7 @@ var _exportNames = {
|
|
16
16
|
ProDrawerForm: true,
|
17
17
|
ProEditLabel: true,
|
18
18
|
ProForm: true,
|
19
|
+
ProFormProvider: true,
|
19
20
|
ProSelect: true,
|
20
21
|
ProEnum: true,
|
21
22
|
ProIcon: true,
|
@@ -102,6 +103,12 @@ Object.defineProperty(exports, "ProForm", {
|
|
102
103
|
return _ProForm.default;
|
103
104
|
}
|
104
105
|
});
|
106
|
+
Object.defineProperty(exports, "ProFormProvider", {
|
107
|
+
enumerable: true,
|
108
|
+
get: function get() {
|
109
|
+
return _ProForm.ProFormProvider;
|
110
|
+
}
|
111
|
+
});
|
105
112
|
Object.defineProperty(exports, "ProIcon", {
|
106
113
|
enumerable: true,
|
107
114
|
get: function get() {
|
@@ -178,17 +185,6 @@ var _ProEditTable = _interopRequireDefault(require("./ProEditTable"));
|
|
178
185
|
var _ProDrawerForm = _interopRequireDefault(require("./ProDrawerForm"));
|
179
186
|
var _ProEditLabel = _interopRequireDefault(require("./ProEditLabel"));
|
180
187
|
var _ProForm = _interopRequireWildcard(require("./ProForm"));
|
181
|
-
Object.keys(_ProForm).forEach(function (key) {
|
182
|
-
if (key === "default" || key === "__esModule") return;
|
183
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
184
|
-
if (key in exports && exports[key] === _ProForm[key]) return;
|
185
|
-
Object.defineProperty(exports, key, {
|
186
|
-
enumerable: true,
|
187
|
-
get: function get() {
|
188
|
-
return _ProForm[key];
|
189
|
-
}
|
190
|
-
});
|
191
|
-
});
|
192
188
|
var _components = require("./ProForm/components");
|
193
189
|
Object.keys(_components).forEach(function (key) {
|
194
190
|
if (key === "default" || key === "__esModule") return;
|
@@ -237,66 +233,6 @@ Object.keys(_locale).forEach(function (key) {
|
|
237
233
|
var _ProBackBtn = _interopRequireDefault(require("./ProLayout/components/ProHeader/components/ProBackBtn"));
|
238
234
|
var _ProEditableTable = _interopRequireDefault(require("./old/ProEditableTable"));
|
239
235
|
var _ProCertValidity = _interopRequireDefault(require("./old/ProCertValidity"));
|
240
|
-
var _propsType = require("./ProForm/propsType");
|
241
|
-
Object.keys(_propsType).forEach(function (key) {
|
242
|
-
if (key === "default" || key === "__esModule") return;
|
243
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
244
|
-
if (key in exports && exports[key] === _propsType[key]) return;
|
245
|
-
Object.defineProperty(exports, key, {
|
246
|
-
enumerable: true,
|
247
|
-
get: function get() {
|
248
|
-
return _propsType[key];
|
249
|
-
}
|
250
|
-
});
|
251
|
-
});
|
252
|
-
var _propsType2 = require("./ProTable/propsType");
|
253
|
-
Object.keys(_propsType2).forEach(function (key) {
|
254
|
-
if (key === "default" || key === "__esModule") return;
|
255
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
256
|
-
if (key in exports && exports[key] === _propsType2[key]) return;
|
257
|
-
Object.defineProperty(exports, key, {
|
258
|
-
enumerable: true,
|
259
|
-
get: function get() {
|
260
|
-
return _propsType2[key];
|
261
|
-
}
|
262
|
-
});
|
263
|
-
});
|
264
|
-
var _propsType3 = require("./ProEditTable/propsType");
|
265
|
-
Object.keys(_propsType3).forEach(function (key) {
|
266
|
-
if (key === "default" || key === "__esModule") return;
|
267
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
268
|
-
if (key in exports && exports[key] === _propsType3[key]) return;
|
269
|
-
Object.defineProperty(exports, key, {
|
270
|
-
enumerable: true,
|
271
|
-
get: function get() {
|
272
|
-
return _propsType3[key];
|
273
|
-
}
|
274
|
-
});
|
275
|
-
});
|
276
|
-
var _propsType4 = require("./ProUpload/propsType");
|
277
|
-
Object.keys(_propsType4).forEach(function (key) {
|
278
|
-
if (key === "default" || key === "__esModule") return;
|
279
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
280
|
-
if (key in exports && exports[key] === _propsType4[key]) return;
|
281
|
-
Object.defineProperty(exports, key, {
|
282
|
-
enumerable: true,
|
283
|
-
get: function get() {
|
284
|
-
return _propsType4[key];
|
285
|
-
}
|
286
|
-
});
|
287
|
-
});
|
288
|
-
var _propType = require("./ProTabs/propType");
|
289
|
-
Object.keys(_propType).forEach(function (key) {
|
290
|
-
if (key === "default" || key === "__esModule") return;
|
291
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
292
|
-
if (key in exports && exports[key] === _propType[key]) return;
|
293
|
-
Object.defineProperty(exports, key, {
|
294
|
-
enumerable: true,
|
295
|
-
get: function get() {
|
296
|
-
return _propType[key];
|
297
|
-
}
|
298
|
-
});
|
299
|
-
});
|
300
236
|
var _tokens = require("./tokens");
|
301
237
|
Object.keys(_tokens).forEach(function (key) {
|
302
238
|
if (key === "default" || key === "__esModule") return;
|
package/package.json
CHANGED
package/.vscode/extensions.json
DELETED
File without changes
|
File without changes
|