@zat-design/sisyphus-react 3.11.13 → 3.11.14-beta.10
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/history.ts.html +148 -0
- package/coverage/lcov-report/src/.umi/core/index.html +146 -0
- package/coverage/lcov-report/src/.umi/core/plugin.ts.html +109 -0
- package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +160 -0
- package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +97 -0
- package/coverage/src/.umi/core/history.ts.html +148 -0
- package/coverage/src/.umi/core/index.html +146 -0
- package/coverage/src/.umi/core/plugin.ts.html +109 -0
- package/coverage/src/.umi/core/pluginRegister.ts.html +160 -0
- package/coverage/src/.umi/core/polyfill.ts.html +97 -0
- package/dist/index.esm.css +33 -19
- package/dist/less.esm.css +33 -19
- package/es/ProAction/index.d.ts +2 -2
- package/es/ProAction/propsType.d.ts +16 -10
- package/es/ProConfigProvider/index.d.ts +6 -6
- package/es/ProDownload/index.d.ts +2 -2
- package/es/ProDownload/propsType.d.ts +2 -1
- package/es/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
- package/es/ProDrawerForm/components/ProModal/index.d.ts +2 -2
- package/es/ProDrawerForm/index.d.ts +1 -2
- package/es/ProDrawerForm/propsType.d.ts +38 -27
- package/es/ProDrawerForm/utils/index.d.ts +2 -2
- package/es/ProEditLabel/components/RenderProForm.d.ts +2 -2
- package/es/ProEditLabel/index.d.ts +2 -2
- package/es/ProEditLabel/propsType.d.ts +135 -8
- package/es/ProEditLabel/style/index.less +24 -25
- package/es/ProEditTable/components/ActionButton/index.js +2 -2
- package/es/ProEditTable/components/RenderField/index.js +4 -4
- package/es/ProEditTable/components/Summary/index.d.ts +2 -2
- package/es/ProEditTable/index.d.ts +2 -2
- package/es/ProEditTable/index.js +6 -8
- package/es/ProEditTable/propsType.d.ts +232 -93
- package/es/ProEditTable/style/index.less +1 -0
- package/es/ProEditTable/utils/config.js +10 -10
- package/es/ProEditTable/utils/index.js +3 -3
- package/es/ProEnum/components/Group.d.ts +2 -2
- package/es/ProEnum/components/Tag.d.ts +2 -2
- package/es/ProEnum/hooks/useEnumRequest.d.ts +2 -2
- package/es/ProEnum/index.d.ts +2 -2
- package/es/ProEnum/propsType.d.ts +230 -41
- package/es/ProEnum/propsType.js +0 -6
- package/es/ProEnum/utils/index.d.ts +1 -1
- package/es/ProForm/components/FormFooter/index.d.ts +2 -2
- package/es/ProForm/components/FormFooter/propsType.d.ts +8 -3
- package/es/ProForm/components/base/Checkbox/index.d.ts +2 -2
- package/es/ProForm/components/base/Input/index.d.ts +2 -2
- package/es/ProForm/components/base/Input/propsType.d.ts +8 -4
- package/es/ProForm/components/base/InputNumber/index.d.ts +2 -2
- package/es/ProForm/components/base/Radio/index.d.ts +2 -2
- package/es/ProForm/components/base/RangePicker/index.d.ts +2 -2
- package/es/ProForm/components/base/Select/index.d.ts +2 -2
- package/es/ProForm/components/base/Switch/index.d.ts +2 -2
- package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
- package/es/ProForm/components/base/TextArea/index.d.ts +2 -2
- package/es/ProForm/components/base/TimePicker/index.d.ts +2 -2
- package/es/ProForm/components/combination/Container/index.d.ts +2 -2
- package/es/ProForm/components/combination/Container/propsType.d.ts +9 -5
- package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
- package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
- package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
- package/es/ProForm/components/combination/FormList/index.d.ts +2 -2
- package/es/ProForm/components/combination/FormList/propsType.d.ts +18 -10
- package/es/ProForm/components/combination/Group/index.d.ts +2 -2
- package/es/ProForm/components/combination/Group/propsType.d.ts +10 -5
- package/es/ProForm/components/combination/Group/utils.d.ts +4 -4
- package/es/ProForm/components/combination/ProCascader/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
- package/es/ProForm/components/combination/ProCombination/index.d.ts +3 -3
- package/es/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
- package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +14 -8
- package/es/ProForm/components/render/ChangedWrapper.d.ts +2 -2
- package/es/ProForm/components/render/Render.d.ts +2 -2
- package/es/ProForm/components/render/RenderFields.d.ts +4 -4
- package/es/ProForm/components/render/propsType.d.ts +54 -43
- package/es/ProForm/index.d.ts +2 -2
- package/es/ProForm/propsType.d.ts +22 -15
- package/es/ProForm/utils/transformValue.d.ts +2 -2
- package/es/ProForm/utils/useFieldProps.d.ts +3 -3
- package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/es/ProIcon/index.d.ts +2 -2
- package/es/ProIcon/propsTypes.d.ts +124 -49
- package/es/ProLayout/components/Layout/Header/index.d.ts +2 -2
- package/es/ProLayout/components/Layout/Menu/index.d.ts +2 -2
- package/es/ProLayout/components/Layout/Notice/index.d.ts +2 -2
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
- package/es/ProLayout/components/ProCollapse/index.d.ts +2 -2
- package/es/ProLayout/components/ProCollapse/index.js +12 -4
- package/es/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
- package/es/ProLayout/components/ProFooter/index.d.ts +2 -2
- package/es/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
- package/es/ProLayout/components/ProHeader/index.d.ts +2 -2
- package/es/ProLayout/index.d.ts +5 -5
- package/es/ProLayout/index.js +6 -2
- package/es/ProLayout/propTypes.d.ts +182 -25
- package/es/ProLayout/utils/index.d.ts +2 -2
- package/es/ProSelect/index.d.ts +3 -3
- package/es/ProSelect/propsType.d.ts +141 -31
- package/es/ProStep/components/Item/index.d.ts +2 -2
- package/es/ProStep/components/Step/index.d.ts +2 -2
- package/es/ProStep/index.d.ts +2 -2
- package/es/ProStep/index.js +12 -1
- package/es/ProStep/propsType.d.ts +60 -12
- package/es/ProStep/utils/index.d.ts +2 -2
- package/es/ProTable/components/FormatColumn/index.d.ts +2 -2
- package/es/ProTable/components/FormatColumn/index.js +2 -2
- package/es/ProTable/hooks/useAntdTable.d.ts +2 -2
- package/es/ProTable/index.d.ts +2 -2
- package/es/ProTable/propsType.d.ts +590 -39
- package/es/ProTable/style/index.less +12 -5
- package/es/ProTabs/index.d.ts +2 -2
- package/es/ProTabs/index.js +4 -4
- package/es/ProTabs/propType.d.ts +66 -9
- package/es/ProThemeTools/index.d.ts +2 -2
- package/es/ProThemeTools/propsType.d.ts +136 -14
- package/es/ProTooltip/index.d.ts +2 -2
- package/es/ProTooltip/propsType.d.ts +52 -9
- package/es/ProTree/components/ProTreeSelect/index.js +3 -6
- package/es/ProTree/components/ProTreeSelect/propsType.d.ts +2 -2
- package/es/ProTree/components/SearchTitle.d.ts +2 -2
- package/es/ProTree/propsType.d.ts +651 -62
- package/es/ProTreeModal/propsType.d.ts +2 -2
- package/es/ProUpload/components/ButtonRender.d.ts +2 -2
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
- package/es/ProUpload/components/Example.d.ts +2 -2
- package/es/ProUpload/components/ImageRender.d.ts +2 -2
- package/es/ProUpload/index.d.ts +2 -2
- package/es/ProUpload/index.js +7 -9
- package/es/ProUpload/propsType.d.ts +65 -8
- package/es/ProWaterMark/index.d.ts +2 -2
- package/es/ProWaterMark/propsType.d.ts +2 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/lib/ProAction/index.d.ts +2 -2
- package/lib/ProAction/propsType.d.ts +16 -10
- package/lib/ProConfigProvider/index.d.ts +6 -6
- package/lib/ProDownload/index.d.ts +2 -2
- package/lib/ProDownload/propsType.d.ts +2 -1
- package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
- package/lib/ProDrawerForm/components/ProModal/index.d.ts +2 -2
- package/lib/ProDrawerForm/index.d.ts +1 -2
- package/lib/ProDrawerForm/propsType.d.ts +38 -27
- package/lib/ProDrawerForm/utils/index.d.ts +2 -2
- package/lib/ProEditLabel/components/RenderProForm.d.ts +2 -2
- package/lib/ProEditLabel/index.d.ts +2 -2
- package/lib/ProEditLabel/propsType.d.ts +135 -8
- package/lib/ProEditLabel/style/index.less +24 -25
- package/lib/ProEditTable/components/ActionButton/index.js +2 -2
- package/lib/ProEditTable/components/RenderField/index.js +4 -4
- package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
- package/lib/ProEditTable/index.d.ts +2 -2
- package/lib/ProEditTable/index.js +6 -8
- package/lib/ProEditTable/propsType.d.ts +232 -93
- package/lib/ProEditTable/style/index.less +1 -0
- package/lib/ProEditTable/utils/config.js +10 -10
- package/lib/ProEditTable/utils/index.js +3 -3
- package/lib/ProEnum/components/Group.d.ts +2 -2
- package/lib/ProEnum/components/Tag.d.ts +2 -2
- package/lib/ProEnum/hooks/useEnumRequest.d.ts +2 -2
- package/lib/ProEnum/index.d.ts +2 -2
- package/lib/ProEnum/propsType.d.ts +230 -41
- package/lib/ProEnum/propsType.js +1 -7
- package/lib/ProEnum/utils/index.d.ts +1 -1
- package/lib/ProForm/components/FormFooter/index.d.ts +2 -2
- package/lib/ProForm/components/FormFooter/propsType.d.ts +8 -3
- package/lib/ProForm/components/base/Checkbox/index.d.ts +2 -2
- package/lib/ProForm/components/base/Input/index.d.ts +2 -2
- package/lib/ProForm/components/base/Input/propsType.d.ts +8 -4
- package/lib/ProForm/components/base/InputNumber/index.d.ts +2 -2
- package/lib/ProForm/components/base/Radio/index.d.ts +2 -2
- package/lib/ProForm/components/base/RangePicker/index.d.ts +2 -2
- package/lib/ProForm/components/base/Select/index.d.ts +2 -2
- package/lib/ProForm/components/base/Switch/index.d.ts +2 -2
- package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
- package/lib/ProForm/components/base/TextArea/index.d.ts +2 -2
- package/lib/ProForm/components/base/TimePicker/index.d.ts +2 -2
- package/lib/ProForm/components/combination/Container/index.d.ts +2 -2
- package/lib/ProForm/components/combination/Container/propsType.d.ts +9 -5
- package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
- package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
- package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
- package/lib/ProForm/components/combination/FormList/index.d.ts +2 -2
- package/lib/ProForm/components/combination/FormList/propsType.d.ts +18 -10
- package/lib/ProForm/components/combination/Group/index.d.ts +2 -2
- package/lib/ProForm/components/combination/Group/propsType.d.ts +10 -5
- package/lib/ProForm/components/combination/Group/utils.d.ts +4 -4
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
- package/lib/ProForm/components/combination/ProCombination/index.d.ts +3 -3
- package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
- package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
- package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +14 -8
- package/lib/ProForm/components/render/ChangedWrapper.d.ts +2 -2
- package/lib/ProForm/components/render/Render.d.ts +2 -2
- package/lib/ProForm/components/render/RenderFields.d.ts +4 -4
- package/lib/ProForm/components/render/propsType.d.ts +54 -43
- package/lib/ProForm/index.d.ts +2 -2
- package/lib/ProForm/propsType.d.ts +22 -15
- package/lib/ProForm/utils/transformValue.d.ts +2 -2
- package/lib/ProForm/utils/useFieldProps.d.ts +3 -3
- package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/lib/ProIcon/index.d.ts +2 -2
- package/lib/ProIcon/propsTypes.d.ts +124 -49
- package/lib/ProLayout/components/Layout/Header/index.d.ts +2 -2
- package/lib/ProLayout/components/Layout/Menu/index.d.ts +2 -2
- package/lib/ProLayout/components/Layout/Notice/index.d.ts +2 -2
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
- package/lib/ProLayout/components/ProCollapse/index.d.ts +2 -2
- package/lib/ProLayout/components/ProCollapse/index.js +12 -4
- package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
- package/lib/ProLayout/components/ProFooter/index.d.ts +2 -2
- package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
- package/lib/ProLayout/components/ProHeader/index.d.ts +2 -2
- package/lib/ProLayout/index.d.ts +5 -5
- package/lib/ProLayout/index.js +6 -2
- package/lib/ProLayout/propTypes.d.ts +182 -25
- package/lib/ProLayout/utils/index.d.ts +2 -2
- package/lib/ProSelect/index.d.ts +3 -3
- package/lib/ProSelect/propsType.d.ts +141 -31
- package/lib/ProStep/components/Item/index.d.ts +2 -2
- package/lib/ProStep/components/Step/index.d.ts +2 -2
- package/lib/ProStep/index.d.ts +2 -2
- package/lib/ProStep/index.js +12 -1
- package/lib/ProStep/propsType.d.ts +60 -12
- package/lib/ProStep/utils/index.d.ts +2 -2
- package/lib/ProTable/components/FormatColumn/index.d.ts +2 -2
- package/lib/ProTable/components/FormatColumn/index.js +2 -2
- package/lib/ProTable/hooks/useAntdTable.d.ts +2 -2
- package/lib/ProTable/index.d.ts +2 -2
- package/lib/ProTable/propsType.d.ts +590 -39
- package/lib/ProTable/style/index.less +12 -5
- package/lib/ProTabs/index.d.ts +2 -2
- package/lib/ProTabs/index.js +4 -4
- package/lib/ProTabs/propType.d.ts +66 -9
- package/lib/ProThemeTools/index.d.ts +2 -2
- package/lib/ProThemeTools/propsType.d.ts +136 -14
- package/lib/ProTooltip/index.d.ts +2 -2
- package/lib/ProTooltip/propsType.d.ts +52 -9
- package/lib/ProTree/components/ProTreeSelect/index.js +3 -6
- package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +2 -2
- package/lib/ProTree/components/SearchTitle.d.ts +2 -2
- package/lib/ProTree/propsType.d.ts +651 -62
- package/lib/ProTreeModal/propsType.d.ts +2 -2
- package/lib/ProUpload/components/ButtonRender.d.ts +2 -2
- package/lib/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
- package/lib/ProUpload/components/Example.d.ts +2 -2
- package/lib/ProUpload/components/ImageRender.d.ts +2 -2
- package/lib/ProUpload/index.d.ts +2 -2
- package/lib/ProUpload/index.js +7 -9
- package/lib/ProUpload/propsType.d.ts +65 -8
- package/lib/ProWaterMark/index.d.ts +2 -2
- package/lib/ProWaterMark/propsType.d.ts +2 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +12 -0
- package/package.json +1 -1
@@ -1,223 +1,812 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
|
3
3
|
import type { TreeSelectProps } from 'antd';
|
4
|
-
import {
|
4
|
+
import { ProFormOtherType } from '../ProForm/propsType';
|
5
|
+
/**
|
6
|
+
* 树数据结构
|
7
|
+
* @description 定义树节点的数据结构
|
8
|
+
*/
|
5
9
|
export interface TreeDataProps {
|
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 undefined
|
26
|
+
*/
|
8
27
|
children?: TreeDataProps[];
|
28
|
+
/**
|
29
|
+
* 自定义属性
|
30
|
+
* @description 可添加任意其他属性
|
31
|
+
* @default undefined
|
32
|
+
*/
|
9
33
|
[key: string]: any;
|
10
34
|
}
|
11
35
|
type AllValueType = string | number;
|
12
36
|
type Key = string | number;
|
37
|
+
/**
|
38
|
+
* 字段名称映射
|
39
|
+
* @description 定义树节点字段的映射关系
|
40
|
+
*/
|
13
41
|
export interface FieldNamesType {
|
42
|
+
/**
|
43
|
+
* 标签字段名
|
44
|
+
* @description 指定节点标签的属性名
|
45
|
+
* @default 'label'
|
46
|
+
*/
|
14
47
|
label?: string;
|
48
|
+
/**
|
49
|
+
* 值字段名
|
50
|
+
* @description 指定节点值的属性名
|
51
|
+
* @default 'value'
|
52
|
+
*/
|
15
53
|
value: string;
|
54
|
+
/**
|
55
|
+
* 子节点字段名
|
56
|
+
* @description 指定子节点的属性名
|
57
|
+
* @default 'children'
|
58
|
+
*/
|
16
59
|
children?: string;
|
17
60
|
}
|
61
|
+
/**
|
62
|
+
* ProTree组件属性
|
63
|
+
* @description ProTree组件的主要配置属性
|
64
|
+
*/
|
18
65
|
export interface ProTreeProps extends PropTreeSelectProps {
|
19
|
-
/**
|
66
|
+
/**
|
67
|
+
* 树标题
|
68
|
+
* @description 树组件的标题
|
69
|
+
* @default undefined
|
70
|
+
*/
|
20
71
|
title?: string;
|
21
|
-
/**
|
72
|
+
/**
|
73
|
+
* 选中值
|
74
|
+
* @description 当前选中的节点值
|
75
|
+
* @default undefined
|
76
|
+
*/
|
22
77
|
value?: AllValueType | string[];
|
23
|
-
/**
|
78
|
+
/**
|
79
|
+
* 选中值
|
80
|
+
* @description 选中的树节点value
|
81
|
+
* @default undefined
|
82
|
+
*/
|
24
83
|
checkedValues?: any;
|
25
|
-
/**
|
84
|
+
/**
|
85
|
+
* 是否展示展开全部按钮
|
86
|
+
* @description 是否展示展开全部按钮,控制展开功能的显示
|
87
|
+
* @default false
|
88
|
+
*/
|
26
89
|
showExpand?: boolean;
|
27
|
-
/**
|
90
|
+
/**
|
91
|
+
* 字段名称映射
|
92
|
+
* @description 自定义节点的字段名称映射
|
93
|
+
* @default { label: 'label', value: 'value', children: 'children' }
|
94
|
+
*/
|
28
95
|
fieldNames?: FieldNamesType;
|
96
|
+
/**
|
97
|
+
* 是否展开下拉菜单
|
98
|
+
* @description 控制下拉菜单是否展开
|
99
|
+
* @default undefined
|
100
|
+
*/
|
29
101
|
open?: boolean;
|
30
|
-
/**
|
102
|
+
/**
|
103
|
+
* 展示类型
|
104
|
+
* @description 组件的展示模式
|
105
|
+
* @default 'treeSelect'
|
106
|
+
*/
|
31
107
|
mode?: 'tree' | 'list' | 'treeSelect';
|
32
|
-
/**
|
108
|
+
/**
|
109
|
+
* 值包含标签
|
110
|
+
* @description 开启后提交给后端的格式为 [{ label:xx, value: ""}]
|
111
|
+
* @default false
|
112
|
+
*/
|
33
113
|
labelInValue?: boolean;
|
34
|
-
/**
|
114
|
+
/**
|
115
|
+
* 查看模式
|
116
|
+
* @description 是否为查看模式,与 disabled 效果相同
|
117
|
+
* @default false
|
118
|
+
*/
|
35
119
|
isView?: boolean;
|
36
|
-
/**
|
120
|
+
/**
|
121
|
+
* 枚举代码
|
122
|
+
* @description 使用 ProEnum 的数据源
|
123
|
+
* @default undefined
|
124
|
+
*/
|
37
125
|
code?: string;
|
38
|
-
/**
|
126
|
+
/**
|
127
|
+
* 显示代码名称
|
128
|
+
* @description 是否展示 code-label 形式
|
129
|
+
* @default false
|
130
|
+
*/
|
39
131
|
showCodeName?: boolean;
|
40
|
-
/**
|
132
|
+
/**
|
133
|
+
* 显示搜索框
|
134
|
+
* @description 是否展示搜索输入框
|
135
|
+
* @default false
|
136
|
+
*/
|
41
137
|
showSearch?: boolean;
|
42
|
-
/**
|
138
|
+
/**
|
139
|
+
* 数据源
|
140
|
+
* @description 静态数据源
|
141
|
+
* @default []
|
142
|
+
*/
|
43
143
|
dataSource?: TreeDataProps[];
|
44
|
-
/**
|
144
|
+
/**
|
145
|
+
* 是否禁用
|
146
|
+
* @description 禁用整个组件
|
147
|
+
* @default false
|
148
|
+
*/
|
45
149
|
disabled?: boolean;
|
46
|
-
/**
|
150
|
+
/**
|
151
|
+
* 禁用模式
|
152
|
+
* @description 复选模式下只读是否全显示节点,hide--隐藏未勾选
|
153
|
+
* @default undefined
|
154
|
+
*/
|
47
155
|
disabledMode?: string;
|
48
|
-
/**
|
156
|
+
/**
|
157
|
+
* 全选值
|
158
|
+
* @description 全选时传给后端的标识
|
159
|
+
* @default undefined
|
160
|
+
*/
|
49
161
|
allValue?: string | number;
|
50
|
-
/**
|
162
|
+
/**
|
163
|
+
* 占位提示
|
164
|
+
* @description 提示语,treeSelect时使用
|
165
|
+
* @default undefined
|
166
|
+
*/
|
51
167
|
placeholder?: string;
|
52
|
-
/**
|
168
|
+
/**
|
169
|
+
* 严格选择
|
170
|
+
* @description 父子节点选中状态不再关联
|
171
|
+
* @default false
|
172
|
+
*/
|
53
173
|
checkStrictly?: boolean;
|
54
|
-
/**
|
174
|
+
/**
|
175
|
+
* 页脚
|
176
|
+
* @description 树底部操作项
|
177
|
+
* @default undefined
|
178
|
+
*/
|
55
179
|
footer?: ReactNode;
|
56
|
-
/**
|
180
|
+
/**
|
181
|
+
* 树高度
|
182
|
+
* @description 树容器高度
|
183
|
+
* @default undefined
|
184
|
+
*/
|
57
185
|
height?: string;
|
58
|
-
/**
|
186
|
+
/**
|
187
|
+
* 显示省略号
|
188
|
+
* @description 树节点文本超长是否展示省略号
|
189
|
+
* @default false
|
190
|
+
*/
|
59
191
|
showEllipse?: boolean;
|
60
|
-
/**
|
192
|
+
/**
|
193
|
+
* 省略宽度
|
194
|
+
* @description 树节点文本宽度
|
195
|
+
* @default undefined
|
196
|
+
*/
|
61
197
|
ellipseWidth?: string;
|
62
|
-
/**
|
198
|
+
/**
|
199
|
+
* 值变化回调
|
200
|
+
* @description value 改变的回调
|
201
|
+
* @default undefined
|
202
|
+
*/
|
63
203
|
onChange?: (values: string[] | AllValueType, options?: object[]) => void;
|
64
|
-
/**
|
204
|
+
/**
|
205
|
+
* 选择回调
|
206
|
+
* @description 点击树节点触发
|
207
|
+
* @default undefined
|
208
|
+
*/
|
65
209
|
onSelect?: (values: string[] | AllValueType, info?: any) => any;
|
66
|
-
/**
|
210
|
+
/**
|
211
|
+
* 勾选回调
|
212
|
+
* @description 复选情况下点击checkbox触发,参照antd
|
213
|
+
* @default undefined
|
214
|
+
*/
|
67
215
|
onCheck?: (values: string[] | AllValueType, info?: any) => any;
|
216
|
+
/**
|
217
|
+
* 展开回调
|
218
|
+
* @description 展开/收起节点时触发
|
219
|
+
* @default undefined
|
220
|
+
*/
|
68
221
|
onExpand?: (newExpandedKeys: React.Key[], nextPara: {
|
69
222
|
expanded: boolean;
|
70
223
|
node: DataOption;
|
71
224
|
nativeEvent: PointerEvent;
|
72
225
|
}) => void;
|
73
|
-
/**
|
226
|
+
/**
|
227
|
+
* 自定义渲染
|
228
|
+
* @description 自定义展示内容
|
229
|
+
* @default undefined
|
230
|
+
*/
|
74
231
|
optionRender?: (item: any, searchStr: string) => string | ReactNode;
|
75
|
-
/**
|
232
|
+
/**
|
233
|
+
* 响应数据转换
|
234
|
+
* @description 对后台返回数据进行格式化
|
235
|
+
* @default undefined
|
236
|
+
*/
|
76
237
|
transformResponse?: (data: any) => TreeDataProps[];
|
77
|
-
/**
|
238
|
+
/**
|
239
|
+
* 标签集合
|
240
|
+
* @description 标签集合
|
241
|
+
* @default undefined
|
242
|
+
*/
|
78
243
|
tags?: string[];
|
79
|
-
|
80
|
-
|
244
|
+
/**
|
245
|
+
* 其他属性
|
246
|
+
* @description 表单其他配置属性
|
247
|
+
* @default undefined
|
248
|
+
*/
|
249
|
+
otherProps?: ProFormOtherType;
|
250
|
+
/**
|
251
|
+
* 远程请求
|
252
|
+
* @description 远程请求接口配置
|
253
|
+
* @default undefined
|
254
|
+
*/
|
81
255
|
useRequest?: {
|
82
256
|
service: Service<any, any>;
|
83
257
|
options?: Options<any, any>;
|
84
258
|
};
|
85
|
-
/**
|
259
|
+
/**
|
260
|
+
* 菜单配置
|
261
|
+
* @description 自定义配置操作按钮函数,返回react node节点
|
262
|
+
* @default undefined
|
263
|
+
*/
|
86
264
|
menu?: (key: Key, item?: any) => ReactNode[];
|
87
|
-
/**
|
265
|
+
/**
|
266
|
+
* 是否加载中
|
267
|
+
* @description 点击树节点是否开启loading遮罩
|
268
|
+
* @default false
|
269
|
+
*/
|
88
270
|
loading?: boolean;
|
89
|
-
/**
|
271
|
+
/**
|
272
|
+
* 显示连接线
|
273
|
+
* @description 是否显示连接线
|
274
|
+
* @default false
|
275
|
+
*/
|
90
276
|
showLine?: boolean;
|
277
|
+
/**
|
278
|
+
* 自定义类名
|
279
|
+
* @description 自定义CSS类名
|
280
|
+
* @default undefined
|
281
|
+
*/
|
91
282
|
className?: string;
|
92
|
-
/**
|
283
|
+
/**
|
284
|
+
* 是否多选
|
285
|
+
* @description 是否支持多选
|
286
|
+
* @default false
|
287
|
+
*/
|
93
288
|
multiple?: boolean;
|
94
|
-
/**
|
289
|
+
/**
|
290
|
+
* 自动展开父节点
|
291
|
+
* @description 是否自动展开父节点
|
292
|
+
* @default true
|
293
|
+
*/
|
95
294
|
autoExpandParent?: boolean;
|
96
|
-
/**
|
295
|
+
/**
|
296
|
+
* 可勾选
|
297
|
+
* @description 节点前添加 Checkbox 复选框
|
298
|
+
* @default false
|
299
|
+
*/
|
97
300
|
checkable?: boolean;
|
98
|
-
/**
|
301
|
+
/**
|
302
|
+
* 可勾选
|
303
|
+
* @description 是否显示 checkbox
|
304
|
+
* @default false
|
305
|
+
*/
|
99
306
|
treeCheckable?: boolean;
|
100
|
-
/**
|
307
|
+
/**
|
308
|
+
* 默认展开所有
|
309
|
+
* @description 默认展开所有树节点
|
310
|
+
* @default false
|
311
|
+
*/
|
101
312
|
defaultExpandAll?: boolean;
|
102
|
-
/**
|
313
|
+
/**
|
314
|
+
* 默认展开父节点
|
315
|
+
* @description 默认展开父节点
|
316
|
+
* @default true
|
317
|
+
*/
|
103
318
|
defaultExpandParent?: boolean;
|
104
|
-
/**
|
319
|
+
/**
|
320
|
+
* 默认展开的节点
|
321
|
+
* @description 默认展开指定的树节点
|
322
|
+
* @default []
|
323
|
+
*/
|
105
324
|
defaultExpandedKeys?: Key[];
|
106
|
-
/**
|
325
|
+
/**
|
326
|
+
* 展开的节点
|
327
|
+
* @description (受控)展开指定的树节点
|
328
|
+
* @default undefined
|
329
|
+
*/
|
107
330
|
expandedKeys?: Key[];
|
108
|
-
/**
|
331
|
+
/**
|
332
|
+
* 选中的节点
|
333
|
+
* @description (受控)选中复选框的树节点
|
334
|
+
* @default undefined
|
335
|
+
*/
|
109
336
|
checkedKeys?: Key[] | {
|
110
337
|
checked: Key[];
|
111
338
|
halfChecked: Key[];
|
112
339
|
};
|
113
|
-
/**
|
340
|
+
/**
|
341
|
+
* 默认选中的节点
|
342
|
+
* @description 默认选中复选框的树节点
|
343
|
+
* @default []
|
344
|
+
*/
|
114
345
|
defaultCheckedKeys?: Key[];
|
115
|
-
/**
|
346
|
+
/**
|
347
|
+
* 选中的节点
|
348
|
+
* @description (受控)设置选中的树节点
|
349
|
+
* @default undefined
|
350
|
+
*/
|
116
351
|
selectedKeys?: Key[];
|
117
|
-
/**
|
352
|
+
/**
|
353
|
+
* 默认选中的节点
|
354
|
+
* @description 默认选中的树节点
|
355
|
+
* @default []
|
356
|
+
*/
|
118
357
|
defaultSelectedKeys?: Key[];
|
358
|
+
/**
|
359
|
+
* 可选中
|
360
|
+
* @description 是否可以选中
|
361
|
+
* @default true
|
362
|
+
*/
|
119
363
|
selectable?: boolean;
|
364
|
+
/**
|
365
|
+
* 已加载的节点
|
366
|
+
* @description 已经加载的节点,配合 loadData 使用
|
367
|
+
* @default []
|
368
|
+
*/
|
120
369
|
loadedKeys?: Key[];
|
370
|
+
/**
|
371
|
+
* 自定义样式
|
372
|
+
* @description 自定义内联样式
|
373
|
+
* @default undefined
|
374
|
+
*/
|
121
375
|
style?: any;
|
376
|
+
/**
|
377
|
+
* 显示图标
|
378
|
+
* @description 是否显示节点图标
|
379
|
+
* @default false
|
380
|
+
*/
|
122
381
|
showIcon?: boolean;
|
382
|
+
/**
|
383
|
+
* 前缀类名
|
384
|
+
* @description 自定义类名前缀
|
385
|
+
* @default undefined
|
386
|
+
*/
|
123
387
|
prefixCls?: string;
|
388
|
+
/**
|
389
|
+
* 子节点
|
390
|
+
* @description 子元素内容
|
391
|
+
* @default undefined
|
392
|
+
*/
|
124
393
|
children?: any;
|
394
|
+
/**
|
395
|
+
* 节点占满一行
|
396
|
+
* @description 是否节点占据一行
|
397
|
+
* @default false
|
398
|
+
*/
|
125
399
|
blockNode?: boolean;
|
126
|
-
/**
|
400
|
+
/**
|
401
|
+
* 选中节点键值
|
402
|
+
* @description 点中的树节点key,表单模式下value有值该配置优先级降低
|
403
|
+
* @default undefined
|
404
|
+
*/
|
127
405
|
selectedKey?: string | number | undefined;
|
128
406
|
}
|
407
|
+
/**
|
408
|
+
* 数据属性
|
409
|
+
* @description 定义节点的基本数据属性
|
410
|
+
*/
|
129
411
|
export interface DataProps {
|
412
|
+
/**
|
413
|
+
* 节点标签
|
414
|
+
* @description 显示的节点文本
|
415
|
+
* @default undefined
|
416
|
+
*/
|
130
417
|
label?: string;
|
418
|
+
/**
|
419
|
+
* 节点值
|
420
|
+
* @description 节点的唯一标识
|
421
|
+
* @default undefined
|
422
|
+
*/
|
131
423
|
value?: string;
|
424
|
+
/**
|
425
|
+
* 是否禁用
|
426
|
+
* @description 是否禁用节点
|
427
|
+
* @default false
|
428
|
+
*/
|
132
429
|
disabled?: boolean;
|
430
|
+
/**
|
431
|
+
* 禁用复选框
|
432
|
+
* @description 是否禁用复选框
|
433
|
+
* @default false
|
434
|
+
*/
|
133
435
|
disableCheckbox?: boolean;
|
436
|
+
/**
|
437
|
+
* 是否可选
|
438
|
+
* @description 是否可以选中
|
439
|
+
* @default true
|
440
|
+
*/
|
134
441
|
selectable?: boolean;
|
442
|
+
/**
|
443
|
+
* 是否可勾选
|
444
|
+
* @description 是否可以勾选
|
445
|
+
* @default undefined
|
446
|
+
*/
|
135
447
|
checkable?: boolean;
|
448
|
+
/**
|
449
|
+
* 标题
|
450
|
+
* @description 节点标题
|
451
|
+
* @default undefined
|
452
|
+
*/
|
136
453
|
title?: string;
|
137
454
|
}
|
455
|
+
/**
|
456
|
+
* 数据选项
|
457
|
+
* @description 扩展的数据选项接口
|
458
|
+
*/
|
138
459
|
export interface DataOption {
|
460
|
+
/**
|
461
|
+
* 节点标签
|
462
|
+
* @description 显示的节点文本
|
463
|
+
* @default undefined
|
464
|
+
*/
|
139
465
|
label?: string;
|
466
|
+
/**
|
467
|
+
* 节点值
|
468
|
+
* @description 节点的唯一标识
|
469
|
+
* @default undefined
|
470
|
+
*/
|
140
471
|
value?: string;
|
472
|
+
/**
|
473
|
+
* 是否禁用
|
474
|
+
* @description 是否禁用节点
|
475
|
+
* @default false
|
476
|
+
*/
|
141
477
|
disabled?: boolean;
|
478
|
+
/**
|
479
|
+
* 禁用复选框
|
480
|
+
* @description 是否禁用复选框
|
481
|
+
* @default false
|
482
|
+
*/
|
142
483
|
disableCheckbox?: boolean;
|
484
|
+
/**
|
485
|
+
* 是否可选
|
486
|
+
* @description 是否可以选中
|
487
|
+
* @default true
|
488
|
+
*/
|
143
489
|
selectable?: boolean;
|
490
|
+
/**
|
491
|
+
* 是否可勾选
|
492
|
+
* @description 是否可以勾选
|
493
|
+
* @default undefined
|
494
|
+
*/
|
144
495
|
checkable?: boolean;
|
496
|
+
/**
|
497
|
+
* 子节点
|
498
|
+
* @description 当前节点的子节点数组
|
499
|
+
* @default undefined
|
500
|
+
*/
|
145
501
|
children?: DataProps[];
|
502
|
+
/**
|
503
|
+
* 标题
|
504
|
+
* @description 节点标题
|
505
|
+
* @default undefined
|
506
|
+
*/
|
146
507
|
title?: string;
|
508
|
+
/**
|
509
|
+
* 自定义属性
|
510
|
+
* @description 可添加任意其他属性
|
511
|
+
* @default undefined
|
512
|
+
*/
|
147
513
|
[key: string]: any;
|
148
514
|
}
|
515
|
+
/**
|
516
|
+
* 基础选项类型
|
517
|
+
* @description 基础选项类型定义
|
518
|
+
*/
|
149
519
|
export interface BaseOptionType {
|
520
|
+
/**
|
521
|
+
* 是否禁用
|
522
|
+
* @description 是否禁用节点
|
523
|
+
* @default false
|
524
|
+
*/
|
150
525
|
disabled?: boolean;
|
526
|
+
/**
|
527
|
+
* 是否可勾选
|
528
|
+
* @description 是否可以勾选
|
529
|
+
* @default undefined
|
530
|
+
*/
|
151
531
|
checkable?: boolean;
|
532
|
+
/**
|
533
|
+
* 禁用复选框
|
534
|
+
* @description 是否禁用复选框
|
535
|
+
* @default false
|
536
|
+
*/
|
152
537
|
disableCheckbox?: boolean;
|
538
|
+
/**
|
539
|
+
* 子节点
|
540
|
+
* @description 当前节点的子节点数组
|
541
|
+
* @default undefined
|
542
|
+
*/
|
153
543
|
children?: BaseOptionType[];
|
544
|
+
/**
|
545
|
+
* 自定义属性
|
546
|
+
* @description 可添加任意其他属性
|
547
|
+
* @default undefined
|
548
|
+
*/
|
154
549
|
[name: string]: any;
|
155
550
|
}
|
551
|
+
/**
|
552
|
+
* 默认选项类型
|
553
|
+
* @description 扩展基础选项类型的默认选项类型
|
554
|
+
*/
|
156
555
|
export interface DefaultOptionType extends BaseOptionType {
|
556
|
+
/**
|
557
|
+
* 节点值
|
558
|
+
* @description 节点的值
|
559
|
+
* @default undefined
|
560
|
+
*/
|
157
561
|
value?: any;
|
562
|
+
/**
|
563
|
+
* 标题
|
564
|
+
* @description 节点的标题
|
565
|
+
* @default undefined
|
566
|
+
*/
|
158
567
|
title?: ReactNode;
|
568
|
+
/**
|
569
|
+
* 标签
|
570
|
+
* @description 节点的显示标签
|
571
|
+
* @default undefined
|
572
|
+
*/
|
159
573
|
label?: ReactNode;
|
574
|
+
/**
|
575
|
+
* 键值
|
576
|
+
* @description 节点的键值
|
577
|
+
* @default undefined
|
578
|
+
*/
|
160
579
|
key?: Key;
|
580
|
+
/**
|
581
|
+
* 子节点
|
582
|
+
* @description 子节点数组
|
583
|
+
* @default undefined
|
584
|
+
*/
|
161
585
|
children?: DefaultOptionType[];
|
162
586
|
}
|
587
|
+
/**
|
588
|
+
* 树选择属性
|
589
|
+
* @description 树选择组件的配置属性
|
590
|
+
*/
|
163
591
|
export interface PropTreeSelectProps extends Omit<TreeSelectProps, 'onSearch'> {
|
164
|
-
/**
|
592
|
+
/**
|
593
|
+
* 是否查看模式
|
594
|
+
* @description 是否为查看模式
|
595
|
+
* @default false
|
596
|
+
*/
|
165
597
|
isView?: boolean;
|
166
|
-
/**
|
598
|
+
/**
|
599
|
+
* 过滤树节点
|
600
|
+
* @description 是否根据输入项进行筛选
|
601
|
+
* @default true
|
602
|
+
*/
|
167
603
|
filterTreeNode?: boolean;
|
168
|
-
/**
|
604
|
+
/**
|
605
|
+
* 树节点过滤属性
|
606
|
+
* @description 输入项过滤对应的 treeNode 属性
|
607
|
+
* @default 'label'
|
608
|
+
*/
|
169
609
|
treeNodeFilterProp?: string;
|
170
|
-
/**
|
610
|
+
/**
|
611
|
+
* 默认展开所有
|
612
|
+
* @description 是否展开所有树
|
613
|
+
* @default false
|
614
|
+
*/
|
171
615
|
treeDefaultExpandAll?: boolean;
|
172
|
-
/**
|
616
|
+
/**
|
617
|
+
* 树可选择
|
618
|
+
* @description 是否支持复选、多选
|
619
|
+
* @default true
|
620
|
+
*/
|
173
621
|
treeCheckable?: boolean;
|
174
|
-
/**
|
622
|
+
/**
|
623
|
+
* 宽度
|
624
|
+
* @description 输入框宽度
|
625
|
+
* @default '100%'
|
626
|
+
*/
|
175
627
|
width?: any;
|
176
|
-
/**
|
628
|
+
/**
|
629
|
+
* 枚举代码
|
630
|
+
* @description 从localStorage里面根据此code取枚举值
|
631
|
+
* @default undefined
|
632
|
+
*/
|
177
633
|
code?: string;
|
178
|
-
/**
|
634
|
+
/**
|
635
|
+
* 数据源
|
636
|
+
* @description 选择项数据源
|
637
|
+
* @default []
|
638
|
+
*/
|
179
639
|
dataSource?: DataOption[];
|
180
|
-
/**
|
640
|
+
/**
|
641
|
+
* 默认禁用值
|
642
|
+
* @description 兼容2.0版本、3.0使用view模式,查看模式值
|
643
|
+
* @default undefined
|
644
|
+
*/
|
181
645
|
defaultDisableValue?: string;
|
182
|
-
/**
|
646
|
+
/**
|
647
|
+
* 响应数据转换
|
648
|
+
* @description 格式化接口响应数据
|
649
|
+
* @default undefined
|
650
|
+
*/
|
183
651
|
transformResponse?: (data: any) => DataOption[];
|
184
|
-
/**
|
652
|
+
/**
|
653
|
+
* 是否显示提示
|
654
|
+
* @description 是否展示tooltip,当label特别长的时候使用
|
655
|
+
* @default false
|
656
|
+
*/
|
185
657
|
tooltip?: boolean;
|
186
|
-
/**
|
658
|
+
/**
|
659
|
+
* 显示代码名称
|
660
|
+
* @description 是否展示code-label形式
|
661
|
+
* @default false
|
662
|
+
*/
|
187
663
|
showCodeName?: boolean;
|
188
|
-
/**
|
189
|
-
|
664
|
+
/**
|
665
|
+
* 其他属性
|
666
|
+
* @description 集成表单form的属性
|
667
|
+
* @default undefined
|
668
|
+
*/
|
669
|
+
otherProps?: ProFormOtherType;
|
670
|
+
/**
|
671
|
+
* 搜索回调
|
672
|
+
* @description 搜索时的回调函数
|
673
|
+
* @default undefined
|
674
|
+
*/
|
190
675
|
onSearch?: (value: string, useRequest: Result<any, any>) => void;
|
191
|
-
/**
|
676
|
+
/**
|
677
|
+
* 远程请求
|
678
|
+
* @description 远程请求接口配置
|
679
|
+
* @default undefined
|
680
|
+
*/
|
192
681
|
useRequest?: {
|
193
682
|
service: Service<any, any>;
|
194
683
|
options?: Options<any, any>;
|
195
684
|
};
|
685
|
+
/**
|
686
|
+
* 可勾选
|
687
|
+
* @description 是否可以勾选
|
688
|
+
* @default undefined
|
689
|
+
*/
|
196
690
|
checkable?: boolean;
|
197
691
|
}
|
692
|
+
/**
|
693
|
+
* ProSelect操作
|
694
|
+
* @description ProSelect组件的操作接口
|
695
|
+
*/
|
198
696
|
export interface ProSelectAction {
|
199
|
-
/**
|
697
|
+
/**
|
698
|
+
* useRequest引用
|
699
|
+
* @description 获取发生请求的useRequest的ref
|
700
|
+
* @default undefined
|
701
|
+
*/
|
200
702
|
useRequestRef: Result<any, any>;
|
201
703
|
}
|
704
|
+
/**
|
705
|
+
* 树节点数据
|
706
|
+
* @description 树节点的数据结构
|
707
|
+
*/
|
202
708
|
export interface TreeNodeData extends DataOption {
|
709
|
+
/**
|
710
|
+
* 标题
|
711
|
+
* @description 节点的标题
|
712
|
+
* @default undefined
|
713
|
+
*/
|
203
714
|
title: string;
|
715
|
+
/**
|
716
|
+
* 值
|
717
|
+
* @description 节点的值
|
718
|
+
* @default undefined
|
719
|
+
*/
|
204
720
|
value: string;
|
721
|
+
/**
|
722
|
+
* 子节点
|
723
|
+
* @description 子节点数组
|
724
|
+
* @default undefined
|
725
|
+
*/
|
205
726
|
children?: TreeNodeData[];
|
727
|
+
/**
|
728
|
+
* 图标
|
729
|
+
* @description 节点的图标
|
730
|
+
* @default undefined
|
731
|
+
*/
|
206
732
|
icon?: ReactNode;
|
733
|
+
/**
|
734
|
+
* 隐藏节点类名
|
735
|
+
* @description 隐藏节点的类名
|
736
|
+
* @default undefined
|
737
|
+
*/
|
207
738
|
hideNodeClass?: string;
|
208
739
|
}
|
740
|
+
/**
|
741
|
+
* 树选择表单属性
|
742
|
+
* @description 树选择表单的配置属性
|
743
|
+
*/
|
209
744
|
export interface TreeSelectFormProps {
|
745
|
+
/**
|
746
|
+
* 类型
|
747
|
+
* @description 表单项类型
|
748
|
+
* @default undefined
|
749
|
+
*/
|
210
750
|
type?: string;
|
751
|
+
/**
|
752
|
+
* 标签
|
753
|
+
* @description 表单项标签
|
754
|
+
* @default undefined
|
755
|
+
*/
|
211
756
|
label?: string;
|
757
|
+
/**
|
758
|
+
* 名称
|
759
|
+
* @description 表单项字段名
|
760
|
+
* @default undefined
|
761
|
+
*/
|
212
762
|
name?: string;
|
763
|
+
/**
|
764
|
+
* 字段属性
|
765
|
+
* @description 树选择组件的属性配置
|
766
|
+
* @default undefined
|
767
|
+
*/
|
213
768
|
fieldProps?: PropTreeSelectProps;
|
769
|
+
/**
|
770
|
+
* 自定义属性
|
771
|
+
* @description 其他自定义属性
|
772
|
+
* @default undefined
|
773
|
+
*/
|
214
774
|
[key: string]: any;
|
215
775
|
}
|
776
|
+
/**
|
777
|
+
* 响应数据
|
778
|
+
* @description API响应数据结构
|
779
|
+
*/
|
216
780
|
export interface ResponseData {
|
781
|
+
/**
|
782
|
+
* 状态码
|
783
|
+
* @description 接口返回的状态码
|
784
|
+
* @default undefined
|
785
|
+
*/
|
217
786
|
status: number;
|
787
|
+
/**
|
788
|
+
* 消息
|
789
|
+
* @description 接口返回的消息
|
790
|
+
* @default undefined
|
791
|
+
*/
|
218
792
|
message: string;
|
793
|
+
/**
|
794
|
+
* 数据
|
795
|
+
* @description 接口返回的数据
|
796
|
+
* @default undefined
|
797
|
+
*/
|
219
798
|
data: any;
|
799
|
+
/**
|
800
|
+
* 是否成功
|
801
|
+
* @description 请求是否成功
|
802
|
+
* @default undefined
|
803
|
+
*/
|
220
804
|
success?: boolean;
|
805
|
+
/**
|
806
|
+
* 代码
|
807
|
+
* @description 业务代码
|
808
|
+
* @default undefined
|
809
|
+
*/
|
221
810
|
code?: number;
|
222
811
|
}
|
223
812
|
export {};
|