@zat-design/sisyphus-react 3.11.14-beta.10 → 3.11.14-beta.12
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 +1 -1
- package/coverage/lcov-report/src/.umi/core/index.html +67 -7
- package/coverage/lcov-report/src/.umi/core/plugin.ts.html +1 -1
- package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +1 -1
- package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +1 -1
- package/coverage/lcov-report/src/.umi/core/routes.ts.html +29149 -0
- package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +112 -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/coverage/src/.umi/core/devScripts.ts.html +241 -0
- package/coverage/src/.umi/core/history.ts.html +1 -1
- package/coverage/src/.umi/core/index.html +67 -7
- package/coverage/src/.umi/core/plugin.ts.html +1 -1
- package/coverage/src/.umi/core/pluginRegister.ts.html +1 -1
- package/coverage/src/.umi/core/polyfill.ts.html +1 -1
- package/coverage/src/.umi/core/routes.ts.html +29149 -0
- package/coverage/src/.umi/core/umiExports.ts.html +112 -0
- package/coverage/src/.umi/dumi/index.html +116 -0
- package/coverage/src/.umi/dumi/layout.tsx.html +109 -0
- package/coverage/src/.umi/index.html +116 -0
- package/coverage/src/.umi/plugin-antd/index.html +116 -0
- package/coverage/src/.umi/plugin-antd/runtime.tsx.html +172 -0
- package/coverage/src/.umi/plugin-helmet/exports.ts.html +94 -0
- package/coverage/src/.umi/plugin-helmet/index.html +116 -0
- package/coverage/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
- package/coverage/src/.umi/plugin-initial-state/exports.ts.html +106 -0
- package/coverage/src/.umi/plugin-initial-state/index.html +146 -0
- package/coverage/src/.umi/plugin-initial-state/models/index.html +116 -0
- package/coverage/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
- package/coverage/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
- package/coverage/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
- package/coverage/src/.umi/plugin-locale/index.html +161 -0
- package/coverage/src/.umi/plugin-locale/locale.tsx.html +268 -0
- package/coverage/src/.umi/plugin-locale/localeExports.ts.html +778 -0
- package/coverage/src/.umi/plugin-locale/runtime.tsx.html +115 -0
- package/coverage/src/.umi/plugin-model/Provider.tsx.html +202 -0
- package/coverage/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
- package/coverage/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
- package/coverage/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
- package/coverage/src/.umi/plugin-model/helpers/index.html +146 -0
- package/coverage/src/.umi/plugin-model/index.html +146 -0
- package/coverage/src/.umi/plugin-model/runtime.tsx.html +121 -0
- package/coverage/src/.umi/plugin-model/useModel.tsx.html +298 -0
- package/coverage/src/.umi/plugin-request/index.html +116 -0
- package/coverage/src/.umi/plugin-request/request.ts.html +919 -0
- package/coverage/src/.umi/umi.ts.html +268 -0
- package/es/ProConfigProvider/index.d.ts +4 -4
- package/es/ProDrawerForm/propsType.d.ts +1 -1
- package/es/ProEditLabel/propsType.d.ts +2 -2
- package/es/ProEditTable/components/Summary/index.d.ts +2 -2
- package/es/ProEditTable/index.js +12 -8
- package/es/ProEditTable/propsType.d.ts +40 -42
- 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/propsType.d.ts +2 -2
- package/es/ProForm/components/FormFooter/index.d.ts +1 -1
- package/es/ProForm/components/base/Checkbox/index.d.ts +1 -1
- package/es/ProForm/components/base/Input/propsType.d.ts +3 -3
- package/es/ProForm/components/base/InputNumber/index.d.ts +1 -1
- package/es/ProForm/components/base/Radio/index.d.ts +1 -1
- package/es/ProForm/components/base/RangePicker/index.d.ts +1 -1
- package/es/ProForm/components/base/Select/index.d.ts +1 -1
- package/es/ProForm/components/base/Switch/index.d.ts +1 -1
- package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -1
- package/es/ProForm/components/base/TextArea/index.d.ts +1 -1
- package/es/ProForm/components/base/TimePicker/index.d.ts +1 -1
- package/es/ProForm/components/combination/Container/propsType.d.ts +3 -3
- package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +1 -1
- package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +1 -1
- package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -2
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +1 -1
- package/es/ProForm/components/combination/FormList/propsType.d.ts +2 -2
- package/es/ProForm/components/combination/Group/index.d.ts +1 -1
- package/es/ProForm/components/combination/Group/propsType.d.ts +1 -1
- package/es/ProForm/components/combination/Group/utils.d.ts +3 -3
- package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCombination/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCombination/propsType.d.ts +1 -1
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +5 -5
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -1
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
- 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 +1 -1
- package/es/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
- package/es/ProForm/components/render/RenderFields.d.ts +3 -3
- package/es/ProForm/components/render/propsType.d.ts +37 -41
- package/es/ProForm/index.d.ts +1 -1
- package/es/ProForm/propsType.d.ts +6 -4
- package/es/ProForm/propsType.js +0 -1
- package/es/ProForm/utils/transformValue.d.ts +1 -1
- package/es/ProForm/utils/useFieldProps.d.ts +1 -1
- package/es/ProForm/utils/useForm.d.ts +1 -1
- package/es/ProForm/utils/useRules.d.ts +1 -1
- package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/es/ProIcon/propsTypes.d.ts +0 -4
- package/es/ProSelect/propsType.d.ts +1 -1
- package/es/ProStep/components/Anchor/index.d.ts +2 -1
- package/es/ProStep/components/Item/index.d.ts +1 -1
- 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/index.d.ts +7 -7
- package/es/ProStep/index.js +7 -3
- package/es/ProStep/propsType.d.ts +145 -5
- package/es/ProStep/utils/index.d.ts +16 -3
- package/es/ProStep/utils/index.js +11 -2
- package/es/ProTable/components/FormatColumn/index.js +3 -6
- package/es/ProTable/propsType.d.ts +14 -20
- package/es/ProTooltip/propsType.d.ts +0 -3
- 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 +371 -33
- package/es/ProTree/components/SearchTitle.d.ts +1 -1
- 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 +44 -42
- 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 +257 -48
- package/es/ProTreeModal/utils.d.ts +7 -7
- package/es/index.d.ts +15 -7
- package/es/index.js +1 -8
- package/lib/ProConfigProvider/index.d.ts +4 -4
- package/lib/ProDrawerForm/propsType.d.ts +1 -1
- package/lib/ProEditLabel/propsType.d.ts +2 -2
- package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
- package/lib/ProEditTable/index.js +12 -8
- package/lib/ProEditTable/propsType.d.ts +40 -42
- 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/propsType.d.ts +2 -2
- package/lib/ProForm/components/FormFooter/index.d.ts +1 -1
- package/lib/ProForm/components/base/Checkbox/index.d.ts +1 -1
- package/lib/ProForm/components/base/Input/propsType.d.ts +3 -3
- package/lib/ProForm/components/base/InputNumber/index.d.ts +1 -1
- package/lib/ProForm/components/base/Radio/index.d.ts +1 -1
- package/lib/ProForm/components/base/RangePicker/index.d.ts +1 -1
- package/lib/ProForm/components/base/Select/index.d.ts +1 -1
- package/lib/ProForm/components/base/Switch/index.d.ts +1 -1
- package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -1
- package/lib/ProForm/components/base/TextArea/index.d.ts +1 -1
- package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -1
- package/lib/ProForm/components/combination/Container/propsType.d.ts +3 -3
- package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +1 -1
- package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +1 -1
- package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -2
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +1 -1
- package/lib/ProForm/components/combination/FormList/propsType.d.ts +2 -2
- package/lib/ProForm/components/combination/Group/index.d.ts +1 -1
- package/lib/ProForm/components/combination/Group/propsType.d.ts +1 -1
- package/lib/ProForm/components/combination/Group/utils.d.ts +3 -3
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCombination/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +5 -5
- package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -1
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
- 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 +1 -1
- package/lib/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
- package/lib/ProForm/components/render/RenderFields.d.ts +3 -3
- package/lib/ProForm/components/render/propsType.d.ts +37 -41
- package/lib/ProForm/index.d.ts +1 -1
- package/lib/ProForm/propsType.d.ts +6 -4
- package/lib/ProForm/propsType.js +0 -15
- package/lib/ProForm/utils/transformValue.d.ts +1 -1
- package/lib/ProForm/utils/useFieldProps.d.ts +1 -1
- package/lib/ProForm/utils/useForm.d.ts +1 -1
- package/lib/ProForm/utils/useRules.d.ts +1 -1
- package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/lib/ProIcon/propsTypes.d.ts +0 -4
- package/lib/ProSelect/propsType.d.ts +1 -1
- package/lib/ProStep/components/Anchor/index.d.ts +2 -1
- package/lib/ProStep/components/Item/index.d.ts +1 -1
- 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/index.d.ts +7 -7
- package/lib/ProStep/index.js +7 -3
- package/lib/ProStep/propsType.d.ts +145 -5
- package/lib/ProStep/utils/index.d.ts +16 -3
- package/lib/ProStep/utils/index.js +11 -2
- package/lib/ProTable/components/FormatColumn/index.js +3 -6
- package/lib/ProTable/propsType.d.ts +14 -20
- package/lib/ProTooltip/propsType.d.ts +0 -3
- 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 +371 -33
- package/lib/ProTree/components/SearchTitle.d.ts +1 -1
- 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 +44 -42
- 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 +257 -48
- package/lib/ProTreeModal/utils.d.ts +7 -7
- package/lib/index.d.ts +15 -7
- package/lib/index.js +7 -83
- package/package.json +1 -1
@@ -1,5 +1,18 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import type { LoadedMapType } from '../propsType';
|
2
|
-
|
3
|
-
|
4
|
-
|
3
|
+
/**
|
4
|
+
* 处理滚动到指定元素位置
|
5
|
+
* @param id 目标元素的ID
|
6
|
+
* @param options 滚动选项
|
7
|
+
*/
|
8
|
+
export declare const handleScroll: (id: string, options?: {
|
9
|
+
targetOffset?: number;
|
10
|
+
scrollToError?: boolean;
|
11
|
+
}) => void;
|
12
|
+
/**
|
13
|
+
* 获取加载模块数据信息
|
14
|
+
* @param registerMap 注册映射对象
|
15
|
+
* @returns 模块加载状态列表
|
16
|
+
*/
|
17
|
+
export declare const getLoadedMap: (registerMap: React.MutableRefObject<Record<string, any>>) => LoadedMapType[];
|
5
18
|
export default handleScroll;
|
@@ -1,5 +1,10 @@
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
2
|
import { debounce, pick } from 'lodash';
|
3
|
+
/**
|
4
|
+
* 处理滚动到指定元素位置
|
5
|
+
* @param id 目标元素的ID
|
6
|
+
* @param options 滚动选项
|
7
|
+
*/
|
3
8
|
export var handleScroll = function handleScroll(id, options) {
|
4
9
|
var _ref = options || {},
|
5
10
|
_ref$targetOffset = _ref.targetOffset,
|
@@ -16,10 +21,14 @@ export var handleScroll = function handleScroll(id, options) {
|
|
16
21
|
}, 100), 0);
|
17
22
|
}
|
18
23
|
};
|
19
|
-
/**
|
24
|
+
/**
|
25
|
+
* 获取加载模块数据信息
|
26
|
+
* @param registerMap 注册映射对象
|
27
|
+
* @returns 模块加载状态列表
|
28
|
+
*/
|
20
29
|
export var getLoadedMap = function getLoadedMap(registerMap) {
|
21
30
|
if (!(registerMap === null || registerMap === void 0 ? void 0 : registerMap.current)) {
|
22
|
-
return
|
31
|
+
return [];
|
23
32
|
}
|
24
33
|
var stepList = Object.values(registerMap === null || registerMap === void 0 ? void 0 : registerMap.current).map(function (item) {
|
25
34
|
return _objectSpread(_objectSpread({}, pick(item, ['id', 'order', 'title'])), {}, {
|
@@ -62,8 +62,7 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
62
62
|
valueType = column.valueType,
|
63
63
|
_column$format = column.format,
|
64
64
|
format = _column$format === void 0 ? 'YYYY-MM-DD HH:mm:ss' : _column$format,
|
65
|
-
|
66
|
-
precision = _column$precision === void 0 ? 0 : _column$precision,
|
65
|
+
precision = column.precision,
|
67
66
|
ellipsis = column.ellipsis,
|
68
67
|
code = column.code,
|
69
68
|
copyable = column.copyable,
|
@@ -114,9 +113,6 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
114
113
|
}
|
115
114
|
};
|
116
115
|
if (column === null || column === void 0 ? void 0 : column.render) {
|
117
|
-
// if (!originalObj && Object.keys(originalObj ?? {}).length === 0 && !onDiff) {
|
118
|
-
// return;
|
119
|
-
// }
|
120
116
|
var originalRender = column.render; // 保存原始的 render 方法
|
121
117
|
// 自定义render 手动重载下
|
122
118
|
column.render = function (value, record, index) {
|
@@ -214,7 +210,8 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
214
210
|
if (ellipsis) {
|
215
211
|
column.ellipsis = false;
|
216
212
|
}
|
217
|
-
var valueTypePrecision = precision;
|
213
|
+
var valueTypePrecision = precision !== null && precision !== void 0 ? precision : 0;
|
214
|
+
// 千分位、千分位带CNY前缀, 百分比、千分比保留小数点2位
|
218
215
|
if (['percentage', 'permillage', 'thousandth', 'thousandthCNY'].includes(valueType)) {
|
219
216
|
valueTypePrecision = precision !== null && precision !== void 0 ? precision : 2;
|
220
217
|
}
|
@@ -3,6 +3,7 @@ import { TableProps } from 'antd/es/table/Table';
|
|
3
3
|
import { ColumnType, GetRowKey, RowSelectionType } from 'antd/es/table/interface';
|
4
4
|
import { FormInstance } from 'antd';
|
5
5
|
import type { TooltipProps } from 'antd';
|
6
|
+
import type { TabsProps } from 'antd/es/tabs';
|
6
7
|
/**
|
7
8
|
* 合计栏的每列配置参数
|
8
9
|
*/
|
@@ -323,6 +324,17 @@ export interface ProTableType<T = any> extends Omit<TableProps<any>, 'summary' |
|
|
323
324
|
* @default undefined
|
324
325
|
*/
|
325
326
|
tableId?: string;
|
327
|
+
/**
|
328
|
+
* 表格 tabs查询 配置
|
329
|
+
* @description 用于配置表格的 tabs 选项
|
330
|
+
* @default undefined
|
331
|
+
*/
|
332
|
+
tabs?: {
|
333
|
+
code: string;
|
334
|
+
dataSource: any[];
|
335
|
+
transformResponse?: (res: any) => any[];
|
336
|
+
tabsProps?: TabsProps;
|
337
|
+
};
|
326
338
|
/**
|
327
339
|
* 表格行 key 的取值
|
328
340
|
* @description 表格行数据的唯一标识字段
|
@@ -647,7 +659,7 @@ export type ProTableServiceType<Req, Res> = (params?: ProTableParamsType<Req>) =
|
|
647
659
|
/**
|
648
660
|
* useAntdTable 状态
|
649
661
|
*/
|
650
|
-
export interface
|
662
|
+
export interface ProTableUseAntdTableType<I, R> {
|
651
663
|
/**
|
652
664
|
* 表格数据
|
653
665
|
* @description 当前表格显示的数据
|
@@ -694,23 +706,5 @@ export interface ProTableUseAntdTableStateType<I, R> {
|
|
694
706
|
export type ProTableProps<T = any> = ProTableType<T>;
|
695
707
|
export type ProTableColumn = ProTableColumnType;
|
696
708
|
export type ProTableSummaryProps = ProTableSummaryType;
|
697
|
-
export type
|
698
|
-
export type PaginationType = ProTablePaginationType;
|
699
|
-
export type DragStartGuardProps = ProTableDragStartGuardType;
|
700
|
-
export type DragEndGuardProps = ProTableDragEndGuardType;
|
701
|
-
export type DragCommonGuardProps<T> = ProTableDragCommonGuardType<T>;
|
702
|
-
export type DragStartGuardType = ProTableDragStartGuardType;
|
703
|
-
export type DragEndGuardType = ProTableDragEndGuardType;
|
704
|
-
export type DragCommonGuardType<T> = ProTableDragCommonGuardType<T>;
|
705
|
-
export type RequestOptions<T, R> = ProTableRequestOptionsType<T, R>;
|
706
|
-
export type RequestOptionsType<T, R> = ProTableRequestOptionsType<T, R>;
|
707
|
-
export type UseAntdTableState<I, R> = ProTableUseAntdTableStateType<I, R>;
|
708
|
-
export type UseAntdTableStateType<I, R> = ProTableUseAntdTableStateType<I, R>;
|
709
|
-
export type Response<T = any> = ProTableResponseType<T>;
|
710
|
-
export type List<T> = ProTableListType<T>;
|
711
|
-
export type ListResponse<T> = ProTableListResponseType<T>;
|
712
|
-
export type Params<T = any> = ProTableParamsType<T>;
|
713
|
-
export type Service<Req, Res> = ProTableServiceType<Req, Res>;
|
714
|
-
export type TableDiffConfigType = ProTableDiffConfigType;
|
715
|
-
export type CreateTreeFromArrayOptions = ProTableCreateTreeFromArrayType;
|
709
|
+
export type UseAntdTableState<I, R> = ProTableUseAntdTableType<I, R>;
|
716
710
|
export {};
|
@@ -56,7 +56,4 @@ export type ProTooltipTriggerNodeType = HTMLElement & {
|
|
56
56
|
/** 父节点元素 */
|
57
57
|
parentNode: HTMLElement;
|
58
58
|
};
|
59
|
-
export type ProTooltipPropsType = ProTooltipType;
|
60
59
|
export type ProTooltipProps = ProTooltipType;
|
61
|
-
export type RefObjectPropsType<T> = ProTooltipRefObjectType<T>;
|
62
|
-
export type ProtooltipTriggerNodeType = ProTooltipTriggerNodeType;
|
@@ -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;
|
@@ -7,8 +7,8 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
7
7
|
/*
|
8
8
|
* @Author: ''
|
9
9
|
* @Date: 2024-07-03 11:02:19
|
10
|
-
* @LastEditors:
|
11
|
-
* @LastEditTime:
|
10
|
+
* @LastEditors: za-xuwenli xuwenli@zhongan.io
|
11
|
+
* @LastEditTime: 2025-03-20 10:44:39
|
12
12
|
* @FilePath: /za-material-warehouse/src/ProTree/components/List.tsx
|
13
13
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
14
14
|
*/
|
@@ -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;
|
@@ -1,103 +1,441 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { TreeSelectProps } from 'antd';
|
3
|
-
import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
|
4
|
-
import { ProFormOtherType } from '../../../ProForm/propsType';
|
5
|
-
|
3
|
+
import type { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
|
4
|
+
import type { ProFormOtherType } from '../../../ProForm/propsType';
|
5
|
+
/**
|
6
|
+
* 树数据属性
|
7
|
+
* @description 定义树节点的基本数据属性
|
8
|
+
*/
|
9
|
+
export interface ProTreeSelectDataType {
|
10
|
+
/**
|
11
|
+
* 节点标签
|
12
|
+
* @description 显示的节点文本
|
13
|
+
* @default undefined
|
14
|
+
*/
|
6
15
|
label: string;
|
16
|
+
/**
|
17
|
+
* 节点值
|
18
|
+
* @description 节点的唯一标识
|
19
|
+
* @default undefined
|
20
|
+
*/
|
7
21
|
value?: string;
|
22
|
+
/**
|
23
|
+
* 是否禁用
|
24
|
+
* @description 是否禁用节点
|
25
|
+
* @default false
|
26
|
+
*/
|
8
27
|
disabled?: boolean;
|
28
|
+
/**
|
29
|
+
* 禁用复选框
|
30
|
+
* @description 是否禁用复选框
|
31
|
+
* @default false
|
32
|
+
*/
|
9
33
|
disableCheckbox?: boolean;
|
34
|
+
/**
|
35
|
+
* 是否可选
|
36
|
+
* @description 是否可以选中
|
37
|
+
* @default true
|
38
|
+
*/
|
10
39
|
selectable?: boolean;
|
40
|
+
/**
|
41
|
+
* 是否可勾选
|
42
|
+
* @description 是否可以勾选
|
43
|
+
* @default undefined
|
44
|
+
*/
|
11
45
|
checkable?: boolean;
|
46
|
+
/**
|
47
|
+
* 标题
|
48
|
+
* @description 节点标题
|
49
|
+
* @default undefined
|
50
|
+
*/
|
12
51
|
title?: string;
|
13
52
|
}
|
14
|
-
|
53
|
+
/**
|
54
|
+
* 数据选项
|
55
|
+
* @description 扩展的数据选项接口
|
56
|
+
*/
|
57
|
+
export interface ProTreeSelectDataOptionType {
|
58
|
+
/**
|
59
|
+
* 节点标签
|
60
|
+
* @description 显示的节点文本
|
61
|
+
* @default undefined
|
62
|
+
*/
|
15
63
|
label: string;
|
64
|
+
/**
|
65
|
+
* 节点值
|
66
|
+
* @description 节点的唯一标识
|
67
|
+
* @default undefined
|
68
|
+
*/
|
16
69
|
value?: string;
|
70
|
+
/**
|
71
|
+
* 是否禁用
|
72
|
+
* @description 是否禁用节点
|
73
|
+
* @default false
|
74
|
+
*/
|
17
75
|
disabled?: boolean;
|
76
|
+
/**
|
77
|
+
* 禁用复选框
|
78
|
+
* @description 是否禁用复选框
|
79
|
+
* @default false
|
80
|
+
*/
|
18
81
|
disableCheckbox?: boolean;
|
82
|
+
/**
|
83
|
+
* 是否可选
|
84
|
+
* @description 是否可以选中
|
85
|
+
* @default true
|
86
|
+
*/
|
19
87
|
selectable?: boolean;
|
88
|
+
/**
|
89
|
+
* 是否可勾选
|
90
|
+
* @description 是否可以勾选
|
91
|
+
* @default undefined
|
92
|
+
*/
|
20
93
|
checkable?: boolean;
|
21
|
-
|
94
|
+
/**
|
95
|
+
* 子节点
|
96
|
+
* @description 当前节点的子节点数组
|
97
|
+
* @default undefined
|
98
|
+
*/
|
99
|
+
children?: ProTreeSelectDataType[];
|
100
|
+
/**
|
101
|
+
* 标题
|
102
|
+
* @description 节点标题
|
103
|
+
* @default undefined
|
104
|
+
*/
|
22
105
|
title?: string;
|
106
|
+
/**
|
107
|
+
* 自定义属性
|
108
|
+
* @description 可添加任意其他属性
|
109
|
+
* @default undefined
|
110
|
+
*/
|
23
111
|
[key: string]: any;
|
24
112
|
}
|
25
|
-
|
113
|
+
/**
|
114
|
+
* 基础选项类型
|
115
|
+
* @description 基础选项类型定义
|
116
|
+
*/
|
117
|
+
export interface ProTreeSelectBaseOptionType {
|
118
|
+
/**
|
119
|
+
* 是否禁用
|
120
|
+
* @description 是否禁用节点
|
121
|
+
* @default false
|
122
|
+
*/
|
26
123
|
disabled?: boolean;
|
124
|
+
/**
|
125
|
+
* 是否可勾选
|
126
|
+
* @description 是否可以勾选
|
127
|
+
* @default undefined
|
128
|
+
*/
|
27
129
|
checkable?: boolean;
|
130
|
+
/**
|
131
|
+
* 禁用复选框
|
132
|
+
* @description 是否禁用复选框
|
133
|
+
* @default false
|
134
|
+
*/
|
28
135
|
disableCheckbox?: boolean;
|
29
|
-
|
136
|
+
/**
|
137
|
+
* 子节点
|
138
|
+
* @description 当前节点的子节点数组
|
139
|
+
* @default undefined
|
140
|
+
*/
|
141
|
+
children?: ProTreeSelectBaseOptionType[];
|
142
|
+
/**
|
143
|
+
* 自定义属性
|
144
|
+
* @description 可添加任意其他属性
|
145
|
+
* @default undefined
|
146
|
+
*/
|
30
147
|
[name: string]: any;
|
31
148
|
}
|
32
|
-
|
149
|
+
/**
|
150
|
+
* 默认选项类型
|
151
|
+
* @description 扩展基础选项类型的默认选项类型
|
152
|
+
*/
|
153
|
+
export interface ProTreeSelectDefaultOptionType extends ProTreeSelectBaseOptionType {
|
154
|
+
/**
|
155
|
+
* 节点值
|
156
|
+
* @description 节点的值
|
157
|
+
* @default undefined
|
158
|
+
*/
|
33
159
|
value?: any;
|
160
|
+
/**
|
161
|
+
* 标题
|
162
|
+
* @description 节点的标题
|
163
|
+
* @default undefined
|
164
|
+
*/
|
34
165
|
title?: React.ReactNode;
|
166
|
+
/**
|
167
|
+
* 标签
|
168
|
+
* @description 节点的显示标签
|
169
|
+
* @default undefined
|
170
|
+
*/
|
35
171
|
label: React.ReactNode;
|
172
|
+
/**
|
173
|
+
* 键值
|
174
|
+
* @description 节点的键值
|
175
|
+
* @default undefined
|
176
|
+
*/
|
36
177
|
key?: React.Key;
|
37
|
-
|
178
|
+
/**
|
179
|
+
* 子节点
|
180
|
+
* @description 子节点数组
|
181
|
+
* @default undefined
|
182
|
+
*/
|
183
|
+
children?: ProTreeSelectDefaultOptionType[];
|
38
184
|
}
|
39
|
-
|
40
|
-
|
185
|
+
/**
|
186
|
+
* 树选择属性
|
187
|
+
* @description 树选择组件的配置属性
|
188
|
+
*/
|
189
|
+
export interface ProTreeSelectType extends Omit<TreeSelectProps, 'onSearch'> {
|
190
|
+
/**
|
191
|
+
* 是否查看模式
|
192
|
+
* @description 是否为查看模式
|
193
|
+
* @default false
|
194
|
+
*/
|
41
195
|
isView?: boolean;
|
42
|
-
/**
|
196
|
+
/**
|
197
|
+
* 过滤树节点
|
198
|
+
* @description 是否根据输入项进行筛选
|
199
|
+
* @default true
|
200
|
+
*/
|
43
201
|
filterTreeNode?: boolean;
|
44
|
-
/**
|
202
|
+
/**
|
203
|
+
* 树节点过滤属性
|
204
|
+
* @description 输入项过滤对应的 treeNode 属性
|
205
|
+
* @default 'label'
|
206
|
+
*/
|
45
207
|
treeNodeFilterProp?: string;
|
46
|
-
/**
|
208
|
+
/**
|
209
|
+
* 默认展开所有
|
210
|
+
* @description 是否展开所有树
|
211
|
+
* @default false
|
212
|
+
*/
|
47
213
|
treeDefaultExpandAll?: boolean;
|
48
|
-
/**
|
214
|
+
/**
|
215
|
+
* 树可选择
|
216
|
+
* @description 是否支持复选、多选
|
217
|
+
* @default true
|
218
|
+
*/
|
49
219
|
treeCheckable?: boolean;
|
50
|
-
/**
|
220
|
+
/**
|
221
|
+
* 宽度
|
222
|
+
* @description 输入框宽度
|
223
|
+
* @default '100%'
|
224
|
+
*/
|
51
225
|
width?: any;
|
52
|
-
/**
|
226
|
+
/**
|
227
|
+
* 枚举代码
|
228
|
+
* @description 从localStorage里面根据此code取枚举值
|
229
|
+
* @default undefined
|
230
|
+
*/
|
53
231
|
code?: string;
|
54
|
-
/**
|
55
|
-
|
56
|
-
|
232
|
+
/**
|
233
|
+
* 数据源
|
234
|
+
* @description 选择项数据源
|
235
|
+
* @default []
|
236
|
+
*/
|
237
|
+
dataSource?: ProTreeSelectDataOptionType[];
|
238
|
+
/**
|
239
|
+
* 默认禁用值
|
240
|
+
* @description 兼容2.0版本、3.0使用view模式,查看模式值
|
241
|
+
* @default undefined
|
242
|
+
*/
|
57
243
|
defaultDisableValue?: string;
|
58
|
-
/**
|
59
|
-
|
60
|
-
|
244
|
+
/**
|
245
|
+
* 响应数据转换
|
246
|
+
* @description 格式化接口响应数据
|
247
|
+
* @default undefined
|
248
|
+
*/
|
249
|
+
transformResponse?: (data: any) => ProTreeSelectDataOptionType[];
|
250
|
+
/**
|
251
|
+
* 是否显示提示
|
252
|
+
* @description 是否展示tooltip,当label特别长的时候使用
|
253
|
+
* @default false
|
254
|
+
*/
|
61
255
|
tooltip?: boolean;
|
62
|
-
/**
|
256
|
+
/**
|
257
|
+
* 显示代码名称
|
258
|
+
* @description 是否展示code-label形式
|
259
|
+
* @default false
|
260
|
+
*/
|
63
261
|
showCodeName?: boolean;
|
64
|
-
/**
|
262
|
+
/**
|
263
|
+
* 其他属性
|
264
|
+
* @description 集成表单form的属性
|
265
|
+
* @default undefined
|
266
|
+
*/
|
65
267
|
otherProps?: ProFormOtherType;
|
268
|
+
/**
|
269
|
+
* 搜索回调
|
270
|
+
* @description 搜索时的回调函数
|
271
|
+
* @default undefined
|
272
|
+
*/
|
66
273
|
onSearch?: (value: string, useRequest: Result<any, any>) => void;
|
67
|
-
/**
|
274
|
+
/**
|
275
|
+
* 远程请求
|
276
|
+
* @description 远程请求接口配置
|
277
|
+
* @default undefined
|
278
|
+
*/
|
68
279
|
useRequest?: {
|
69
280
|
service: Service<any, any>;
|
70
281
|
options?: Options<any, any>;
|
71
282
|
};
|
283
|
+
/**
|
284
|
+
* 默认展开所有
|
285
|
+
* @description 默认展开所有树节点
|
286
|
+
* @default false
|
287
|
+
*/
|
72
288
|
defaultExpandAll?: boolean;
|
289
|
+
/**
|
290
|
+
* 展开的节点
|
291
|
+
* @description 展开指定的树节点
|
292
|
+
* @default []
|
293
|
+
*/
|
73
294
|
expandedKeys?: any[];
|
295
|
+
/**
|
296
|
+
* 严格选择
|
297
|
+
* @description 父子节点选中状态不再关联
|
298
|
+
* @default false
|
299
|
+
*/
|
74
300
|
checkStrictly?: boolean;
|
301
|
+
/**
|
302
|
+
* 可勾选
|
303
|
+
* @description 是否可以勾选
|
304
|
+
* @default false
|
305
|
+
*/
|
75
306
|
checkable?: boolean;
|
307
|
+
/**
|
308
|
+
* 显示省略号
|
309
|
+
* @description 是否单行省略
|
310
|
+
* @default false
|
311
|
+
*/
|
76
312
|
showEllipse?: boolean;
|
313
|
+
/**
|
314
|
+
* 是否差异比对
|
315
|
+
* @description 是否处于比对模式
|
316
|
+
* @default false
|
317
|
+
*/
|
77
318
|
isDiffChange?: boolean;
|
78
319
|
}
|
79
|
-
|
80
|
-
|
320
|
+
/**
|
321
|
+
* ProSelect操作
|
322
|
+
* @description ProSelect组件的操作接口
|
323
|
+
*/
|
324
|
+
export interface ProTreeSelectActionType {
|
325
|
+
/**
|
326
|
+
* useRequest引用
|
327
|
+
* @description 获取发生请求的useRequest的ref
|
328
|
+
* @default undefined
|
329
|
+
*/
|
81
330
|
useRequestRef: Result<any, any>;
|
82
331
|
}
|
83
|
-
|
332
|
+
/**
|
333
|
+
* 树节点数据
|
334
|
+
* @description 树节点的数据结构
|
335
|
+
*/
|
336
|
+
export interface ProTreeSelectNodeDataType extends ProTreeSelectDataOptionType {
|
337
|
+
/**
|
338
|
+
* 标题
|
339
|
+
* @description 节点的标题
|
340
|
+
* @default undefined
|
341
|
+
*/
|
84
342
|
title: string;
|
343
|
+
/**
|
344
|
+
* 值
|
345
|
+
* @description 节点的值
|
346
|
+
* @default undefined
|
347
|
+
*/
|
85
348
|
value: string;
|
86
|
-
|
349
|
+
/**
|
350
|
+
* 子节点
|
351
|
+
* @description 子节点数组
|
352
|
+
* @default undefined
|
353
|
+
*/
|
354
|
+
children?: ProTreeSelectNodeDataType[];
|
355
|
+
/**
|
356
|
+
* 图标
|
357
|
+
* @description 节点的图标
|
358
|
+
* @default undefined
|
359
|
+
*/
|
87
360
|
icon?: React.ReactNode;
|
361
|
+
/**
|
362
|
+
* 隐藏节点类名
|
363
|
+
* @description 隐藏节点的类名
|
364
|
+
* @default undefined
|
365
|
+
*/
|
88
366
|
hideNodeClass?: string;
|
89
367
|
}
|
90
|
-
|
368
|
+
/**
|
369
|
+
* 树选择表单属性
|
370
|
+
* @description 树选择表单的配置属性
|
371
|
+
*/
|
372
|
+
export interface ProTreeSelectFormType {
|
373
|
+
/**
|
374
|
+
* 类型
|
375
|
+
* @description 表单项类型
|
376
|
+
* @default undefined
|
377
|
+
*/
|
91
378
|
type: string;
|
379
|
+
/**
|
380
|
+
* 标签
|
381
|
+
* @description 表单项标签
|
382
|
+
* @default undefined
|
383
|
+
*/
|
92
384
|
label: string;
|
385
|
+
/**
|
386
|
+
* 名称
|
387
|
+
* @description 表单项字段名
|
388
|
+
* @default undefined
|
389
|
+
*/
|
93
390
|
name?: string;
|
94
|
-
|
391
|
+
/**
|
392
|
+
* 字段属性
|
393
|
+
* @description 树选择组件的属性配置
|
394
|
+
* @default undefined
|
395
|
+
*/
|
396
|
+
fieldProps?: ProTreeSelectType;
|
397
|
+
/**
|
398
|
+
* 自定义属性
|
399
|
+
* @description 其他自定义属性
|
400
|
+
* @default undefined
|
401
|
+
*/
|
95
402
|
[key: string]: any;
|
96
403
|
}
|
97
|
-
|
404
|
+
/**
|
405
|
+
* 响应数据
|
406
|
+
* @description API响应数据结构
|
407
|
+
*/
|
408
|
+
export interface ProTreeSelectResponseDataType {
|
409
|
+
/**
|
410
|
+
* 状态码
|
411
|
+
* @description 接口返回的状态码
|
412
|
+
* @default undefined
|
413
|
+
*/
|
98
414
|
status: number;
|
415
|
+
/**
|
416
|
+
* 消息
|
417
|
+
* @description 接口返回的消息
|
418
|
+
* @default undefined
|
419
|
+
*/
|
99
420
|
message: string;
|
421
|
+
/**
|
422
|
+
* 数据
|
423
|
+
* @description 接口返回的数据
|
424
|
+
* @default undefined
|
425
|
+
*/
|
100
426
|
data: any;
|
427
|
+
/**
|
428
|
+
* 是否成功
|
429
|
+
* @description 请求是否成功
|
430
|
+
* @default undefined
|
431
|
+
*/
|
101
432
|
success?: boolean;
|
433
|
+
/**
|
434
|
+
* 代码
|
435
|
+
* @description 业务代码
|
436
|
+
* @default undefined
|
437
|
+
*/
|
102
438
|
code?: number;
|
103
439
|
}
|
440
|
+
export type PropTreeSelectProps = ProTreeSelectType;
|
441
|
+
export type ProSelectAction = ProTreeSelectActionType;
|