@zat-design/sisyphus-react 4.5.5 → 4.5.6-beta.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/FormsProvider/index.d.ts +18 -0
- package/es/ProAction/components/CheckModalContent/index.d.ts +8 -0
- package/es/ProAction/index.d.ts +7 -0
- package/es/ProAction/propsType.d.ts +45 -0
- package/es/ProConfigProvider/index.d.ts +9 -0
- package/es/ProConfigProvider/propsType.d.ts +82 -0
- package/es/ProDownload/index.d.ts +6 -0
- package/es/ProDownload/propsType.d.ts +71 -0
- package/es/ProDownload/utils.d.ts +60 -0
- package/es/ProDrawerForm/components/ProDrawer/index.d.ts +7 -0
- package/es/ProDrawerForm/components/ProModal/index.d.ts +7 -0
- package/es/ProDrawerForm/components/index.d.ts +2 -0
- package/es/ProDrawerForm/hooks/useConfirmClose.d.ts +24 -0
- package/es/ProDrawerForm/index.d.ts +6 -0
- package/es/ProDrawerForm/propsType.d.ts +111 -0
- package/es/ProDrawerForm/utils/index.d.ts +25 -0
- package/es/ProEditLabel/components/RenderProForm.d.ts +4 -0
- package/es/ProEditLabel/index.d.ts +4 -0
- package/es/ProEditLabel/propsType.d.ts +163 -0
- package/es/ProEditLabel/utils/index.d.ts +7 -0
- package/es/ProEditTable/components/ActionButton/index.d.ts +2 -0
- package/es/ProEditTable/components/RcTable/BaseTable.d.ts +5 -0
- package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +7 -0
- package/es/ProEditTable/components/RcTable/index.d.ts +4 -0
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +4 -0
- package/es/ProEditTable/components/RenderField/index.d.ts +3 -0
- package/es/ProEditTable/components/RenderField/propsType.d.ts +30 -0
- package/es/ProEditTable/components/RenderField/tools.d.ts +22 -0
- package/es/ProEditTable/components/RenderToolbar/index.d.ts +2 -0
- package/es/ProEditTable/components/Summary/index.d.ts +12 -0
- package/es/ProEditTable/components/Validator/index.d.ts +18 -0
- package/es/ProEditTable/components/index.d.ts +5 -0
- package/es/ProEditTable/index.d.ts +4 -0
- package/es/ProEditTable/propsType.d.ts +437 -0
- package/es/ProEditTable/utils/config.d.ts +25 -0
- package/es/ProEditTable/utils/diffOriginal.d.ts +22 -0
- package/es/ProEditTable/utils/getDefaultProps.d.ts +1 -0
- package/es/ProEditTable/utils/index.d.ts +23 -0
- package/es/ProEditTable/utils/tools.d.ts +133 -0
- package/es/ProEditTable/utils/transform.d.ts +13 -0
- package/es/ProEditTable/utils/useEditTableError.d.ts +7 -0
- package/es/ProEditTable/utils/useShouldUpdateForTable.d.ts +16 -0
- package/es/ProEditTable/utils/validateAll.d.ts +89 -0
- package/es/ProEnum/components/Group.d.ts +10 -0
- package/es/ProEnum/components/Tag.d.ts +7 -0
- package/es/ProEnum/hooks/useEnum.d.ts +29 -0
- package/es/ProEnum/hooks/useEnumRequest.d.ts +4 -0
- package/es/ProEnum/hooks/useFrequentEnumRequest.d.ts +14 -0
- package/es/ProEnum/index.d.ts +10 -0
- package/es/ProEnum/index.js +1 -1
- package/es/ProEnum/propsType.d.ts +320 -0
- package/es/ProEnum/utils/eventCenter.d.ts +1 -0
- package/es/ProEnum/utils/frequentEnum.d.ts +39 -0
- package/es/ProEnum/utils/getEnum.d.ts +47 -0
- package/es/ProEnum/utils/getEnumLabel.d.ts +2 -0
- package/es/ProEnum/utils/index.d.ts +98 -0
- package/es/ProForm/components/Container.d.ts +9 -0
- package/es/ProForm/components/FormFooter/index.d.ts +5 -0
- package/es/ProForm/components/FormFooter/propsType.d.ts +21 -0
- package/es/ProForm/components/base/Checkbox/index.d.ts +14 -0
- package/es/ProForm/components/base/DatePicker/index.d.ts +11 -0
- package/es/ProForm/components/base/Input/index.d.ts +3 -0
- package/es/ProForm/components/base/Input/propsType.d.ts +21 -0
- package/es/ProForm/components/base/InputNumber/index.d.ts +11 -0
- package/es/ProForm/components/base/Radio/index.d.ts +15 -0
- package/es/ProForm/components/base/RangePicker/index.d.ts +19 -0
- package/es/ProForm/components/base/RangePicker/useDateRange.d.ts +15 -0
- package/es/ProForm/components/base/Select/index.d.ts +11 -0
- package/es/ProForm/components/base/Switch/index.d.ts +10 -0
- package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +10 -0
- package/es/ProForm/components/base/TextArea/index.d.ts +11 -0
- package/es/ProForm/components/base/TimePicker/index.d.ts +13 -0
- package/es/ProForm/components/combination/Container/index.d.ts +4 -0
- package/es/ProForm/components/combination/Container/propsType.d.ts +13 -0
- package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +24 -0
- package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +23 -0
- package/es/ProForm/components/combination/FormList/components/Empty.d.ts +13 -0
- package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +20 -0
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +12 -0
- package/es/ProForm/components/combination/FormList/index.d.ts +4 -0
- package/es/ProForm/components/combination/FormList/propsType.d.ts +69 -0
- package/es/ProForm/components/combination/FormList/utils.d.ts +18 -0
- package/es/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +9 -0
- package/es/ProForm/components/combination/Group/component/ComRender.d.ts +28 -0
- package/es/ProForm/components/combination/Group/component/FlexibleGroup.d.ts +10 -0
- package/es/ProForm/components/combination/Group/hooks/index.d.ts +34 -0
- package/es/ProForm/components/combination/Group/index.d.ts +9 -0
- package/es/ProForm/components/combination/Group/propsType.d.ts +99 -0
- package/es/ProForm/components/combination/Group/utils/index.d.ts +153 -0
- package/es/ProForm/components/combination/ProCascader/index.d.ts +3 -0
- package/es/ProForm/components/combination/ProCascader/propsType.d.ts +48 -0
- package/es/ProForm/components/combination/ProCascader/utils/index.d.ts +14 -0
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +33 -0
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +4 -0
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +106 -0
- package/es/ProForm/components/combination/ProModalSelect/utils/index.d.ts +15 -0
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +3 -0
- package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +85 -0
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +4 -0
- package/es/ProForm/components/combination/ProRangeLimit/propsType.d.ts +23 -0
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +8 -0
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +33 -0
- package/es/ProForm/components/index.d.ts +29 -0
- package/es/ProForm/components/render/ChangedWrapper.d.ts +17 -0
- package/es/ProForm/components/render/ConfirmWrapper.d.ts +10 -0
- package/es/ProForm/components/render/CustomComponentViewWrapper.d.ts +30 -0
- package/es/ProForm/components/render/Render.d.ts +4 -0
- package/es/ProForm/components/render/RenderFields.d.ts +26 -0
- package/es/ProForm/components/render/propsType.d.ts +279 -0
- package/es/ProForm/hooks/useControlled.d.ts +1 -0
- package/es/ProForm/hooks/useDeepCompareMemo.d.ts +2 -0
- package/es/ProForm/hooks/useFieldProps.d.ts +4 -0
- package/es/ProForm/hooks/useForm.d.ts +8 -0
- package/es/ProForm/hooks/useRules.d.ts +16 -0
- package/es/ProForm/hooks/useShouldUpdate.d.ts +31 -0
- package/es/ProForm/hooks/useWatch.d.ts +22 -0
- package/es/ProForm/index.d.ts +6 -0
- package/es/ProForm/propsType.d.ts +143 -0
- package/es/ProForm/utils/buildFormItemProps.d.ts +25 -0
- package/es/ProForm/utils/diffOriginal.d.ts +10 -0
- package/es/ProForm/utils/getDefaultProps.d.ts +1 -0
- package/es/ProForm/utils/index.d.ts +109 -0
- package/es/ProForm/utils/processDependencies.d.ts +29 -0
- package/es/ProForm/utils/reactiveValues.d.ts +33 -0
- package/es/ProForm/utils/rulesCreator.d.ts +7 -0
- package/es/ProForm/utils/transformNames.d.ts +10 -0
- package/es/ProForm/utils/transformValue.d.ts +6 -0
- package/es/ProForm/utils/valueType.d.ts +70 -0
- package/es/ProIcon/config/index.d.ts +19 -0
- package/es/ProIcon/index.d.ts +4 -0
- package/es/ProIcon/propsTypes.d.ts +175 -0
- package/es/ProIcon/utils/index.d.ts +6 -0
- package/es/ProLayout/components/Layout/Header/index.d.ts +4 -0
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +3 -0
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +3 -0
- package/es/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +15 -0
- package/es/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +3 -0
- package/es/ProLayout/components/Layout/Menu/index.d.ts +4 -0
- package/es/ProLayout/components/Layout/Notice/index.d.ts +4 -0
- package/es/ProLayout/components/Layout/index.d.ts +3 -0
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +98 -0
- package/es/ProLayout/components/ProCollapse/index.d.ts +3 -0
- package/es/ProLayout/components/ProFooter/PropTypes.d.ts +27 -0
- package/es/ProLayout/components/ProFooter/index.d.ts +3 -0
- package/es/ProLayout/components/ProHeader/PropTypes.d.ts +206 -0
- package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +4 -0
- package/es/ProLayout/components/ProHeader/components/Describe/index.d.ts +26 -0
- package/es/ProLayout/components/ProHeader/components/Describe/index.js +106 -0
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.d.ts +9 -0
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/propsType.d.ts +4 -0
- package/es/ProLayout/components/ProHeader/components/index.d.ts +2 -0
- package/es/ProLayout/components/ProHeader/index.d.ts +4 -0
- package/es/ProLayout/components/ProHeader/index.js +54 -118
- package/es/ProLayout/components/ProHeader/utils/index.d.ts +20 -0
- package/es/ProLayout/components/ProHeader/utils/index.js +23 -1
- package/es/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +7 -0
- package/es/ProLayout/components/TabsManager/components/TabItem.d.ts +26 -0
- package/es/ProLayout/components/TabsManager/components/TabsContext.d.ts +5 -0
- package/es/ProLayout/components/TabsManager/components/TabsHeader.d.ts +10 -0
- package/es/ProLayout/components/TabsManager/hooks/useActiveTab.d.ts +6 -0
- package/es/ProLayout/components/TabsManager/hooks/useIframeRoute.d.ts +25 -0
- package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.d.ts +18 -0
- package/es/ProLayout/components/TabsManager/hooks/useTabsCache.d.ts +31 -0
- package/es/ProLayout/components/TabsManager/hooks/useTabsState.d.ts +5 -0
- package/es/ProLayout/components/TabsManager/index.d.ts +6 -0
- package/es/ProLayout/components/TabsManager/index.js +87 -3
- package/es/ProLayout/components/TabsManager/propTypes.d.ts +89 -0
- package/es/ProLayout/components/TabsManager/style/index.less +6 -3
- package/es/ProLayout/components/TabsManager/utils/index.d.ts +47 -0
- package/es/ProLayout/components/index.d.ts +3 -0
- package/es/ProLayout/index.d.ts +19 -0
- package/es/ProLayout/index.js +28 -10
- package/es/ProLayout/propTypes.d.ts +550 -0
- package/es/ProLayout/style/index.less +32 -0
- package/es/ProLayout/utils/index.d.ts +43 -0
- package/es/ProSelect/components/AdaptiveTooltip.d.ts +4 -0
- package/es/ProSelect/index.d.ts +5 -0
- package/es/ProSelect/propsType.d.ts +162 -0
- package/es/ProSelect/utils/index.d.ts +86 -0
- package/es/ProStep/components/Anchor/index.d.ts +4 -0
- package/es/ProStep/components/Item/index.d.ts +4 -0
- package/es/ProStep/components/LazyLoad/index.d.ts +19 -0
- package/es/ProStep/components/Listener/index.d.ts +4 -0
- package/es/ProStep/components/Step/index.d.ts +5 -0
- package/es/ProStep/index.d.ts +11 -0
- package/es/ProStep/propsType.d.ts +224 -0
- package/es/ProStep/utils/index.d.ts +22 -0
- package/es/ProStepTab/index.d.ts +22 -0
- package/es/ProStepTab/propsType.d.ts +114 -0
- package/es/ProTable/components/EditableCell/EditIcon.d.ts +6 -0
- package/es/ProTable/components/EditableCell/index.d.ts +4 -0
- package/es/ProTable/components/EditableCell/propsType.d.ts +24 -0
- package/es/ProTable/components/FormatColumn/index.d.ts +22 -0
- package/es/ProTable/components/FormatColumn/propsType.d.ts +29 -0
- package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +2 -0
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +18 -0
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.d.ts +8 -0
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.d.ts +61 -0
- package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +2 -0
- package/es/ProTable/components/RcTable/index.d.ts +4 -0
- package/es/ProTable/components/RenderColumn/index.d.ts +22 -0
- package/es/ProTable/components/RenderEmptyText/index.d.ts +3 -0
- package/es/ProTable/components/RenderFooter/index.d.ts +2 -0
- package/es/ProTable/components/RenderSummary/index.d.ts +3 -0
- package/es/ProTable/components/RenderTableHeader/index.d.ts +2 -0
- package/es/ProTable/components/RenderTabs/index.d.ts +3 -0
- package/es/ProTable/components/TableResizable/index.d.ts +13 -0
- package/es/ProTable/components/TooltipTitle/index.d.ts +11 -0
- package/es/ProTable/components/index.d.ts +31 -0
- package/es/ProTable/hooks/useAntdTable.d.ts +7 -0
- package/es/ProTable/index.d.ts +17 -0
- package/es/ProTable/propsType.d.ts +805 -0
- package/es/ProTable/utils/columnStorage.d.ts +35 -0
- package/es/ProTable/utils/index.d.ts +52 -0
- package/es/ProTabs/components/Card/index.d.ts +3 -0
- package/es/ProTabs/components/index.d.ts +1 -0
- package/es/ProTabs/index.d.ts +4 -0
- package/es/ProTabs/propType.d.ts +94 -0
- package/es/ProThemeTools/component/ProTools/index.d.ts +3 -0
- package/es/ProThemeTools/component/index.d.ts +1 -0
- package/es/ProThemeTools/context/ThemeContext.d.ts +43 -0
- package/es/ProThemeTools/index.d.ts +9 -0
- package/es/ProThemeTools/propsType.d.ts +170 -0
- package/es/ProThemeTools/utils/index.d.ts +51 -0
- package/es/ProTooltip/index.d.ts +3 -0
- package/es/ProTooltip/propsType.d.ts +57 -0
- package/es/ProTree/components/AdaptiveTooltip.d.ts +4 -0
- package/es/ProTree/components/CloseIcon.d.ts +2 -0
- package/es/ProTree/components/List.d.ts +17 -0
- package/es/ProTree/components/ProTree.d.ts +3 -0
- package/es/ProTree/components/ProTreeSelect/index.d.ts +5 -0
- package/es/ProTree/components/ProTreeSelect/propsType.d.ts +445 -0
- package/es/ProTree/components/SearchTitle.d.ts +10 -0
- package/es/ProTree/components/Tree.d.ts +27 -0
- package/es/ProTree/components/index.d.ts +4 -0
- package/es/ProTree/index.d.ts +3 -0
- package/es/ProTree/propsType.d.ts +818 -0
- package/es/ProTree/utils.d.ts +62 -0
- package/es/ProTreeModal/components/Cascader.d.ts +14 -0
- package/es/ProTreeModal/components/CloseIcon.d.ts +2 -0
- package/es/ProTreeModal/components/List.d.ts +21 -0
- package/es/ProTreeModal/components/SearchTitle.d.ts +6 -0
- package/es/ProTreeModal/components/SortableItem.d.ts +12 -0
- package/es/ProTreeModal/components/Tree.d.ts +25 -0
- package/es/ProTreeModal/components/Trigger.d.ts +21 -0
- package/es/ProTreeModal/components/index.d.ts +6 -0
- package/es/ProTreeModal/index.d.ts +4 -0
- package/es/ProTreeModal/propsType.d.ts +298 -0
- package/es/ProTreeModal/utils.d.ts +39 -0
- package/es/ProUpload/components/ButtonRender.d.ts +20 -0
- package/es/ProUpload/components/DragRender.d.ts +21 -0
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +2 -0
- package/es/ProUpload/components/Example.d.ts +10 -0
- package/es/ProUpload/components/FileItem.d.ts +33 -0
- package/es/ProUpload/components/ImageRender.d.ts +19 -0
- package/es/ProUpload/index.d.ts +4 -0
- package/es/ProUpload/propsType.d.ts +264 -0
- package/es/ProUpload/uitls.d.ts +3 -0
- package/es/ProUtils/utils/index.d.ts +6 -0
- package/es/ProViewer/index.d.ts +4 -0
- package/es/ProViewer/propsType.d.ts +37 -0
- package/es/ProWaterMark/index.d.ts +4 -0
- package/es/ProWaterMark/propsType.d.ts +6 -0
- package/es/hooks/useDraggableRow.d.ts +34 -0
- package/es/index.d.ts +57 -0
- package/es/index.js +0 -2
- package/es/locale/en_US.d.ts +176 -0
- package/es/locale/index.d.ts +15 -0
- package/es/locale/zh_CN.d.ts +176 -0
- package/es/tokens.d.ts +83 -0
- package/es/utils/index.d.ts +24 -0
- package/package.json +12 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface OpenMenuPropsType {
|
|
2
|
+
dataSource: {
|
|
3
|
+
menus: any;
|
|
4
|
+
iconfontUrl: string;
|
|
5
|
+
height?: number;
|
|
6
|
+
/** 是否是折叠模式的菜单 */
|
|
7
|
+
sideMenu?: boolean;
|
|
8
|
+
};
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export interface StatePropsType {
|
|
12
|
+
selectedKeys: string[];
|
|
13
|
+
openKeys: string[];
|
|
14
|
+
router: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { CollapseProps, CollapsePanelProps } from 'antd/es/collapse';
|
|
3
|
+
export type levelType = '1' | '2' | '3';
|
|
4
|
+
export interface TitleListType {
|
|
5
|
+
/**
|
|
6
|
+
* @description 描述的标题
|
|
7
|
+
* @default -
|
|
8
|
+
*/
|
|
9
|
+
label: string;
|
|
10
|
+
/**
|
|
11
|
+
* @description 描述的值
|
|
12
|
+
* @default -
|
|
13
|
+
*/
|
|
14
|
+
value: string | number | undefined | React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export interface ProCollapseType {
|
|
17
|
+
/**
|
|
18
|
+
* @description 折叠头部标题
|
|
19
|
+
* @default -
|
|
20
|
+
*/
|
|
21
|
+
title?: string | React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* @description 展开收起状态
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
collapsed?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @description 自动适应窗口大小
|
|
29
|
+
* @default -
|
|
30
|
+
*/
|
|
31
|
+
autoHeight?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* @description 标题前图标
|
|
34
|
+
* @default -
|
|
35
|
+
*/
|
|
36
|
+
icon?: React.ReactNode | boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @description 折叠头部多个标题
|
|
39
|
+
* @default []
|
|
40
|
+
*/
|
|
41
|
+
titleList?: TitleListType[];
|
|
42
|
+
/**
|
|
43
|
+
* @description id用于锚点定位
|
|
44
|
+
* @default -
|
|
45
|
+
*/
|
|
46
|
+
id?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @description 内容区域样式
|
|
49
|
+
* @default -
|
|
50
|
+
*/
|
|
51
|
+
contentStyle?: CSSProperties;
|
|
52
|
+
/**
|
|
53
|
+
* @description 折叠等级
|
|
54
|
+
* @default 1
|
|
55
|
+
*/
|
|
56
|
+
level?: levelType;
|
|
57
|
+
/**
|
|
58
|
+
* @description 二级折叠是否带收起
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
towCollapse?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* @description 三级折叠是否带收起
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
threeCollapse?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* @description 标题右侧扩展信息
|
|
69
|
+
* @default -
|
|
70
|
+
*/
|
|
71
|
+
extra?: React.ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* @description 当有titleList显示的换行的数量
|
|
74
|
+
* @default 3
|
|
75
|
+
*/
|
|
76
|
+
column?: number;
|
|
77
|
+
/**
|
|
78
|
+
* @description 一级标题是否默认折叠
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
folding?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* @description 控制折叠面板展开状态
|
|
84
|
+
* @default -
|
|
85
|
+
*/
|
|
86
|
+
open?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* @description antd Collapse属性
|
|
89
|
+
* @default -
|
|
90
|
+
*/
|
|
91
|
+
collapseProps?: CollapseProps;
|
|
92
|
+
/**
|
|
93
|
+
* @description antd CollapsePanel属性
|
|
94
|
+
* @default -
|
|
95
|
+
*/
|
|
96
|
+
collapsePanelProps?: CollapsePanelProps;
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface stateProps {
|
|
2
|
+
width?: number;
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}
|
|
5
|
+
export interface ProFooterType {
|
|
6
|
+
/**
|
|
7
|
+
* @description 是否显示
|
|
8
|
+
* @default true
|
|
9
|
+
*/
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @description 层级
|
|
13
|
+
* @default 99
|
|
14
|
+
*/
|
|
15
|
+
zIndex?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @description 侧边栏选择器
|
|
18
|
+
* @default '.pro-layout-sider-nav'
|
|
19
|
+
*/
|
|
20
|
+
sideDom?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @description 内容选择器
|
|
23
|
+
* @default '.pro-layout-content'
|
|
24
|
+
*/
|
|
25
|
+
contentDom?: string;
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
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 是否显示返回按钮。显式传值优先;不传时若有 onBack 则显示,否则由 autoBack 按浏览器历史长度判断
|
|
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 返回按钮点击回调;不传时默认执行 window.history.back()
|
|
202
|
+
* @default -
|
|
203
|
+
*/
|
|
204
|
+
onBack?: () => void;
|
|
205
|
+
[key: string]: any;
|
|
206
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DescribeColumnType } from '../../PropTypes';
|
|
3
|
+
/** 描述项里的单条值(link / copyable / tag 组合),对应 items 数组元素 */
|
|
4
|
+
type DescribeValueItem = Pick<DescribeColumnType, 'tag' | 'link' | 'value' | 'copyable'>;
|
|
5
|
+
/**
|
|
6
|
+
* 标签渲染:数组 tag 逐个渲染,单值渲染一个,空则不渲染
|
|
7
|
+
*/
|
|
8
|
+
export declare const DescribeTag: ({ tag, parentKey, }: {
|
|
9
|
+
tag?: DescribeColumnType["tag"];
|
|
10
|
+
parentKey: string;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* 单行值渲染:link → <a>,copyable+字符串 → 复制按钮,末尾追加 tag
|
|
14
|
+
*/
|
|
15
|
+
export declare const DescribeValue: ({ value, link, copyable, tag, parentKey, }: DescribeValueItem & {
|
|
16
|
+
parentKey: string;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
/**
|
|
19
|
+
* 多值渲染:以「、」连接;超 3 个显示「共N个,」前缀;内容溢出时显示「...」并用 Tooltip 展示全部
|
|
20
|
+
*/
|
|
21
|
+
export declare const DescribeItems: ({ items, parentKey, containerRef, }: {
|
|
22
|
+
items: DescribeValueItem[];
|
|
23
|
+
parentKey: string;
|
|
24
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
25
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import _isString from "lodash/isString";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Space, Tooltip } from 'antd';
|
|
4
|
+
import classnames from 'classnames';
|
|
5
|
+
import Copy from "../Copy";
|
|
6
|
+
import { checkDescribeItemsHidden, getTagKey, getDescribeValueKey } from "../../utils";
|
|
7
|
+
|
|
8
|
+
/** 描述项里的单条值(link / copyable / tag 组合),对应 items 数组元素 */
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
|
+
/**
|
|
11
|
+
* 标签渲染:数组 tag 逐个渲染,单值渲染一个,空则不渲染
|
|
12
|
+
*/
|
|
13
|
+
export const DescribeTag = ({
|
|
14
|
+
tag,
|
|
15
|
+
parentKey
|
|
16
|
+
}) => {
|
|
17
|
+
if (Array.isArray(tag) && tag.length) {
|
|
18
|
+
return /*#__PURE__*/_jsx(Space, {
|
|
19
|
+
size: 4,
|
|
20
|
+
children: tag.map((tagItem, tagIndex) => /*#__PURE__*/_jsx("div", {
|
|
21
|
+
className: "pro-header-tag",
|
|
22
|
+
children: tagItem
|
|
23
|
+
}, getTagKey(tagItem, parentKey, tagIndex)))
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return tag ? /*#__PURE__*/_jsx("div", {
|
|
27
|
+
className: "pro-header-tag",
|
|
28
|
+
children: tag
|
|
29
|
+
}) : null;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 单行值渲染:link → <a>,copyable+字符串 → 复制按钮,末尾追加 tag
|
|
34
|
+
*/
|
|
35
|
+
export const DescribeValue = ({
|
|
36
|
+
value,
|
|
37
|
+
link,
|
|
38
|
+
copyable,
|
|
39
|
+
tag,
|
|
40
|
+
parentKey
|
|
41
|
+
}) => {
|
|
42
|
+
return /*#__PURE__*/_jsxs(Space, {
|
|
43
|
+
size: 4,
|
|
44
|
+
align: tag ? 'baseline' : 'center',
|
|
45
|
+
children: [link ? /*#__PURE__*/_jsx("a", {
|
|
46
|
+
onClick: () => {
|
|
47
|
+
const newWindow = window.open(link);
|
|
48
|
+
newWindow.opener = null;
|
|
49
|
+
},
|
|
50
|
+
children: value
|
|
51
|
+
}) : value, copyable && _isString(value) ? /*#__PURE__*/_jsx(Copy, {
|
|
52
|
+
text: value
|
|
53
|
+
}) : null, /*#__PURE__*/_jsx(DescribeTag, {
|
|
54
|
+
tag: tag,
|
|
55
|
+
parentKey: parentKey
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 多值渲染:以「、」连接;超 3 个显示「共N个,」前缀;内容溢出时显示「...」并用 Tooltip 展示全部
|
|
62
|
+
*/
|
|
63
|
+
export const DescribeItems = ({
|
|
64
|
+
items,
|
|
65
|
+
parentKey,
|
|
66
|
+
containerRef
|
|
67
|
+
}) => {
|
|
68
|
+
// items 配置是否超长,超长则展示 ... + tip 提示
|
|
69
|
+
const itemsHidden = checkDescribeItemsHidden(containerRef?.current);
|
|
70
|
+
const result = /*#__PURE__*/_jsxs("div", {
|
|
71
|
+
ref: containerRef,
|
|
72
|
+
className: classnames({
|
|
73
|
+
'pro-header-describe-items': true,
|
|
74
|
+
'pro-header-describe-items-more': items.length >= 2
|
|
75
|
+
}),
|
|
76
|
+
children: [items?.length > 3 ? `共${items?.length}个,` : null, items.map((item, itemIndex) => /*#__PURE__*/_jsxs("span", {
|
|
77
|
+
children: [/*#__PURE__*/_jsx(DescribeValue, {
|
|
78
|
+
...item,
|
|
79
|
+
parentKey: parentKey
|
|
80
|
+
}), items?.length !== itemIndex + 1 ? ' 、' : null]
|
|
81
|
+
}, getDescribeValueKey(item, parentKey, itemIndex))), itemsHidden ? /*#__PURE__*/_jsx("span", {
|
|
82
|
+
className: "pro-header-describe-items-omit",
|
|
83
|
+
children: "..."
|
|
84
|
+
}) : null]
|
|
85
|
+
});
|
|
86
|
+
if (itemsHidden) {
|
|
87
|
+
const tipResult = /*#__PURE__*/_jsx(_Fragment, {
|
|
88
|
+
children: items.map((item, itemIndex) => /*#__PURE__*/_jsx("p", {
|
|
89
|
+
className: "pro-header-describe-items-tip-value",
|
|
90
|
+
children: /*#__PURE__*/_jsx(DescribeValue, {
|
|
91
|
+
...item,
|
|
92
|
+
parentKey: parentKey
|
|
93
|
+
})
|
|
94
|
+
}, getDescribeValueKey(item, parentKey, itemIndex)))
|
|
95
|
+
});
|
|
96
|
+
return /*#__PURE__*/_jsx(Tooltip, {
|
|
97
|
+
placement: "bottomLeft",
|
|
98
|
+
classNames: {
|
|
99
|
+
root: 'pro-header-describe-items-tip'
|
|
100
|
+
},
|
|
101
|
+
title: tipResult,
|
|
102
|
+
children: result
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
return result;
|
|
106
|
+
};
|