@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
package/lib/ProTabs/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type {
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<Omit<
|
2
|
+
import type { ProTabsType } from './propType';
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<ProTabsType, "ref"> & React.RefAttributes<unknown>>;
|
4
4
|
export default _default;
|
package/lib/ProTabs/index.js
CHANGED
@@ -65,12 +65,12 @@ var ProTabs = function ProTabs(props, ref) {
|
|
65
65
|
total: itemProps.total,
|
66
66
|
label: itemProps.label,
|
67
67
|
icon: itemProps.icon,
|
68
|
-
mode: mode
|
68
|
+
mode: mode,
|
69
|
+
title: itemProps.title || itemProps.label,
|
70
|
+
loading: fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.loading
|
69
71
|
};
|
70
72
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodash.omit)(itemProps, ['total', 'label', 'icon'])), {}, {
|
71
|
-
label: (0, _jsxRuntime.jsx)(_components.Card, (0, _objectSpread2.default)({
|
72
|
-
loading: fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.loading
|
73
|
-
}, cardItemProps))
|
73
|
+
label: (0, _jsxRuntime.jsx)(_components.Card, (0, _objectSpread2.default)({}, cardItemProps))
|
74
74
|
});
|
75
75
|
});
|
76
76
|
}, [selectList, fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.loading]);
|
@@ -1,36 +1,93 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { TabsProps } from 'antd';
|
3
3
|
import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
|
4
|
-
export interface
|
4
|
+
export interface CardType {
|
5
|
+
/**
|
6
|
+
* @description 卡片标题
|
7
|
+
* @default -
|
8
|
+
*/
|
9
|
+
title: string | React.ReactNode;
|
10
|
+
/**
|
11
|
+
* @description 卡片数量
|
12
|
+
* @default -
|
13
|
+
*/
|
5
14
|
total: number;
|
15
|
+
/**
|
16
|
+
* @description 卡片标签
|
17
|
+
* @default -
|
18
|
+
*/
|
6
19
|
label: string | React.ReactNode;
|
20
|
+
/**
|
21
|
+
* @description 卡片图标
|
22
|
+
* @default -
|
23
|
+
*/
|
7
24
|
icon: React.ReactNode;
|
25
|
+
/**
|
26
|
+
* @description 卡片模式
|
27
|
+
* @default card
|
28
|
+
*/
|
8
29
|
mode?: TabModeEnum;
|
30
|
+
/**
|
31
|
+
* @description 卡片是否加载中
|
32
|
+
* @default false
|
33
|
+
*/
|
9
34
|
loading?: boolean;
|
10
35
|
[key: string]: any;
|
11
36
|
}
|
12
|
-
export interface
|
37
|
+
export interface ProTabsItemType extends CardType {
|
38
|
+
/**
|
39
|
+
* @description 卡片唯一key
|
40
|
+
* @default -
|
41
|
+
*/
|
13
42
|
key: string;
|
43
|
+
/**
|
44
|
+
* @description 卡片内容
|
45
|
+
* @default -
|
46
|
+
*/
|
14
47
|
children?: React.ReactNode;
|
48
|
+
/**
|
49
|
+
* @description 卡片是否禁用
|
50
|
+
* @default false
|
51
|
+
*/
|
15
52
|
disabled?: boolean;
|
16
53
|
[key: string]: any;
|
17
54
|
}
|
18
|
-
export interface
|
19
|
-
/**
|
55
|
+
export interface ProTabsActionType {
|
56
|
+
/**
|
57
|
+
* @description 获取发生请求的 useRequest 的 ref
|
58
|
+
* @default -
|
59
|
+
*/
|
20
60
|
useRequestRef: Result<any, any>;
|
21
61
|
}
|
22
62
|
export type TabModeEnum = 'card' | 'line';
|
23
|
-
export interface
|
24
|
-
|
25
|
-
|
63
|
+
export interface ProTabsType extends Omit<TabsProps, 'items' | 'onChange'> {
|
64
|
+
/**
|
65
|
+
* @description 卡片数据源
|
66
|
+
* @default -
|
67
|
+
*/
|
68
|
+
dataSource: ProTabsItemType[];
|
69
|
+
/**
|
70
|
+
* @description 是否开启tab切换查询
|
71
|
+
* @default false
|
72
|
+
*/
|
26
73
|
tabSearch?: boolean;
|
27
74
|
onChange?: (activeKey: string, useRequest: Result<any, any>) => void;
|
28
|
-
/**
|
75
|
+
/**
|
76
|
+
* @description card:卡片模式 tab tab模式
|
77
|
+
* @default card
|
78
|
+
*/
|
29
79
|
mode?: TabModeEnum;
|
30
|
-
/**
|
80
|
+
/**
|
81
|
+
* @description 远程请求接口
|
82
|
+
* @default -
|
83
|
+
*/
|
31
84
|
useRequest?: {
|
32
85
|
service: Service<any, any>;
|
33
86
|
options?: Options<any, any>;
|
34
87
|
};
|
35
88
|
[key: string]: any;
|
36
89
|
}
|
90
|
+
export type ProTabsProps = ProTabsType;
|
91
|
+
export type ProTabsItemsProps = ProTabsItemType;
|
92
|
+
export type ProTabsAction = ProTabsActionType;
|
93
|
+
export type CardProps = CardType;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ProThemeToolsType } from './propsType';
|
2
2
|
declare const ProThemeTools: {
|
3
|
-
({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }:
|
3
|
+
({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsType): import("react/jsx-runtime").JSX.Element;
|
4
4
|
defaultProps: {
|
5
5
|
size: number;
|
6
6
|
mode: string;
|
@@ -1,50 +1,172 @@
|
|
1
1
|
export interface DevToolsPropsType {
|
2
|
+
/**
|
3
|
+
* @description 重置配置回调函数
|
4
|
+
* @default -
|
5
|
+
*/
|
2
6
|
onReset: () => void;
|
7
|
+
/**
|
8
|
+
* @description 关闭工具回调函数
|
9
|
+
* @default -
|
10
|
+
*/
|
3
11
|
onClose: () => void;
|
12
|
+
/**
|
13
|
+
* @description 复制配置回调函数
|
14
|
+
* @default -
|
15
|
+
*/
|
4
16
|
onCopy?: () => void;
|
17
|
+
/**
|
18
|
+
* @description 设置状态函数
|
19
|
+
* @default -
|
20
|
+
*/
|
5
21
|
setState: any;
|
22
|
+
/**
|
23
|
+
* @description 是否打开工具
|
24
|
+
* @default false
|
25
|
+
*/
|
6
26
|
open: boolean;
|
7
|
-
|
8
|
-
|
27
|
+
/**
|
28
|
+
* @description 当前主题配置状态
|
29
|
+
* @default -
|
30
|
+
*/
|
31
|
+
state: LocalThemeConfigType;
|
32
|
+
/**
|
33
|
+
* @description 是否有表格边框
|
34
|
+
* @default false
|
35
|
+
*/
|
9
36
|
tableBorder?: boolean;
|
10
|
-
/**
|
37
|
+
/**
|
38
|
+
* @description 是否有斑马纹
|
39
|
+
* @default false
|
40
|
+
*/
|
11
41
|
tableStripe?: boolean;
|
12
|
-
/**
|
42
|
+
/**
|
43
|
+
* @description 统一样式前缀
|
44
|
+
* @default "ant"
|
45
|
+
*/
|
13
46
|
prefixCls?: string;
|
14
47
|
}
|
15
|
-
export interface
|
48
|
+
export interface ProThemeToolsType {
|
49
|
+
/**
|
50
|
+
* @description 主题工具大小
|
51
|
+
* @default -
|
52
|
+
*/
|
16
53
|
size?: number;
|
54
|
+
/**
|
55
|
+
* @description 主题颜色
|
56
|
+
* @default -
|
57
|
+
*/
|
17
58
|
color?: string;
|
59
|
+
/**
|
60
|
+
* @description 工具模式:开发模式或生产模式
|
61
|
+
* @default "prd"
|
62
|
+
*/
|
18
63
|
mode?: 'dev' | 'prd';
|
64
|
+
/**
|
65
|
+
* @description 缓存时间,可设置为数字或布尔值
|
66
|
+
* @default -
|
67
|
+
*/
|
19
68
|
cacheTime?: number | boolean;
|
20
|
-
/**
|
69
|
+
/**
|
70
|
+
* @description 主题配置信息
|
71
|
+
* @default -
|
72
|
+
*/
|
21
73
|
theme?: any;
|
22
|
-
/**
|
74
|
+
/**
|
75
|
+
* @description icon是否跟随主题色
|
76
|
+
* @default false
|
77
|
+
*/
|
23
78
|
iconFollowTheme?: boolean;
|
24
|
-
/**
|
79
|
+
/**
|
80
|
+
* @description 是否有表格边框
|
81
|
+
* @default false
|
82
|
+
*/
|
25
83
|
tableBorder?: boolean;
|
26
|
-
/**
|
84
|
+
/**
|
85
|
+
* @description 是否有斑马纹
|
86
|
+
* @default false
|
87
|
+
*/
|
27
88
|
tableStripe?: boolean;
|
28
|
-
/**
|
89
|
+
/**
|
90
|
+
* @description 统一样式前缀
|
91
|
+
* @default "ant"
|
92
|
+
*/
|
29
93
|
prefixCls?: string;
|
94
|
+
/**
|
95
|
+
* @description 主题变更回调函数
|
96
|
+
* @default -
|
97
|
+
*/
|
30
98
|
onChange?: (record: any) => void;
|
99
|
+
/**
|
100
|
+
* @description 允许扩展字段
|
101
|
+
*/
|
31
102
|
[key: string]: any;
|
32
103
|
}
|
33
|
-
export interface
|
104
|
+
export interface LocalThemeConfigType {
|
105
|
+
/**
|
106
|
+
* @description 品牌色
|
107
|
+
* @default -
|
108
|
+
*/
|
34
109
|
zauiBrand?: string;
|
110
|
+
/**
|
111
|
+
* @description 文本色
|
112
|
+
* @default -
|
113
|
+
*/
|
35
114
|
zauiText?: string;
|
115
|
+
/**
|
116
|
+
* @description 字体大小
|
117
|
+
* @default -
|
118
|
+
*/
|
36
119
|
zauiFontSize?: string;
|
120
|
+
/**
|
121
|
+
* @description 表单对齐方式
|
122
|
+
* @default -
|
123
|
+
*/
|
37
124
|
zauiFormAlign?: string;
|
125
|
+
/**
|
126
|
+
* @description 表单必填项后缀
|
127
|
+
* @default -
|
128
|
+
*/
|
38
129
|
zauiFormRequiredAfter?: string;
|
130
|
+
/**
|
131
|
+
* @description 表单必填项前缀
|
132
|
+
* @default -
|
133
|
+
*/
|
39
134
|
zauiFormRequiredBefore?: string;
|
135
|
+
/**
|
136
|
+
* @description 尺寸大小
|
137
|
+
* @default -
|
138
|
+
*/
|
40
139
|
zauiSize?: number;
|
140
|
+
/**
|
141
|
+
* @description 大间距
|
142
|
+
* @default -
|
143
|
+
*/
|
41
144
|
zauiSpaceSizeLg?: string;
|
145
|
+
/**
|
146
|
+
* @description 中间距
|
147
|
+
* @default -
|
148
|
+
*/
|
42
149
|
zauiSpaceSizeMd?: string;
|
43
|
-
/**
|
150
|
+
/**
|
151
|
+
* @description 大字号模式
|
152
|
+
* @default false
|
153
|
+
*/
|
44
154
|
zauiBigText?: boolean;
|
45
|
-
/**
|
155
|
+
/**
|
156
|
+
* @description 是否有表格边框
|
157
|
+
* @default false
|
158
|
+
*/
|
46
159
|
zauiTableBorder?: boolean;
|
47
|
-
/**
|
160
|
+
/**
|
161
|
+
* @description 是否有斑马纹
|
162
|
+
* @default false
|
163
|
+
*/
|
48
164
|
zauiStripe?: boolean;
|
165
|
+
/**
|
166
|
+
* @description 基础字体大小
|
167
|
+
* @default -
|
168
|
+
*/
|
49
169
|
zauiBaseFontSize?: string;
|
50
170
|
}
|
171
|
+
export type ProThemeToolsProps = ProThemeToolsType;
|
172
|
+
export type LocalThemeConfigPropsType = LocalThemeConfigType;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import type { ProTooltipType } from './propsType';
|
2
2
|
import './style/index.less';
|
3
|
-
declare const ProTooltip: (props:
|
3
|
+
declare const ProTooltip: (props: ProTooltipType) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default ProTooltip;
|
@@ -1,19 +1,59 @@
|
|
1
|
-
import
|
2
|
-
export interface
|
3
|
-
|
1
|
+
import { ReactNode, CSSProperties } from 'react';
|
2
|
+
export interface ProTooltipType {
|
3
|
+
/**
|
4
|
+
* 提示文本内容
|
5
|
+
* @description 支持字符串或React节点
|
6
|
+
* @default undefined
|
7
|
+
*/
|
8
|
+
text?: string | ReactNode;
|
9
|
+
/**
|
10
|
+
* 提示框宽度
|
11
|
+
* @description 设置提示框的宽度,支持各种CSS宽度单位
|
12
|
+
* @default 'auto'
|
13
|
+
*/
|
4
14
|
width?: string;
|
15
|
+
/**
|
16
|
+
* 显示的行数
|
17
|
+
* @description 当内容超过设定行数时将截断显示
|
18
|
+
* @default 1
|
19
|
+
*/
|
5
20
|
line?: number;
|
21
|
+
/**
|
22
|
+
* 是否响应式宽度
|
23
|
+
* @description 启用后提示框宽度将根据内容自适应
|
24
|
+
* @default false
|
25
|
+
*/
|
6
26
|
isResponsiveWidth?: Boolean;
|
27
|
+
/**
|
28
|
+
* 自定义类名
|
29
|
+
* @description 额外的CSS类名
|
30
|
+
* @default ''
|
31
|
+
*/
|
7
32
|
className?: string;
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
33
|
+
/**
|
34
|
+
* 子元素
|
35
|
+
* @description 组件包裹的内容
|
36
|
+
* @default null
|
37
|
+
*/
|
38
|
+
children?: ReactNode;
|
39
|
+
/**
|
40
|
+
* 自定义样式对象
|
41
|
+
* @description 直接应用于组件的内联样式
|
42
|
+
* @default {}
|
43
|
+
*/
|
44
|
+
style?: CSSProperties;
|
45
|
+
/**
|
46
|
+
* 兼容属性
|
47
|
+
* @description 支持传入其他属性
|
48
|
+
*/
|
12
49
|
[key: string]: any;
|
13
50
|
}
|
14
|
-
export interface
|
51
|
+
export interface ProTooltipRefObjectType<T> {
|
52
|
+
/** 当前引用的DOM元素 */
|
15
53
|
readonly current: T | null;
|
16
54
|
}
|
17
|
-
export type
|
55
|
+
export type ProTooltipTriggerNodeType = HTMLElement & {
|
56
|
+
/** 父节点元素 */
|
18
57
|
parentNode: HTMLElement;
|
19
58
|
};
|
59
|
+
export type ProTooltipProps = ProTooltipType;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import {
|
2
|
+
import type { ProTreeFieldNamesType } from '../propsType';
|
3
3
|
interface ListProps {
|
4
4
|
disabled?: boolean;
|
5
5
|
checkedValues?: any[];
|
6
6
|
treeData: any[];
|
7
7
|
searchStr?: string;
|
8
8
|
showCodeName?: boolean;
|
9
|
-
fieldNames:
|
9
|
+
fieldNames: ProTreeFieldNamesType;
|
10
10
|
mode?: 'render' | 'view';
|
11
11
|
handleOnChange?: (e: any, value: string) => void;
|
12
12
|
handleFilterClose?: (code: string) => void;
|
@@ -16,8 +16,8 @@ var _excluded = ["checkedValues", "disabled", "treeData", "searchStr", "showCode
|
|
16
16
|
/*
|
17
17
|
* @Author: ''
|
18
18
|
* @Date: 2024-07-03 11:02:19
|
19
|
-
* @LastEditors:
|
20
|
-
* @LastEditTime:
|
19
|
+
* @LastEditors: za-xuwenli xuwenli@zhongan.io
|
20
|
+
* @LastEditTime: 2025-03-20 10:44:39
|
21
21
|
* @FilePath: /za-material-warehouse/src/ProTree/components/List.tsx
|
22
22
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
23
23
|
*/
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import type { ProTreeType } from '../propsType';
|
2
2
|
import '../style/index.less';
|
3
|
-
declare const ProTree: (props:
|
3
|
+
declare const ProTree: (props: ProTreeType) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default ProTree;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
3
|
-
export declare const ProTreeSelect: (props:
|
4
|
-
declare const _default: React.ForwardRefExoticComponent<
|
2
|
+
import type { ProTreeSelectType } from './propsType';
|
3
|
+
export declare const ProTreeSelect: (props: ProTreeSelectType, ref: React.Ref<unknown> | undefined) => import("react/jsx-runtime").JSX.Element;
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<ProTreeSelectType & React.RefAttributes<unknown>>;
|
5
5
|
export default _default;
|