@zat-design/sisyphus-react 3.11.14 → 3.12.0-beta.1
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 +26 -15
- package/dist/less.esm.css +26 -15
- package/es/ProAction/index.d.ts +2 -2
- package/es/ProAction/propsType.d.ts +16 -10
- package/es/ProConfigProvider/index.d.ts +7 -7
- package/es/ProDownload/index.d.ts +2 -2
- package/es/ProDownload/propsType.d.ts +2 -1
- package/es/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
- package/es/ProDrawerForm/components/ProDrawer/index.js +12 -2
- package/es/ProDrawerForm/components/ProModal/index.d.ts +2 -2
- package/es/ProDrawerForm/components/ProModal/index.js +12 -2
- package/es/ProDrawerForm/index.d.ts +1 -2
- package/es/ProDrawerForm/propsType.d.ts +38 -27
- package/es/ProDrawerForm/utils/index.d.ts +2 -2
- package/es/ProEditLabel/components/RenderProForm.d.ts +2 -2
- package/es/ProEditLabel/index.d.ts +2 -2
- package/es/ProEditLabel/propsType.d.ts +135 -8
- package/es/ProEditLabel/style/index.less +24 -25
- package/es/ProEditTable/components/Summary/index.d.ts +2 -2
- package/es/ProEditTable/index.d.ts +2 -2
- package/es/ProEditTable/index.js +18 -16
- package/es/ProEditTable/propsType.d.ts +243 -106
- package/es/ProEditTable/style/index.less +1 -0
- package/es/ProEditTable/utils/index.d.ts +1 -1
- package/es/ProEditTable/utils/index.js +6 -4
- package/es/ProEditTable/utils/tools.d.ts +57 -22
- package/es/ProEditTable/utils/tools.js +47 -21
- package/es/ProEnum/components/Group.d.ts +2 -2
- package/es/ProEnum/components/Tag.d.ts +2 -2
- package/es/ProEnum/hooks/useEnum.d.ts +2 -2
- package/es/ProEnum/hooks/useEnum.js +46 -17
- package/es/ProEnum/hooks/useEnumRequest.d.ts +2 -2
- package/es/ProEnum/index.d.ts +2 -2
- package/es/ProEnum/propsType.d.ts +231 -42
- package/es/ProEnum/propsType.js +0 -6
- package/es/ProEnum/utils/index.d.ts +9 -2
- package/es/ProEnum/utils/index.js +9 -2
- package/es/ProForm/components/FormFooter/index.d.ts +2 -2
- package/es/ProForm/components/FormFooter/propsType.d.ts +8 -3
- package/es/ProForm/components/base/Checkbox/index.d.ts +2 -2
- package/es/ProForm/components/base/Input/index.d.ts +2 -2
- package/es/ProForm/components/base/Input/index.js +17 -4
- package/es/ProForm/components/base/Input/propsType.d.ts +10 -6
- package/es/ProForm/components/base/InputNumber/index.d.ts +2 -2
- package/es/ProForm/components/base/Radio/index.d.ts +2 -2
- package/es/ProForm/components/base/RangePicker/index.d.ts +2 -2
- package/es/ProForm/components/base/Select/index.d.ts +2 -2
- package/es/ProForm/components/base/Switch/index.d.ts +2 -2
- package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
- package/es/ProForm/components/base/TextArea/index.d.ts +2 -2
- package/es/ProForm/components/base/TimePicker/index.d.ts +2 -2
- package/es/ProForm/components/combination/Container/index.d.ts +2 -2
- package/es/ProForm/components/combination/Container/propsType.d.ts +10 -6
- package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
- package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
- package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
- package/es/ProForm/components/combination/FormList/index.d.ts +2 -2
- package/es/ProForm/components/combination/FormList/propsType.d.ts +18 -10
- package/es/ProForm/components/combination/Group/index.d.ts +2 -2
- package/es/ProForm/components/combination/Group/propsType.d.ts +10 -5
- package/es/ProForm/components/combination/Group/utils.d.ts +6 -6
- package/es/ProForm/components/combination/ProCascader/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
- package/es/ProForm/components/combination/ProCombination/index.d.ts +3 -3
- package/es/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +15 -9
- package/es/ProForm/components/old/EnumSelect/index.d.ts +1 -1
- package/es/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/es/ProForm/components/old/ProAddress/index.d.ts +1 -1
- package/es/ProForm/components/old/ProCertNo/index.d.ts +1 -1
- package/es/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
- package/es/ProForm/components/render/ChangedWrapper.d.ts +2 -2
- package/es/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
- package/es/ProForm/components/render/Render.d.ts +2 -2
- package/es/ProForm/components/render/RenderFields.d.ts +4 -4
- package/es/ProForm/components/render/propsType.d.ts +76 -69
- package/es/ProForm/index.d.ts +2 -2
- package/es/ProForm/index.js +3 -1
- package/es/ProForm/propsType.d.ts +26 -17
- package/es/ProForm/propsType.js +0 -1
- package/es/ProForm/utils/transformValue.d.ts +2 -2
- package/es/ProForm/utils/useFieldProps.d.ts +3 -3
- package/es/ProForm/utils/useForm.d.ts +2 -1
- package/es/ProForm/utils/useForm.js +3 -2
- package/es/ProForm/utils/useRules.d.ts +1 -1
- package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/es/ProIcon/index.d.ts +2 -2
- package/es/ProIcon/propsTypes.d.ts +120 -49
- package/es/ProLayout/components/Layout/Header/index.d.ts +2 -2
- package/es/ProLayout/components/Layout/Menu/index.d.ts +2 -2
- package/es/ProLayout/components/Layout/Notice/index.d.ts +2 -2
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
- package/es/ProLayout/components/ProCollapse/index.d.ts +2 -2
- package/es/ProLayout/components/ProCollapse/index.js +12 -4
- package/es/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
- package/es/ProLayout/components/ProFooter/index.d.ts +2 -2
- package/es/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
- package/es/ProLayout/components/ProHeader/index.d.ts +2 -2
- package/es/ProLayout/index.d.ts +5 -5
- package/es/ProLayout/index.js +6 -2
- package/es/ProLayout/propTypes.d.ts +182 -25
- package/es/ProLayout/utils/index.d.ts +2 -2
- package/es/ProSelect/index.d.ts +3 -3
- package/es/ProSelect/propsType.d.ts +141 -31
- package/es/ProStep/components/Anchor/index.d.ts +2 -1
- package/es/ProStep/components/Item/index.d.ts +2 -2
- package/es/ProStep/components/Item/index.js +6 -2
- package/es/ProStep/components/Listener/index.d.ts +4 -3
- package/es/ProStep/components/Listener/index.js +18 -4
- package/es/ProStep/components/Step/index.d.ts +2 -2
- package/es/ProStep/index.d.ts +7 -7
- package/es/ProStep/index.js +19 -4
- package/es/ProStep/propsType.d.ts +200 -12
- package/es/ProStep/utils/index.d.ts +17 -4
- package/es/ProStep/utils/index.js +11 -2
- package/es/ProTable/components/FormatColumn/index.d.ts +2 -2
- package/es/ProTable/components/FormatColumn/index.js +5 -8
- package/es/ProTable/components/RenderTabs/index.d.ts +4 -0
- package/es/ProTable/components/RenderTabs/index.js +78 -0
- package/es/ProTable/components/index.d.ts +25 -0
- package/es/ProTable/components/index.js +26 -1
- package/es/ProTable/hooks/useAntdTable.d.ts +2 -93
- package/es/ProTable/hooks/useAntdTable.js +6 -2
- package/es/ProTable/index.d.ts +2 -2
- package/es/ProTable/index.js +6 -3
- package/es/ProTable/propsType.d.ts +630 -39
- package/es/ProTable/style/index.less +3 -0
- package/es/ProTabs/index.d.ts +2 -2
- package/es/ProTabs/index.js +4 -4
- package/es/ProTabs/propType.d.ts +66 -9
- package/es/ProThemeTools/index.d.ts +2 -2
- package/es/ProThemeTools/propsType.d.ts +136 -14
- package/es/ProTooltip/index.d.ts +2 -2
- package/es/ProTooltip/propsType.d.ts +49 -9
- package/es/ProTree/components/List.d.ts +2 -2
- package/es/ProTree/components/List.js +2 -2
- package/es/ProTree/components/ProTree.d.ts +2 -2
- package/es/ProTree/components/ProTreeSelect/index.d.ts +3 -3
- package/es/ProTree/components/ProTreeSelect/propsType.d.ts +372 -34
- package/es/ProTree/components/SearchTitle.d.ts +2 -2
- package/es/ProTree/components/Tree.d.ts +3 -3
- package/es/ProTree/index.d.ts +2 -2
- package/es/ProTree/index.js +1 -1
- package/es/ProTree/propsType.d.ts +694 -103
- package/es/ProTree/utils.d.ts +7 -7
- package/es/ProTreeModal/components/Cascader.d.ts +3 -3
- package/es/ProTreeModal/components/List.d.ts +3 -3
- package/es/ProTreeModal/components/Tree.d.ts +2 -2
- package/es/ProTreeModal/index.d.ts +2 -2
- package/es/ProTreeModal/index.js +2 -2
- package/es/ProTreeModal/propsType.d.ts +258 -49
- package/es/ProTreeModal/utils.d.ts +7 -7
- package/es/ProUpload/components/ButtonRender.d.ts +2 -2
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
- package/es/ProUpload/components/Example.d.ts +2 -2
- package/es/ProUpload/components/ImageRender.d.ts +2 -2
- package/es/ProUpload/index.d.ts +2 -2
- package/es/ProUpload/index.js +7 -9
- package/es/ProUpload/propsType.d.ts +65 -8
- package/es/ProWaterMark/index.d.ts +2 -2
- package/es/ProWaterMark/propsType.d.ts +2 -1
- package/es/index.d.ts +15 -6
- package/es/index.js +1 -7
- package/lib/ProAction/index.d.ts +2 -2
- package/lib/ProAction/propsType.d.ts +16 -10
- package/lib/ProConfigProvider/index.d.ts +7 -7
- package/lib/ProDownload/index.d.ts +2 -2
- package/lib/ProDownload/propsType.d.ts +2 -1
- package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
- package/lib/ProDrawerForm/components/ProDrawer/index.js +12 -2
- package/lib/ProDrawerForm/components/ProModal/index.d.ts +2 -2
- package/lib/ProDrawerForm/components/ProModal/index.js +12 -2
- package/lib/ProDrawerForm/index.d.ts +1 -2
- package/lib/ProDrawerForm/propsType.d.ts +38 -27
- package/lib/ProDrawerForm/utils/index.d.ts +2 -2
- package/lib/ProEditLabel/components/RenderProForm.d.ts +2 -2
- package/lib/ProEditLabel/index.d.ts +2 -2
- package/lib/ProEditLabel/propsType.d.ts +135 -8
- package/lib/ProEditLabel/style/index.less +24 -25
- package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
- package/lib/ProEditTable/index.d.ts +2 -2
- package/lib/ProEditTable/index.js +18 -16
- package/lib/ProEditTable/propsType.d.ts +243 -106
- package/lib/ProEditTable/style/index.less +1 -0
- package/lib/ProEditTable/utils/index.d.ts +1 -1
- package/lib/ProEditTable/utils/index.js +6 -4
- package/lib/ProEditTable/utils/tools.d.ts +57 -22
- package/lib/ProEditTable/utils/tools.js +47 -21
- package/lib/ProEnum/components/Group.d.ts +2 -2
- package/lib/ProEnum/components/Tag.d.ts +2 -2
- package/lib/ProEnum/hooks/useEnum.d.ts +2 -2
- package/lib/ProEnum/hooks/useEnum.js +48 -17
- package/lib/ProEnum/hooks/useEnumRequest.d.ts +2 -2
- package/lib/ProEnum/index.d.ts +2 -2
- package/lib/ProEnum/propsType.d.ts +231 -42
- package/lib/ProEnum/propsType.js +1 -7
- package/lib/ProEnum/utils/index.d.ts +9 -2
- package/lib/ProEnum/utils/index.js +9 -2
- package/lib/ProForm/components/FormFooter/index.d.ts +2 -2
- package/lib/ProForm/components/FormFooter/propsType.d.ts +8 -3
- package/lib/ProForm/components/base/Checkbox/index.d.ts +2 -2
- package/lib/ProForm/components/base/Input/index.d.ts +2 -2
- package/lib/ProForm/components/base/Input/index.js +17 -4
- package/lib/ProForm/components/base/Input/propsType.d.ts +10 -6
- package/lib/ProForm/components/base/InputNumber/index.d.ts +2 -2
- package/lib/ProForm/components/base/Radio/index.d.ts +2 -2
- package/lib/ProForm/components/base/RangePicker/index.d.ts +2 -2
- package/lib/ProForm/components/base/Select/index.d.ts +2 -2
- package/lib/ProForm/components/base/Switch/index.d.ts +2 -2
- package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
- package/lib/ProForm/components/base/TextArea/index.d.ts +2 -2
- package/lib/ProForm/components/base/TimePicker/index.d.ts +2 -2
- package/lib/ProForm/components/combination/Container/index.d.ts +2 -2
- package/lib/ProForm/components/combination/Container/propsType.d.ts +10 -6
- package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
- package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
- package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
- package/lib/ProForm/components/combination/FormList/index.d.ts +2 -2
- package/lib/ProForm/components/combination/FormList/propsType.d.ts +18 -10
- package/lib/ProForm/components/combination/Group/index.d.ts +2 -2
- package/lib/ProForm/components/combination/Group/propsType.d.ts +10 -5
- package/lib/ProForm/components/combination/Group/utils.d.ts +6 -6
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
- package/lib/ProForm/components/combination/ProCombination/index.d.ts +3 -3
- package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
- package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
- package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +15 -9
- package/lib/ProForm/components/old/EnumSelect/index.d.ts +1 -1
- package/lib/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProCertNo/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
- package/lib/ProForm/components/render/ChangedWrapper.d.ts +2 -2
- package/lib/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
- package/lib/ProForm/components/render/Render.d.ts +2 -2
- package/lib/ProForm/components/render/RenderFields.d.ts +4 -4
- package/lib/ProForm/components/render/propsType.d.ts +76 -69
- package/lib/ProForm/index.d.ts +2 -2
- package/lib/ProForm/index.js +3 -1
- package/lib/ProForm/propsType.d.ts +26 -17
- package/lib/ProForm/propsType.js +0 -15
- package/lib/ProForm/utils/transformValue.d.ts +2 -2
- package/lib/ProForm/utils/useFieldProps.d.ts +3 -3
- package/lib/ProForm/utils/useForm.d.ts +2 -1
- package/lib/ProForm/utils/useForm.js +3 -2
- package/lib/ProForm/utils/useRules.d.ts +1 -1
- package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/lib/ProIcon/index.d.ts +2 -2
- package/lib/ProIcon/propsTypes.d.ts +120 -49
- package/lib/ProLayout/components/Layout/Header/index.d.ts +2 -2
- package/lib/ProLayout/components/Layout/Menu/index.d.ts +2 -2
- package/lib/ProLayout/components/Layout/Notice/index.d.ts +2 -2
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
- package/lib/ProLayout/components/ProCollapse/index.d.ts +2 -2
- package/lib/ProLayout/components/ProCollapse/index.js +12 -4
- package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
- package/lib/ProLayout/components/ProFooter/index.d.ts +2 -2
- package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
- package/lib/ProLayout/components/ProHeader/index.d.ts +2 -2
- package/lib/ProLayout/index.d.ts +5 -5
- package/lib/ProLayout/index.js +6 -2
- package/lib/ProLayout/propTypes.d.ts +182 -25
- package/lib/ProLayout/utils/index.d.ts +2 -2
- package/lib/ProSelect/index.d.ts +3 -3
- package/lib/ProSelect/propsType.d.ts +141 -31
- package/lib/ProStep/components/Anchor/index.d.ts +2 -1
- package/lib/ProStep/components/Item/index.d.ts +2 -2
- package/lib/ProStep/components/Item/index.js +6 -2
- package/lib/ProStep/components/Listener/index.d.ts +4 -3
- package/lib/ProStep/components/Listener/index.js +18 -4
- package/lib/ProStep/components/Step/index.d.ts +2 -2
- package/lib/ProStep/index.d.ts +7 -7
- package/lib/ProStep/index.js +19 -4
- package/lib/ProStep/propsType.d.ts +200 -12
- package/lib/ProStep/utils/index.d.ts +17 -4
- package/lib/ProStep/utils/index.js +11 -2
- package/lib/ProTable/components/FormatColumn/index.d.ts +2 -2
- package/lib/ProTable/components/FormatColumn/index.js +5 -8
- package/lib/ProTable/components/RenderTabs/index.d.ts +4 -0
- package/lib/ProTable/components/RenderTabs/index.js +82 -0
- package/lib/ProTable/components/index.d.ts +25 -0
- package/lib/ProTable/components/index.js +8 -1
- package/lib/ProTable/hooks/useAntdTable.d.ts +2 -93
- package/lib/ProTable/hooks/useAntdTable.js +5 -1
- package/lib/ProTable/index.d.ts +2 -2
- package/lib/ProTable/index.js +5 -2
- package/lib/ProTable/propsType.d.ts +630 -39
- package/lib/ProTable/style/index.less +3 -0
- package/lib/ProTabs/index.d.ts +2 -2
- package/lib/ProTabs/index.js +4 -4
- package/lib/ProTabs/propType.d.ts +66 -9
- package/lib/ProThemeTools/index.d.ts +2 -2
- package/lib/ProThemeTools/propsType.d.ts +136 -14
- package/lib/ProTooltip/index.d.ts +2 -2
- package/lib/ProTooltip/propsType.d.ts +49 -9
- package/lib/ProTree/components/List.d.ts +2 -2
- package/lib/ProTree/components/List.js +2 -2
- package/lib/ProTree/components/ProTree.d.ts +2 -2
- package/lib/ProTree/components/ProTreeSelect/index.d.ts +3 -3
- package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +372 -34
- package/lib/ProTree/components/SearchTitle.d.ts +2 -2
- package/lib/ProTree/components/Tree.d.ts +3 -3
- package/lib/ProTree/index.d.ts +2 -2
- package/lib/ProTree/index.js +1 -1
- package/lib/ProTree/propsType.d.ts +694 -103
- package/lib/ProTree/utils.d.ts +7 -7
- package/lib/ProTreeModal/components/Cascader.d.ts +3 -3
- package/lib/ProTreeModal/components/List.d.ts +3 -3
- package/lib/ProTreeModal/components/Tree.d.ts +2 -2
- package/lib/ProTreeModal/index.d.ts +2 -2
- package/lib/ProTreeModal/index.js +2 -2
- package/lib/ProTreeModal/propsType.d.ts +258 -49
- package/lib/ProTreeModal/utils.d.ts +7 -7
- package/lib/ProUpload/components/ButtonRender.d.ts +2 -2
- package/lib/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
- package/lib/ProUpload/components/Example.d.ts +2 -2
- package/lib/ProUpload/components/ImageRender.d.ts +2 -2
- package/lib/ProUpload/index.d.ts +2 -2
- package/lib/ProUpload/index.js +7 -9
- package/lib/ProUpload/propsType.d.ts +65 -8
- package/lib/ProWaterMark/index.d.ts +2 -2
- package/lib/ProWaterMark/propsType.d.ts +2 -1
- package/lib/index.d.ts +15 -6
- package/lib/index.js +7 -71
- package/package.json +1 -1
- package/.vscode/extensions.json +0 -5
- package/test/__mocks__/fileMock.js +0 -0
- package/test/__mocks__/styleMock.js +0 -0
@@ -2,70 +2,165 @@ import React from 'react';
|
|
2
2
|
import type { ModalProps } from 'antd';
|
3
3
|
export type BreadcrumbType = 'breadcrumb' | 'copy' | 'info' | 'version' | 'tag';
|
4
4
|
export type NavType = 'money' | 'thousandth' | 'enumName' | 'enumCodeName' | 'date' | 'dateTime';
|
5
|
-
export interface
|
5
|
+
export interface BreadcrumbColumnType {
|
6
|
+
/**
|
7
|
+
* @description 类型
|
8
|
+
* @default -
|
9
|
+
*/
|
6
10
|
type?: BreadcrumbType;
|
11
|
+
/**
|
12
|
+
* @description 值类型
|
13
|
+
* @default -
|
14
|
+
*/
|
7
15
|
valueType?: BreadcrumbType;
|
16
|
+
/**
|
17
|
+
* @description 值
|
18
|
+
* @default -
|
19
|
+
*/
|
8
20
|
value: any;
|
21
|
+
/**
|
22
|
+
* @description 宽度
|
23
|
+
* @default -
|
24
|
+
*/
|
9
25
|
width?: string | number;
|
26
|
+
/**
|
27
|
+
* @description 是否显示
|
28
|
+
* @default -
|
29
|
+
*/
|
10
30
|
show?: boolean;
|
31
|
+
/**
|
32
|
+
* @description 标签
|
33
|
+
* @default -
|
34
|
+
*/
|
11
35
|
tag?: string | React.ReactNode | (string | React.ReactNode)[];
|
12
36
|
}
|
13
|
-
export interface
|
14
|
-
|
37
|
+
export interface SubDescribeColumnType {
|
38
|
+
/**
|
39
|
+
* @description 描述内容
|
40
|
+
* @default -
|
41
|
+
*/
|
42
|
+
label?: string | React.ReactNode;
|
43
|
+
/**
|
44
|
+
* @description 类型
|
45
|
+
* @default -
|
46
|
+
*/
|
15
47
|
type?: NavType;
|
48
|
+
/**
|
49
|
+
* @description 值类型
|
50
|
+
* @default -
|
51
|
+
*/
|
16
52
|
valueType?: NavType;
|
53
|
+
/**
|
54
|
+
* @description 精度
|
55
|
+
* @default -
|
56
|
+
*/
|
17
57
|
precision?: number;
|
18
|
-
|
58
|
+
/**
|
59
|
+
* @description 值
|
60
|
+
* @default -
|
61
|
+
*/
|
62
|
+
value?: any;
|
63
|
+
/**
|
64
|
+
* @description 是否显示
|
65
|
+
* @default -
|
66
|
+
*/
|
19
67
|
show?: boolean;
|
68
|
+
/**
|
69
|
+
* @description 枚举代码
|
70
|
+
* @default -
|
71
|
+
*/
|
20
72
|
code?: string;
|
21
73
|
}
|
22
|
-
export interface
|
74
|
+
export interface DescribeColumnType {
|
75
|
+
/**
|
76
|
+
* @description 描述内容
|
77
|
+
* @default -
|
78
|
+
*/
|
23
79
|
label?: string | React.ReactNode;
|
80
|
+
/**
|
81
|
+
* @description 是否显示
|
82
|
+
* @default -
|
83
|
+
*/
|
24
84
|
copyable?: boolean;
|
85
|
+
/**
|
86
|
+
* @description 值
|
87
|
+
* @default -
|
88
|
+
*/
|
25
89
|
value?: string | React.ReactNode;
|
90
|
+
/**
|
91
|
+
* @description 是否显示
|
92
|
+
* @default -
|
93
|
+
*/
|
26
94
|
show?: boolean;
|
95
|
+
/**
|
96
|
+
* @description 链接
|
97
|
+
* @default -
|
98
|
+
*/
|
27
99
|
link?: string;
|
28
|
-
|
29
|
-
|
30
|
-
|
100
|
+
/**
|
101
|
+
* @description 多值配置
|
102
|
+
* @default -
|
103
|
+
*/
|
31
104
|
items?: {
|
32
105
|
copyable?: boolean;
|
33
106
|
value: string | React.ReactNode;
|
34
107
|
link?: string;
|
35
108
|
tag?: string | React.ReactNode | (string | React.ReactNode)[];
|
36
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)[];
|
37
120
|
}
|
38
|
-
export interface
|
121
|
+
export interface ProHeaderType {
|
122
|
+
/**
|
123
|
+
* @description 标题
|
124
|
+
* @default -
|
125
|
+
*/
|
39
126
|
title?: string | React.ReactNode;
|
40
127
|
/**
|
41
128
|
* @description 面包屑配置数据
|
42
129
|
* @deprecated 将于下个版本 4.0.0 被弃用
|
43
130
|
* @default -
|
44
131
|
*/
|
45
|
-
breadcrumbList?:
|
132
|
+
breadcrumbList?: BreadcrumbColumnType[];
|
46
133
|
/**
|
47
134
|
* @description 面包屑配置数据
|
48
135
|
* @default -
|
49
136
|
*/
|
50
|
-
breadcrumbColumns?:
|
137
|
+
breadcrumbColumns?: BreadcrumbColumnType[];
|
138
|
+
/**
|
139
|
+
* @description 是否隐藏溢出
|
140
|
+
* @default -
|
141
|
+
*/
|
51
142
|
bodyOverFlowHidden?: boolean;
|
143
|
+
/**
|
144
|
+
* @description 操作渲染
|
145
|
+
* @default -
|
146
|
+
*/
|
52
147
|
actionRender?: React.ReactNode | React.ReactNode[];
|
53
148
|
/**
|
54
149
|
* @description 次级描述数据源配置
|
55
150
|
* @deprecated 将于下个版本 4.0.0 被弃用
|
56
151
|
* @default -
|
57
152
|
*/
|
58
|
-
describeList?:
|
153
|
+
describeList?: SubDescribeColumnType[];
|
59
154
|
/**
|
60
155
|
* @description 主要描述数据源配置
|
61
156
|
* @default -
|
62
157
|
*/
|
63
|
-
describeColumns?:
|
158
|
+
describeColumns?: DescribeColumnType[];
|
64
159
|
/**
|
65
160
|
* @description 次级描述数据源配置
|
66
161
|
* @default -
|
67
162
|
*/
|
68
|
-
subDescribeColumns?:
|
163
|
+
subDescribeColumns?: SubDescribeColumnType[];
|
69
164
|
/**
|
70
165
|
* @description 次级描述是否展开
|
71
166
|
* @default -
|
@@ -97,7 +192,19 @@ export interface ProHeaderProps {
|
|
97
192
|
* @default -
|
98
193
|
*/
|
99
194
|
isConfirmBackModalProps?: ModalProps;
|
195
|
+
/**
|
196
|
+
* @description 层级
|
197
|
+
* @default -
|
198
|
+
*/
|
100
199
|
zIndex?: number;
|
200
|
+
/**
|
201
|
+
* @description 返回
|
202
|
+
* @default 100
|
203
|
+
*/
|
101
204
|
onBack?: () => void;
|
102
205
|
[key: string]: any;
|
103
206
|
}
|
207
|
+
export type ProHeaderProps = ProHeaderType;
|
208
|
+
export type BreadcrumbColumnsProps = BreadcrumbColumnType;
|
209
|
+
export type SubDescribeColumnsProps = SubDescribeColumnType;
|
210
|
+
export type DescribeColumnsProps = DescribeColumnType;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type {
|
3
|
-
declare const _default: React.MemoExoticComponent<(props:
|
2
|
+
import type { ProHeaderType } from './PropTypes';
|
3
|
+
declare const _default: React.MemoExoticComponent<(props: ProHeaderType) => import("react/jsx-runtime").JSX.Element>;
|
4
4
|
export default _default;
|
package/es/ProLayout/index.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type {
|
2
|
+
import type { ProLayoutType } from './propTypes';
|
3
3
|
export declare const LayoutContext: import("react").Context<{
|
4
4
|
selectedPath: string;
|
5
5
|
onSelected: (params: any) => void;
|
6
6
|
target: '_blank' | '_parent' | '_self' | '_top';
|
7
7
|
}>;
|
8
8
|
declare const ProLayout: {
|
9
|
-
(props:
|
9
|
+
(props: ProLayoutType): import("react/jsx-runtime").JSX.Element;
|
10
10
|
defaultProps: {
|
11
11
|
menus: any[];
|
12
12
|
iconfontUrl: string;
|
@@ -18,8 +18,8 @@ declare const ProLayout: {
|
|
18
18
|
headerHeight: number;
|
19
19
|
contentStyle: {};
|
20
20
|
};
|
21
|
-
ProCollapse: (props: import("./components/ProCollapse/PropTypes").
|
22
|
-
ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").
|
23
|
-
ProHeader: import("react").MemoExoticComponent<(props: import("
|
21
|
+
ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseType) => import("react/jsx-runtime").JSX.Element;
|
22
|
+
ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterType) => import("react/jsx-runtime").JSX.Element>;
|
23
|
+
ProHeader: import("react").MemoExoticComponent<(props: import("../index").ProHeaderType) => import("react/jsx-runtime").JSX.Element>;
|
24
24
|
};
|
25
25
|
export default ProLayout;
|
package/es/ProLayout/index.js
CHANGED
@@ -56,8 +56,10 @@ var ProLayout = function ProLayout(props) {
|
|
56
56
|
return _message.warning('Warning: Missing menu data source, or menu data source is not an array');
|
57
57
|
}
|
58
58
|
var userData = transformMenus(dataSource, pathPrefix);
|
59
|
+
// 确保 menus 始终是一个数组
|
60
|
+
var menuData = Array.isArray(userData) ? userData : (userData === null || userData === void 0 ? void 0 : userData.menus) || [];
|
59
61
|
setState({
|
60
|
-
menus:
|
62
|
+
menus: menuData
|
61
63
|
});
|
62
64
|
}, [dataSource]);
|
63
65
|
/**
|
@@ -88,7 +90,9 @@ var ProLayout = function ProLayout(props) {
|
|
88
90
|
})), _jsxs("div", {
|
89
91
|
className: contentCls,
|
90
92
|
children: [_jsx(Menu, _objectSpread(_objectSpread({}, props), {}, {
|
91
|
-
dataSource: menus
|
93
|
+
dataSource: Array.isArray(menus) ? {
|
94
|
+
menus: menus
|
95
|
+
} : menus,
|
92
96
|
notice: notice,
|
93
97
|
collapsed: collapsed,
|
94
98
|
onToggle: function onToggle() {
|
@@ -1,76 +1,233 @@
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
2
2
|
import { ProWaterMarkProps } from '../ProWaterMark/propsType';
|
3
|
-
export interface
|
3
|
+
export interface MenusType {
|
4
|
+
/**
|
5
|
+
* @description 菜单ID
|
6
|
+
* @default -
|
7
|
+
*/
|
4
8
|
id?: number;
|
9
|
+
/**
|
10
|
+
* @description 菜单唯一code
|
11
|
+
* @default -
|
12
|
+
*/
|
5
13
|
code?: string;
|
14
|
+
/**
|
15
|
+
* @description 菜单名称
|
16
|
+
* @default -
|
17
|
+
*/
|
6
18
|
name?: string;
|
19
|
+
/**
|
20
|
+
* @description 菜单路由
|
21
|
+
* @default -
|
22
|
+
*/
|
7
23
|
url?: string;
|
24
|
+
/**
|
25
|
+
* @description 点击路由时,重定向地址
|
26
|
+
* @default -
|
27
|
+
*/
|
8
28
|
redirectUrl?: string;
|
29
|
+
/**
|
30
|
+
* @description 关联的上级id
|
31
|
+
* @default -
|
32
|
+
*/
|
9
33
|
parentId?: number | null;
|
34
|
+
/**
|
35
|
+
* @description 备注
|
36
|
+
* @default -
|
37
|
+
*/
|
10
38
|
description?: any;
|
39
|
+
/**
|
40
|
+
* @description 扩展备用字段
|
41
|
+
* @default -
|
42
|
+
*/
|
11
43
|
extraInfo?: any;
|
44
|
+
/**
|
45
|
+
* @description 排序
|
46
|
+
* @default -
|
47
|
+
*/
|
12
48
|
sort?: number | undefined | null;
|
49
|
+
/**
|
50
|
+
* @description 是否隐藏菜单
|
51
|
+
* @default false
|
52
|
+
*/
|
13
53
|
hideInMenu?: boolean;
|
54
|
+
/**
|
55
|
+
* @description iconfont图标
|
56
|
+
* @default -
|
57
|
+
*/
|
14
58
|
icon?: string;
|
59
|
+
/**
|
60
|
+
* @description 图片icon
|
61
|
+
* @default -
|
62
|
+
*/
|
15
63
|
imgUrl?: string;
|
16
|
-
|
64
|
+
/**
|
65
|
+
* @description 菜单类型
|
66
|
+
* @default -
|
67
|
+
*/
|
17
68
|
type?: string;
|
18
|
-
|
19
|
-
|
20
|
-
|
69
|
+
/**
|
70
|
+
* @description 允许扩展字段
|
71
|
+
*/
|
21
72
|
[key: string]: any;
|
22
73
|
}
|
23
|
-
export interface
|
74
|
+
export interface DataSourceType {
|
75
|
+
/**
|
76
|
+
* @description 用户信息
|
77
|
+
* @default -
|
78
|
+
*/
|
24
79
|
userInfo?: any;
|
25
|
-
|
80
|
+
/**
|
81
|
+
* @description 处理后一级菜单详情
|
82
|
+
* @default []
|
83
|
+
*/
|
84
|
+
menus?: MenusType[];
|
26
85
|
}
|
86
|
+
/**
|
87
|
+
* @description 主题枚举类型
|
88
|
+
*/
|
27
89
|
type themeEnum = 'light' | 'dark';
|
90
|
+
/**
|
91
|
+
* @description 是否带有菜单界面的配置
|
92
|
+
*/
|
28
93
|
type pureKey = boolean | {
|
29
94
|
topMenu?: boolean;
|
30
95
|
leftMenu?: boolean;
|
31
96
|
};
|
32
|
-
export interface
|
97
|
+
export interface ProLayoutType {
|
98
|
+
/**
|
99
|
+
* @description 左侧logo
|
100
|
+
* @default -
|
101
|
+
*/
|
33
102
|
logo?: ReactNode | string;
|
103
|
+
/**
|
104
|
+
* @description 类名
|
105
|
+
* @default ""
|
106
|
+
*/
|
34
107
|
className?: string;
|
108
|
+
/**
|
109
|
+
* @description iconfontUrl
|
110
|
+
* @default -
|
111
|
+
*/
|
35
112
|
iconfontUrl?: string;
|
113
|
+
/**
|
114
|
+
* @description 右侧内容渲染
|
115
|
+
* @default -
|
116
|
+
*/
|
36
117
|
rightContentRender?: ReactNode;
|
118
|
+
/**
|
119
|
+
* @description 头部内容渲染
|
120
|
+
* @default -
|
121
|
+
*/
|
37
122
|
headerContentRender?: ReactNode;
|
38
|
-
|
39
|
-
|
123
|
+
/**
|
124
|
+
* @description 侧边栏底部渲染
|
125
|
+
* @default -
|
126
|
+
*/
|
40
127
|
sideMenuFooterRender?: ReactNode;
|
128
|
+
/**
|
129
|
+
* @description 通告
|
130
|
+
* @default -
|
131
|
+
*/
|
41
132
|
headerNotice?: ReactNode | string;
|
133
|
+
/**
|
134
|
+
* @description 通告
|
135
|
+
* @default -
|
136
|
+
*/
|
42
137
|
notice?: ReactNode | string;
|
138
|
+
/**
|
139
|
+
* @description 标题
|
140
|
+
* @default -
|
141
|
+
*/
|
43
142
|
title?: string;
|
44
|
-
|
143
|
+
/**
|
144
|
+
* @description 数据源
|
145
|
+
* @default -
|
146
|
+
*/
|
147
|
+
dataSource?: DataSourceType | Partial<MenusType>;
|
148
|
+
/**
|
149
|
+
* @description 是否折叠
|
150
|
+
* @default false
|
151
|
+
*/
|
45
152
|
collapsed?: boolean;
|
46
153
|
/**
|
47
|
-
|
48
|
-
|
154
|
+
* @description 菜单拼接路径前缀
|
155
|
+
* @default ""
|
156
|
+
*/
|
49
157
|
pathPrefix?: string;
|
50
158
|
/**
|
51
|
-
|
52
|
-
|
159
|
+
* @description 是否带有菜单界面,true不带,只显示content内容
|
160
|
+
* @default false
|
161
|
+
*/
|
53
162
|
pure?: pureKey;
|
163
|
+
/**
|
164
|
+
* @description 头部区域高度
|
165
|
+
* @default 48
|
166
|
+
*/
|
54
167
|
headerHeight?: number;
|
168
|
+
/**
|
169
|
+
* @description 内容区域样式
|
170
|
+
* @default {}
|
171
|
+
*/
|
55
172
|
contentStyle?: CSSProperties;
|
173
|
+
/**
|
174
|
+
* @description 水印配置
|
175
|
+
* @default {}
|
176
|
+
*/
|
56
177
|
waterMarkProps?: ProWaterMarkProps;
|
57
|
-
theme?: themeEnum;
|
58
178
|
/**
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
*
|
65
|
-
*
|
66
|
-
* _top
|
179
|
+
* @description 折叠回调事件
|
180
|
+
* @default -
|
181
|
+
*/
|
182
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
183
|
+
/**
|
184
|
+
* @description 规定在何处打开被链接文档
|
185
|
+
* @default "_self"
|
67
186
|
*/
|
68
187
|
target?: '_blank' | '_parent' | '_self' | '_top';
|
188
|
+
/**
|
189
|
+
* @description 主题
|
190
|
+
* @default "light"
|
191
|
+
*/
|
192
|
+
theme?: themeEnum;
|
193
|
+
/**
|
194
|
+
* @description 子元素
|
195
|
+
* @default -
|
196
|
+
*/
|
197
|
+
children?: ReactNode;
|
198
|
+
/**
|
199
|
+
* @description 允许扩展字段
|
200
|
+
*/
|
69
201
|
[key: string]: any;
|
70
202
|
}
|
71
|
-
export interface
|
203
|
+
export interface ProLayoutStatesType {
|
204
|
+
/**
|
205
|
+
* @description 是否折叠
|
206
|
+
* @default false
|
207
|
+
*/
|
72
208
|
collapsed?: boolean;
|
209
|
+
/**
|
210
|
+
* @description 通告
|
211
|
+
* @default -
|
212
|
+
*/
|
73
213
|
notice?: ReactNode | string;
|
214
|
+
/**
|
215
|
+
* @description 菜单列表
|
216
|
+
* @default []
|
217
|
+
*/
|
218
|
+
menus?: MenusType[];
|
219
|
+
/**
|
220
|
+
* @description 选中的路径
|
221
|
+
* @default ""
|
222
|
+
*/
|
223
|
+
selectedPath?: string;
|
224
|
+
/**
|
225
|
+
* @description 允许扩展字段
|
226
|
+
*/
|
74
227
|
[key: string]: any;
|
75
228
|
}
|
229
|
+
export type MenusProps = MenusType;
|
230
|
+
export type DataSourceProps = DataSourceType;
|
231
|
+
export type ProLayoutProps = ProLayoutType;
|
232
|
+
export type ProLayoutStates = ProLayoutStatesType;
|
76
233
|
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { MenusType } from '../propTypes';
|
2
2
|
/**
|
3
3
|
* 通过URL获取对应keyIdPath
|
4
4
|
* @param menus 菜单数据
|
@@ -17,7 +17,7 @@ export declare const transformMenu: (menuData: any[], pathPrefix: string) => any
|
|
17
17
|
* @param data 菜单数据源
|
18
18
|
* @returns []
|
19
19
|
*/
|
20
|
-
export declare const transformMenus: (data:
|
20
|
+
export declare const transformMenus: (data: MenusType, pathPrefix: string) => any[] | MenusType;
|
21
21
|
/**
|
22
22
|
* 获取URL中的search参数
|
23
23
|
* @param name 参数key
|
package/es/ProSelect/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
2
|
+
import type { PropSelectType, ProSelectActionType } from './propsType';
|
3
3
|
import './index.less';
|
4
|
-
export declare const ProSelect: (props:
|
5
|
-
declare const _default: React.ForwardRefExoticComponent<
|
4
|
+
export declare const ProSelect: (props: PropSelectType, ref: React.Ref<ProSelectActionType> | undefined) => import("react/jsx-runtime").JSX.Element;
|
5
|
+
declare const _default: React.ForwardRefExoticComponent<PropSelectType & React.RefAttributes<ProSelectActionType>>;
|
6
6
|
export default _default;
|