@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,533 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { ProWaterMarkType } from '../ProWaterMark/propsType';
|
|
3
|
-
/**
|
|
4
|
-
* @description 应用选项类型(无分组模式)
|
|
5
|
-
*/
|
|
6
|
-
export interface AppsOption {
|
|
7
|
-
/**
|
|
8
|
-
* @description 应用唯一标识值
|
|
9
|
-
* @default -
|
|
10
|
-
*/
|
|
11
|
-
value: string;
|
|
12
|
-
/**
|
|
13
|
-
* @description 应用名称
|
|
14
|
-
* @default -
|
|
15
|
-
*/
|
|
16
|
-
label: ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* @description 应用图标
|
|
19
|
-
* @default -
|
|
20
|
-
*/
|
|
21
|
-
icon?: ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* @description 点击回调
|
|
24
|
-
* @default -
|
|
25
|
-
*/
|
|
26
|
-
onChange?: (value: string, option: AppsOption) => void;
|
|
27
|
-
/**
|
|
28
|
-
* @description 允许扩展字段
|
|
29
|
-
*/
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @description 应用分组类型(分组模式)
|
|
34
|
-
*/
|
|
35
|
-
export interface AppsGroup {
|
|
36
|
-
/**
|
|
37
|
-
* @description 分组唯一标识
|
|
38
|
-
* @default -
|
|
39
|
-
*/
|
|
40
|
-
value: string;
|
|
41
|
-
/**
|
|
42
|
-
* @description 分组名称
|
|
43
|
-
* @default -
|
|
44
|
-
*/
|
|
45
|
-
label: ReactNode;
|
|
46
|
-
/**
|
|
47
|
-
* @description 分组图标
|
|
48
|
-
* @default -
|
|
49
|
-
*/
|
|
50
|
-
icon?: ReactNode;
|
|
51
|
-
/**
|
|
52
|
-
* @description 该分组下的应用列表
|
|
53
|
-
* @default []
|
|
54
|
-
*/
|
|
55
|
-
options: AppsOption[];
|
|
56
|
-
/**
|
|
57
|
-
* @description 允许扩展字段
|
|
58
|
-
*/
|
|
59
|
-
[key: string]: any;
|
|
60
|
-
}
|
|
61
|
-
export interface MenusType {
|
|
62
|
-
/**
|
|
63
|
-
* @description 菜单ID
|
|
64
|
-
* @default -
|
|
65
|
-
*/
|
|
66
|
-
id?: number;
|
|
67
|
-
/**
|
|
68
|
-
* @description 菜单唯一code
|
|
69
|
-
* @default -
|
|
70
|
-
*/
|
|
71
|
-
code?: string;
|
|
72
|
-
/**
|
|
73
|
-
* @description 菜单名称
|
|
74
|
-
* @default -
|
|
75
|
-
*/
|
|
76
|
-
name?: string;
|
|
77
|
-
/**
|
|
78
|
-
* @description 菜单路由
|
|
79
|
-
* @default -
|
|
80
|
-
*/
|
|
81
|
-
url?: string;
|
|
82
|
-
/**
|
|
83
|
-
* @description 点击路由时,重定向地址
|
|
84
|
-
* @default -
|
|
85
|
-
*/
|
|
86
|
-
redirectUrl?: string;
|
|
87
|
-
/**
|
|
88
|
-
* @description 关联的上级id
|
|
89
|
-
* @default -
|
|
90
|
-
*/
|
|
91
|
-
parentId?: number | null;
|
|
92
|
-
/**
|
|
93
|
-
* @description 备注
|
|
94
|
-
* @default -
|
|
95
|
-
*/
|
|
96
|
-
description?: any;
|
|
97
|
-
/**
|
|
98
|
-
* @description 扩展备用字段
|
|
99
|
-
* @default -
|
|
100
|
-
*/
|
|
101
|
-
extraInfo?: any;
|
|
102
|
-
/**
|
|
103
|
-
* @description 排序
|
|
104
|
-
* @default -
|
|
105
|
-
*/
|
|
106
|
-
sort?: number | undefined | null;
|
|
107
|
-
/**
|
|
108
|
-
* @description 是否隐藏菜单
|
|
109
|
-
* @default false
|
|
110
|
-
*/
|
|
111
|
-
hideInMenu?: boolean;
|
|
112
|
-
/**
|
|
113
|
-
* @description iconfont图标
|
|
114
|
-
* @default -
|
|
115
|
-
*/
|
|
116
|
-
icon?: string;
|
|
117
|
-
/**
|
|
118
|
-
* @description 图片icon
|
|
119
|
-
* @default -
|
|
120
|
-
*/
|
|
121
|
-
imgUrl?: string;
|
|
122
|
-
/**
|
|
123
|
-
* @description 菜单类型
|
|
124
|
-
* @default -
|
|
125
|
-
*/
|
|
126
|
-
type?: string;
|
|
127
|
-
/**
|
|
128
|
-
* @description 当前菜单点击后的打开方式
|
|
129
|
-
* @default "_self"
|
|
130
|
-
*/
|
|
131
|
-
target?: '_blank' | '_parent' | '_self' | '_top';
|
|
132
|
-
/**
|
|
133
|
-
* @description 允许扩展字段
|
|
134
|
-
*/
|
|
135
|
-
[key: string]: any;
|
|
136
|
-
}
|
|
137
|
-
export interface DataSourceType {
|
|
138
|
-
/**
|
|
139
|
-
* @description 用户信息
|
|
140
|
-
* @default -
|
|
141
|
-
*/
|
|
142
|
-
userInfo?: any;
|
|
143
|
-
/**
|
|
144
|
-
* @description 处理后一级菜单详情
|
|
145
|
-
* @default []
|
|
146
|
-
*/
|
|
147
|
-
menus?: MenusType[];
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* @description 是否带有菜单界面的配置
|
|
151
|
-
*/
|
|
152
|
-
type pureKey = boolean | {
|
|
153
|
-
topMenu?: boolean;
|
|
154
|
-
leftMenu?: boolean;
|
|
155
|
-
};
|
|
156
|
-
interface ProLayoutBaseProps {
|
|
157
|
-
/**
|
|
158
|
-
* @description 左侧logo
|
|
159
|
-
* @default -
|
|
160
|
-
*/
|
|
161
|
-
logo?: ReactNode | string;
|
|
162
|
-
/**
|
|
163
|
-
* @description 类名
|
|
164
|
-
* @default ""
|
|
165
|
-
*/
|
|
166
|
-
className?: string;
|
|
167
|
-
/**
|
|
168
|
-
* @description iconfontUrl
|
|
169
|
-
* @default -
|
|
170
|
-
*/
|
|
171
|
-
iconfontUrl?: string;
|
|
172
|
-
/**
|
|
173
|
-
* @description 右侧内容渲染
|
|
174
|
-
* @default -
|
|
175
|
-
*/
|
|
176
|
-
rightContentRender?: ReactNode;
|
|
177
|
-
/**
|
|
178
|
-
* @description 头部内容渲染
|
|
179
|
-
* @default -
|
|
180
|
-
*/
|
|
181
|
-
headerContentRender?: ReactNode;
|
|
182
|
-
/**
|
|
183
|
-
* @description 侧边栏底部渲染
|
|
184
|
-
* @default -
|
|
185
|
-
*/
|
|
186
|
-
sideMenuFooterRender?: ReactNode;
|
|
187
|
-
/**
|
|
188
|
-
* @description 头部标题区自定义渲染
|
|
189
|
-
* @default -
|
|
190
|
-
*/
|
|
191
|
-
headerTitleRender?: ReactNode;
|
|
192
|
-
/**
|
|
193
|
-
* @description 通告
|
|
194
|
-
* @default -
|
|
195
|
-
*/
|
|
196
|
-
headerNotice?: ReactNode | string;
|
|
197
|
-
/**
|
|
198
|
-
* @description 通告
|
|
199
|
-
* @default -
|
|
200
|
-
*/
|
|
201
|
-
notice?: ReactNode | string;
|
|
202
|
-
/**
|
|
203
|
-
* @description 标题
|
|
204
|
-
* @default -
|
|
205
|
-
*/
|
|
206
|
-
title?: string;
|
|
207
|
-
/**
|
|
208
|
-
* @description 数据源
|
|
209
|
-
* @default -
|
|
210
|
-
*/
|
|
211
|
-
dataSource?: DataSourceType | Partial<MenusType>;
|
|
212
|
-
/**
|
|
213
|
-
* @description 是否折叠
|
|
214
|
-
* @default false
|
|
215
|
-
*/
|
|
216
|
-
collapsed?: boolean;
|
|
217
|
-
/**
|
|
218
|
-
* @description 菜单拼接路径前缀
|
|
219
|
-
* @default ""
|
|
220
|
-
*/
|
|
221
|
-
pathPrefix?: string;
|
|
222
|
-
/**
|
|
223
|
-
* @description 是否带有菜单界面,true不带,只显示content内容
|
|
224
|
-
* @default false
|
|
225
|
-
*/
|
|
226
|
-
pure?: pureKey;
|
|
227
|
-
/**
|
|
228
|
-
* @description 头部区域高度
|
|
229
|
-
* @default 64
|
|
230
|
-
*/
|
|
231
|
-
headerHeight?: number;
|
|
232
|
-
/**
|
|
233
|
-
* @description 内容区域样式
|
|
234
|
-
* @default {}
|
|
235
|
-
*/
|
|
236
|
-
contentStyle?: CSSProperties;
|
|
237
|
-
/**
|
|
238
|
-
* @description 水印配置
|
|
239
|
-
* @default {}
|
|
240
|
-
*/
|
|
241
|
-
waterMarkProps?: ProWaterMarkType;
|
|
242
|
-
/**
|
|
243
|
-
* @description 折叠回调事件
|
|
244
|
-
* @default -
|
|
245
|
-
*/
|
|
246
|
-
onCollapsedChange?: (collapsed: boolean) => void;
|
|
247
|
-
/**
|
|
248
|
-
* @description 菜单点击回调事件,返回命中的菜单项数据和完整路径
|
|
249
|
-
* @default -
|
|
250
|
-
*/
|
|
251
|
-
onMenuClick?: (params: {
|
|
252
|
-
item: MenusType | null;
|
|
253
|
-
key: string;
|
|
254
|
-
keyPath: string[];
|
|
255
|
-
}) => void | boolean;
|
|
256
|
-
/**
|
|
257
|
-
* @description 规定在何处打开被链接文档
|
|
258
|
-
* @default "_self"
|
|
259
|
-
*/
|
|
260
|
-
target?: '_blank' | '_parent' | '_self' | '_top';
|
|
261
|
-
/**
|
|
262
|
-
* @description 子元素
|
|
263
|
-
* @default -
|
|
264
|
-
*/
|
|
265
|
-
children?: ReactNode;
|
|
266
|
-
/**
|
|
267
|
-
* @description 应用入口配置(支持分组和扁平两种模式)
|
|
268
|
-
* @default -
|
|
269
|
-
*/
|
|
270
|
-
appsOptions?: AppsGroup[] | AppsOption[];
|
|
271
|
-
/**
|
|
272
|
-
* @description 允许扩展字段
|
|
273
|
-
*/
|
|
274
|
-
[key: string]: any;
|
|
275
|
-
}
|
|
276
|
-
export interface ProLayoutStatesType {
|
|
277
|
-
/**
|
|
278
|
-
* @description 是否折叠
|
|
279
|
-
* @default false
|
|
280
|
-
*/
|
|
281
|
-
collapsed?: boolean;
|
|
282
|
-
/**
|
|
283
|
-
* @description 通告
|
|
284
|
-
* @default -
|
|
285
|
-
*/
|
|
286
|
-
notice?: ReactNode | string;
|
|
287
|
-
/**
|
|
288
|
-
* @description 菜单列表
|
|
289
|
-
* @default []
|
|
290
|
-
*/
|
|
291
|
-
menus?: MenusType[];
|
|
292
|
-
/**
|
|
293
|
-
* @description 选中的路径
|
|
294
|
-
* @default ""
|
|
295
|
-
*/
|
|
296
|
-
selectedPath?: string;
|
|
297
|
-
/**
|
|
298
|
-
* @description 允许扩展字段
|
|
299
|
-
*/
|
|
300
|
-
[key: string]: any;
|
|
301
|
-
}
|
|
302
|
-
export interface TabItem {
|
|
303
|
-
/**
|
|
304
|
-
* @description 标签唯一标识
|
|
305
|
-
*/
|
|
306
|
-
id: string;
|
|
307
|
-
/**
|
|
308
|
-
* @description 组件标识码
|
|
309
|
-
*/
|
|
310
|
-
code: string;
|
|
311
|
-
/**
|
|
312
|
-
* @description 标签名称
|
|
313
|
-
*/
|
|
314
|
-
name: string;
|
|
315
|
-
/**
|
|
316
|
-
* @description 标签标题(废弃,保留兼容)
|
|
317
|
-
*/
|
|
318
|
-
title: string;
|
|
319
|
-
/**
|
|
320
|
-
* @description 标签关联路由
|
|
321
|
-
*/
|
|
322
|
-
url?: string;
|
|
323
|
-
/**
|
|
324
|
-
* @description 是否可关闭
|
|
325
|
-
*/
|
|
326
|
-
closable: boolean;
|
|
327
|
-
/**
|
|
328
|
-
* @description 关联菜单项
|
|
329
|
-
*/
|
|
330
|
-
menuItem?: MenusType;
|
|
331
|
-
/**
|
|
332
|
-
* @description 额外扩展数据
|
|
333
|
-
*/
|
|
334
|
-
extra?: Record<string, any>;
|
|
335
|
-
/**
|
|
336
|
-
* @description 图标
|
|
337
|
-
*/
|
|
338
|
-
icon?: ReactNode | string;
|
|
339
|
-
}
|
|
340
|
-
export interface TabsState {
|
|
341
|
-
tabsList: TabItem[];
|
|
342
|
-
activeKey: string;
|
|
343
|
-
activeTabInfo?: TabItem;
|
|
344
|
-
newTabIndex: number;
|
|
345
|
-
activeComponent?: string;
|
|
346
|
-
}
|
|
347
|
-
export type TabsStorageStrategy = 'localStorage' | 'sessionStorage';
|
|
348
|
-
/**
|
|
349
|
-
* @description 添加标签页的业务参数
|
|
350
|
-
*/
|
|
351
|
-
export interface AddTabParams {
|
|
352
|
-
/**
|
|
353
|
-
* @description 组件标识码,用于映射到具体的 React 组件
|
|
354
|
-
*/
|
|
355
|
-
code: string;
|
|
356
|
-
/**
|
|
357
|
-
* @description 标签页显示名称
|
|
358
|
-
*/
|
|
359
|
-
name: string;
|
|
360
|
-
/**
|
|
361
|
-
* @description 额外的业务数据
|
|
362
|
-
*/
|
|
363
|
-
extra?: Record<string, any>;
|
|
364
|
-
}
|
|
365
|
-
/**
|
|
366
|
-
* @description 添加标签页的选项
|
|
367
|
-
*/
|
|
368
|
-
export interface AddTabOptions {
|
|
369
|
-
/**
|
|
370
|
-
* @description 是否强制创建新标签页(忽略已存在的相同标签页),默认 false
|
|
371
|
-
*/
|
|
372
|
-
forceNew?: boolean;
|
|
373
|
-
/**
|
|
374
|
-
* @description 是否静默追加:true 时新建 tab 不切换 active;当前已有 active 时保留原 active。
|
|
375
|
-
* 列表为空(activeKey 为空)时仍会激活,以保留首次进入默认激活的行为。
|
|
376
|
-
* 用于 fixed 声明式注入等不应抢用户 active 的场景。默认 false。
|
|
377
|
-
*/
|
|
378
|
-
silent?: boolean;
|
|
379
|
-
}
|
|
380
|
-
/**
|
|
381
|
-
* @description 更新标签页的字段(仅允许更新展示与扩展数据)
|
|
382
|
-
*/
|
|
383
|
-
export interface UpdateTabParams {
|
|
384
|
-
/**
|
|
385
|
-
* @description 标签名称(更新时同步刷新 title)
|
|
386
|
-
*/
|
|
387
|
-
name?: string;
|
|
388
|
-
/**
|
|
389
|
-
* @description 图标
|
|
390
|
-
*/
|
|
391
|
-
icon?: ReactNode | string;
|
|
392
|
-
/**
|
|
393
|
-
* @description 额外扩展数据(替换式覆盖,不做合并)
|
|
394
|
-
*/
|
|
395
|
-
extra?: Record<string, any>;
|
|
396
|
-
/**
|
|
397
|
-
* @description 是否可关闭
|
|
398
|
-
*/
|
|
399
|
-
closable?: boolean;
|
|
400
|
-
}
|
|
401
|
-
/**
|
|
402
|
-
* @description 获取标签页信息返回值
|
|
403
|
-
*/
|
|
404
|
-
export interface TabsInfoResult {
|
|
405
|
-
/** 标签页列表 */
|
|
406
|
-
tabsList: TabItem[];
|
|
407
|
-
/** 当前激活的标签页信息 */
|
|
408
|
-
activeTabInfo?: TabItem;
|
|
409
|
-
/** 当前激活的组件标识 */
|
|
410
|
-
activeComponent: string;
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
* @description ProLayout 标签页实例接口(类似 FormInstance)
|
|
414
|
-
*/
|
|
415
|
-
export interface ProLayoutTabsInstance {
|
|
416
|
-
/**
|
|
417
|
-
* @description 添加标签页
|
|
418
|
-
*/
|
|
419
|
-
addTab: (params: AddTabParams, options?: AddTabOptions) => void;
|
|
420
|
-
/**
|
|
421
|
-
* @description 删除标签页
|
|
422
|
-
*/
|
|
423
|
-
removeTab: (tabId: string) => void;
|
|
424
|
-
/**
|
|
425
|
-
* @description 更新已存在标签页的展示信息(不会卸载/重挂渲染组件)
|
|
426
|
-
* @param tabId 目标标签页 id
|
|
427
|
-
* @param updates 仅更新传入的字段,extra 为替换式覆盖
|
|
428
|
-
*/
|
|
429
|
-
updateTab: (tabId: string, updates: UpdateTabParams) => void;
|
|
430
|
-
/**
|
|
431
|
-
* @description 获取标签页信息
|
|
432
|
-
*/
|
|
433
|
-
getTabInfo: () => TabsInfoResult;
|
|
434
|
-
}
|
|
435
|
-
/**
|
|
436
|
-
* @description iframe 路由表配置项
|
|
437
|
-
*/
|
|
438
|
-
export interface IframeRoute {
|
|
439
|
-
/**
|
|
440
|
-
* @description 静态路径,与 `window.location.pathname` 完全匹配(忽略首尾斜杠)。
|
|
441
|
-
* 不支持 `:param` 动态片段;动态参数通过 query string 传递,
|
|
442
|
-
* 自动作为 props 透传给业务组件。
|
|
443
|
-
* 业务方需保证 URL query 字段名与业务组件 props 名一致。
|
|
444
|
-
* @example '/wjs/policy/view'
|
|
445
|
-
* 配合 URL: `/wjs/policy/view?taskId=123&policyId=456`
|
|
446
|
-
*/
|
|
447
|
-
path: string;
|
|
448
|
-
/**
|
|
449
|
-
* @description 命中后用于解析 activeComponent 的业务 code
|
|
450
|
-
*/
|
|
451
|
-
code: string;
|
|
452
|
-
/**
|
|
453
|
-
* @description 命中后的标签名称
|
|
454
|
-
*/
|
|
455
|
-
name: string;
|
|
456
|
-
}
|
|
457
|
-
/**
|
|
458
|
-
* @description iframe 嵌入配置
|
|
459
|
-
*
|
|
460
|
-
* **触发条件**:URL query 上带 `?isIframe`(大小写不敏感,值不限,只看 key 是否存在)。
|
|
461
|
-
* 第三方系统通过在 iframe src 上拼 `?isIframe=1` 来触发组件库的嵌入模式。
|
|
462
|
-
*
|
|
463
|
-
* 未带该 query 时(独立访问),即使配置了 `tabs.iframe`,组件库也完全不读取,
|
|
464
|
-
* 维持完整 Layout 渲染。
|
|
465
|
-
*/
|
|
466
|
-
export interface IframeConfig {
|
|
467
|
-
/**
|
|
468
|
-
* @description 路由表:按 URL pathname 顺序匹配,命中后自动 addTab
|
|
469
|
-
* - URL query 自动合并进 extra,作为业务组件 props 透传
|
|
470
|
-
*/
|
|
471
|
-
routes: IframeRoute[];
|
|
472
|
-
/**
|
|
473
|
-
* @description 嵌入时是否使用纯净渲染(只显示内容区域)
|
|
474
|
-
* - true (默认): 隐藏 Header / Menu / TabsBar,仅渲染当前 tab 内容
|
|
475
|
-
* - false: 完整 layout 渲染
|
|
476
|
-
* @default true
|
|
477
|
-
*/
|
|
478
|
-
pure?: boolean;
|
|
479
|
-
}
|
|
480
|
-
export interface TabsConfig {
|
|
481
|
-
max?: number;
|
|
482
|
-
storage?: TabsStorageStrategy;
|
|
483
|
-
cacheKey?: string;
|
|
484
|
-
onTabChange?: (activeKey: string, activeTab: TabItem | undefined, allTabs: TabItem[]) => void;
|
|
485
|
-
/**
|
|
486
|
-
* @description 是否允许标签页拖拽排序
|
|
487
|
-
* @default true
|
|
488
|
-
*/
|
|
489
|
-
draggable?: boolean;
|
|
490
|
-
/**
|
|
491
|
-
* @description 激活组件解析函数,根据 component 标识返回对应的 React 组件
|
|
492
|
-
*/
|
|
493
|
-
activeComponent?: (component: string) => React.ComponentType<any> | null;
|
|
494
|
-
/**
|
|
495
|
-
* @description 空状态组件,当没有标签页时显示
|
|
496
|
-
*/
|
|
497
|
-
empty?: ReactNode;
|
|
498
|
-
/**
|
|
499
|
-
* @description 自定义右键菜单项,会替换默认菜单项
|
|
500
|
-
*/
|
|
501
|
-
menuItems?: import('antd').MenuProps['items'];
|
|
502
|
-
/**
|
|
503
|
-
* @description 自定义菜单项点击回调
|
|
504
|
-
*/
|
|
505
|
-
tabMenuClick?: (params: {
|
|
506
|
-
key: string;
|
|
507
|
-
tab: TabItem;
|
|
508
|
-
tabs: TabItem[];
|
|
509
|
-
}) => void;
|
|
510
|
-
/**
|
|
511
|
-
* @description 声明式固定标签页,传入菜单 code 数组,这些 tab 会在初始化时自动添加且不可关闭
|
|
512
|
-
* @example fixed: ['Workspace', 'PolicyInput']
|
|
513
|
-
*/
|
|
514
|
-
fixed?: string[];
|
|
515
|
-
/**
|
|
516
|
-
* @description iframe 嵌入配置,允许第三方系统通过 URL 定位到具体 tab
|
|
517
|
-
* 仅在 URL 带 `?isIframe`(大小写不敏感)时生效
|
|
518
|
-
*/
|
|
519
|
-
iframe?: IframeConfig;
|
|
520
|
-
}
|
|
521
|
-
export type ProLayoutMode = 'normal' | 'tabs';
|
|
522
|
-
export interface ProLayoutTabsProps extends ProLayoutBaseProps {
|
|
523
|
-
mode: 'tabs';
|
|
524
|
-
tabs: TabsConfig;
|
|
525
|
-
}
|
|
526
|
-
export interface ProLayoutNormalProps extends ProLayoutBaseProps {
|
|
527
|
-
mode?: 'normal';
|
|
528
|
-
tabs?: never;
|
|
529
|
-
}
|
|
530
|
-
export type ProLayoutType = ProLayoutTabsProps | ProLayoutNormalProps;
|
|
531
|
-
export declare const isTabsMode: (props: ProLayoutType) => props is ProLayoutTabsProps;
|
|
532
|
-
export declare const validateTabsProps: (mode?: ProLayoutMode, tabs?: TabsConfig) => void;
|
|
533
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { MenusType } from '../propTypes';
|
|
2
|
-
/**
|
|
3
|
-
* 通过URL获取对应keyIdPath
|
|
4
|
-
* @param menus 菜单数据
|
|
5
|
-
* @param activeMenu 上一次激活url地址
|
|
6
|
-
* @return result
|
|
7
|
-
*/
|
|
8
|
-
export declare const getIdsByPathName: (menus: any[], activeMenu?: string) => number[];
|
|
9
|
-
/**
|
|
10
|
-
* 转换菜单数据源评价keyUrlPath与keyIdPath
|
|
11
|
-
* @param menuData 菜单数据源
|
|
12
|
-
* @returns []
|
|
13
|
-
*/
|
|
14
|
-
export declare const transformMenu: (menuData: any[], pathPrefix: string) => any[];
|
|
15
|
-
/**
|
|
16
|
-
* 转换菜单数据源评价keyUrlPath与keyIdPath
|
|
17
|
-
* @param data 菜单数据源
|
|
18
|
-
* @returns []
|
|
19
|
-
*/
|
|
20
|
-
export declare const transformMenus: (data: MenusType, pathPrefix: string) => any[] | MenusType;
|
|
21
|
-
/**
|
|
22
|
-
* 获取URL中的search参数
|
|
23
|
-
* @param name 参数key
|
|
24
|
-
* @returns string
|
|
25
|
-
*/
|
|
26
|
-
export declare function getUrlParams(name: string): string;
|
|
27
|
-
/**
|
|
28
|
-
* 通过URL获取对应keyIdPath
|
|
29
|
-
* @param menus 菜单数据
|
|
30
|
-
* @param pathName url地址
|
|
31
|
-
* @param routerMatch 匹配模式id & url
|
|
32
|
-
*/
|
|
33
|
-
export declare const getPathNameKey: ({ menus, pathName }: {
|
|
34
|
-
menus: any[];
|
|
35
|
-
pathName: string;
|
|
36
|
-
}) => any;
|
|
37
|
-
/**
|
|
38
|
-
* 根据key查找完整的菜单项数据
|
|
39
|
-
* @param menus 菜单数据数组
|
|
40
|
-
* @param key 要查找的菜单项key
|
|
41
|
-
* @returns 找到的菜单项数据或null
|
|
42
|
-
*/
|
|
43
|
-
export declare const findMenuItemByKey: (menus: any[], key: string) => any;
|
package/es/ProSelect/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PropSelectType, ProSelectActionType } from './propsType';
|
|
3
|
-
export declare const ProSelect: (props: PropSelectType, ref: React.Ref<ProSelectActionType> | undefined) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const _default: React.ForwardRefExoticComponent<PropSelectType & React.RefAttributes<ProSelectActionType>>;
|
|
5
|
-
export default _default;
|