@zat-design/sisyphus-react 4.5.1 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/ProEditTable/components/Summary/index.js +3 -2
- package/es/ProEditTable/utils/tools.js +1 -1
- 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 +1 -1
- 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 +74 -187
- package/es/ProSelect/utils/index.js +174 -0
- package/es/ProTree/components/ProTreeSelect/index.js +17 -3
- package/es/ProUpload/components/DragRender.js +2 -1
- package/es/ProUpload/index.js +1 -1
- package/package.json +1 -1
- 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/hooks/useConfirmClose.d.ts +0 -25
- package/es/ProDrawerForm/index.d.ts +0 -6
- package/es/ProDrawerForm/propsType.d.ts +0 -111
- package/es/ProDrawerForm/utils/index.d.ts +0 -25
- 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/ProModalSelect/utils/mergeSelectedRows.d.ts +0 -14
- 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 -162
- 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 -445
- 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 -818
- package/es/ProTree/utils.d.ts +0 -62
- 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 -37
- 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 -58
- 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,111 +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
|
-
/**
|
|
30
|
-
* @name 宽度
|
|
31
|
-
* @deprecated 请改用 `size`,`width` 仅作向后兼容保留,后续版本将移除
|
|
32
|
-
*/
|
|
33
|
-
width?: string | number;
|
|
34
|
-
/** @name 取消按钮文字 */
|
|
35
|
-
cancelText?: ModalProps['cancelText'];
|
|
36
|
-
/** @name 确认按钮文字 */
|
|
37
|
-
okText?: ModalProps['okText'];
|
|
38
|
-
/** @name 确认按钮loading状态 */
|
|
39
|
-
okLoading?: boolean;
|
|
40
|
-
/** @name 确认按钮禁用状态 */
|
|
41
|
-
okDisabled?: boolean;
|
|
42
|
-
/** @name 显示方式 */
|
|
43
|
-
mode?: ShowType;
|
|
44
|
-
/**
|
|
45
|
-
* @name 尺寸
|
|
46
|
-
* @description 设计规范三档枚举(small/middle/large),亦支持自定义数字 / 像素 / 百分比
|
|
47
|
-
*/
|
|
48
|
-
size?: DrawerSizeType | number | string;
|
|
49
|
-
/**
|
|
50
|
-
* @name 自动选中第一项
|
|
51
|
-
* @description 只对有input的类型有效
|
|
52
|
-
*/
|
|
53
|
-
autoFocusFirstInput?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* @name 关闭时是否开启二次确认弹框
|
|
56
|
-
* @description 只对Drawer的类型有效
|
|
57
|
-
*/
|
|
58
|
-
isConfirmClose?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* @name 关闭时二次确认弹框的属性
|
|
61
|
-
* @description 只对Drawer的类型有效
|
|
62
|
-
*/
|
|
63
|
-
isConfirmCloseModalProps?: Omit<ModalFuncProps, 'content' | 'onOk' | 'onCancel'>;
|
|
64
|
-
/**
|
|
65
|
-
* @name 底部默认取消按钮事件
|
|
66
|
-
* @returns 返回Promise或布尔值可控制弹窗关闭行为
|
|
67
|
-
*/
|
|
68
|
-
onCancel?: () => Promise<boolean | void | unknown> | boolean | void | unknown;
|
|
69
|
-
/**
|
|
70
|
-
* @name 底部默认确定按钮事件
|
|
71
|
-
* @param values 表单值
|
|
72
|
-
* @param form 表单实例
|
|
73
|
-
* @returns 返回Promise或布尔值可控制弹窗关闭行为
|
|
74
|
-
*/
|
|
75
|
-
onOk?: (values?: any, form?: FormInstance) => Promise<boolean | void | unknown> | boolean | void | unknown;
|
|
76
|
-
/**
|
|
77
|
-
* @name 底部自定义按钮配置
|
|
78
|
-
*/
|
|
79
|
-
footer?: ReactNode | ReactNode[];
|
|
80
|
-
/**
|
|
81
|
-
* @name 底部左侧自定义渲染
|
|
82
|
-
*/
|
|
83
|
-
extraLeft?: ReactNode;
|
|
84
|
-
/**
|
|
85
|
-
* @name proForm的属性
|
|
86
|
-
* @description 配置后children不展示
|
|
87
|
-
*/
|
|
88
|
-
proFormProps?: Omit<ProFormType, 'form'>;
|
|
89
|
-
/**
|
|
90
|
-
* @name 弹框的属性
|
|
91
|
-
*/
|
|
92
|
-
modalProps?: ModalProps;
|
|
93
|
-
/**
|
|
94
|
-
* @name 抽屉的属性
|
|
95
|
-
*/
|
|
96
|
-
drawerProps?: DrawerProps;
|
|
97
|
-
/**
|
|
98
|
-
* @name 关闭时弹框或者抽屉是否清空formValues
|
|
99
|
-
*/
|
|
100
|
-
onCloseClean?: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* @name 隐藏时销毁内容
|
|
103
|
-
* @description 透传给底层 antd Drawer/Modal
|
|
104
|
-
*/
|
|
105
|
-
destroyOnHidden?: ModalProps['destroyOnHidden'] | DrawerProps['destroyOnHidden'];
|
|
106
|
-
/** @name 子组件 */
|
|
107
|
-
children?: React.ReactNode;
|
|
108
|
-
/** @name z轴层级 */
|
|
109
|
-
zIndex?: number;
|
|
110
|
-
}
|
|
111
|
-
export type ProDrawerFormPropsType = ProDrawerFormType;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { DrawerSizeType } from '../propsType';
|
|
2
|
-
/**
|
|
3
|
-
* 将枚举值转成数值px,暴露枚举,隐藏真实数值,暂时不让用户自定义
|
|
4
|
-
* @param size 设计规范的三个尺寸 460 960 1200 对应 'small' | 'middle' | 'large'
|
|
5
|
-
*/
|
|
6
|
-
export declare const transformBySize: (size: DrawerSizeType) => number;
|
|
7
|
-
/**
|
|
8
|
-
* 解析最终尺寸
|
|
9
|
-
*
|
|
10
|
-
* - 显式传入(已废弃的)`width` 时打印警告并优先生效,保证向后兼容。
|
|
11
|
-
* - `size` 命中三档枚举走 `transformBySize`;否则视为自定义数字 / 像素 / 百分比直接返回。
|
|
12
|
-
*/
|
|
13
|
-
export declare const resolveDrawerSize: (size: DrawerSizeType | number | string | undefined, width: number | string | undefined) => number | string | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* 关闭抽屉时是否需要弹出二次确认
|
|
16
|
-
*
|
|
17
|
-
* 判定「用户是否真实改动过」依据 userInteracted —— 它由抽屉内容容器上监听到的
|
|
18
|
-
* 真实用户输入事件(input / change)置位。打开后通过 setFieldsValue 异步回填
|
|
19
|
-
* 详情数据属于程序行为,不会派发这些用户事件,因此不会误触发二次确认。
|
|
20
|
-
*/
|
|
21
|
-
export declare const shouldConfirmClose: (params: {
|
|
22
|
-
isView?: boolean;
|
|
23
|
-
isConfirmClose?: boolean;
|
|
24
|
-
userInteracted: boolean;
|
|
25
|
-
}) => boolean;
|
|
@@ -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;
|