@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,206 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ModalProps } from 'antd';
|
|
3
|
-
export type BreadcrumbType = 'breadcrumb' | 'copy' | 'info' | 'version' | 'tag';
|
|
4
|
-
export type NavType = 'money' | 'thousandth' | 'enumName' | 'enumCodeName' | 'date' | 'dateTime';
|
|
5
|
-
export interface BreadcrumbColumnType {
|
|
6
|
-
/**
|
|
7
|
-
* @description 类型
|
|
8
|
-
* @default -
|
|
9
|
-
*/
|
|
10
|
-
type?: BreadcrumbType;
|
|
11
|
-
/**
|
|
12
|
-
* @description 值类型
|
|
13
|
-
* @default -
|
|
14
|
-
*/
|
|
15
|
-
valueType?: BreadcrumbType;
|
|
16
|
-
/**
|
|
17
|
-
* @description 值
|
|
18
|
-
* @default -
|
|
19
|
-
*/
|
|
20
|
-
value: any;
|
|
21
|
-
/**
|
|
22
|
-
* @description 宽度
|
|
23
|
-
* @default -
|
|
24
|
-
*/
|
|
25
|
-
width?: string | number;
|
|
26
|
-
/**
|
|
27
|
-
* @description 是否显示
|
|
28
|
-
* @default -
|
|
29
|
-
*/
|
|
30
|
-
show?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* @description 标签
|
|
33
|
-
* @default -
|
|
34
|
-
*/
|
|
35
|
-
tag?: string | React.ReactNode | (string | React.ReactNode)[];
|
|
36
|
-
}
|
|
37
|
-
export interface SubDescribeColumnType {
|
|
38
|
-
/**
|
|
39
|
-
* @description 描述内容
|
|
40
|
-
* @default -
|
|
41
|
-
*/
|
|
42
|
-
label?: string | React.ReactNode;
|
|
43
|
-
/**
|
|
44
|
-
* @description 类型
|
|
45
|
-
* @default -
|
|
46
|
-
*/
|
|
47
|
-
type?: NavType;
|
|
48
|
-
/**
|
|
49
|
-
* @description 值类型
|
|
50
|
-
* @default -
|
|
51
|
-
*/
|
|
52
|
-
valueType?: NavType;
|
|
53
|
-
/**
|
|
54
|
-
* @description 精度
|
|
55
|
-
* @default -
|
|
56
|
-
*/
|
|
57
|
-
precision?: number;
|
|
58
|
-
/**
|
|
59
|
-
* @description 值
|
|
60
|
-
* @default -
|
|
61
|
-
*/
|
|
62
|
-
value?: any;
|
|
63
|
-
/**
|
|
64
|
-
* @description 是否显示
|
|
65
|
-
* @default -
|
|
66
|
-
*/
|
|
67
|
-
show?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* @description 枚举代码
|
|
70
|
-
* @default -
|
|
71
|
-
*/
|
|
72
|
-
code?: string;
|
|
73
|
-
}
|
|
74
|
-
export interface DescribeColumnType {
|
|
75
|
-
/**
|
|
76
|
-
* @description 描述内容
|
|
77
|
-
* @default -
|
|
78
|
-
*/
|
|
79
|
-
label?: string | React.ReactNode;
|
|
80
|
-
/**
|
|
81
|
-
* @description 是否显示
|
|
82
|
-
* @default -
|
|
83
|
-
*/
|
|
84
|
-
copyable?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* @description 值
|
|
87
|
-
* @default -
|
|
88
|
-
*/
|
|
89
|
-
value?: string | React.ReactNode;
|
|
90
|
-
/**
|
|
91
|
-
* @description 是否显示
|
|
92
|
-
* @default -
|
|
93
|
-
*/
|
|
94
|
-
show?: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* @description 链接
|
|
97
|
-
* @default -
|
|
98
|
-
*/
|
|
99
|
-
link?: string;
|
|
100
|
-
/**
|
|
101
|
-
* @description 多值配置
|
|
102
|
-
* @default -
|
|
103
|
-
*/
|
|
104
|
-
items?: {
|
|
105
|
-
copyable?: boolean;
|
|
106
|
-
value: string | React.ReactNode;
|
|
107
|
-
link?: string;
|
|
108
|
-
tag?: string | React.ReactNode | (string | React.ReactNode)[];
|
|
109
|
-
}[];
|
|
110
|
-
/**
|
|
111
|
-
* @description 宽度
|
|
112
|
-
* @default -
|
|
113
|
-
*/
|
|
114
|
-
width?: string | number;
|
|
115
|
-
/**
|
|
116
|
-
* @description 标签
|
|
117
|
-
* @default -
|
|
118
|
-
*/
|
|
119
|
-
tag?: string | React.ReactNode | (string | React.ReactNode)[];
|
|
120
|
-
}
|
|
121
|
-
export interface ProHeaderType {
|
|
122
|
-
/**
|
|
123
|
-
* @description 标题
|
|
124
|
-
* @default -
|
|
125
|
-
*/
|
|
126
|
-
title?: string | React.ReactNode;
|
|
127
|
-
/**
|
|
128
|
-
* @description 面包屑配置数据
|
|
129
|
-
* @deprecated 将于下个版本 4.0.0 被弃用
|
|
130
|
-
* @default -
|
|
131
|
-
*/
|
|
132
|
-
breadcrumbList?: BreadcrumbColumnType[];
|
|
133
|
-
/**
|
|
134
|
-
* @description 面包屑配置数据
|
|
135
|
-
* @default -
|
|
136
|
-
*/
|
|
137
|
-
breadcrumbColumns?: BreadcrumbColumnType[];
|
|
138
|
-
/**
|
|
139
|
-
* @description 是否隐藏溢出
|
|
140
|
-
* @default -
|
|
141
|
-
*/
|
|
142
|
-
bodyOverFlowHidden?: boolean;
|
|
143
|
-
/**
|
|
144
|
-
* @description 操作渲染
|
|
145
|
-
* @default -
|
|
146
|
-
*/
|
|
147
|
-
actionRender?: React.ReactNode | React.ReactNode[];
|
|
148
|
-
/**
|
|
149
|
-
* @description 次级描述数据源配置
|
|
150
|
-
* @deprecated 将于下个版本 4.0.0 被弃用
|
|
151
|
-
* @default -
|
|
152
|
-
*/
|
|
153
|
-
describeList?: SubDescribeColumnType[];
|
|
154
|
-
/**
|
|
155
|
-
* @description 主要描述数据源配置
|
|
156
|
-
* @default -
|
|
157
|
-
*/
|
|
158
|
-
describeColumns?: DescribeColumnType[];
|
|
159
|
-
/**
|
|
160
|
-
* @description 次级描述数据源配置
|
|
161
|
-
* @default -
|
|
162
|
-
*/
|
|
163
|
-
subDescribeColumns?: SubDescribeColumnType[];
|
|
164
|
-
/**
|
|
165
|
-
* @description 次级描述是否展开
|
|
166
|
-
* @default -
|
|
167
|
-
*/
|
|
168
|
-
collapsed?: boolean;
|
|
169
|
-
/**
|
|
170
|
-
* @description 固定悬浮顶部距离
|
|
171
|
-
* @default -
|
|
172
|
-
*/
|
|
173
|
-
fixedTop?: string | number;
|
|
174
|
-
/**
|
|
175
|
-
* @description 是否显示返回按钮
|
|
176
|
-
* @default -
|
|
177
|
-
*/
|
|
178
|
-
showBack?: boolean;
|
|
179
|
-
showShadow?: boolean;
|
|
180
|
-
/**
|
|
181
|
-
* @description 自动返回
|
|
182
|
-
* @default 2
|
|
183
|
-
*/
|
|
184
|
-
autoBack?: number;
|
|
185
|
-
/**
|
|
186
|
-
* @description 是否开启返回提示
|
|
187
|
-
* @default false
|
|
188
|
-
*/
|
|
189
|
-
isConfirmBack?: boolean;
|
|
190
|
-
/**
|
|
191
|
-
* @description 返回时二次确认弹框的属性
|
|
192
|
-
* @default -
|
|
193
|
-
*/
|
|
194
|
-
isConfirmBackModalProps?: ModalProps;
|
|
195
|
-
/**
|
|
196
|
-
* @description 层级
|
|
197
|
-
* @default -
|
|
198
|
-
*/
|
|
199
|
-
zIndex?: number;
|
|
200
|
-
/**
|
|
201
|
-
* @description 返回
|
|
202
|
-
* @default 100
|
|
203
|
-
*/
|
|
204
|
-
onBack?: () => void;
|
|
205
|
-
[key: string]: any;
|
|
206
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TabContextMenuProps } from '../propTypes';
|
|
2
|
-
/**
|
|
3
|
-
* 右键菜单组件 - 兼容Antd 4.x和5.x
|
|
4
|
-
*/
|
|
5
|
-
declare function TabContextMenu({ tabId, children, closable, onClose, onCloseOthers, onCloseRight, onCloseAll, menuItems: customMenuItems, tabMenuClick, tab, tabs, }: TabContextMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default TabContextMenu;
|
|
7
|
-
export { TabContextMenu };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TabItem } from '../../../propTypes';
|
|
3
|
-
interface TabItemComponentProps {
|
|
4
|
-
tab: TabItem;
|
|
5
|
-
active: boolean;
|
|
6
|
-
onClick: () => void;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
onCloseOthers: () => void;
|
|
9
|
-
onCloseRight: () => void;
|
|
10
|
-
onCloseAll: () => void;
|
|
11
|
-
/** 所有标签页列表 */
|
|
12
|
-
tabsList?: TabItem[];
|
|
13
|
-
/** 自定义菜单项 */
|
|
14
|
-
menuItems?: import('antd').MenuProps['items'];
|
|
15
|
-
/** 自定义菜单项点击回调 */
|
|
16
|
-
tabMenuClick?: (params: {
|
|
17
|
-
key: string;
|
|
18
|
-
tab: TabItem;
|
|
19
|
-
tabs: TabItem[];
|
|
20
|
-
}) => void;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 单个标签页组件
|
|
24
|
-
*/
|
|
25
|
-
declare const TabItemComponent: React.FC<TabItemComponentProps>;
|
|
26
|
-
export { TabItemComponent };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { TabsProps } from 'antd';
|
|
2
|
-
export interface TabsHeaderProps {
|
|
3
|
-
activeKey: string | undefined;
|
|
4
|
-
tabsItems: TabsProps['items'];
|
|
5
|
-
onTabChange: (activeKey: string) => void;
|
|
6
|
-
onTabEdit: (targetKey: string, action: 'add' | 'remove') => void;
|
|
7
|
-
draggable?: boolean;
|
|
8
|
-
onReorder?: (activeId: string, overId: string) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function TabsHeader({ activeKey, tabsItems, onTabChange, onTabEdit, draggable, onReorder, }: TabsHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { IframeConfig } from '../../../propTypes';
|
|
2
|
-
export interface UseIframeRouteOptions {
|
|
3
|
-
/** iframe 嵌入配置 */
|
|
4
|
-
config: IframeConfig | undefined;
|
|
5
|
-
/** 命中路由后调用的 addTab(由外部 tabsInstance.addTab 注入) */
|
|
6
|
-
addTab: (params: {
|
|
7
|
-
code: string;
|
|
8
|
-
name: string;
|
|
9
|
-
extra?: Record<string, any>;
|
|
10
|
-
}) => void;
|
|
11
|
-
}
|
|
12
|
-
export interface UseIframeRouteReturn {
|
|
13
|
-
/** 当前是否处于 iframe 嵌入环境(通过 URL query `?isIframe` 判定,大小写不敏感) */
|
|
14
|
-
isIframe: boolean;
|
|
15
|
-
/** 是否启用纯净渲染(隐藏 Header/Menu/TabsBar);非 iframe 或未配置 iframe 时始终为 false */
|
|
16
|
-
pure: boolean;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* iframe 嵌入模式 hook
|
|
20
|
-
* - 通过 URL query `?isIframe`(大小写不敏感)判定是否处于 iframe 嵌入场景
|
|
21
|
-
* - 命中时按 routes 静态路径匹配 window.location.pathname,调用 addTab
|
|
22
|
-
* - query string 自动作为 extra 透传给业务组件
|
|
23
|
-
* - 暴露 pure 标志供外部 layout 决定渲染范围
|
|
24
|
-
*/
|
|
25
|
-
export declare const useIframeRoute: (options: UseIframeRouteOptions) => UseIframeRouteReturn;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ProLayoutTabsInstance } from '../../../propTypes';
|
|
2
|
-
/**
|
|
3
|
-
* @description 获取 ProLayout 标签页实例的 Hook(类似 Form.useForm)
|
|
4
|
-
* @returns [ProLayoutTabsInstance] 标签页实例
|
|
5
|
-
* @example
|
|
6
|
-
* ```tsx
|
|
7
|
-
* // 在 ProLayout children 中使用
|
|
8
|
-
* const [layoutTabs] = useProLayoutTabs();
|
|
9
|
-
*
|
|
10
|
-
* // 使用实例方法
|
|
11
|
-
* layoutTabs.addTab({
|
|
12
|
-
* code: 'PolicyInput',
|
|
13
|
-
* name: '投保单录入',
|
|
14
|
-
* extra: { customData: '自定义数据' }
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export declare function useProLayoutTabs(): [ProLayoutTabsInstance];
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { TabsState } from '../../../propTypes';
|
|
2
|
-
import { TabsCacheManager } from '../propTypes';
|
|
3
|
-
/**
|
|
4
|
-
* 简化的标签页缓存管理器
|
|
5
|
-
*/
|
|
6
|
-
declare class SimpleTabsCache implements TabsCacheManager {
|
|
7
|
-
private cacheKey;
|
|
8
|
-
private storage;
|
|
9
|
-
constructor(keyPrefix: string, strategy: 'localStorage' | 'sessionStorage');
|
|
10
|
-
/** 保存标签页状态 */
|
|
11
|
-
save(state: TabsState): void;
|
|
12
|
-
/** 恢复标签页状态 */
|
|
13
|
-
restore(): TabsState | null;
|
|
14
|
-
/** 清空缓存 */
|
|
15
|
-
clear(): void;
|
|
16
|
-
}
|
|
17
|
-
interface UseTabsCacheOptions {
|
|
18
|
-
cacheKey: string;
|
|
19
|
-
storage: 'localStorage' | 'sessionStorage';
|
|
20
|
-
enabled?: boolean;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 标签页缓存管理Hook
|
|
24
|
-
*/
|
|
25
|
-
export declare const useTabsCache: (options: UseTabsCacheOptions) => {
|
|
26
|
-
saveToCache: (state: TabsState) => void;
|
|
27
|
-
restoreFromCache: () => TabsState | null;
|
|
28
|
-
clearCache: () => void;
|
|
29
|
-
cacheManager: SimpleTabsCache;
|
|
30
|
-
};
|
|
31
|
-
export {};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import type { MenuProps } from 'antd';
|
|
3
|
-
import { TabsState, MenusType, DataSourceType, TabsConfig, AddTabOptions, TabItem, UpdateTabParams } from '../../propTypes';
|
|
4
|
-
export interface TabsManagerProps {
|
|
5
|
-
/** 标签页配置 */
|
|
6
|
-
config: TabsConfig;
|
|
7
|
-
/** 子元素内容 */
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
/** 菜单数据源 */
|
|
10
|
-
dataSource: DataSourceType | Partial<MenusType>;
|
|
11
|
-
/** 原始菜单点击处理 */
|
|
12
|
-
originalOnMenuClick?: (params: {
|
|
13
|
-
item: MenusType | null;
|
|
14
|
-
key: string;
|
|
15
|
-
keyPath: string[];
|
|
16
|
-
}) => void;
|
|
17
|
-
/** Tab 栏的 Portal 挂载目标(由 ProLayout 提供),不传则原位渲染 */
|
|
18
|
-
tabsBarContainer?: HTMLElement | null;
|
|
19
|
-
/** Tab 有无变化回调,供 ProLayout 控制 wrapper 动画 */
|
|
20
|
-
onTabsChange?: (hasTabs: boolean) => void;
|
|
21
|
-
/** iframe pure 模式变化回调,供 ProLayout 决定是否隐藏外壳 */
|
|
22
|
-
onIframePureChange?: (pure: boolean) => void;
|
|
23
|
-
}
|
|
24
|
-
export interface TabContextMenuProps {
|
|
25
|
-
tabId: string;
|
|
26
|
-
children: React.ReactElement;
|
|
27
|
-
closable?: boolean;
|
|
28
|
-
onClose: (tabId: string) => void;
|
|
29
|
-
onCloseOthers: (tabId: string) => void;
|
|
30
|
-
onCloseRight: (tabId: string) => void;
|
|
31
|
-
onCloseAll: () => void;
|
|
32
|
-
/** 自定义菜单项,会与默认菜单项合并 */
|
|
33
|
-
menuItems?: MenuProps['items'];
|
|
34
|
-
/** 自定义菜单项点击回调 */
|
|
35
|
-
tabMenuClick?: (params: {
|
|
36
|
-
key: string;
|
|
37
|
-
tab: TabItem;
|
|
38
|
-
tabs: TabItem[];
|
|
39
|
-
}) => void;
|
|
40
|
-
/** 当前标签页信息 */
|
|
41
|
-
tab?: TabItem;
|
|
42
|
-
/** 所有标签页列表 */
|
|
43
|
-
tabs?: TabItem[];
|
|
44
|
-
}
|
|
45
|
-
export interface UseTabsStateOptions {
|
|
46
|
-
/** 初始状态 */
|
|
47
|
-
initialState?: Partial<TabsState>;
|
|
48
|
-
/** 配置 */
|
|
49
|
-
config: TabsManagerProps['config'];
|
|
50
|
-
/** 数据源 */
|
|
51
|
-
dataSource?: TabsManagerProps['dataSource'];
|
|
52
|
-
/** 是否启用缓存(读+写),默认 true。iframe pure 模式下传 false */
|
|
53
|
-
cacheEnabled?: boolean;
|
|
54
|
-
}
|
|
55
|
-
export interface UseTabsStateReturn {
|
|
56
|
-
/** 当前状态 */
|
|
57
|
-
state: TabsState;
|
|
58
|
-
/** 缓存是否已恢复完成 */
|
|
59
|
-
isInitialized: boolean;
|
|
60
|
-
/** 添加标签页 */
|
|
61
|
-
addTab: (menuItem: MenusType, options?: AddTabOptions) => void;
|
|
62
|
-
/** 检查是否可以添加标签页 */
|
|
63
|
-
canAddTab: (menuItem: MenusType, options?: AddTabOptions) => boolean;
|
|
64
|
-
/** 移除标签页 */
|
|
65
|
-
removeTab: (tabId: string) => void;
|
|
66
|
-
/** 更新指定 id 的标签页字段(替换语义;找不到时 no-op) */
|
|
67
|
-
updateTab: (tabId: string, updates: UpdateTabParams) => void;
|
|
68
|
-
/** 切换标签页 */
|
|
69
|
-
switchTab: (tabId: string) => void;
|
|
70
|
-
/** 关闭其他标签页 */
|
|
71
|
-
closeOtherTabs: (currentTabId: string) => void;
|
|
72
|
-
/** 关闭右侧标签页 */
|
|
73
|
-
closeRightTabs: (currentTabId: string) => void;
|
|
74
|
-
/** 关闭全部标签页 */
|
|
75
|
-
closeAllTabs: () => void;
|
|
76
|
-
/** 重置状态 */
|
|
77
|
-
resetTabs: () => void;
|
|
78
|
-
/** 重排标签页顺序 */
|
|
79
|
-
reorderTabs: (activeId: string, overId: string) => void;
|
|
80
|
-
}
|
|
81
|
-
export interface TabsCacheManager {
|
|
82
|
-
save: (state: TabsState) => void;
|
|
83
|
-
restore: () => TabsState | null;
|
|
84
|
-
clear: () => void;
|
|
85
|
-
}
|
|
86
|
-
export declare const DEFAULT_TABS_CONFIG: {
|
|
87
|
-
storage: "localStorage";
|
|
88
|
-
cacheKey: string;
|
|
89
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { TabItem, MenusType } from '../../../propTypes';
|
|
2
|
-
/**
|
|
3
|
-
* 获取菜单实际用于路由/签页的路径
|
|
4
|
-
* 约定优先使用 redirectUrl,其次回退 url
|
|
5
|
-
*/
|
|
6
|
-
export declare const getMenuRoute: (menuItem: MenusType) => string;
|
|
7
|
-
/**
|
|
8
|
-
* 根据菜单项生成TabItem
|
|
9
|
-
*/
|
|
10
|
-
export declare const createTabFromMenu: (menuItem: MenusType, index?: number) => TabItem;
|
|
11
|
-
/**
|
|
12
|
-
* 生成唯一的tab ID
|
|
13
|
-
*/
|
|
14
|
-
export declare const generateTabId: (menuItem: MenusType, existingIds: string[]) => string;
|
|
15
|
-
/**
|
|
16
|
-
* 检查菜单项是否应该外部跳转
|
|
17
|
-
*/
|
|
18
|
-
export declare const shouldOpenExternal: (menuItem: MenusType, target?: string) => boolean;
|
|
19
|
-
/**
|
|
20
|
-
* 处理外部跳转
|
|
21
|
-
*/
|
|
22
|
-
export declare const handleExternalOpen: (menuItem: MenusType) => void;
|
|
23
|
-
/**
|
|
24
|
-
* 检查是否超出最大标签页限制
|
|
25
|
-
* @param currentTabs 当前标签页列表
|
|
26
|
-
* @param maxTabs 最大标签页数量,如果为 undefined 或 null,表示无限制
|
|
27
|
-
* @returns 如果超出限制返回 true,否则返回 false
|
|
28
|
-
*/
|
|
29
|
-
export declare const checkTabLimit: (currentTabs: TabItem[], maxTabs?: number | null) => boolean;
|
|
30
|
-
/**
|
|
31
|
-
* 获取右侧标签页
|
|
32
|
-
*/
|
|
33
|
-
export declare const getRightTabs: (tabs: TabItem[], currentTabId: string) => TabItem[];
|
|
34
|
-
/**
|
|
35
|
-
* 扁平化菜单数据
|
|
36
|
-
*/
|
|
37
|
-
export declare const flattenMenuData: (menus?: MenusType[]) => MenusType[];
|
|
38
|
-
/**
|
|
39
|
-
* 判断菜单项是否为最后一级(叶子节点)
|
|
40
|
-
* 只有当菜单项没有子菜单或子菜单为空时,才认为是叶子节点
|
|
41
|
-
*/
|
|
42
|
-
export declare const isLeafMenuItem: (menuItem: MenusType) => boolean;
|
|
43
|
-
/**
|
|
44
|
-
* 判断菜单项是否可以在 Tabs 模式下打开
|
|
45
|
-
* 规则:只有叶子节点(无 children)才可打开
|
|
46
|
-
*/
|
|
47
|
-
export declare const canOpenAsTab: (menuItem: MenusType) => boolean;
|
package/es/ProLayout/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { ProLayoutStatesType, ProLayoutType } from './propTypes';
|
|
3
|
-
import { useProLayoutTabs } from './components/TabsManager/hooks/useProLayoutTabs';
|
|
4
|
-
import { useActiveTab } from './components/TabsManager/hooks/useActiveTab';
|
|
5
|
-
interface LayoutContextValue {
|
|
6
|
-
selectedPath: string;
|
|
7
|
-
onSelected: (params: Partial<ProLayoutStatesType>) => void;
|
|
8
|
-
target: '_blank' | '_parent' | '_self' | '_top';
|
|
9
|
-
}
|
|
10
|
-
export declare const LayoutContext: import("react").Context<LayoutContextValue>;
|
|
11
|
-
declare const ProLayout: {
|
|
12
|
-
(props: ProLayoutType): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseType) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterType) => import("react/jsx-runtime").JSX.Element>;
|
|
15
|
-
ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderType) => import("react/jsx-runtime").JSX.Element>;
|
|
16
|
-
useProLayoutTabs: typeof useProLayoutTabs;
|
|
17
|
-
useActiveTab: () => import("./propTypes").TabItem;
|
|
18
|
-
};
|
|
19
|
-
export { useProLayoutTabs, useActiveTab };
|
|
20
|
-
export default ProLayout;
|