@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
@@ -258,11 +258,12 @@ export var transformColumns = function transformColumns() {
|
|
258
258
|
var required = isBoolean(item.required) ? item.required : false;
|
259
259
|
if (typeof item.required === 'function') {
|
260
260
|
var namePath = getNamePath(name, virtualKey);
|
261
|
-
var
|
261
|
+
var namePathArray = Array.isArray(namePath) ? namePath : [namePath];
|
262
|
+
var rowData = form.getFieldValue([].concat(_toConsumableArray(namePathArray), [index])) || {};
|
262
263
|
required = item.required(rowData[columnName], rowData, {
|
263
264
|
form: form,
|
264
265
|
index: index,
|
265
|
-
namePath: [].concat(_toConsumableArray(
|
266
|
+
namePath: [].concat(_toConsumableArray(namePathArray), [index])
|
266
267
|
});
|
267
268
|
}
|
268
269
|
// 样式处理
|
@@ -282,17 +283,18 @@ export var transformColumns = function transformColumns() {
|
|
282
283
|
if (virtualKey && editingKeys.includes(record.rowKey)) {
|
283
284
|
namePath = getNamePath(name, virtualKey);
|
284
285
|
}
|
286
|
+
var namePathArray = Array.isArray(namePath) ? namePath : [namePath];
|
285
287
|
var columnNamePath = isArray(columnName) ? columnName : [columnName];
|
286
288
|
index = tools.calc(firstIndex, '+', index);
|
287
289
|
// 设置单元格formItem的namePath
|
288
|
-
var cellName = columnName ? [].concat(_toConsumableArray(
|
290
|
+
var cellName = columnName ? [].concat(_toConsumableArray(namePathArray), [index], _toConsumableArray(columnNamePath)) : [].concat(_toConsumableArray(namePathArray), [index]);
|
289
291
|
var _text = text;
|
290
292
|
// 当传入组合组件时,name需要重新组合一下,以防names中key与dataIndex重叠
|
291
293
|
if (names === null || names === void 0 ? void 0 : names.length) {
|
292
294
|
var nextDataIndex = splitNames(names);
|
293
295
|
item.dataIndex = nextDataIndex;
|
294
296
|
item.key = nextDataIndex;
|
295
|
-
cellName = [].concat(_toConsumableArray(
|
297
|
+
cellName = [].concat(_toConsumableArray(namePathArray), [index, nextDataIndex]);
|
296
298
|
// 给names返回数组值
|
297
299
|
_text = names.map(function (item) {
|
298
300
|
return record === null || record === void 0 ? void 0 : record[item];
|
@@ -1,32 +1,67 @@
|
|
1
|
+
import { Key } from 'react';
|
2
|
+
import { FormInstance } from 'antd/es/form';
|
3
|
+
import { NamePath } from 'antd/es/form/interface';
|
4
|
+
/**
|
5
|
+
* 生成随机字符串
|
6
|
+
* @returns 随机字符串
|
7
|
+
*/
|
1
8
|
export declare const getRandom: () => string;
|
2
|
-
|
3
|
-
|
9
|
+
/**
|
10
|
+
* 深层次对比两个对象且取出来差异值
|
11
|
+
* @param object 比较对象
|
12
|
+
* @param base 基准对象
|
13
|
+
* @returns 差异对象
|
14
|
+
*/
|
15
|
+
export declare const difference: <T extends Record<string, any>, U extends Record<string, any>>(object: T, base: U) => Record<string, any>;
|
16
|
+
/**
|
17
|
+
* 数组字段循环校验,解决validateFields无法批量校验的问题
|
18
|
+
* @param validateKeys 校验键数组
|
19
|
+
* @param form 表单实例
|
20
|
+
* @param rowName 行名称路径
|
21
|
+
* @returns 校验结果Promise
|
22
|
+
*/
|
23
|
+
export declare const customValidate: (validateKeys: string[], form: FormInstance, rowName: NamePath) => Promise<any>;
|
4
24
|
/**
|
5
25
|
* 拆解数组names
|
6
|
-
* @param names
|
7
|
-
* @returns
|
26
|
+
* @param names 名称数组
|
27
|
+
* @returns 拆解后的字符串
|
8
28
|
*/
|
9
|
-
export declare const splitNames: (names: any[]) =>
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
29
|
+
export declare const splitNames: (names: any[]) => string;
|
30
|
+
/**
|
31
|
+
* 获取中间formItem的name
|
32
|
+
* @param name 名称路径
|
33
|
+
* @param virtualKey 虚拟键
|
34
|
+
* @returns 完整名称路径数组
|
35
|
+
*/
|
36
|
+
export declare const getNamePath: (name: NamePath, virtualKey?: string) => (string | number)[];
|
37
|
+
/**
|
38
|
+
* 删除操作
|
39
|
+
* @param params 删除参数
|
40
|
+
*/
|
41
|
+
export declare const onDelete: ({ name, form, virtualKey, selectedRowKeys, }: {
|
42
|
+
name: NamePath;
|
43
|
+
form: FormInstance;
|
44
|
+
virtualKey?: string;
|
45
|
+
selectedRowKeys: Key[];
|
16
46
|
}) => void;
|
17
|
-
/**
|
47
|
+
/**
|
48
|
+
* 获取最终的disabled, 两张模式【子级优先,全局优先
|
18
49
|
* 全局优先:globalControl为true时,全局控制
|
19
50
|
* 子级优先:globalControl为false时,子级控制
|
20
|
-
* @param
|
21
|
-
* @
|
22
|
-
* @param column 当前列
|
23
|
-
* @param tabledDisabled 表格的disabled
|
24
|
-
* @param columnFieldProps 当前列的fieldProps
|
25
|
-
* @param params 当前列的参数
|
26
|
-
* @param rowDisabled 行禁用参数
|
51
|
+
* @param params 禁用参数
|
52
|
+
* @returns 是否禁用
|
27
53
|
*/
|
28
|
-
export declare const getDisabled: ({ globalControl, formDisabled, column, tabledDisabled, columnFieldProps, params, rowDisabled, }:
|
29
|
-
|
54
|
+
export declare const getDisabled: ({ globalControl, formDisabled, column, tabledDisabled, columnFieldProps, params, rowDisabled, }: {
|
55
|
+
globalControl: boolean;
|
56
|
+
formDisabled?: boolean | ((record: any) => boolean);
|
57
|
+
column: any;
|
58
|
+
tabledDisabled?: boolean;
|
59
|
+
columnFieldProps?: any;
|
60
|
+
params: any[];
|
61
|
+
rowDisabled?: any;
|
62
|
+
}) => boolean;
|
63
|
+
/**
|
64
|
+
* 表格自动滚动到报错位置
|
30
65
|
*/
|
31
66
|
export declare const handleScrollToError: () => void;
|
32
67
|
/**
|
@@ -34,7 +69,7 @@ export declare const handleScrollToError: () => void;
|
|
34
69
|
* @param value 需要深拷贝的对象
|
35
70
|
* @returns 深拷贝后的对象,其中的React节点会被保留
|
36
71
|
*/
|
37
|
-
export declare function cloneDeepFilterNode(value:
|
72
|
+
export declare function cloneDeepFilterNode<T>(value: T): T;
|
38
73
|
/**
|
39
74
|
* 分页校验
|
40
75
|
*/
|
@@ -7,32 +7,47 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
7
7
|
import React from 'react';
|
8
8
|
import { tools, validate } from '@zat-design/utils';
|
9
9
|
import { cloneDeep, cloneDeepWith, isString, isObject, isEqual, transform, isFunction, isBoolean, get } from 'lodash';
|
10
|
+
/**
|
11
|
+
* 生成随机字符串
|
12
|
+
* @returns 随机字符串
|
13
|
+
*/
|
10
14
|
export var getRandom = function getRandom() {
|
11
15
|
return Math.random().toString(36).slice(-6);
|
12
16
|
};
|
13
|
-
|
17
|
+
/**
|
18
|
+
* 深层次对比两个对象且取出来差异值
|
19
|
+
* @param object 比较对象
|
20
|
+
* @param base 基准对象
|
21
|
+
* @returns 差异对象
|
22
|
+
*/
|
14
23
|
export var difference = function difference(object, base) {
|
15
24
|
var _changes = function changes(object, base) {
|
16
25
|
return transform(object, function (result, value, key) {
|
17
|
-
if (!isEqual(value, base[key])) {
|
18
|
-
result[key] = isObject(value) && isObject(base[key]) ? _changes(value, base[key]) : value;
|
26
|
+
if (!isEqual(value, base === null || base === void 0 ? void 0 : base[key])) {
|
27
|
+
result[key] = isObject(value) && isObject(base === null || base === void 0 ? void 0 : base[key]) ? _changes(value, base === null || base === void 0 ? void 0 : base[key]) : value;
|
19
28
|
}
|
20
29
|
});
|
21
30
|
};
|
22
31
|
return _changes(object, base);
|
23
32
|
};
|
24
|
-
|
33
|
+
/**
|
34
|
+
* 数组字段循环校验,解决validateFields无法批量校验的问题
|
35
|
+
* @param validateKeys 校验键数组
|
36
|
+
* @param form 表单实例
|
37
|
+
* @param rowName 行名称路径
|
38
|
+
* @returns 校验结果Promise
|
39
|
+
*/
|
25
40
|
export var customValidate = function customValidate(validateKeys, form, rowName) {
|
26
41
|
var array = [];
|
27
42
|
validateKeys.forEach(function (key) {
|
28
|
-
array.push(
|
43
|
+
array.push([].concat(_toConsumableArray(Array.isArray(rowName) ? rowName : [rowName]), [key]));
|
29
44
|
});
|
30
45
|
return form.validateFields(array);
|
31
46
|
};
|
32
47
|
/**
|
33
48
|
* 拆解数组names
|
34
|
-
* @param names
|
35
|
-
* @returns
|
49
|
+
* @param names 名称数组
|
50
|
+
* @returns 拆解后的字符串
|
36
51
|
*/
|
37
52
|
export var splitNames = function splitNames(names) {
|
38
53
|
var result;
|
@@ -49,14 +64,23 @@ export var splitNames = function splitNames(names) {
|
|
49
64
|
result = resultArray.join('-');
|
50
65
|
return result;
|
51
66
|
};
|
52
|
-
|
67
|
+
/**
|
68
|
+
* 获取中间formItem的name
|
69
|
+
* @param name 名称路径
|
70
|
+
* @param virtualKey 虚拟键
|
71
|
+
* @returns 完整名称路径数组
|
72
|
+
*/
|
53
73
|
export var getNamePath = function getNamePath(name, virtualKey) {
|
54
74
|
var nextName = cloneDeep(Array.isArray(name) ? name : [name]);
|
55
|
-
var
|
56
|
-
|
75
|
+
var lastIndex = nextName.length - 1;
|
76
|
+
// 确保最后一个元素是字符串类型
|
77
|
+
nextName[lastIndex] = "".concat(nextName[lastIndex]).concat(virtualKey ? "-".concat(virtualKey) : '');
|
57
78
|
return nextName;
|
58
79
|
};
|
59
|
-
|
80
|
+
/**
|
81
|
+
* 删除操作
|
82
|
+
* @param params 删除参数
|
83
|
+
*/
|
60
84
|
export var onDelete = function onDelete(_ref) {
|
61
85
|
var name = _ref.name,
|
62
86
|
form = _ref.form,
|
@@ -81,16 +105,12 @@ export var onDelete = function onDelete(_ref) {
|
|
81
105
|
}
|
82
106
|
}
|
83
107
|
};
|
84
|
-
/**
|
108
|
+
/**
|
109
|
+
* 获取最终的disabled, 两张模式【子级优先,全局优先
|
85
110
|
* 全局优先:globalControl为true时,全局控制
|
86
111
|
* 子级优先:globalControl为false时,子级控制
|
87
|
-
* @param
|
88
|
-
* @
|
89
|
-
* @param column 当前列
|
90
|
-
* @param tabledDisabled 表格的disabled
|
91
|
-
* @param columnFieldProps 当前列的fieldProps
|
92
|
-
* @param params 当前列的参数
|
93
|
-
* @param rowDisabled 行禁用参数
|
112
|
+
* @param params 禁用参数
|
113
|
+
* @returns 是否禁用
|
94
114
|
*/
|
95
115
|
export var getDisabled = function getDisabled(_ref2) {
|
96
116
|
var _ref3, _column$disabled;
|
@@ -103,7 +123,7 @@ export var getDisabled = function getDisabled(_ref2) {
|
|
103
123
|
rowDisabled = _ref2.rowDisabled;
|
104
124
|
var convertToBoolean = function convertToBoolean(value) {
|
105
125
|
if (Array.isArray(value)) {
|
106
|
-
return value;
|
126
|
+
return Boolean(value.length);
|
107
127
|
}
|
108
128
|
if (value === null || value === undefined || value === '') {
|
109
129
|
return false;
|
@@ -157,7 +177,8 @@ export var getDisabled = function getDisabled(_ref2) {
|
|
157
177
|
}
|
158
178
|
return convertToBoolean((_ref3 = (_column$disabled = column === null || column === void 0 ? void 0 : column.disabled) !== null && _column$disabled !== void 0 ? _column$disabled : columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled) !== null && _ref3 !== void 0 ? _ref3 : tabledDisabled);
|
159
179
|
};
|
160
|
-
/**
|
180
|
+
/**
|
181
|
+
* 表格自动滚动到报错位置
|
161
182
|
*/
|
162
183
|
export var handleScrollToError = function handleScrollToError() {
|
163
184
|
setTimeout(function () {
|
@@ -217,6 +238,11 @@ export function cloneDeepFilterNode(value) {
|
|
217
238
|
}
|
218
239
|
});
|
219
240
|
}
|
241
|
+
/**
|
242
|
+
* 判断值是否为空
|
243
|
+
* @param value 需要判断的值
|
244
|
+
* @returns 是否为空
|
245
|
+
*/
|
220
246
|
var _isNull = function isNull(value) {
|
221
247
|
if (Array.isArray(value) && value.length) {
|
222
248
|
return value.some(function (item) {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
2
|
import { RadioProps, CheckboxProps } from 'antd';
|
3
3
|
import { Service, Options } from 'ahooks/lib/useRequest/src/types';
|
4
|
-
import { ProFormOtherType } from '../
|
5
|
-
import { PropSelectProps } from '../ProSelect/propsType';
|
4
|
+
import type { ProFormOtherType } from '../ProForm/propsType';
|
5
|
+
import type { PropSelectProps } from '../ProSelect/propsType';
|
6
6
|
/**
|
7
7
|
* @description 数据选项类型
|
8
8
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { FooterRenderType } from './propsType';
|
2
|
+
import type { FooterRenderType } from './propsType';
|
3
3
|
export declare const PRO_FORM_CACHE = "PRO_FORM_CACHE";
|
4
4
|
declare const FormFooter: React.FC<FooterRenderType>;
|
5
5
|
export default FormFooter;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { CheckboxGroupProps } from 'antd/es/checkbox';
|
3
|
-
import { ProFormOtherType } from '../../../propsType';
|
3
|
+
import type { ProFormOtherType } from '../../../propsType';
|
4
4
|
export interface Props extends Omit<CheckboxGroupProps, 'options'> {
|
5
5
|
dataSource: any[];
|
6
6
|
fieldNames?: {
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { InputProps } from 'antd';
|
2
|
-
import { FormInstance } from 'antd/es/form/Form';
|
3
|
-
import { ProFormOtherType } from '../../../propsType';
|
1
|
+
import type { InputProps } from 'antd';
|
2
|
+
import type { FormInstance } from 'antd/es/form/Form';
|
3
|
+
import type { ProFormOtherType } from '../../../propsType';
|
4
4
|
export interface ProFieldType<T = any> {
|
5
5
|
from?: FormInstance<T>;
|
6
6
|
label?: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { InputNumberProps } from 'antd';
|
3
|
-
import { ProFormOtherType } from '../../../propsType';
|
3
|
+
import type { ProFormOtherType } from '../../../propsType';
|
4
4
|
export interface Props extends Omit<InputNumberProps, 'onBlur'> {
|
5
5
|
otherProps?: ProFormOtherType;
|
6
6
|
range?: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { RadioChangeEvent, RadioProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
import { ProFormOtherType } from '../../../propsType';
|
3
|
+
import type { ProFormOtherType } from '../../../propsType';
|
4
4
|
export interface Props extends Omit<RadioProps, 'options' | 'onChange'> {
|
5
5
|
dataSource: any[];
|
6
6
|
onChange: (value: any, e: RadioChangeEvent) => void;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { RangePickerProps } from 'antd/es/date-picker';
|
2
2
|
import React from 'react';
|
3
|
-
import { ProFormOtherType } from '../../../propsType';
|
3
|
+
import type { ProFormOtherType } from '../../../propsType';
|
4
4
|
import { Props as RangeProps } from './useDateRange';
|
5
5
|
export type Props = {
|
6
6
|
otherProps?: ProFormOtherType;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SelectProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
import { ProFormOtherType } from '../../../propsType';
|
3
|
+
import type { ProFormOtherType } from '../../../propsType';
|
4
4
|
export interface Props extends SelectProps {
|
5
5
|
dataSource?: any[];
|
6
6
|
scrollFollowParent?: boolean;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SwitchProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
import { ProFormOtherType } from '../../../propsType';
|
3
|
+
import type { ProFormOtherType } from '../../../propsType';
|
4
4
|
export interface Props extends Omit<SwitchProps, 'value'> {
|
5
5
|
value: any;
|
6
6
|
otherProps?: ProFormOtherType;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { CheckboxProps } from 'antd';
|
3
|
-
import { ProFormOtherType } from '../../../propsType';
|
3
|
+
import type { ProFormOtherType } from '../../../propsType';
|
4
4
|
export interface Props extends CheckboxProps {
|
5
5
|
label?: string;
|
6
6
|
otherProps?: ProFormOtherType;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { TextAreaProps } from 'antd/es/input';
|
2
2
|
import React from 'react';
|
3
|
-
import { ProFormOtherType } from '../../../propsType';
|
3
|
+
import type { ProFormOtherType } from '../../../propsType';
|
4
4
|
import './index.less';
|
5
5
|
export interface Props extends TextAreaProps {
|
6
6
|
otherProps?: ProFormOtherType;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { TimePickerProps } from 'antd/es/time-picker';
|
3
|
-
import { ProFormOtherType } from '../../../propsType';
|
3
|
+
import type { ProFormOtherType } from '../../../propsType';
|
4
4
|
import './style/index.less';
|
5
5
|
export interface Props {
|
6
6
|
valueType?: string;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { RowProps } from 'antd';
|
3
|
-
import {
|
2
|
+
import type { RowProps } from 'antd';
|
3
|
+
import type { ProFormColumnType, ProFormOtherType, DiffConfigType } from '../../../propsType';
|
4
4
|
export interface ContainerType {
|
5
|
-
children?:
|
5
|
+
children?: ProFormColumnType[];
|
6
6
|
otherProps?: ProFormOtherType;
|
7
7
|
rowProps?: RowProps;
|
8
8
|
className?: string;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FormInstance, FormListFieldData, FormListOperation } from 'antd';
|
2
2
|
import { InternalNamePath } from 'antd/es/form/interface';
|
3
3
|
import React from 'react';
|
4
|
-
import { FormListType, ActionType, FormListMode } from '../propsType';
|
4
|
+
import type { FormListType, ActionType, FormListMode } from '../propsType';
|
5
5
|
export interface Props {
|
6
6
|
min?: FormListType['min'];
|
7
7
|
max?: FormListType['max'];
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
3
3
|
import { InternalNamePath } from 'antd/es/form/interface';
|
4
4
|
import type { levelType } from '../../../../../ProLayout/components/ProCollapse/PropTypes';
|
5
5
|
import type { FormListType } from '../propsType';
|
6
|
-
import { DiffConfigType } from '../../../../propsType';
|
6
|
+
import type { DiffConfigType } from '../../../../propsType';
|
7
7
|
interface Props extends Omit<FormListType, 'toolbarProps'> {
|
8
8
|
index: number;
|
9
9
|
namePath: InternalNamePath;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ColProps, FormListFieldData } from 'antd';
|
2
2
|
import React from 'react';
|
3
3
|
import { InternalNamePath } from 'antd/es/form/interface';
|
4
|
-
import { FormListType } from '../propsType';
|
5
|
-
import { DiffConfigType } from '../../../../propsType';
|
4
|
+
import type { FormListType } from '../propsType';
|
5
|
+
import type { DiffConfigType } from '../../../../propsType';
|
6
6
|
interface Props extends Omit<FormListType, 'toolbarProps'> {
|
7
7
|
className?: string;
|
8
8
|
index: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { InternalNamePath } from 'antd/es/form/interface';
|
2
2
|
import React from 'react';
|
3
|
-
import { ToolbarActionType } from '../propsType';
|
3
|
+
import type { ToolbarActionType } from '../propsType';
|
4
4
|
import { Props as ActionButtonProps } from './ActionButton';
|
5
5
|
interface Props extends Omit<ActionButtonProps, 'actionProps' | 'field' | 'index' | 'mode' | 'namePath'> {
|
6
6
|
toolbarProps: ToolbarActionType[];
|
@@ -3,7 +3,7 @@ import type { FormInstance } from 'antd/es/form/Form';
|
|
3
3
|
import type { ButtonProps, FormListFieldData, FormListOperation, PopconfirmProps } from 'antd';
|
4
4
|
import type { InternalNamePath } from 'antd/es/form/interface';
|
5
5
|
import type { levelType } from '../../../../ProLayout/components/ProCollapse/PropTypes';
|
6
|
-
import type {
|
6
|
+
import type { ProFormColumnType, ProFormOtherType } from '../../../propsType';
|
7
7
|
export type TitleRender = (record: Record<string, any>, index: number, form: FormInstance) => any;
|
8
8
|
export type TitleType = string | React.ReactNode | TitleRender;
|
9
9
|
type Callback = (record: any, option: Pick<Option, 'namePath' | 'index' | 'operation' | 'form'>) => any | void;
|
@@ -32,7 +32,7 @@ export interface ToolbarActionType extends Omit<ActionType, 'actionType' | 'onHa
|
|
32
32
|
}
|
33
33
|
export type FormListMode = 'block' | 'line' | 'less';
|
34
34
|
export interface FormListType {
|
35
|
-
columns:
|
35
|
+
columns: ProFormColumnType[];
|
36
36
|
otherProps?: ProFormOtherType;
|
37
37
|
form?: FormInstance;
|
38
38
|
min?: number;
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
2
2
|
import { FormItemProps, ModalFuncProps, SpaceProps } from 'antd';
|
3
3
|
import { FormInstance } from 'antd/es/form/Form';
|
4
4
|
import { NamePath } from 'antd/lib/form/interface';
|
5
|
-
import { ColumnTypeMap, FunctionArgs, ProFormValueType, ReactiveFunction, ViewType } from '
|
5
|
+
import type { ColumnTypeMap, FunctionArgs, ProFormValueType, ReactiveFunction, ViewType } from '../../render/propsType';
|
6
6
|
export interface SpaceType extends SpaceProps {
|
7
7
|
/**
|
8
8
|
* 是否紧凑合并
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { InternalNamePath, NamePath } from 'antd/lib/form/interface';
|
3
3
|
import { FormInstance } from 'antd';
|
4
|
-
import { GroupColumnType, GroupType, SpaceType } from './propsType';
|
5
|
-
import {
|
4
|
+
import type { GroupColumnType, GroupType, SpaceType } from './propsType';
|
5
|
+
import type { ProFormColumnType, ReactiveFunction } from '../../render/propsType';
|
6
6
|
export type EventArgs = any[];
|
7
7
|
/**
|
8
8
|
* 插入间隔符
|
@@ -41,7 +41,7 @@ export declare const getReactiveProps: (params: Params) => {
|
|
41
41
|
fieldProps: boolean;
|
42
42
|
desensitization: [number, number];
|
43
43
|
};
|
44
|
-
type ValueTypeGetterParams = Pick<
|
44
|
+
type ValueTypeGetterParams = Pick<ProFormColumnType, 'valueType' | 'switchValue' | 'toISOString' | 'toCSTString' | 'disabled' | 'desensitization'> & {
|
45
45
|
type?: any;
|
46
46
|
mode?: string;
|
47
47
|
desensitizationKey?: string;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { ProCascaderType } from './propsType';
|
2
|
+
import type { ProCascaderType } from './propsType';
|
3
3
|
declare const _default: import("react").MemoExoticComponent<(props: ProCascaderType) => import("react/jsx-runtime").JSX.Element>;
|
4
4
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FC } from 'react';
|
2
|
-
import { ProCombinationType, ChildPropsItemType } from './propsType';
|
2
|
+
import type { ProCombinationType, ChildPropsItemType } from './propsType';
|
3
3
|
import './style/index.less';
|
4
4
|
export declare const ProCombination: FC<ProCombinationType>;
|
5
5
|
export declare const childPropsItemProps: FC<ChildPropsItemType>;
|
@@ -2,7 +2,7 @@ import { FieldNames } from 'rc-select/lib/Select';
|
|
2
2
|
import { FormInstance } from 'antd';
|
3
3
|
import React from 'react';
|
4
4
|
import * as componentMap from '../../index';
|
5
|
-
import { ProFormOtherType } from '../../../propsType';
|
5
|
+
import type { ProFormOtherType } from '../../../propsType';
|
6
6
|
export interface ChildPropsItemType {
|
7
7
|
/**
|
8
8
|
* @description 要显示什么组件,支持Input/Select
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { ProModalSelectType } from './propsType';
|
2
|
+
import type { ProModalSelectType } from './propsType';
|
3
3
|
declare const _default: React.ForwardRefExoticComponent<Omit<ProModalSelectType, "ref"> & React.RefAttributes<unknown>>;
|
4
4
|
export default _default;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { FormInstance, InputProps, SelectProps, ModalProps } from 'antd';
|
2
2
|
import { Service, Options } from 'ahooks/lib/useRequest/src/types';
|
3
3
|
import React from 'react';
|
4
|
-
import {
|
5
|
-
import { ProFormOtherType } from '../../../propsType';
|
4
|
+
import type { ProFormColumnType } from '../../render/propsType';
|
5
|
+
import type { ProFormOtherType } from '../../../propsType';
|
6
6
|
/**
|
7
7
|
* 模态框确认按钮回调函数类型
|
8
8
|
* @param list 选中的数据列表
|
@@ -27,7 +27,7 @@ interface ConfigOption {
|
|
27
27
|
initParams?: any;
|
28
28
|
};
|
29
29
|
/** 表单列配置项 */
|
30
|
-
formColumns?:
|
30
|
+
formColumns?: ProFormColumnType[];
|
31
31
|
/** 选择模式:单选(radio)或多选(checkbox) */
|
32
32
|
type?: 'radio' | 'checkbox';
|
33
33
|
/** 是否开启分页功能 */
|
@@ -92,10 +92,10 @@ interface ProModalPropsType {
|
|
92
92
|
/** 模态框选择器属性类型(结合Select和Input属性) */
|
93
93
|
export declare type ProModalSelectPropsType = SelectProps & InputProps & ProModalPropsType;
|
94
94
|
/** 配置选项类型 */
|
95
|
-
export type
|
95
|
+
export type ProModalSelectConfigType = ConfigOption;
|
96
96
|
/** 模态框属性类型 */
|
97
97
|
export type ProModalType = Omit<ProModalPropsType, 'configOption'> & {
|
98
|
-
configOption:
|
98
|
+
configOption: ProModalSelectConfigType;
|
99
99
|
};
|
100
100
|
/** 模态框选择器类型(结合Select和Input属性) */
|
101
101
|
export type ProModalSelectType = SelectProps & InputProps & ProModalType;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
declare const ProNumberRange: (props:
|
1
|
+
import type { ProNumberRangeType } from './propsType';
|
2
|
+
declare const ProNumberRange: (props: ProNumberRangeType) => any;
|
3
3
|
export default ProNumberRange;
|
@@ -2,9 +2,9 @@ import { DatePickerProps, TimePickerProps } from 'antd';
|
|
2
2
|
import { PickerPanelDateProps } from 'antd/lib/calendar/generateCalendar';
|
3
3
|
import { Moment } from 'moment';
|
4
4
|
import React from 'react';
|
5
|
-
import { ProFormOtherType } from '../../../propsType';
|
5
|
+
import type { ProFormOtherType } from '../../../propsType';
|
6
6
|
import { Props as ProRangeLimitType } from '../ProRangeLimit';
|
7
|
-
import { DistributiveOmit } from '../../../../ProForm/propsType';
|
7
|
+
import type { DistributiveOmit } from '../../../../ProForm/propsType';
|
8
8
|
export type DateType = DatePickerProps['value'];
|
9
9
|
export type ProTimeLimitType = DistributiveOmit<DatePickerProps, 'value' | 'onChange' | 'mode'> & {
|
10
10
|
value?: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { InputProps, ModalProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
import {
|
3
|
+
import type { ProFormColumnType } from '../../render/propsType';
|
4
4
|
type RequestFunction<P = Record<string, any> | void, R = any> = (params: P, ...args: any[]) => Promise<R>;
|
5
5
|
type OnOkFunction = (list: Record<string, any>[]) => boolean;
|
6
6
|
interface IConfigOption {
|
@@ -8,7 +8,7 @@ interface IConfigOption {
|
|
8
8
|
fetchOptions: RequestFunction;
|
9
9
|
useRequestOptions: object;
|
10
10
|
conditionKey: string;
|
11
|
-
conditionColumns:
|
11
|
+
conditionColumns: ProFormColumnType[];
|
12
12
|
defaultParams: Record<string, any>;
|
13
13
|
withPagination: boolean;
|
14
14
|
paginationPosition: 'tableBottom' | 'modalBottom';
|