@zat-design/sisyphus-react 3.11.14-beta.1 → 3.11.14-beta.11
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/coverage/lcov-report/src/.umi/core/devScripts.ts.html +241 -0
- package/coverage/lcov-report/src/.umi/core/history.ts.html +148 -0
- package/coverage/lcov-report/src/.umi/core/index.html +206 -0
- package/coverage/lcov-report/src/.umi/core/plugin.ts.html +109 -0
- package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +160 -0
- package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +97 -0
- package/coverage/lcov-report/src/.umi/core/routes.ts.html +26050 -0
- package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +112 -0
- package/coverage/lcov-report/src/.umi/dumi/demos/index.html +116 -0
- package/coverage/lcov-report/src/.umi/dumi/demos/index.ts.html +6340 -0
- package/coverage/lcov-report/src/.umi/dumi/index.html +116 -0
- package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +109 -0
- package/coverage/lcov-report/src/.umi/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-antd/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +172 -0
- package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +94 -0
- package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +106 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/index.html +161 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +268 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +778 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +115 -0
- package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +202 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-model/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +121 -0
- package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +298 -0
- package/coverage/lcov-report/src/.umi/plugin-request/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +919 -0
- package/coverage/lcov-report/src/.umi/umi.ts.html +268 -0
- 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/ProModal/index.d.ts +2 -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 +6 -8
- package/es/ProEditTable/propsType.d.ts +233 -94
- package/es/ProEditTable/style/index.less +1 -0
- package/es/ProEnum/components/Group.d.ts +2 -2
- package/es/ProEnum/components/Tag.d.ts +2 -2
- 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 +1 -1
- 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/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 +74 -64
- package/es/ProForm/index.d.ts +2 -2
- package/es/ProForm/propsType.d.ts +22 -15
- package/es/ProForm/utils/transformValue.d.ts +2 -2
- package/es/ProForm/utils/useFieldProps.d.ts +3 -3
- package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/es/ProIcon/index.d.ts +2 -2
- package/es/ProIcon/propsTypes.d.ts +124 -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/Item/index.d.ts +2 -2
- package/es/ProStep/components/Step/index.d.ts +2 -2
- package/es/ProStep/index.d.ts +2 -2
- package/es/ProStep/index.js +12 -1
- package/es/ProStep/propsType.d.ts +60 -12
- package/es/ProStep/utils/index.d.ts +2 -2
- package/es/ProTable/components/FormatColumn/index.d.ts +2 -2
- package/es/ProTable/components/FormatColumn/index.js +3 -4
- package/es/ProTable/hooks/useAntdTable.d.ts +2 -2
- package/es/ProTable/index.d.ts +2 -2
- package/es/ProTable/propsType.d.ts +590 -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 +52 -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 +379 -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 +705 -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 +260 -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 +0 -7
- package/es/ProUpload/propsType.d.ts +59 -8
- package/es/ProWaterMark/index.d.ts +2 -2
- package/es/ProWaterMark/propsType.d.ts +2 -1
- package/es/index.d.ts +5 -0
- package/es/index.js +5 -0
- 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/ProModal/index.d.ts +2 -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 +6 -8
- package/lib/ProEditTable/propsType.d.ts +233 -94
- package/lib/ProEditTable/style/index.less +1 -0
- package/lib/ProEnum/components/Group.d.ts +2 -2
- package/lib/ProEnum/components/Tag.d.ts +2 -2
- 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 +1 -1
- 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/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 +74 -64
- package/lib/ProForm/index.d.ts +2 -2
- package/lib/ProForm/propsType.d.ts +22 -15
- package/lib/ProForm/utils/transformValue.d.ts +2 -2
- package/lib/ProForm/utils/useFieldProps.d.ts +3 -3
- package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/lib/ProIcon/index.d.ts +2 -2
- package/lib/ProIcon/propsTypes.d.ts +124 -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/Item/index.d.ts +2 -2
- package/lib/ProStep/components/Step/index.d.ts +2 -2
- package/lib/ProStep/index.d.ts +2 -2
- package/lib/ProStep/index.js +12 -1
- package/lib/ProStep/propsType.d.ts +60 -12
- package/lib/ProStep/utils/index.d.ts +2 -2
- package/lib/ProTable/components/FormatColumn/index.d.ts +2 -2
- package/lib/ProTable/components/FormatColumn/index.js +3 -4
- package/lib/ProTable/hooks/useAntdTable.d.ts +2 -2
- package/lib/ProTable/index.d.ts +2 -2
- package/lib/ProTable/propsType.d.ts +590 -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 +52 -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 +379 -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 +705 -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 +260 -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 +0 -7
- package/lib/ProUpload/propsType.d.ts +59 -8
- package/lib/ProWaterMark/index.d.ts +2 -2
- package/lib/ProWaterMark/propsType.d.ts +2 -1
- package/lib/index.d.ts +5 -0
- package/lib/index.js +60 -0
- package/package.json +1 -1
@@ -7,9 +7,16 @@ import type { NamePath } from 'antd/es/form/interface';
|
|
7
7
|
import type { ColumnType, TableProps } from 'antd/es/table';
|
8
8
|
import type { FormInstance, FormItemProps } from 'antd/es/form';
|
9
9
|
import type { FunctionArgs, ProRule } from '../ProForm/propsType';
|
10
|
-
import { ProFormValueType,
|
11
|
-
import { DiffOriginalParams } from '../ProForm/utils/diffOriginal';
|
10
|
+
import type { ProFormValueType, ColumnTypeMap } from '../ProForm/components/render/propsType';
|
11
|
+
import type { DiffOriginalParams } from '../ProForm/utils/diffOriginal';
|
12
|
+
/**
|
13
|
+
* 操作类型定义
|
14
|
+
*/
|
12
15
|
export type ActionType = 'edit' | 'delete' | 'save' | 'cancel' | 'add' | 'mulDelete' | 'custom';
|
16
|
+
/**
|
17
|
+
* 操作按钮展示控制函数类型
|
18
|
+
* @template T 记录类型
|
19
|
+
*/
|
13
20
|
export type ShowFunction<T> = (record?: T, options?: {
|
14
21
|
index: number;
|
15
22
|
form: FormInstance;
|
@@ -18,264 +25,396 @@ export type ShowFunction<T> = (record?: T, options?: {
|
|
18
25
|
tableLength: number;
|
19
26
|
selectedRows: T[];
|
20
27
|
}) => Promise<any> | boolean | void;
|
28
|
+
/**
|
29
|
+
* 选项属性接口
|
30
|
+
*/
|
21
31
|
export interface OptionsProps {
|
32
|
+
/** 索引 */
|
22
33
|
index: number;
|
34
|
+
/** 表单实例 */
|
23
35
|
form: FormInstance;
|
36
|
+
/** 名称路径 */
|
24
37
|
namePath: NamePath;
|
38
|
+
/** 名称 */
|
25
39
|
name: NamePath;
|
26
40
|
}
|
41
|
+
/**
|
42
|
+
* 选项属性类型(基于接口)
|
43
|
+
*/
|
44
|
+
export type OptionsType = OptionsProps;
|
45
|
+
/**
|
46
|
+
* 汇总列属性
|
47
|
+
*/
|
27
48
|
export interface SummaryColumnProps {
|
49
|
+
/** 列唯一标识 */
|
28
50
|
key: string;
|
51
|
+
/** 列索引 */
|
29
52
|
index: number;
|
53
|
+
/** 列标题 */
|
30
54
|
title?: string;
|
55
|
+
/** 跨列数 */
|
31
56
|
colSpan?: number;
|
57
|
+
/** 值类型 */
|
32
58
|
valueType?: string;
|
59
|
+
/** 精度 */
|
33
60
|
precision?: number;
|
61
|
+
/** 前缀 */
|
34
62
|
prefix?: ReactNode | string;
|
35
63
|
}
|
64
|
+
/**
|
65
|
+
* 汇总列属性类型(基于接口)
|
66
|
+
*/
|
67
|
+
export type SummaryColumnType = SummaryColumnProps;
|
68
|
+
/**
|
69
|
+
* 基础操作按钮属性
|
70
|
+
* @template T 记录类型
|
71
|
+
*/
|
36
72
|
export interface BaseActionProps<T = any> {
|
37
73
|
/**
|
38
|
-
*
|
39
|
-
* @default -
|
74
|
+
* 按钮类型
|
40
75
|
*/
|
41
76
|
type?: ActionType;
|
42
77
|
/**
|
43
|
-
*
|
44
|
-
* @default -
|
78
|
+
* 按钮名称
|
45
79
|
*/
|
46
80
|
label?: string | ReactNode;
|
47
81
|
/**
|
48
|
-
*
|
49
|
-
* @default
|
82
|
+
* 是否显示按钮
|
83
|
+
* @default true
|
50
84
|
*/
|
51
85
|
show?: boolean | ShowFunction<T>;
|
52
86
|
/**
|
53
|
-
|
54
|
-
|
55
|
-
|
87
|
+
* 是否持久化(一直显示)操作按钮
|
88
|
+
* @default true
|
89
|
+
*/
|
56
90
|
persistence?: boolean;
|
57
91
|
/**
|
58
|
-
*
|
59
|
-
* @default
|
92
|
+
* 是否禁止操作
|
93
|
+
* @default true
|
60
94
|
*/
|
61
95
|
disabled?: boolean | ShowFunction<T>;
|
62
96
|
/**
|
63
|
-
*
|
64
|
-
* @default
|
97
|
+
* 添加是否自定义打开弹框
|
98
|
+
* @default false
|
65
99
|
*/
|
66
100
|
isSelectModal?: boolean;
|
67
101
|
/**
|
68
|
-
*
|
69
|
-
* @default
|
102
|
+
* 删除是否开启二次确认
|
103
|
+
* @default true
|
70
104
|
*/
|
71
105
|
needConfirm?: boolean;
|
72
106
|
/**
|
73
|
-
*
|
74
|
-
* @default -
|
107
|
+
* 按钮是否禁止操作
|
75
108
|
*/
|
76
109
|
isEditable?: boolean;
|
77
110
|
/**
|
78
|
-
*
|
79
|
-
* @default -
|
111
|
+
* 按钮前置校验事件
|
80
112
|
*/
|
81
113
|
onClick?: (record?: any, index?: number) => any;
|
82
114
|
/**
|
83
|
-
*
|
84
|
-
* @default -
|
115
|
+
* 按钮前置校验事件
|
85
116
|
*/
|
86
117
|
onHandle?: (record?: any, index?: number) => any;
|
87
118
|
/**
|
88
|
-
*
|
89
|
-
* @default -
|
119
|
+
* 支持antd的Button属性
|
90
120
|
*/
|
91
121
|
buttonProps?: Omit<ButtonProps, 'type' | 'onClick'>;
|
92
122
|
}
|
123
|
+
/**
|
124
|
+
* 基础操作按钮类型(基于接口)
|
125
|
+
* @template T 记录类型
|
126
|
+
*/
|
127
|
+
export type BaseActionType<T = any> = BaseActionProps<T>;
|
128
|
+
/**
|
129
|
+
* 规则函数类型
|
130
|
+
* @template T 记录类型
|
131
|
+
*/
|
93
132
|
export type RulesFn<T> = (text?: any, record?: T, options?: OptionsProps) => ProRule[] | void;
|
133
|
+
/**
|
134
|
+
* 必填函数类型
|
135
|
+
* @template T 记录类型
|
136
|
+
*/
|
94
137
|
export type RequiredFn<T> = (text?: any, record?: T, options?: OptionsProps) => boolean | void;
|
138
|
+
/**
|
139
|
+
* 视图渲染函数类型
|
140
|
+
* @template T 记录类型
|
141
|
+
*/
|
95
142
|
export type viewRenderFn<T> = (text?: any, record?: T, options?: OptionsProps) => string | number | ReactNode | void;
|
143
|
+
/**
|
144
|
+
* 表格列属性接口
|
145
|
+
* @template Values 值类型
|
146
|
+
* @template T 记录类型
|
147
|
+
*/
|
96
148
|
export interface ProColumnsProps<Values = any, T = any> extends Omit<FormItemProps<Values>, 'rules' | 'required'>, ColumnType<Values> {
|
149
|
+
/** 是否必填 */
|
97
150
|
required?: boolean | RequiredFn<T>;
|
151
|
+
/** 标签是否必填 */
|
98
152
|
labelRequired?: boolean;
|
153
|
+
/** 字段名 */
|
99
154
|
name?: NamePath;
|
155
|
+
/** 多字段名 */
|
100
156
|
names?: NamePath[];
|
157
|
+
/** 是否可编辑 */
|
101
158
|
isEditable?: boolean | RequiredFn<T>;
|
159
|
+
/** 值类型 */
|
102
160
|
valueType?: ProFormValueType | ((text?: any, record?: any, options?: OptionsProps) => ProFormValueType);
|
161
|
+
/** 提示信息 */
|
103
162
|
tooltip?: string | ({
|
104
163
|
icon?: string | ReactNode;
|
105
164
|
} & TooltipProps);
|
165
|
+
/** 组件 */
|
106
166
|
component?: string | number | ReactNode | viewRenderFn<T>;
|
167
|
+
/** 视图渲染 */
|
107
168
|
viewRender?: string | number | ReactNode | viewRenderFn<T>;
|
169
|
+
/** 隐藏的字段名 */
|
108
170
|
hiddenNames?: NamePath[] | NamePath[][];
|
171
|
+
/** 校验规则 */
|
109
172
|
rules?: ProRule[] | RulesFn<T>;
|
173
|
+
/** 确认操作 */
|
110
174
|
confirm?: boolean | ModalFuncProps | FunctionArgs<Values, boolean | ModalFuncProps | void>;
|
175
|
+
/** 依赖项 */
|
111
176
|
dependencies?: NamePath[];
|
177
|
+
/** 差异处理 */
|
112
178
|
onDiff?: DiffOriginalParams['onDiff'];
|
113
179
|
[key: string]: any;
|
114
180
|
}
|
115
|
-
|
181
|
+
/**
|
182
|
+
* 表格列属性类型(基于接口)
|
183
|
+
* @template Values 值类型
|
184
|
+
* @template T 记录类型
|
185
|
+
*/
|
186
|
+
export type ProColumnsType<Values = any, T = any> = ProColumnsProps<Values, T>;
|
187
|
+
/**
|
188
|
+
* 可编辑表格列属性
|
189
|
+
* @template K 键类型
|
190
|
+
*/
|
191
|
+
export type ProEditTableColumnsProps<K = any> = ProColumnsProps & ColumnTypeMap<K, 'ProEditTable'>;
|
192
|
+
/**
|
193
|
+
* 可编辑表格列属性类型(基于类型)
|
194
|
+
* @template K 键类型
|
195
|
+
*/
|
196
|
+
export type ProEditTableColumnsType<K = any> = ProEditTableColumnsProps<K>;
|
197
|
+
/**
|
198
|
+
* 状态接口
|
199
|
+
*/
|
116
200
|
export interface State {
|
201
|
+
/** 单元格名称路径 */
|
117
202
|
cellNamePath: NamePath[];
|
203
|
+
/** 表格内部强制刷新开关 */
|
118
204
|
forceUpdate: {};
|
205
|
+
/** 正在编辑行的row-key集合 */
|
119
206
|
editingKeys: string[];
|
207
|
+
/** 当前选中行的row-key集合 */
|
120
208
|
selectedRowKeys: Key[];
|
209
|
+
/** 当前选中行数据集合 */
|
121
210
|
selectedRows: any[];
|
211
|
+
/** 虚拟键 */
|
122
212
|
virtualKey: string;
|
213
|
+
/** 分页信息 */
|
123
214
|
page: {
|
124
215
|
pageNum: number;
|
125
216
|
pageSize: number;
|
126
217
|
};
|
127
218
|
}
|
219
|
+
/**
|
220
|
+
* 状态类型(基于接口)
|
221
|
+
*/
|
222
|
+
export type StateType = State;
|
223
|
+
/**
|
224
|
+
* 可编辑表格引用属性
|
225
|
+
*/
|
128
226
|
export interface ProEditTableRefProps {
|
129
|
-
|
227
|
+
/** 获取内部状态 */
|
228
|
+
getInternalState: () => StateType;
|
130
229
|
}
|
230
|
+
/**
|
231
|
+
* 可编辑表格引用属性类型(基于接口)
|
232
|
+
*/
|
233
|
+
export type ProEditTableRefType = ProEditTableRefProps;
|
234
|
+
/**
|
235
|
+
* 可编辑表格模式类型
|
236
|
+
*/
|
237
|
+
export type ProEditTableMode = 'single' | 'multiple' | 'cell';
|
238
|
+
export type ProEditTableModeType = ProEditTableMode;
|
239
|
+
/**
|
240
|
+
* 表格插入类型
|
241
|
+
*/
|
242
|
+
export type InsertType = 'before' | 'after';
|
243
|
+
/**
|
244
|
+
* 操作按钮方向
|
245
|
+
*/
|
246
|
+
export type ActionDirection = 'vertical' | 'horizontal';
|
247
|
+
export type ActionDirectionType = ActionDirection;
|
248
|
+
/**
|
249
|
+
* 汇总信息配置
|
250
|
+
* @template T 记录类型
|
251
|
+
*/
|
252
|
+
export type SummaryConfig<T> = {
|
253
|
+
columns: SummaryColumnType[];
|
254
|
+
total?: boolean;
|
255
|
+
fixed?: boolean | 'top' | 'bottom';
|
256
|
+
} | TableProps<T>['summary'];
|
257
|
+
export type SummaryConfigType<T = any> = SummaryConfig<T>;
|
258
|
+
/**
|
259
|
+
* 可编辑表格属性接口
|
260
|
+
* @template T 记录类型
|
261
|
+
*/
|
131
262
|
export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChange' | 'summary'> {
|
132
263
|
/**
|
133
|
-
*
|
134
|
-
* @default -
|
264
|
+
* 可编辑表格的 form 实例,使用 Form.useForm 生成后使用
|
135
265
|
*/
|
136
266
|
form?: FormInstance;
|
137
267
|
/**
|
138
|
-
*
|
139
|
-
* @default -
|
268
|
+
* 原始数据源,设置后可以对比更新后的数值
|
140
269
|
*/
|
141
270
|
originalValues?: any;
|
142
271
|
/**
|
143
|
-
*
|
144
|
-
* @default
|
272
|
+
* 可编辑表格的模式
|
273
|
+
* @default multiple
|
145
274
|
*/
|
146
|
-
mode?:
|
275
|
+
mode?: ProEditTableModeType;
|
147
276
|
/**
|
148
|
-
*
|
149
|
-
* @deprecated
|
150
|
-
* @default
|
277
|
+
* 可编辑表格的类型,单行编辑或者多行编辑
|
278
|
+
* @deprecated 将于下个版本 4.0.0 被弃用
|
279
|
+
* @default multiple
|
151
280
|
*/
|
152
|
-
type?:
|
281
|
+
type?: ProEditTableModeType;
|
153
282
|
/**
|
154
|
-
*
|
155
|
-
* @default
|
283
|
+
* 必填对齐方式, 默认右对齐
|
284
|
+
* @default right
|
156
285
|
*/
|
157
286
|
requiredAlign?: 'left' | 'right';
|
158
287
|
/**
|
159
|
-
*
|
160
|
-
* @default
|
288
|
+
* 同 dataSource,传入一个数组,是 table 渲染的元数据
|
289
|
+
* @default undefined
|
161
290
|
*/
|
162
291
|
value?: T[];
|
163
292
|
/**
|
164
|
-
*
|
165
|
-
* @default -
|
293
|
+
* dataSource 修改时触发,删除和修改都会触发,如果设置了 value,ProEditTable 会成为一个受控组件
|
166
294
|
*/
|
167
295
|
onChange?: (list: T[]) => void;
|
168
296
|
/**
|
169
|
-
*
|
170
|
-
* @default
|
297
|
+
* 表格列的配置描述,扩展了FormItemProps属性
|
298
|
+
* @default []
|
171
299
|
*/
|
172
300
|
columns: ProEditTableColumnsProps[];
|
173
301
|
/**
|
174
|
-
*
|
175
|
-
* @default
|
302
|
+
* 是否禁止编辑
|
303
|
+
* @default false
|
176
304
|
*/
|
177
305
|
disabled?: boolean;
|
178
306
|
/**
|
179
|
-
*
|
180
|
-
* @default
|
307
|
+
* 是否开启斑马纹
|
308
|
+
* @default true
|
181
309
|
*/
|
182
310
|
stripe?: boolean;
|
183
311
|
/**
|
184
|
-
*
|
185
|
-
* @default
|
312
|
+
* 可编辑表格新增时数据插入方式,头部插入或者尾部插入
|
313
|
+
* @default after
|
186
314
|
*/
|
187
|
-
insertType?:
|
315
|
+
insertType?: InsertType;
|
188
316
|
/**
|
189
|
-
*
|
190
|
-
* @default -
|
317
|
+
* 字段名,支持数组
|
191
318
|
*/
|
192
319
|
name?: string | number | (string | number)[];
|
193
320
|
/**
|
194
|
-
*
|
195
|
-
* @default -
|
321
|
+
* 是否可拖拽排序
|
196
322
|
*/
|
197
323
|
draggable?: boolean;
|
198
324
|
/**
|
199
|
-
|
200
|
-
|
201
|
-
*/
|
325
|
+
* 是否开启虚拟列表(scroll,x,y必须为固定值)
|
326
|
+
*/
|
202
327
|
virtual?: boolean;
|
203
328
|
/**
|
204
|
-
*
|
205
|
-
* @default
|
329
|
+
* 空列表状态时,自定义添加按钮
|
330
|
+
* @default 点击添加
|
206
331
|
*/
|
207
332
|
emptyBtnText?: string;
|
208
333
|
/**
|
209
|
-
*
|
210
|
-
* @default
|
334
|
+
* 只能编辑一行的的提示
|
335
|
+
* @default 请先保存数据
|
211
336
|
*/
|
212
337
|
onlyOneLineMsg?: string;
|
213
338
|
/**
|
214
|
-
*
|
215
|
-
* @default
|
339
|
+
* 单行删除时弹出的确认框提示消息
|
340
|
+
* @default 您确定要删除该行数据吗?
|
216
341
|
*/
|
217
342
|
deletePoConfirmMsg?: string;
|
218
343
|
/**
|
219
|
-
*
|
220
|
-
* @default
|
344
|
+
* 多行删除时弹出的确认框提示消息
|
345
|
+
* @default 您确定要删除选中的数据吗?
|
221
346
|
*/
|
222
347
|
mulDeletePoConfirmMsg?: string;
|
223
348
|
/**
|
224
|
-
*
|
225
|
-
* @default -
|
349
|
+
* 自定义编辑模式的操作栏宽度
|
226
350
|
*/
|
227
351
|
actionWidth?: ColumnType<T>['width'];
|
228
352
|
/**
|
229
|
-
*
|
230
|
-
* @default -
|
353
|
+
* 自定义编辑模式的操作栏 单行编辑默认为编辑、删除、保存、取消;多行编辑为删除
|
231
354
|
*/
|
232
|
-
actionProps?:
|
355
|
+
actionProps?: BaseActionType<T>[] | boolean;
|
233
356
|
/**
|
234
|
-
*
|
235
|
-
* @default -
|
357
|
+
* 自定义 table footer 左侧渲染, 配置后toolbarProps会失效
|
236
358
|
*/
|
237
359
|
footerRender?: ReactNode;
|
238
360
|
/**
|
239
|
-
*
|
240
|
-
* @default -
|
361
|
+
* 自定义底部操作栏 默认为添加、删除(批量)
|
241
362
|
*/
|
242
|
-
toolbarProps?:
|
363
|
+
toolbarProps?: BaseActionType<T>[] | boolean;
|
243
364
|
/**
|
244
|
-
*
|
245
|
-
* @default -
|
365
|
+
* 自定义底部操作栏跟随页面滚动
|
246
366
|
*/
|
247
367
|
toolbarSticky?: boolean | Omit<AffixProps, 'children'>;
|
248
368
|
/**
|
249
|
-
*
|
250
|
-
* @default -
|
369
|
+
* 最大可添加数量
|
251
370
|
*/
|
252
371
|
max?: number;
|
253
372
|
/**
|
254
|
-
*
|
255
|
-
* @default -
|
373
|
+
* formItem的props
|
256
374
|
*/
|
257
375
|
otherProps?: any;
|
258
376
|
/**
|
259
|
-
*
|
260
|
-
* @default -
|
377
|
+
* 底部合计配置
|
261
378
|
*/
|
262
|
-
summary?:
|
263
|
-
columns: SummaryColumnProps[];
|
264
|
-
total?: boolean;
|
265
|
-
fixed?: boolean | 'top' | 'bottom';
|
266
|
-
} | TableProps<T>['summary'];
|
379
|
+
summary?: SummaryConfigType<T>;
|
267
380
|
/**
|
268
|
-
*
|
269
|
-
* @default -
|
381
|
+
* 自定义头部渲染
|
270
382
|
*/
|
271
383
|
headerRender?: ReactNode;
|
384
|
+
/**
|
385
|
+
* 行是否禁用
|
386
|
+
*/
|
272
387
|
rowDisabled?: (record?: T) => string | boolean;
|
388
|
+
/**
|
389
|
+
* 行是否可拖拽
|
390
|
+
*/
|
273
391
|
rowDraggable?: (record?: T) => string | boolean;
|
392
|
+
/**
|
393
|
+
* 拖拽事件处理
|
394
|
+
*/
|
274
395
|
onDrag?: (event: DragEndEvent, dataSource: T[]) => T[];
|
396
|
+
/**
|
397
|
+
* 引用对象
|
398
|
+
*/
|
275
399
|
ref?: any;
|
276
|
-
|
400
|
+
/**
|
401
|
+
* 操作按钮方向
|
402
|
+
*/
|
403
|
+
actionDirection?: ActionDirectionType;
|
404
|
+
/**
|
405
|
+
* 校验触发方式
|
406
|
+
*/
|
277
407
|
validateTrigger?: string | string[];
|
408
|
+
/**
|
409
|
+
* 差异配置
|
410
|
+
*/
|
278
411
|
diffConfig?: {
|
412
|
+
/** 是否跟随父元素滚动 */
|
279
413
|
scrollFollowParent?: boolean;
|
280
414
|
};
|
281
415
|
}
|
416
|
+
/**
|
417
|
+
* 可编辑表格属性类型(基于接口)
|
418
|
+
* @template T 记录类型
|
419
|
+
*/
|
420
|
+
export type ProEditTableType<T = any> = ProEditTableProps<T>;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
interface Props extends Pick<
|
1
|
+
import type { ProEnumType } from '../propsType';
|
2
|
+
interface Props extends Pick<ProEnumType, 'id' | 'value' | 'onChange' | 'dataSource'> {
|
3
3
|
fieldValue: string;
|
4
4
|
fieldLabel: string;
|
5
5
|
disabled?: boolean;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
interface Props extends Pick<
|
1
|
+
import type { ProEnumType } from '../propsType';
|
2
|
+
interface Props extends Pick<ProEnumType, 'id' | 'value' | 'onChange' | 'dataSource'> {
|
3
3
|
fieldValue: string;
|
4
4
|
fieldLabel: string;
|
5
5
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import type { ProEnumConfigType } from '../propsType';
|
2
2
|
import '../utils/eventCenter';
|
3
|
-
declare const useEnumRequest: (props:
|
3
|
+
declare const useEnumRequest: (props: ProEnumConfigType, dispatch: any) => import("ahooks/lib/useRequest/src/types").Result<any, any>;
|
4
4
|
export default useEnumRequest;
|
package/es/ProEnum/index.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import useEnum from './hooks/useEnum';
|
2
|
-
import {
|
2
|
+
import type { ProEnumType } from './propsType';
|
3
3
|
import './style/index.less';
|
4
4
|
declare const ProEnum: {
|
5
|
-
(props:
|
5
|
+
(props: ProEnumType): import("react/jsx-runtime").JSX.Element;
|
6
6
|
getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
|
7
7
|
useEnum: typeof useEnum;
|
8
8
|
};
|