@zat-design/sisyphus-react 4.5.0 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/ProDrawerForm/components/ProDrawer/index.js +58 -86
- package/es/ProDrawerForm/components/ProModal/index.js +44 -20
- package/es/ProDrawerForm/hooks/useConfirmClose.js +70 -0
- package/es/ProDrawerForm/index.js +7 -11
- package/es/ProDrawerForm/utils/index.js +36 -0
- package/es/ProEditTable/components/RcTable/BaseTable.js +10 -0
- package/es/ProEditTable/components/Summary/index.js +3 -2
- package/es/ProEditTable/utils/tools.js +1 -1
- package/es/ProEnum/index.js +6 -3
- package/es/ProForm/components/combination/FormList/components/ActionButton.js +7 -6
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +4 -3
- package/es/ProForm/components/combination/ProModalSelect/index.js +7 -2
- package/es/ProForm/components/combination/ProModalSelect/utils/mergeSelectedRows.js +26 -0
- package/es/ProForm/components/render/RenderFields.js +3 -1
- package/es/ProForm/hooks/useWatch.js +8 -10
- package/es/ProLayout/components/ProHeader/index.js +28 -15
- package/es/ProSelect/index.js +77 -178
- package/es/ProSelect/utils/index.js +174 -0
- package/es/ProTree/components/ProTreeSelect/index.js +41 -14
- package/es/ProTree/components/ProTreeSelect/style/index.less +13 -4
- package/es/ProTree/style/index.less +20 -9
- package/es/ProTree/utils.js +26 -0
- package/es/ProTreeModal/style/index.less +1 -1
- package/es/ProUpload/components/DragRender.js +2 -1
- package/es/ProUpload/index.js +1 -1
- package/es/ProViewer/propsType.js +3 -1
- package/es/index.js +10 -0
- package/package.json +7 -13
- package/es/FormsProvider/index.d.ts +0 -18
- package/es/ProAction/components/CheckModalContent/index.d.ts +0 -8
- package/es/ProAction/index.d.ts +0 -7
- package/es/ProAction/propsType.d.ts +0 -45
- package/es/ProConfigProvider/index.d.ts +0 -9
- package/es/ProConfigProvider/propsType.d.ts +0 -78
- package/es/ProDownload/index.d.ts +0 -6
- package/es/ProDownload/propsType.d.ts +0 -71
- package/es/ProDownload/utils.d.ts +0 -60
- package/es/ProDrawerForm/components/ProDrawer/index.d.ts +0 -7
- package/es/ProDrawerForm/components/ProModal/index.d.ts +0 -7
- package/es/ProDrawerForm/components/index.d.ts +0 -2
- package/es/ProDrawerForm/index.d.ts +0 -6
- package/es/ProDrawerForm/propsType.d.ts +0 -100
- package/es/ProDrawerForm/utils/index.d.ts +0 -6
- package/es/ProEditLabel/components/RenderProForm.d.ts +0 -4
- package/es/ProEditLabel/index.d.ts +0 -4
- package/es/ProEditLabel/propsType.d.ts +0 -163
- package/es/ProEditLabel/utils/index.d.ts +0 -7
- package/es/ProEditTable/components/ActionButton/index.d.ts +0 -2
- package/es/ProEditTable/components/RcTable/BaseTable.d.ts +0 -6
- package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +0 -7
- package/es/ProEditTable/components/RcTable/index.d.ts +0 -4
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +0 -4
- package/es/ProEditTable/components/RenderField/index.d.ts +0 -3
- package/es/ProEditTable/components/RenderField/propsType.d.ts +0 -30
- package/es/ProEditTable/components/RenderField/tools.d.ts +0 -22
- package/es/ProEditTable/components/RenderToolbar/index.d.ts +0 -2
- package/es/ProEditTable/components/Summary/index.d.ts +0 -12
- package/es/ProEditTable/components/Validator/index.d.ts +0 -19
- package/es/ProEditTable/components/index.d.ts +0 -5
- package/es/ProEditTable/index.d.ts +0 -4
- package/es/ProEditTable/propsType.d.ts +0 -437
- package/es/ProEditTable/utils/config.d.ts +0 -25
- package/es/ProEditTable/utils/diffOriginal.d.ts +0 -22
- package/es/ProEditTable/utils/getDefaultProps.d.ts +0 -1
- package/es/ProEditTable/utils/index.d.ts +0 -23
- package/es/ProEditTable/utils/tools.d.ts +0 -128
- package/es/ProEditTable/utils/transform.d.ts +0 -13
- package/es/ProEditTable/utils/useEditTableError.d.ts +0 -7
- package/es/ProEditTable/utils/useShouldUpdateForTable.d.ts +0 -16
- package/es/ProEditTable/utils/validateAll.d.ts +0 -89
- package/es/ProEnum/components/Group.d.ts +0 -10
- package/es/ProEnum/components/Tag.d.ts +0 -7
- package/es/ProEnum/hooks/useEnum.d.ts +0 -29
- package/es/ProEnum/hooks/useEnumRequest.d.ts +0 -4
- package/es/ProEnum/hooks/useFrequentEnumRequest.d.ts +0 -14
- package/es/ProEnum/index.d.ts +0 -10
- package/es/ProEnum/propsType.d.ts +0 -310
- package/es/ProEnum/utils/eventCenter.d.ts +0 -1
- package/es/ProEnum/utils/frequentEnum.d.ts +0 -39
- package/es/ProEnum/utils/getEnum.d.ts +0 -47
- package/es/ProEnum/utils/getEnumLabel.d.ts +0 -2
- package/es/ProEnum/utils/index.d.ts +0 -84
- package/es/ProForm/components/Container.d.ts +0 -9
- package/es/ProForm/components/FormFooter/index.d.ts +0 -5
- package/es/ProForm/components/FormFooter/propsType.d.ts +0 -22
- package/es/ProForm/components/base/Checkbox/index.d.ts +0 -14
- package/es/ProForm/components/base/DatePicker/index.d.ts +0 -11
- package/es/ProForm/components/base/Input/index.d.ts +0 -3
- package/es/ProForm/components/base/Input/propsType.d.ts +0 -21
- package/es/ProForm/components/base/InputNumber/index.d.ts +0 -11
- package/es/ProForm/components/base/Radio/index.d.ts +0 -15
- package/es/ProForm/components/base/RangePicker/index.d.ts +0 -19
- package/es/ProForm/components/base/RangePicker/useDateRange.d.ts +0 -15
- package/es/ProForm/components/base/Select/index.d.ts +0 -11
- package/es/ProForm/components/base/Switch/index.d.ts +0 -10
- package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +0 -10
- package/es/ProForm/components/base/TextArea/index.d.ts +0 -11
- package/es/ProForm/components/base/TimePicker/index.d.ts +0 -13
- package/es/ProForm/components/combination/Container/index.d.ts +0 -4
- package/es/ProForm/components/combination/Container/propsType.d.ts +0 -13
- package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +0 -24
- package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +0 -23
- package/es/ProForm/components/combination/FormList/components/Empty.d.ts +0 -13
- package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +0 -20
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +0 -12
- package/es/ProForm/components/combination/FormList/index.d.ts +0 -4
- package/es/ProForm/components/combination/FormList/propsType.d.ts +0 -69
- package/es/ProForm/components/combination/FormList/utils.d.ts +0 -18
- package/es/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +0 -9
- package/es/ProForm/components/combination/Group/component/ComRender.d.ts +0 -28
- package/es/ProForm/components/combination/Group/component/FlexibleGroup.d.ts +0 -10
- package/es/ProForm/components/combination/Group/hooks/index.d.ts +0 -34
- package/es/ProForm/components/combination/Group/index.d.ts +0 -9
- package/es/ProForm/components/combination/Group/propsType.d.ts +0 -99
- package/es/ProForm/components/combination/Group/utils/index.d.ts +0 -154
- package/es/ProForm/components/combination/ProCascader/index.d.ts +0 -4
- package/es/ProForm/components/combination/ProCascader/propsType.d.ts +0 -48
- package/es/ProForm/components/combination/ProCascader/utils/index.d.ts +0 -14
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +0 -33
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +0 -4
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +0 -106
- package/es/ProForm/components/combination/ProModalSelect/utils/index.d.ts +0 -1
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +0 -4
- package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +0 -85
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +0 -4
- package/es/ProForm/components/combination/ProRangeLimit/propsType.d.ts +0 -23
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +0 -9
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +0 -33
- package/es/ProForm/components/index.d.ts +0 -29
- package/es/ProForm/components/render/ChangedWrapper.d.ts +0 -17
- package/es/ProForm/components/render/ConfirmWrapper.d.ts +0 -10
- package/es/ProForm/components/render/CustomComponentViewWrapper.d.ts +0 -30
- package/es/ProForm/components/render/Render.d.ts +0 -4
- package/es/ProForm/components/render/RenderFields.d.ts +0 -26
- package/es/ProForm/components/render/propsType.d.ts +0 -279
- package/es/ProForm/hooks/useControlled.d.ts +0 -1
- package/es/ProForm/hooks/useDeepCompareMemo.d.ts +0 -2
- package/es/ProForm/hooks/useFieldProps.d.ts +0 -4
- package/es/ProForm/hooks/useForm.d.ts +0 -8
- package/es/ProForm/hooks/useRules.d.ts +0 -16
- package/es/ProForm/hooks/useShouldUpdate.d.ts +0 -31
- package/es/ProForm/hooks/useWatch.d.ts +0 -22
- package/es/ProForm/index.d.ts +0 -6
- package/es/ProForm/propsType.d.ts +0 -143
- package/es/ProForm/utils/buildFormItemProps.d.ts +0 -25
- package/es/ProForm/utils/diffOriginal.d.ts +0 -10
- package/es/ProForm/utils/getDefaultProps.d.ts +0 -1
- package/es/ProForm/utils/index.d.ts +0 -109
- package/es/ProForm/utils/processDependencies.d.ts +0 -29
- package/es/ProForm/utils/reactiveValues.d.ts +0 -34
- package/es/ProForm/utils/rulesCreator.d.ts +0 -7
- package/es/ProForm/utils/transformNames.d.ts +0 -10
- package/es/ProForm/utils/transformValue.d.ts +0 -6
- package/es/ProForm/utils/valueType.d.ts +0 -70
- package/es/ProIcon/config/index.d.ts +0 -19
- package/es/ProIcon/index.d.ts +0 -4
- package/es/ProIcon/propsTypes.d.ts +0 -175
- package/es/ProIcon/utils/index.d.ts +0 -6
- package/es/ProLayout/components/Layout/Header/index.d.ts +0 -4
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +0 -3
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +0 -3
- package/es/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +0 -15
- package/es/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +0 -3
- package/es/ProLayout/components/Layout/Menu/index.d.ts +0 -4
- package/es/ProLayout/components/Layout/Notice/index.d.ts +0 -4
- package/es/ProLayout/components/Layout/index.d.ts +0 -3
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +0 -98
- package/es/ProLayout/components/ProCollapse/index.d.ts +0 -3
- package/es/ProLayout/components/ProFooter/PropTypes.d.ts +0 -27
- package/es/ProLayout/components/ProFooter/index.d.ts +0 -4
- package/es/ProLayout/components/ProHeader/PropTypes.d.ts +0 -206
- package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +0 -4
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.d.ts +0 -9
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/propsType.d.ts +0 -4
- package/es/ProLayout/components/ProHeader/components/index.d.ts +0 -2
- package/es/ProLayout/components/ProHeader/index.d.ts +0 -4
- package/es/ProLayout/components/ProHeader/utils/index.d.ts +0 -5
- package/es/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +0 -7
- package/es/ProLayout/components/TabsManager/components/TabItem.d.ts +0 -26
- package/es/ProLayout/components/TabsManager/components/TabsContext.d.ts +0 -6
- package/es/ProLayout/components/TabsManager/components/TabsHeader.d.ts +0 -10
- package/es/ProLayout/components/TabsManager/hooks/useActiveTab.d.ts +0 -6
- package/es/ProLayout/components/TabsManager/hooks/useIframeRoute.d.ts +0 -25
- package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.d.ts +0 -18
- package/es/ProLayout/components/TabsManager/hooks/useTabsCache.d.ts +0 -31
- package/es/ProLayout/components/TabsManager/hooks/useTabsState.d.ts +0 -5
- package/es/ProLayout/components/TabsManager/index.d.ts +0 -7
- package/es/ProLayout/components/TabsManager/propTypes.d.ts +0 -89
- package/es/ProLayout/components/TabsManager/utils/index.d.ts +0 -47
- package/es/ProLayout/components/index.d.ts +0 -3
- package/es/ProLayout/index.d.ts +0 -20
- package/es/ProLayout/propTypes.d.ts +0 -533
- package/es/ProLayout/utils/index.d.ts +0 -43
- package/es/ProSelect/components/AdaptiveTooltip.d.ts +0 -4
- package/es/ProSelect/index.d.ts +0 -5
- package/es/ProSelect/propsType.d.ts +0 -160
- package/es/ProSelect/utils/index.d.ts +0 -4
- package/es/ProStep/components/Anchor/index.d.ts +0 -4
- package/es/ProStep/components/Item/index.d.ts +0 -3
- package/es/ProStep/components/LazyLoad/index.d.ts +0 -19
- package/es/ProStep/components/Listener/index.d.ts +0 -4
- package/es/ProStep/components/Step/index.d.ts +0 -5
- package/es/ProStep/index.d.ts +0 -11
- package/es/ProStep/propsType.d.ts +0 -224
- package/es/ProStep/utils/index.d.ts +0 -22
- package/es/ProStepTab/index.d.ts +0 -22
- package/es/ProStepTab/propsType.d.ts +0 -114
- package/es/ProTable/components/EditableCell/EditIcon.d.ts +0 -6
- package/es/ProTable/components/EditableCell/index.d.ts +0 -4
- package/es/ProTable/components/EditableCell/propsType.d.ts +0 -24
- package/es/ProTable/components/FormatColumn/index.d.ts +0 -22
- package/es/ProTable/components/FormatColumn/propsType.d.ts +0 -29
- package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -3
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +0 -18
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.d.ts +0 -8
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.d.ts +0 -61
- package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -3
- package/es/ProTable/components/RcTable/index.d.ts +0 -4
- package/es/ProTable/components/RenderColumn/index.d.ts +0 -22
- package/es/ProTable/components/RenderEmptyText/index.d.ts +0 -3
- package/es/ProTable/components/RenderFooter/index.d.ts +0 -2
- package/es/ProTable/components/RenderSummary/index.d.ts +0 -3
- package/es/ProTable/components/RenderTableHeader/index.d.ts +0 -2
- package/es/ProTable/components/RenderTabs/index.d.ts +0 -4
- package/es/ProTable/components/TableResizable/index.d.ts +0 -13
- package/es/ProTable/components/TooltipTitle/index.d.ts +0 -11
- package/es/ProTable/components/index.d.ts +0 -31
- package/es/ProTable/hooks/useAntdTable.d.ts +0 -7
- package/es/ProTable/index.d.ts +0 -17
- package/es/ProTable/propsType.d.ts +0 -792
- package/es/ProTable/utils/columnStorage.d.ts +0 -35
- package/es/ProTable/utils/index.d.ts +0 -52
- package/es/ProTabs/components/Card/index.d.ts +0 -3
- package/es/ProTabs/components/index.d.ts +0 -1
- package/es/ProTabs/index.d.ts +0 -4
- package/es/ProTabs/propType.d.ts +0 -94
- package/es/ProThemeTools/component/ProTools/index.d.ts +0 -3
- package/es/ProThemeTools/component/index.d.ts +0 -1
- package/es/ProThemeTools/context/ThemeContext.d.ts +0 -43
- package/es/ProThemeTools/index.d.ts +0 -9
- package/es/ProThemeTools/propsType.d.ts +0 -170
- package/es/ProThemeTools/utils/index.d.ts +0 -51
- package/es/ProTooltip/index.d.ts +0 -3
- package/es/ProTooltip/propsType.d.ts +0 -57
- package/es/ProTree/components/AdaptiveTooltip.d.ts +0 -4
- package/es/ProTree/components/CloseIcon.d.ts +0 -2
- package/es/ProTree/components/List.d.ts +0 -17
- package/es/ProTree/components/ProTree.d.ts +0 -3
- package/es/ProTree/components/ProTreeSelect/index.d.ts +0 -5
- package/es/ProTree/components/ProTreeSelect/propsType.d.ts +0 -439
- package/es/ProTree/components/SearchTitle.d.ts +0 -11
- package/es/ProTree/components/Tree.d.ts +0 -27
- package/es/ProTree/components/index.d.ts +0 -4
- package/es/ProTree/index.d.ts +0 -3
- package/es/ProTree/propsType.d.ts +0 -812
- package/es/ProTree/utils.d.ts +0 -52
- package/es/ProTreeModal/components/Cascader.d.ts +0 -14
- package/es/ProTreeModal/components/CloseIcon.d.ts +0 -2
- package/es/ProTreeModal/components/List.d.ts +0 -21
- package/es/ProTreeModal/components/SearchTitle.d.ts +0 -7
- package/es/ProTreeModal/components/SortableItem.d.ts +0 -12
- package/es/ProTreeModal/components/Tree.d.ts +0 -25
- package/es/ProTreeModal/components/Trigger.d.ts +0 -21
- package/es/ProTreeModal/components/index.d.ts +0 -6
- package/es/ProTreeModal/index.d.ts +0 -4
- package/es/ProTreeModal/propsType.d.ts +0 -298
- package/es/ProTreeModal/utils.d.ts +0 -39
- package/es/ProUpload/components/ButtonRender.d.ts +0 -20
- package/es/ProUpload/components/DragRender.d.ts +0 -21
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +0 -2
- package/es/ProUpload/components/Example.d.ts +0 -10
- package/es/ProUpload/components/FileItem.d.ts +0 -33
- package/es/ProUpload/components/ImageRender.d.ts +0 -19
- package/es/ProUpload/index.d.ts +0 -4
- package/es/ProUpload/propsType.d.ts +0 -264
- package/es/ProUpload/uitls.d.ts +0 -3
- package/es/ProUtils/utils/index.d.ts +0 -6
- package/es/ProViewer/index.d.ts +0 -4
- package/es/ProViewer/propsType.d.ts +0 -35
- package/es/ProWaterMark/index.d.ts +0 -4
- package/es/ProWaterMark/propsType.d.ts +0 -6
- package/es/hooks/useDraggableRow.d.ts +0 -34
- package/es/index.d.ts +0 -47
- package/es/locale/en_US.d.ts +0 -176
- package/es/locale/index.d.ts +0 -15
- package/es/locale/zh_CN.d.ts +0 -176
- package/es/tokens.d.ts +0 -83
- package/es/utils/index.d.ts +0 -20
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export interface PropsWithMakeFilePropsType {
|
|
2
|
-
blob?: Blob;
|
|
3
|
-
fileName: string;
|
|
4
|
-
url?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IDownloadRequestPropsType {
|
|
7
|
-
/**
|
|
8
|
-
* @description 下载请求的地址
|
|
9
|
-
* @default (必选)
|
|
10
|
-
*/
|
|
11
|
-
url: string;
|
|
12
|
-
/**
|
|
13
|
-
* @description 下载请求的类型
|
|
14
|
-
* @default post
|
|
15
|
-
*/
|
|
16
|
-
method?: 'post' | 'get';
|
|
17
|
-
/**
|
|
18
|
-
* @description 下载所需额外参数或返回上传额外参数的方法
|
|
19
|
-
* @default -
|
|
20
|
-
*/
|
|
21
|
-
params?: any;
|
|
22
|
-
headers?: any;
|
|
23
|
-
/** 格式化数据 */
|
|
24
|
-
transformResponse?: (data: any) => any;
|
|
25
|
-
/**
|
|
26
|
-
* @description service 执行完成时触发
|
|
27
|
-
* @default -
|
|
28
|
-
*/
|
|
29
|
-
onFinish?: (response: object, params: object) => void;
|
|
30
|
-
/**
|
|
31
|
-
* @description 下载保存的文件名
|
|
32
|
-
* @default (必选)
|
|
33
|
-
*/
|
|
34
|
-
fileName?: string;
|
|
35
|
-
/**
|
|
36
|
-
* @description 下载出错的回调
|
|
37
|
-
* @default -
|
|
38
|
-
*/
|
|
39
|
-
onError?: (response: object) => void;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* 下载Blob
|
|
43
|
-
*
|
|
44
|
-
* @param response
|
|
45
|
-
* @param fileName
|
|
46
|
-
* @param extendName
|
|
47
|
-
* @constructor
|
|
48
|
-
*/
|
|
49
|
-
export declare function BlobMakeFile({ blob, fileName, url }: PropsWithMakeFilePropsType): void;
|
|
50
|
-
export type DownloadRequestProps = (props: IDownloadRequestPropsType) => Promise<Response>;
|
|
51
|
-
type convertBase64ToBlobType = (base64: string, fileType?: string, slice?: number) => Blob;
|
|
52
|
-
export declare const convertBase64ToBlob: convertBase64ToBlobType;
|
|
53
|
-
/**
|
|
54
|
-
* 从Content-Disposition获取filename
|
|
55
|
-
* @param contentDisposition string
|
|
56
|
-
* @returns string
|
|
57
|
-
*/
|
|
58
|
-
export declare function getFilenameFromContentDisposition(contentDisposition: any): string;
|
|
59
|
-
export declare const DownloadRequest: DownloadRequestProps;
|
|
60
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormInstance } from 'antd/es/form/Form';
|
|
3
|
-
import { ProDrawerFormType } from './propsType';
|
|
4
|
-
export declare const useProDrawerFormContext: () => any;
|
|
5
|
-
declare const ProDrawerForm: React.ForwardRefExoticComponent<ProDrawerFormType & React.RefAttributes<FormInstance<any>>>;
|
|
6
|
-
export default ProDrawerForm;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import type { ModalProps, DrawerProps, FormInstance, ModalFuncProps } from 'antd';
|
|
3
|
-
import type { ProFormType } from '../ProForm/propsType';
|
|
4
|
-
/**
|
|
5
|
-
* 抽屉尺寸类型定义
|
|
6
|
-
*/
|
|
7
|
-
export type DrawerSizePropsType = 'small' | 'middle' | 'large';
|
|
8
|
-
export type DrawerSizeType = DrawerSizePropsType;
|
|
9
|
-
/**
|
|
10
|
-
* 显示类型定义
|
|
11
|
-
*/
|
|
12
|
-
export type ShowTypePropsType = 'Modal' | 'Drawer';
|
|
13
|
-
export type ShowType = ShowTypePropsType;
|
|
14
|
-
export interface ProDrawerFormType {
|
|
15
|
-
/** @name 内部form实例 */
|
|
16
|
-
form?: FormInstance<any>;
|
|
17
|
-
/** @name 自定义className */
|
|
18
|
-
className?: string;
|
|
19
|
-
/** @name 控制显示隐藏 */
|
|
20
|
-
open: ModalProps['open'] | DrawerProps['open'];
|
|
21
|
-
/** @name 标题 */
|
|
22
|
-
title?: ModalProps['title'] | DrawerProps['title'];
|
|
23
|
-
/** @name 点击蒙层是否允许关闭 */
|
|
24
|
-
maskClosable?: ModalProps['maskClosable'] | DrawerProps['maskClosable'];
|
|
25
|
-
/** @name 禁止选项 */
|
|
26
|
-
disabled?: boolean | undefined;
|
|
27
|
-
/** @name 是否查看模式 */
|
|
28
|
-
isView?: boolean | undefined;
|
|
29
|
-
/** @name 宽度 */
|
|
30
|
-
width?: string | number;
|
|
31
|
-
/** @name 取消按钮文字 */
|
|
32
|
-
cancelText?: ModalProps['cancelText'];
|
|
33
|
-
/** @name 确认按钮文字 */
|
|
34
|
-
okText?: ModalProps['okText'];
|
|
35
|
-
/** @name 确认按钮loading状态 */
|
|
36
|
-
okLoading?: boolean;
|
|
37
|
-
/** @name 确认按钮禁用状态 */
|
|
38
|
-
okDisabled?: boolean;
|
|
39
|
-
/** @name 显示方式 */
|
|
40
|
-
mode?: ShowType;
|
|
41
|
-
/** @name 尺寸 */
|
|
42
|
-
size?: DrawerSizeType;
|
|
43
|
-
/**
|
|
44
|
-
* @name 自动选中第一项
|
|
45
|
-
* @description 只对有input的类型有效
|
|
46
|
-
*/
|
|
47
|
-
autoFocusFirstInput?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* @name 关闭时是否开启二次确认弹框
|
|
50
|
-
* @description 只对Drawer的类型有效
|
|
51
|
-
*/
|
|
52
|
-
isConfirmClose?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* @name 关闭时二次确认弹框的属性
|
|
55
|
-
* @description 只对Drawer的类型有效
|
|
56
|
-
*/
|
|
57
|
-
isConfirmCloseModalProps?: Omit<ModalFuncProps, 'content' | 'onOk' | 'onCancel'>;
|
|
58
|
-
/**
|
|
59
|
-
* @name 底部默认取消按钮事件
|
|
60
|
-
* @returns 返回Promise或布尔值可控制弹窗关闭行为
|
|
61
|
-
*/
|
|
62
|
-
onCancel?: () => Promise<boolean | void | unknown> | boolean | void | unknown;
|
|
63
|
-
/**
|
|
64
|
-
* @name 底部默认确定按钮事件
|
|
65
|
-
* @param values 表单值
|
|
66
|
-
* @param form 表单实例
|
|
67
|
-
* @returns 返回Promise或布尔值可控制弹窗关闭行为
|
|
68
|
-
*/
|
|
69
|
-
onOk?: (values?: any, form?: FormInstance) => Promise<boolean | void | unknown> | boolean | void | unknown;
|
|
70
|
-
/**
|
|
71
|
-
* @name 底部自定义按钮配置
|
|
72
|
-
*/
|
|
73
|
-
footer?: ReactNode | ReactNode[];
|
|
74
|
-
/**
|
|
75
|
-
* @name 底部左侧自定义渲染
|
|
76
|
-
*/
|
|
77
|
-
extraLeft?: ReactNode;
|
|
78
|
-
/**
|
|
79
|
-
* @name proForm的属性
|
|
80
|
-
* @description 配置后children不展示
|
|
81
|
-
*/
|
|
82
|
-
proFormProps?: Omit<ProFormType, 'form'>;
|
|
83
|
-
/**
|
|
84
|
-
* @name 弹框的属性
|
|
85
|
-
*/
|
|
86
|
-
modalProps?: ModalProps;
|
|
87
|
-
/**
|
|
88
|
-
* @name 抽屉的属性
|
|
89
|
-
*/
|
|
90
|
-
drawerProps?: DrawerProps;
|
|
91
|
-
/**
|
|
92
|
-
* @name 关闭时弹框或者抽屉是否清空formValues
|
|
93
|
-
*/
|
|
94
|
-
onCloseClean?: boolean;
|
|
95
|
-
/** @name 子组件 */
|
|
96
|
-
children?: React.ReactNode;
|
|
97
|
-
/** @name z轴层级 */
|
|
98
|
-
zIndex?: number;
|
|
99
|
-
}
|
|
100
|
-
export type ProDrawerFormPropsType = ProDrawerFormType;
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { InputProps } from 'antd/es/input';
|
|
2
|
-
import { PopconfirmProps } from 'antd/es/popconfirm';
|
|
3
|
-
import { FormInstance } from 'antd/es/form';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import type { ProFormColumnType } from '../ProForm/propsType';
|
|
6
|
-
export interface ContainerType {
|
|
7
|
-
/**
|
|
8
|
-
* @description 触发方式
|
|
9
|
-
* @default "click"
|
|
10
|
-
*/
|
|
11
|
-
trigger?: 'click' | 'hover';
|
|
12
|
-
/**
|
|
13
|
-
* @description 尺寸
|
|
14
|
-
* @default "middle"
|
|
15
|
-
*/
|
|
16
|
-
size?: 'small' | 'middle' | 'large';
|
|
17
|
-
/**
|
|
18
|
-
* @description 显示模式
|
|
19
|
-
* @default "popup"
|
|
20
|
-
*/
|
|
21
|
-
mode?: 'popup' | 'current';
|
|
22
|
-
/**
|
|
23
|
-
* @description 类型
|
|
24
|
-
* @default "input"
|
|
25
|
-
*/
|
|
26
|
-
type?: 'input' | 'select';
|
|
27
|
-
}
|
|
28
|
-
export interface StateType {
|
|
29
|
-
/**
|
|
30
|
-
* @description 弹出值
|
|
31
|
-
* @default ""
|
|
32
|
-
*/
|
|
33
|
-
popValue?: string;
|
|
34
|
-
/**
|
|
35
|
-
* @description 确认值
|
|
36
|
-
* @default ""
|
|
37
|
-
*/
|
|
38
|
-
confirmValue?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface PopupType {
|
|
41
|
-
/**
|
|
42
|
-
* @description 类型
|
|
43
|
-
* @default -
|
|
44
|
-
*/
|
|
45
|
-
type?: string;
|
|
46
|
-
/**
|
|
47
|
-
* @description 标签
|
|
48
|
-
* @default -
|
|
49
|
-
*/
|
|
50
|
-
label?: string | React.ReactNode;
|
|
51
|
-
/**
|
|
52
|
-
* @description 标题
|
|
53
|
-
* @default -
|
|
54
|
-
*/
|
|
55
|
-
title?: string | React.ReactNode;
|
|
56
|
-
/**
|
|
57
|
-
* @description 提示
|
|
58
|
-
* @default -
|
|
59
|
-
*/
|
|
60
|
-
tip?: string | React.ReactNode;
|
|
61
|
-
/**
|
|
62
|
-
* @description 是否去除空格
|
|
63
|
-
* @default false
|
|
64
|
-
*/
|
|
65
|
-
trim?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* @description 标签宽度
|
|
68
|
-
* @default -
|
|
69
|
-
*/
|
|
70
|
-
labelWidth?: string | number;
|
|
71
|
-
/**
|
|
72
|
-
* @description 字段属性
|
|
73
|
-
* @default -
|
|
74
|
-
*/
|
|
75
|
-
fieldProps?: any;
|
|
76
|
-
/**
|
|
77
|
-
* @description 列配置
|
|
78
|
-
* @default -
|
|
79
|
-
*/
|
|
80
|
-
columns?: ProFormColumnType[];
|
|
81
|
-
/**
|
|
82
|
-
* @description 允许扩展字段
|
|
83
|
-
*/
|
|
84
|
-
[key: string]: any;
|
|
85
|
-
}
|
|
86
|
-
export interface LabelType extends Omit<InputProps, 'onChange'> {
|
|
87
|
-
/**
|
|
88
|
-
* @description 是否打开
|
|
89
|
-
* @default false
|
|
90
|
-
*/
|
|
91
|
-
open?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* @description 可见性变化回调
|
|
94
|
-
* @default -
|
|
95
|
-
*/
|
|
96
|
-
onOpenChange?: (open: boolean) => void;
|
|
97
|
-
/**
|
|
98
|
-
* @description 值变化回调
|
|
99
|
-
* @default -
|
|
100
|
-
*/
|
|
101
|
-
onChange?: (value: any) => void;
|
|
102
|
-
/**
|
|
103
|
-
* @description 是否可编辑
|
|
104
|
-
* @default false
|
|
105
|
-
*/
|
|
106
|
-
editable?: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* @description 编辑回调
|
|
109
|
-
* @default -
|
|
110
|
-
*/
|
|
111
|
-
onEdit?: () => void;
|
|
112
|
-
}
|
|
113
|
-
export interface ProEditLabelType extends Partial<PopconfirmProps> {
|
|
114
|
-
/**
|
|
115
|
-
* @description 弹出属性
|
|
116
|
-
* @default -
|
|
117
|
-
*/
|
|
118
|
-
popupProps?: PopupType;
|
|
119
|
-
/**
|
|
120
|
-
* @description 空值显示
|
|
121
|
-
* @default "-"
|
|
122
|
-
*/
|
|
123
|
-
viewEmpty?: '-';
|
|
124
|
-
/**
|
|
125
|
-
* @description 确认回调
|
|
126
|
-
* @default -
|
|
127
|
-
*/
|
|
128
|
-
onConfirm?: (e?: any) => void;
|
|
129
|
-
/**
|
|
130
|
-
* @description 完成回调
|
|
131
|
-
* @default -
|
|
132
|
-
*/
|
|
133
|
-
onFinish?: (e?: any) => void;
|
|
134
|
-
/**
|
|
135
|
-
* @description 打开状态变化回调
|
|
136
|
-
* @default -
|
|
137
|
-
*/
|
|
138
|
-
onOpenChange?: (e?: any) => void;
|
|
139
|
-
/**
|
|
140
|
-
* @description 触发方式
|
|
141
|
-
* @default "click"
|
|
142
|
-
*/
|
|
143
|
-
trigger?: 'click' | 'hover';
|
|
144
|
-
/**
|
|
145
|
-
* @description 值
|
|
146
|
-
* @default -
|
|
147
|
-
*/
|
|
148
|
-
value?: any;
|
|
149
|
-
/**
|
|
150
|
-
* @description 表单实例
|
|
151
|
-
* @default -
|
|
152
|
-
*/
|
|
153
|
-
form?: FormInstance;
|
|
154
|
-
/**
|
|
155
|
-
* @description 是否禁用
|
|
156
|
-
* @default false
|
|
157
|
-
*/
|
|
158
|
-
disabled?: boolean;
|
|
159
|
-
/**
|
|
160
|
-
* @description 允许扩展字段
|
|
161
|
-
*/
|
|
162
|
-
[key: string]: any;
|
|
163
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { FormInstance } from 'antd';
|
|
2
|
-
import { InternalNamePath, NamePath } from 'antd/lib/form/interface';
|
|
3
|
-
import { DiffOriginalParams } from '../../utils/diffOriginal';
|
|
4
|
-
export interface GetOriginalValueParams {
|
|
5
|
-
namePath: InternalNamePath;
|
|
6
|
-
originalName: InternalNamePath;
|
|
7
|
-
originalNames?: InternalNamePath[];
|
|
8
|
-
originalValues?: any;
|
|
9
|
-
rowKeyPath?: InternalNamePath;
|
|
10
|
-
form: FormInstance;
|
|
11
|
-
}
|
|
12
|
-
export interface Props {
|
|
13
|
-
name?: NamePath;
|
|
14
|
-
names?: NamePath[];
|
|
15
|
-
originalName?: NamePath;
|
|
16
|
-
originalNames?: NamePath[];
|
|
17
|
-
namesStr?: NamePath;
|
|
18
|
-
originalValues?: any;
|
|
19
|
-
form: FormInstance;
|
|
20
|
-
onDiff?: DiffOriginalParams['onDiff'];
|
|
21
|
-
[name: string]: any;
|
|
22
|
-
}
|
|
23
|
-
/** RenderField 的 props 多为表格运行期动态结构(column/config/record),保留显式 any */
|
|
24
|
-
export interface RenderFieldComparableProps {
|
|
25
|
-
text?: any;
|
|
26
|
-
record?: any;
|
|
27
|
-
index: number;
|
|
28
|
-
column?: any;
|
|
29
|
-
config?: any;
|
|
30
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { InternalNamePath, NamePath } from 'antd/lib/form/interface';
|
|
2
|
-
import { GetOriginalValueParams, RenderFieldComparableProps } from './propsType';
|
|
3
|
-
/** 列配置中不应透传到 Form.Item 或 DOM 的字段(与 ProForm Render 保持一致) */
|
|
4
|
-
export declare const OMIT_FORM_ITEM_AND_DOM_KEYS: string[];
|
|
5
|
-
/** 克隆子元素时需从 props 中剔除,避免透传到 div 等 DOM 导致 React 警告 */
|
|
6
|
-
export declare const OMIT_FROM_DOM_KEYS: string[];
|
|
7
|
-
export declare const toNamePath: (name: NamePath) => InternalNamePath;
|
|
8
|
-
export declare const toNamePaths: (names: NamePath[]) => InternalNamePath[];
|
|
9
|
-
export declare const getOriginalValue: ({ namePath, originalName, originalNames, originalValues, rowKeyPath, form, }: GetOriginalValueParams) => {
|
|
10
|
-
originalValue: any;
|
|
11
|
-
originRecord: any;
|
|
12
|
-
record: any;
|
|
13
|
-
} | {
|
|
14
|
-
originalValue: any;
|
|
15
|
-
originRecord: any;
|
|
16
|
-
record?: undefined;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* memo 自定义比较函数:只有关键 props 变化时才重新渲染。
|
|
20
|
-
* 从 RenderField 拆出,行为与原内联实现保持一致。
|
|
21
|
-
*/
|
|
22
|
-
export declare const arePropsEqual: (prevProps: RenderFieldComparableProps, nextProps: RenderFieldComparableProps) => boolean;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ProEditTableSummaryColumnType } from '../../propsType';
|
|
2
|
-
interface SummaryProps<T = any> {
|
|
3
|
-
data: T[];
|
|
4
|
-
summary: {
|
|
5
|
-
columns: ProEditTableSummaryColumnType[];
|
|
6
|
-
total?: boolean;
|
|
7
|
-
fixed?: boolean | 'top' | 'bottom';
|
|
8
|
-
};
|
|
9
|
-
rowSelection: any;
|
|
10
|
-
}
|
|
11
|
-
declare const Summary: ({ data, summary, rowSelection }: SummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default Summary;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { NamePath } from 'antd/es/form/interface';
|
|
3
|
-
import { type ErrorStore } from '../../utils/validateAll';
|
|
4
|
-
interface ValidatorProps {
|
|
5
|
-
name?: NamePath;
|
|
6
|
-
virtualKey?: string;
|
|
7
|
-
editingKeys?: string[];
|
|
8
|
-
onlyOneLineMsg?: string;
|
|
9
|
-
/** antd6 虚拟表格开关:开启时注册聚合校验字段,覆盖视口外未挂载的行 */
|
|
10
|
-
virtual?: boolean;
|
|
11
|
-
/** 原始列配置(含 name/names/rules/required/label 等),用于全量真实规则校验 */
|
|
12
|
-
columns?: any[];
|
|
13
|
-
/** 表格内部 config(提供 form/name/disabled/isView/otherProps 等) */
|
|
14
|
-
config?: any;
|
|
15
|
-
/** 外部错误存储,承载「报错常驻」的真实文案来源 */
|
|
16
|
-
errorStore?: ErrorStore;
|
|
17
|
-
}
|
|
18
|
-
declare const _default: import("react").NamedExoticComponent<ValidatorProps>;
|
|
19
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as RenderField } from './RenderField';
|
|
2
|
-
export { default as Validator } from './Validator';
|
|
3
|
-
export { default as Summary } from './Summary';
|
|
4
|
-
export { default as RenderToolbar } from './RenderToolbar';
|
|
5
|
-
export { default as ActionButton } from './ActionButton';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProEditTableType } from './propsType';
|
|
3
|
-
declare const ForwardProEditTable: React.ForwardRefExoticComponent<Omit<ProEditTableType, "ref"> & React.RefAttributes<import("./propsType").ProEditTableRefProps>>;
|
|
4
|
-
export default ForwardProEditTable;
|