@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,91 +1,300 @@
|
|
1
1
|
import { ReactNode, CSSProperties } from 'react';
|
2
2
|
import { Service, Options } from 'ahooks/lib/useRequest/src/types';
|
3
|
-
import { ProFormOtherType } from '../ProForm/propsType';
|
4
|
-
|
3
|
+
import type { ProFormOtherType } from '../ProForm/propsType';
|
4
|
+
/**
|
5
|
+
* 树数据结构
|
6
|
+
* @description 定义树节点的数据结构
|
7
|
+
*/
|
8
|
+
export interface ProTreeModalDataType {
|
9
|
+
/**
|
10
|
+
* 节点标签
|
11
|
+
* @description 显示的节点文本
|
12
|
+
* @default undefined
|
13
|
+
*/
|
5
14
|
label: string;
|
15
|
+
/**
|
16
|
+
* 节点值
|
17
|
+
* @description 节点的唯一标识
|
18
|
+
* @default undefined
|
19
|
+
*/
|
6
20
|
value: string;
|
7
|
-
|
8
|
-
|
21
|
+
/**
|
22
|
+
* 子节点
|
23
|
+
* @description 当前节点的子节点数组
|
24
|
+
* @default undefined
|
25
|
+
*/
|
26
|
+
children?: ProTreeModalDataType[];
|
27
|
+
/**
|
28
|
+
* 是否禁用
|
29
|
+
* @description 禁用不可操作
|
30
|
+
* @default false
|
31
|
+
*/
|
9
32
|
disabled?: boolean;
|
10
|
-
/**
|
33
|
+
/**
|
34
|
+
* 固定位置
|
35
|
+
* @description 处理固定场景
|
36
|
+
* @default undefined
|
37
|
+
*/
|
11
38
|
fixed?: 'left' | 'right';
|
39
|
+
/**
|
40
|
+
* 是否可勾选
|
41
|
+
* @description 是否可以勾选复选框
|
42
|
+
* @default undefined
|
43
|
+
*/
|
12
44
|
checkable?: boolean;
|
45
|
+
/**
|
46
|
+
* 自定义属性
|
47
|
+
* @description 可添加任意其他属性
|
48
|
+
* @default undefined
|
49
|
+
*/
|
13
50
|
[key: string]: any;
|
14
51
|
}
|
15
|
-
|
16
|
-
|
17
|
-
|
52
|
+
/**
|
53
|
+
* 值类型
|
54
|
+
* @description 组件接受的值类型
|
55
|
+
*/
|
56
|
+
export type ProTreeModalValueType = string | number;
|
57
|
+
/**
|
58
|
+
* ProTreeModal操作对象
|
59
|
+
* @description ProTreeModal组件的操作接口
|
60
|
+
*/
|
61
|
+
export interface ProTreeModalActionType {
|
62
|
+
/**
|
63
|
+
* 值变更方法
|
64
|
+
* @description 用于获取当前选中的值数组
|
65
|
+
* @default undefined
|
66
|
+
*/
|
67
|
+
onChange: () => ProTreeModalValueType[];
|
18
68
|
}
|
19
|
-
|
69
|
+
/**
|
70
|
+
* 字段名称映射
|
71
|
+
* @description 定义树节点字段的映射关系
|
72
|
+
*/
|
73
|
+
export interface ProTreeModalFieldNamesType {
|
74
|
+
/**
|
75
|
+
* 标签字段名
|
76
|
+
* @description 指定节点标签的属性名
|
77
|
+
* @default 'label'
|
78
|
+
*/
|
20
79
|
label: string;
|
80
|
+
/**
|
81
|
+
* 值字段名
|
82
|
+
* @description 指定节点值的属性名
|
83
|
+
* @default 'value'
|
84
|
+
*/
|
21
85
|
value: string;
|
86
|
+
/**
|
87
|
+
* 子节点字段名
|
88
|
+
* @description 指定子节点的属性名
|
89
|
+
* @default 'children'
|
90
|
+
*/
|
22
91
|
children?: string;
|
23
92
|
}
|
24
|
-
|
25
|
-
|
93
|
+
/**
|
94
|
+
* 树弹框模式
|
95
|
+
* @description 弹框展示模式类型
|
96
|
+
*/
|
97
|
+
export type ProTreeModalModeType = 'tree' | 'list' | 'Cascader' | 'Tree' | 'List';
|
98
|
+
/**
|
99
|
+
* 指定模式属性
|
100
|
+
* @description 指定模式下的配置属性
|
101
|
+
*/
|
102
|
+
export interface ProTreeModalAppointType {
|
103
|
+
/**
|
104
|
+
* 是否禁用
|
105
|
+
* @description 禁用指定项或全部项
|
106
|
+
* @default undefined
|
107
|
+
*/
|
26
108
|
disabled?: boolean | boolean[];
|
27
109
|
}
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
/**
|
110
|
+
/**
|
111
|
+
* ProTreeModal组件属性
|
112
|
+
* @description ProTreeModal组件的主要配置属性
|
113
|
+
*/
|
114
|
+
export interface ProTreeModalType {
|
115
|
+
/**
|
116
|
+
* 选中值
|
117
|
+
* @description 当前选中的节点值
|
118
|
+
* @default undefined
|
119
|
+
*/
|
120
|
+
value?: ProTreeModalValueType | string[];
|
121
|
+
/**
|
122
|
+
* 字段名称映射
|
123
|
+
* @description 自定义节点的字段名称映射
|
124
|
+
* @default { label: 'label', value: 'value', children: 'children' }
|
125
|
+
*/
|
126
|
+
fieldNames?: ProTreeModalFieldNamesType;
|
127
|
+
/**
|
128
|
+
* 是否展开弹框
|
129
|
+
* @description 自定义控制modal的显示,此时没有trigger
|
130
|
+
* @default undefined
|
131
|
+
*/
|
34
132
|
open?: boolean;
|
35
|
-
/**
|
133
|
+
/**
|
134
|
+
* 列表布局
|
135
|
+
* @description 列表模式下一行放几个
|
136
|
+
* @default 24
|
137
|
+
*/
|
36
138
|
span?: number;
|
37
|
-
/**
|
38
|
-
|
39
|
-
|
139
|
+
/**
|
140
|
+
* 展示类型
|
141
|
+
* @description 展示模式,list为列表展示形式,tree为树形展示,appoint为指定模式
|
142
|
+
* @default 'list'
|
143
|
+
*/
|
144
|
+
mode?: ProTreeModalModeType;
|
145
|
+
/**
|
146
|
+
* 是否指定模式
|
147
|
+
* @description 是否开启指定模式,开启后展示形式会不同
|
148
|
+
* @default false
|
149
|
+
*/
|
40
150
|
appoint?: boolean;
|
41
|
-
/**
|
42
|
-
|
43
|
-
|
151
|
+
/**
|
152
|
+
* 指定模式参数
|
153
|
+
* @description 指定模式下传递的额外参数
|
154
|
+
* @default undefined
|
155
|
+
*/
|
156
|
+
appointProps?: ProTreeModalAppointType;
|
157
|
+
/**
|
158
|
+
* 值包含标签
|
159
|
+
* @description 开启后提交给后端的格式为 [{ label:xx, value: ""}]
|
160
|
+
* @default false
|
161
|
+
*/
|
44
162
|
labelInValue?: boolean;
|
45
|
-
/**
|
163
|
+
/**
|
164
|
+
* 查看模式
|
165
|
+
* @description 是否为查看模式,与disabled效果相同
|
166
|
+
* @default false
|
167
|
+
*/
|
46
168
|
isView?: boolean;
|
47
|
-
/**
|
169
|
+
/**
|
170
|
+
* 枚举代码
|
171
|
+
* @description 使用ProEnum的数据源
|
172
|
+
* @default undefined
|
173
|
+
*/
|
48
174
|
code?: string;
|
49
|
-
/**
|
175
|
+
/**
|
176
|
+
* 触发元素
|
177
|
+
* @description 触发弹框展开的容器
|
178
|
+
* @default undefined
|
179
|
+
*/
|
50
180
|
trigger?: string | ReactNode;
|
51
|
-
/**
|
181
|
+
/**
|
182
|
+
* 显示代码名称
|
183
|
+
* @description 是否展示code-label形式
|
184
|
+
* @default false
|
185
|
+
*/
|
52
186
|
showCodeName?: boolean;
|
53
|
-
/**
|
54
|
-
|
55
|
-
|
187
|
+
/**
|
188
|
+
* 数据源
|
189
|
+
* @description 静态数据源
|
190
|
+
* @default []
|
191
|
+
*/
|
192
|
+
dataSource?: ProTreeModalDataType[];
|
193
|
+
/**
|
194
|
+
* 最小选择个数
|
195
|
+
* @description 设置最小选择个数限制
|
196
|
+
* @default undefined
|
197
|
+
*/
|
56
198
|
min?: number;
|
57
|
-
/**
|
199
|
+
/**
|
200
|
+
* 最大选择个数
|
201
|
+
* @description 设置最大选择个数限制
|
202
|
+
* @default undefined
|
203
|
+
*/
|
58
204
|
max?: number;
|
59
|
-
/**
|
205
|
+
/**
|
206
|
+
* 超限提示
|
207
|
+
* @description 超过最大数量的提示信息,如'最多为{max}个'
|
208
|
+
* @default undefined
|
209
|
+
*/
|
60
210
|
maxMessage?: string;
|
61
|
-
/**
|
211
|
+
/**
|
212
|
+
* 是否可拖拽
|
213
|
+
* @description 列表模式下已选择项是否可拖拽排序
|
214
|
+
* @default false
|
215
|
+
*/
|
62
216
|
draggable?: boolean;
|
63
|
-
/**
|
217
|
+
/**
|
218
|
+
* 是否禁用
|
219
|
+
* @description 禁用整个组件
|
220
|
+
* @default false
|
221
|
+
*/
|
64
222
|
disabled?: any;
|
65
|
-
/**
|
223
|
+
/**
|
224
|
+
* 弹框标题
|
225
|
+
* @description 弹框的标题文本
|
226
|
+
* @default undefined
|
227
|
+
*/
|
66
228
|
title?: string | ReactNode;
|
67
|
-
/**
|
229
|
+
/**
|
230
|
+
* 全选值
|
231
|
+
* @description 全选时传给后端的标识
|
232
|
+
* @default undefined
|
233
|
+
*/
|
68
234
|
allValue?: string | number;
|
69
|
-
/**
|
235
|
+
/**
|
236
|
+
* 占位提示
|
237
|
+
* @description 搜索框提示文本
|
238
|
+
* @default '请输入'
|
239
|
+
*/
|
70
240
|
placeholder?: string;
|
71
|
-
/**
|
241
|
+
/**
|
242
|
+
* 严格选择
|
243
|
+
* @description 父子节点选中状态不再关联
|
244
|
+
* @default false
|
245
|
+
*/
|
72
246
|
checkStrictly?: boolean;
|
73
|
-
/**
|
247
|
+
/**
|
248
|
+
* 触发器样式
|
249
|
+
* @description trigger元素的样式设置
|
250
|
+
* @default undefined
|
251
|
+
*/
|
74
252
|
style?: CSSProperties;
|
75
|
-
/**
|
253
|
+
/**
|
254
|
+
* 标签集合
|
255
|
+
* @description 用于标记分类的标签集合
|
256
|
+
* @default undefined
|
257
|
+
*/
|
76
258
|
tags?: string[];
|
259
|
+
/**
|
260
|
+
* 其他属性
|
261
|
+
* @description 表单其他配置属性
|
262
|
+
* @default undefined
|
263
|
+
*/
|
77
264
|
otherProps?: ProFormOtherType;
|
78
|
-
/**
|
265
|
+
/**
|
266
|
+
* 远程请求
|
267
|
+
* @description 远程请求接口配置
|
268
|
+
* @default undefined
|
269
|
+
*/
|
79
270
|
useRequest?: {
|
80
271
|
service?: Service<any, any>;
|
81
272
|
options?: Options<any, any>;
|
82
273
|
};
|
83
|
-
/**
|
84
|
-
|
85
|
-
|
274
|
+
/**
|
275
|
+
* 值变化回调
|
276
|
+
* @description value变化的回调函数
|
277
|
+
* @default undefined
|
278
|
+
*/
|
279
|
+
onChange?: (values: ProTreeModalValueType[] | ProTreeModalValueType) => void;
|
280
|
+
/**
|
281
|
+
* 自定义渲染
|
282
|
+
* @description 自定义选项内容渲染
|
283
|
+
* @default undefined
|
284
|
+
*/
|
86
285
|
optionRender?: (item: any, searchStr: string) => string | ReactNode;
|
87
|
-
/**
|
88
|
-
|
89
|
-
|
286
|
+
/**
|
287
|
+
* 响应数据转换
|
288
|
+
* @description 对后台返回数据进行格式化
|
289
|
+
* @default undefined
|
290
|
+
*/
|
291
|
+
transformResponse?: (data: any) => ProTreeModalDataType[];
|
292
|
+
/**
|
293
|
+
* 打开状态变化
|
294
|
+
* @description 弹框打开/关闭回调
|
295
|
+
* @default undefined
|
296
|
+
*/
|
90
297
|
openChange?: (open: boolean) => void;
|
91
298
|
}
|
299
|
+
export type ProTreeModalProps = ProTreeModalType;
|
300
|
+
export type ProTreeModalAction = ProTreeModalActionType;
|
@@ -1,17 +1,17 @@
|
|
1
|
-
import {
|
1
|
+
import type { ProTreeModalFieldNamesType, ProTreeModalDataType } from './propsType';
|
2
2
|
/**
|
3
3
|
* 树转成铺平的数组
|
4
4
|
* @param originalTreeData
|
5
5
|
* @returns
|
6
6
|
*/
|
7
|
-
export declare function getFlatTreeData(originalTreeData:
|
7
|
+
export declare function getFlatTreeData(originalTreeData: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType, modeType?: string): any[];
|
8
8
|
/**
|
9
9
|
* 获取 tree 所有的 keys 集合
|
10
10
|
* @param data
|
11
11
|
* @param fieldNames
|
12
12
|
* @returns
|
13
13
|
*/
|
14
|
-
export declare function getAllKeys(data:
|
14
|
+
export declare function getAllKeys(data: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType): string[];
|
15
15
|
/**
|
16
16
|
* 获取展开的key
|
17
17
|
* @param key
|
@@ -19,21 +19,21 @@ export declare function getAllKeys(data: TreeDataProps[], fieldNames: FieldNames
|
|
19
19
|
* @param fieldNames
|
20
20
|
* @returns
|
21
21
|
*/
|
22
|
-
export declare const getParentKey: (key: string, tree:
|
23
|
-
export declare function findTreeNodeByKey(treeData:
|
22
|
+
export declare const getParentKey: (key: string, tree: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType) => string;
|
23
|
+
export declare function findTreeNodeByKey(treeData: ProTreeModalDataType[], key: string, fieldNames: ProTreeModalFieldNamesType): ProTreeModalDataType[];
|
24
24
|
/**
|
25
25
|
* 根据所选的 checkedKeys 筛选出展示的 treeData
|
26
26
|
* @param data
|
27
27
|
* @param checkedKeys
|
28
28
|
* @returns
|
29
29
|
*/
|
30
|
-
export declare function filterCheckedNodes(data: any, checkedKeys: any, searchStr: string, fieldNames:
|
30
|
+
export declare function filterCheckedNodes(data: any, checkedKeys: any, searchStr: string, fieldNames: ProTreeModalFieldNamesType): any[];
|
31
31
|
/**
|
32
32
|
* 获取 tree 当前选中节点下的所有子节点的 keys
|
33
33
|
* @param node
|
34
34
|
* @param childrenKeys
|
35
35
|
* @returns
|
36
36
|
*/
|
37
|
-
export declare function getChildrenKeys(node:
|
37
|
+
export declare function getChildrenKeys(node: ProTreeModalDataType, childrenKeys: string[], fieldNames: ProTreeModalFieldNamesType, type: 'treeClose' | 'treeCheck'): void;
|
38
38
|
export declare const transformMessage: (obj: any, message: string) => string;
|
39
39
|
export declare const addLevelAndParentId: (tree: any[], fieldNames: any, currentLevel?: number, currentParentId?: any) => any[];
|
package/es/index.d.ts
CHANGED
@@ -9,7 +9,7 @@ export { default as ProEditTable } from './ProEditTable';
|
|
9
9
|
export { default as ProDrawerForm } from './ProDrawerForm';
|
10
10
|
export { default as ProEditLabel } from './ProEditLabel';
|
11
11
|
export { default as ProForm } from './ProForm';
|
12
|
-
export
|
12
|
+
export { ProFormProvider } from './ProForm';
|
13
13
|
export * from './ProForm/components';
|
14
14
|
export { default as ProSelect } from './ProSelect';
|
15
15
|
export { default as ProEnum } from './ProEnum';
|
@@ -26,10 +26,18 @@ export * from './locale';
|
|
26
26
|
export { default as ProBackBtn } from './ProLayout/components/ProHeader/components/ProBackBtn';
|
27
27
|
export { default as ProEditableTable } from './old/ProEditableTable';
|
28
28
|
export { default as ProCertValidity } from './old/ProCertValidity';
|
29
|
-
export
|
30
|
-
export
|
31
|
-
export
|
32
|
-
export
|
33
|
-
export
|
34
|
-
export
|
29
|
+
export type { ProFormType, ProColumnProps, ProFormColumnType } from './ProForm/propsType';
|
30
|
+
export type { ProFormComponentType } from './ProForm/components/index.d';
|
31
|
+
export type { ProTableType, ProTableColumnType, ProTableSummaryType, ProTableUseAntdTableType, ProTableProps, ProTableSummaryProps, ProTableColumn, UseAntdTableState } from './ProTable/propsType';
|
32
|
+
export type { ProUploadType, ProUploadProps } from './ProUpload/propsType';
|
33
|
+
export type { ProTabsType, ProTabsItemType, ProTabsProps, ProTabsItemsProps } from './ProTabs/propType';
|
34
|
+
export type { BreadcrumbColumnType, SubDescribeColumnType, DescribeColumnType, ProHeaderType, ProHeaderProps, BreadcrumbColumnsProps, SubDescribeColumnsProps, DescribeColumnsProps } from './ProLayout/components/ProHeader/PropTypes';
|
35
|
+
export type { ProTooltipType, ProTooltipProps } from './ProTooltip/propsType';
|
36
|
+
export type { ProIconType, ProIconProps } from './ProIcon/propsTypes';
|
37
|
+
export type { ProTreeType, ProTreeSelectType, ProTreeProps, PropTreeSelectProps } from './ProTree/propsType';
|
38
|
+
export type { ProTreeModalType, ProTreeModalActionType, ProTreeModalProps, ProTreeModalAction } from './ProTreeModal/propsType';
|
39
|
+
export type { ProEditTableType, ProEditTableColumnType, ProEditTableSummaryColumnType, ProEditTableSummaryConfigType, ProEditTableActionType, ProEditTableProps, ProEditTableColumnsProps, SummaryProps, SummaryColumnProps, BaseActionProps } from './ProEditTable/propsType';
|
40
|
+
export type { ProStepType, ProStepContextType, ProStepItemType, ProStepPropsType, ProStepItemPropsType } from './ProStep/propsType';
|
41
|
+
export type { ProDrawerFormType, ProDrawerFormPropsType } from './ProDrawerForm/propsType';
|
42
|
+
export type { ProModalSelectType, ProModalSelectConfigType, ProModalSelectPropsType } from './ProForm/components/combination/ProModalSelect/propsType';
|
35
43
|
export * from './tokens';
|
package/es/index.js
CHANGED
@@ -13,7 +13,7 @@ export { default as ProDrawerForm } from './ProDrawerForm';
|
|
13
13
|
export { default as ProEditLabel } from './ProEditLabel';
|
14
14
|
// 表单
|
15
15
|
export { default as ProForm } from './ProForm';
|
16
|
-
export
|
16
|
+
export { ProFormProvider } from './ProForm';
|
17
17
|
export * from './ProForm/components'; // ProForm 中组件导出
|
18
18
|
export { default as ProSelect } from './ProSelect';
|
19
19
|
export { default as ProEnum } from './ProEnum';
|
@@ -32,12 +32,5 @@ export * from './locale';
|
|
32
32
|
export { default as ProBackBtn } from './ProLayout/components/ProHeader/components/ProBackBtn';
|
33
33
|
export { default as ProEditableTable } from './old/ProEditableTable';
|
34
34
|
export { default as ProCertValidity } from './old/ProCertValidity';
|
35
|
-
// TS类型导出
|
36
|
-
export * from './ProForm/propsType';
|
37
|
-
export * from './ProTable/propsType';
|
38
|
-
export * from './ProEditTable/propsType';
|
39
|
-
export * from './ProUpload/propsType';
|
40
|
-
export * from './ProTabs/propType';
|
41
|
-
export * from './ProLayout/components/ProHeader/PropTypes';
|
42
35
|
// token导出
|
43
36
|
export * from './tokens';
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import React, { FC } from 'react';
|
2
2
|
import { FormInstance } from 'antd';
|
3
|
-
import { PropSelectType } from '../ProSelect/propsType';
|
4
|
-
import { ProModalSelectType } from '../ProForm/components/combination/ProModalSelect/propsType';
|
5
|
-
import { ProCascaderType } from '../ProForm/components/combination/ProCascader/propsType';
|
6
|
-
import { ProEnumConfig } from '../ProEnum/propsType';
|
3
|
+
import type { PropSelectType } from '../ProSelect/propsType';
|
4
|
+
import type { ProModalSelectType } from '../ProForm/components/combination/ProModalSelect/propsType';
|
5
|
+
import type { ProCascaderType } from '../ProForm/components/combination/ProCascader/propsType';
|
6
|
+
import type { ProEnumConfig } from '../ProEnum/propsType';
|
7
7
|
export interface ProConfigState {
|
8
8
|
locale?: string;
|
9
9
|
ProEnum?: Partial<ProEnumConfig>;
|
@@ -2,7 +2,7 @@ import { InputProps } from 'antd/es/input';
|
|
2
2
|
import { PopconfirmProps } from 'antd/es/popconfirm';
|
3
3
|
import { FormInstance } from 'antd/es/form';
|
4
4
|
import React from 'react';
|
5
|
-
import {
|
5
|
+
import type { ProFormColumnType } from '../index';
|
6
6
|
export interface ContainerType {
|
7
7
|
/**
|
8
8
|
* @description 触发方式
|
@@ -77,7 +77,7 @@ export interface PopupType {
|
|
77
77
|
* @description 列配置
|
78
78
|
* @default -
|
79
79
|
*/
|
80
|
-
columns?:
|
80
|
+
columns?: ProFormColumnType;
|
81
81
|
/**
|
82
82
|
* @description 允许扩展字段
|
83
83
|
*/
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { ProEditTableSummaryColumnType } from '../../propsType';
|
2
2
|
interface SummaryProps<T = any> {
|
3
3
|
data: T[];
|
4
4
|
summary: {
|
5
|
-
columns:
|
5
|
+
columns: ProEditTableSummaryColumnType[];
|
6
6
|
total?: boolean;
|
7
7
|
fixed?: boolean | 'top' | 'bottom';
|
8
8
|
};
|
@@ -80,7 +80,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
80
80
|
disabled = (formFieldProps === null || formFieldProps === void 0 ? void 0 : formFieldProps.disabled) || disabled; // formFieldProps?.disabled可能是函数??
|
81
81
|
}
|
82
82
|
var tableRef = (0, _react.useRef)(null);
|
83
|
-
var valueChangeRef = (0, _react.useRef)(
|
83
|
+
var valueChangeRef = (0, _react.useRef)(0);
|
84
84
|
valueChangeRef.current = 0;
|
85
85
|
var _React$useContext = _react.default.useContext(_antd.ConfigProvider.ConfigContext),
|
86
86
|
getPrefixCls = _React$useContext.getPrefixCls;
|
@@ -91,7 +91,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
91
91
|
var requiredAlign = (0, _react.useMemo)(function () {
|
92
92
|
var _ref2, _themeConfig$data$zau, _themeConfig$data;
|
93
93
|
return (_ref2 = (_themeConfig$data$zau = themeConfig === null || themeConfig === void 0 ? void 0 : (_themeConfig$data = themeConfig.data) === null || _themeConfig$data === void 0 ? void 0 : _themeConfig$data.zauiFormAlign) !== null && _themeConfig$data$zau !== void 0 ? _themeConfig$data$zau : configRequiredAlign) !== null && _ref2 !== void 0 ? _ref2 : 'left';
|
94
|
-
}, [themeConfig === null || themeConfig === void 0 ? void 0 : (_themeConfig$data2 = themeConfig.data) === null || _themeConfig$data2 === void 0 ? void 0 : _themeConfig$data2.zauiFormAlign]);
|
94
|
+
}, [themeConfig === null || themeConfig === void 0 ? void 0 : (_themeConfig$data2 = themeConfig.data) === null || _themeConfig$data2 === void 0 ? void 0 : _themeConfig$data2.zauiFormAlign, configRequiredAlign]);
|
95
95
|
var _useSetState = (0, _ahooks.useSetState)({
|
96
96
|
cellNamePath: [],
|
97
97
|
forceUpdate: {},
|
@@ -214,7 +214,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
214
214
|
return function (_x, _x2) {
|
215
215
|
return _ref4.apply(this, arguments);
|
216
216
|
};
|
217
|
-
}(), []);
|
217
|
+
}(), [pagination, page.pageSize, form, name]);
|
218
218
|
var config = (0, _objectSpread2.default)({
|
219
219
|
form: form,
|
220
220
|
mode: mode,
|
@@ -272,10 +272,12 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
272
272
|
return item.type === type;
|
273
273
|
});
|
274
274
|
if (typeof (addBtnConfig === null || addBtnConfig === void 0 ? void 0 : addBtnConfig.show) === 'function') {
|
275
|
-
|
275
|
+
var result = addBtnConfig.show();
|
276
|
+
addBtnConfig.show = result;
|
276
277
|
}
|
277
278
|
return (addBtnConfig === null || addBtnConfig === void 0 ? void 0 : addBtnConfig.show) === false;
|
278
279
|
}
|
280
|
+
return false;
|
279
281
|
}, [toolbarProps]);
|
280
282
|
// 是否隐藏勾选框
|
281
283
|
var isHideCheckBox = isForbiddenBtn('mulDelete');
|
@@ -307,7 +309,8 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
307
309
|
className: "com-empty",
|
308
310
|
children: [(0, _jsxRuntime.jsx)("img", {
|
309
311
|
className: "img",
|
310
|
-
src: _empty.default
|
312
|
+
src: _empty.default,
|
313
|
+
alt: "Empty"
|
311
314
|
}), (0, _jsxRuntime.jsx)("div", {
|
312
315
|
className: "content",
|
313
316
|
children: disabled || isForbiddenBtn('add') ? _locale.default.ProEditTable.noData : (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
@@ -360,7 +363,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
360
363
|
rowKey: getRowKey(item)
|
361
364
|
});
|
362
365
|
});
|
363
|
-
onChange(nextValues);
|
366
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(nextValues);
|
364
367
|
if (virtualKey) {
|
365
368
|
form.setFieldValue(virtualRowName, nextValues);
|
366
369
|
}
|
@@ -380,8 +383,8 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
380
383
|
(0, _react.useEffect)(function () {
|
381
384
|
if (toolbarSticky) {
|
382
385
|
var updatePos = function updatePos() {
|
383
|
-
var _affixRef$current;
|
384
|
-
affixRef === null || affixRef === void 0 ? void 0 : (_affixRef$current = affixRef.current) === null || _affixRef$current === void 0 ? void 0 : _affixRef$current.updatePosition();
|
386
|
+
var _affixRef$current, _affixRef$current$upd;
|
387
|
+
affixRef === null || affixRef === void 0 ? void 0 : (_affixRef$current = affixRef.current) === null || _affixRef$current === void 0 ? void 0 : (_affixRef$current$upd = _affixRef$current.updatePosition) === null || _affixRef$current$upd === void 0 ? void 0 : _affixRef$current$upd.call(_affixRef$current);
|
385
388
|
};
|
386
389
|
window.addEventListener('scroll', updatePos, true);
|
387
390
|
return function () {
|
@@ -483,4 +486,5 @@ ForwardProEditTable.defaultProps = {
|
|
483
486
|
deletePoConfirmMsg: _locale.default.ProEditTable.deletePoConfirmMsg,
|
484
487
|
mulDeletePoConfirmMsg: _locale.default.ProEditTable.mulDeletePoConfirmMsg
|
485
488
|
};
|
489
|
+
// 导出组件
|
486
490
|
var _default = exports.default = ForwardProEditTable;
|