@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
@@ -4,33 +4,33 @@ import React from 'react';
|
|
4
4
|
import { validate, regExp } from '@zat-design/utils';
|
5
5
|
import { RuleObject } from 'antd/es/form';
|
6
6
|
import * as componentMap from '../index';
|
7
|
-
import {
|
7
|
+
import { Props as InputProps } from '../base/Input/propsType';
|
8
8
|
import { Props as InputNumberProps } from '../base/InputNumber';
|
9
9
|
import { Props as RadioProps } from '../base/Radio';
|
10
10
|
import { Props as CheckboxProps } from '../base/Checkbox';
|
11
11
|
import { Props as DatePickerProps } from '../base/DatePicker';
|
12
12
|
import { Props as RangePickerProps } from '../base/RangePicker';
|
13
|
-
import {
|
13
|
+
import { TypeWithRef as FormListType } from '../combination/FormList/propsType';
|
14
14
|
import { Props as SelectProps } from '../base/Select';
|
15
15
|
import { Props as TimePickerProps } from '../base/TimePicker';
|
16
16
|
import { Props as SwitchProps } from '../base/Switch';
|
17
17
|
import { Props as SwitchCheckboxProps } from '../base/SwitchCheckbox';
|
18
18
|
import { Props as TextAreaProps } from '../base/TextArea';
|
19
|
-
import {
|
20
|
-
import {
|
21
|
-
import {
|
19
|
+
import { ProCascaderType } from '../combination/ProCascader/propsType';
|
20
|
+
import { ProCombinationType } from '../combination/ProCombination/propsType';
|
21
|
+
import { ProModalSelectType } from '../combination/ProModalSelect/propsType';
|
22
22
|
import { ProNumberRangeProps } from '../combination/ProNumberRange/propsType';
|
23
23
|
import { ProLimitProps } from '../combination/ProTimeLimit';
|
24
24
|
import { Props as ProRangeLimitProps } from '../combination/ProRangeLimit';
|
25
25
|
import { CheckboxPropsMap, ProEnum, PropProSelectsMap, PropRadioPropsMap } from '../../../ProEnum/propsType';
|
26
26
|
import { PropSelectProps as ProSelectProps } from '../../../ProSelect/propsType';
|
27
|
-
import {
|
27
|
+
import { ProEditTableType } from '../../../ProEditTable/propsType';
|
28
28
|
import { ProTreeModalProps } from '../../../ProTreeModal/propsType';
|
29
|
-
import {
|
29
|
+
import { ProUploadType } from '../../../ProUpload/propsType';
|
30
30
|
import { ProTreeProps } from '../../../ProTree/propsType';
|
31
|
-
import {
|
31
|
+
import { GroupType as GroupCopyProps } from '../combination/Group/propsType';
|
32
32
|
import { ProCollapseProps } from '../../../ProLayout/components/ProCollapse/PropTypes';
|
33
|
-
import { DistributiveOmit,
|
33
|
+
import { DistributiveOmit, DiffConfigType } from '../../propsType';
|
34
34
|
import { DiffOriginalParams } from '../../utils/diffOriginal';
|
35
35
|
export type ComponentMap = keyof typeof componentMap;
|
36
36
|
type ValidateKey = keyof typeof validate;
|
@@ -66,9 +66,9 @@ type TransformToFormField<T extends ControlProps, Values> = DistributiveOmit<T,
|
|
66
66
|
/** ProForm disable时,是否完全受控 */
|
67
67
|
disabledStrictly?: boolean;
|
68
68
|
};
|
69
|
-
type
|
70
|
-
type
|
71
|
-
type
|
69
|
+
type ProEnumFormType<Values> = TransformToFormField<ProEnum, Values> | TransformToFormField<ProEnum & PropProSelectsMap, Values> | TransformToFormField<ProEnum & PropRadioPropsMap, Values> | TransformToFormField<ProEnum & CheckboxPropsMap, Values>;
|
70
|
+
type ProEnumTableType<Values> = TransformToTableField<ProEnum, Values> | TransformToTableField<ProEnum & PropProSelectsMap, Values> | TransformToTableField<ProEnum & PropRadioPropsMap, Values> | TransformToTableField<ProEnum & CheckboxPropsMap, Values>;
|
71
|
+
type ProEnumFieldType<Values, TT> = TT extends 'ProForm' ? ProEnumFormType<Values> | ReactiveFunction<Values, ProEnumFormType<Values>> : ProEnumTableType<Values> | ((text: any, values: Values, index: number) => ProEnumTableType<Values>);
|
72
72
|
type TransformToTableField<T extends ControlProps, Values> = Omit<T, 'onChange' | 'value' | 'onBlur'> & {
|
73
73
|
value?: T['value'];
|
74
74
|
onChange?: (value: Parameters<T['onChange']>[0], options: Parameters<T['onChange']>[1], record: any, index: number, form: FormInstance<Values>) => void;
|
@@ -81,83 +81,83 @@ export type ReactiveFunction<Values, R> = (values: Values, { form, index, namePa
|
|
81
81
|
namePath?: NamePath;
|
82
82
|
[key: string]: any;
|
83
83
|
}) => R;
|
84
|
-
type
|
84
|
+
type FieldType<T extends ControlProps, Values, TT> = TT extends 'ProForm' ? TransformToFormField<T, Values> | ReactiveFunction<Values, TransformToFormField<T, Values>> : TransformToTableField<T, Values> | ((text: any, values: Values, index: number) => TransformToTableField<T, Values>);
|
85
85
|
/**
|
86
86
|
* 值转换
|
87
87
|
*/
|
88
88
|
export type ProFormValueType = 'percentage' | 'permillage' | 'thousandth' | 'datePicker' | 'enumName' | 'enumCodeName' | 'address' | 'thousandthCNY' | 'date' | 'dateTime' | 'dateStartTime' | 'dateEndTime' | 'dateStartEndTime' | 'switch' | 'desensitization';
|
89
|
-
export type
|
89
|
+
export type ColumnTypeMap<Values = any, T = 'ProForm'> = {
|
90
90
|
type?: 'Input';
|
91
|
-
fieldProps?:
|
91
|
+
fieldProps?: FieldType<InputProps, Values, T>;
|
92
92
|
} | {
|
93
93
|
type?: 'InputNumber';
|
94
|
-
fieldProps?:
|
94
|
+
fieldProps?: FieldType<InputNumberProps, Values, T>;
|
95
95
|
} | {
|
96
96
|
type?: 'Radio';
|
97
|
-
fieldProps?:
|
97
|
+
fieldProps?: FieldType<RadioProps, Values, T>;
|
98
98
|
} | {
|
99
99
|
type?: 'Checkbox';
|
100
|
-
fieldProps?:
|
100
|
+
fieldProps?: FieldType<CheckboxProps, Values, T>;
|
101
101
|
} | {
|
102
102
|
type?: 'DatePicker';
|
103
|
-
fieldProps?:
|
103
|
+
fieldProps?: FieldType<DatePickerProps, Values, T>;
|
104
104
|
} | {
|
105
105
|
type?: 'RangePicker';
|
106
|
-
fieldProps?:
|
106
|
+
fieldProps?: FieldType<RangePickerProps, Values, T>;
|
107
107
|
} | {
|
108
108
|
type?: 'FormList';
|
109
|
-
fieldProps?:
|
109
|
+
fieldProps?: FieldType<Omit<FormListType, 'fields' | 'operation' | 'meta'>, Values, T>;
|
110
110
|
} | {
|
111
111
|
type?: 'Select';
|
112
|
-
fieldProps?:
|
112
|
+
fieldProps?: FieldType<SelectProps, Values, T>;
|
113
113
|
} | {
|
114
114
|
type?: 'TimePicker';
|
115
|
-
fieldProps?:
|
115
|
+
fieldProps?: FieldType<TimePickerProps, Values, T>;
|
116
116
|
} | {
|
117
117
|
type?: 'Switch';
|
118
|
-
fieldProps?:
|
118
|
+
fieldProps?: FieldType<SwitchProps, Values, T>;
|
119
119
|
} | {
|
120
120
|
type?: 'SwitchCheckbox';
|
121
|
-
fieldProps?:
|
121
|
+
fieldProps?: FieldType<SwitchCheckboxProps, Values, T>;
|
122
122
|
} | {
|
123
123
|
type?: 'TextArea';
|
124
|
-
fieldProps?:
|
124
|
+
fieldProps?: FieldType<TextAreaProps, Values, T>;
|
125
125
|
} | {
|
126
126
|
type?: 'ProCascader';
|
127
|
-
fieldProps?:
|
127
|
+
fieldProps?: FieldType<ProCascaderType, Values, T>;
|
128
128
|
} | {
|
129
129
|
type?: 'ProCombination';
|
130
|
-
fieldProps?:
|
130
|
+
fieldProps?: FieldType<ProCombinationType, Values, T>;
|
131
131
|
} | {
|
132
132
|
type?: 'ProModalSelect';
|
133
|
-
fieldProps?:
|
133
|
+
fieldProps?: FieldType<ProModalSelectType, Values, T>;
|
134
134
|
} | {
|
135
135
|
type?: 'ProNumberRange';
|
136
|
-
fieldProps?:
|
136
|
+
fieldProps?: FieldType<ProNumberRangeProps, Values, T>;
|
137
137
|
} | {
|
138
138
|
type?: 'ProRangeLimit';
|
139
|
-
fieldProps?:
|
139
|
+
fieldProps?: FieldType<ProRangeLimitProps, Values, T>;
|
140
140
|
} | {
|
141
141
|
type?: 'ProTimeLimit';
|
142
|
-
fieldProps?:
|
142
|
+
fieldProps?: FieldType<ProLimitProps, Values, T>;
|
143
143
|
} | {
|
144
144
|
type?: 'ProEnum';
|
145
|
-
fieldProps?:
|
145
|
+
fieldProps?: ProEnumFieldType<Values, T>;
|
146
146
|
} | {
|
147
147
|
type?: 'ProSelect';
|
148
|
-
fieldProps?:
|
148
|
+
fieldProps?: FieldType<ProSelectProps, Values, T>;
|
149
149
|
} | {
|
150
150
|
type?: 'ProEditTable';
|
151
|
-
fieldProps?:
|
151
|
+
fieldProps?: FieldType<ProEditTableType, Values, T>;
|
152
152
|
} | {
|
153
153
|
type?: 'ProTreeModal';
|
154
|
-
fieldProps?:
|
154
|
+
fieldProps?: FieldType<ProTreeModalProps, Values, T>;
|
155
155
|
} | {
|
156
156
|
type?: 'ProUpload';
|
157
|
-
fieldProps?:
|
157
|
+
fieldProps?: FieldType<ProUploadType, Values, T>;
|
158
158
|
} | {
|
159
159
|
type?: 'ProTree';
|
160
|
-
fieldProps?:
|
160
|
+
fieldProps?: FieldType<ProTreeProps, Values, T>;
|
161
161
|
} | {
|
162
162
|
type?: 'Group';
|
163
163
|
fieldProps?: GroupCopyProps | ReactiveFunction<Values, GroupCopyProps>;
|
@@ -168,7 +168,7 @@ export type ColumnPropsMap<Values = any, T = 'ProForm'> = {
|
|
168
168
|
type?: 'Container';
|
169
169
|
fieldProps?: any;
|
170
170
|
};
|
171
|
-
export interface
|
171
|
+
export interface ProFormColumnType<Values = any> extends Omit<FormItemProps<Values>, 'rules' | 'required'> {
|
172
172
|
component?: React.ReactNode | ReactiveFunction<Values, React.ReactNode>;
|
173
173
|
names?: NamePath[];
|
174
174
|
show?: boolean | ReactiveFunction<Values, boolean>;
|
@@ -233,11 +233,11 @@ export interface ProFormColumnProps<Values = any> extends Omit<FormItemProps<Val
|
|
233
233
|
/** 脱敏数据位置下标 */
|
234
234
|
desensitization?: [number, number] | ReactiveFunction<Values, [number, number]>;
|
235
235
|
}
|
236
|
-
export type
|
236
|
+
export type ProColumnType<T = any> = ProFormColumnType<T> & ColumnTypeMap<T, 'ProForm'>;
|
237
237
|
/**
|
238
238
|
* 表单渲染类型
|
239
239
|
*/
|
240
|
-
export interface
|
240
|
+
export interface RenderType<Values = any> {
|
241
241
|
formDisabled?: boolean;
|
242
242
|
component: any;
|
243
243
|
formItemProps: FormItemProps<Values> & {
|
@@ -278,10 +278,21 @@ export interface RenderProps<Values = any> {
|
|
278
278
|
form: FormInstance<Values>;
|
279
279
|
fieldProps?: ReactiveFunction<Values, React.ReactNode>;
|
280
280
|
isSelect: boolean;
|
281
|
-
diffConfig:
|
281
|
+
diffConfig: DiffConfigType;
|
282
282
|
requiredOnView?: boolean;
|
283
|
-
confirm?:
|
283
|
+
confirm?: ProFormColumnType['confirm'];
|
284
284
|
globalControl?: boolean;
|
285
285
|
[name: string]: any;
|
286
286
|
}
|
287
|
+
/**
|
288
|
+
* 兼容旧命名导出
|
289
|
+
*/
|
290
|
+
export type ProEnumFormProps<Values> = ProEnumFormType<Values>;
|
291
|
+
export type ProEnumTableProps<Values> = ProEnumTableType<Values>;
|
292
|
+
export type ProEnumFieldProps<Values, TT> = ProEnumFieldType<Values, TT>;
|
293
|
+
export type FieldProps<T extends ControlProps, Values, TT> = FieldType<T, Values, TT>;
|
294
|
+
export type ColumnPropsMap<Values = any, T = 'ProForm'> = ColumnTypeMap<Values, T>;
|
295
|
+
export type ProFormColumnProps<Values = any> = ProFormColumnType<Values>;
|
296
|
+
export type ProColumnProps<T = any> = ProColumnType<T>;
|
297
|
+
export type RenderProps<Values = any> = RenderType<Values>;
|
287
298
|
export {};
|
package/es/ProForm/index.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { FormInstance } from 'antd';
|
2
2
|
import React, { ForwardRefRenderFunction } from 'react';
|
3
3
|
import { FormProviderProps } from 'antd/es/form/context';
|
4
|
-
import {
|
4
|
+
import { ProFormType } from './propsType';
|
5
5
|
import { useForm } from './utils/useForm';
|
6
6
|
import useWatch from './utils/useWatch';
|
7
|
-
interface IProForm<T = any> extends ForwardRefRenderFunction<FormInstance<T>,
|
7
|
+
interface IProForm<T = any> extends ForwardRefRenderFunction<FormInstance<T>, ProFormType<T>> {
|
8
8
|
useForm: typeof useForm;
|
9
9
|
useWatch: typeof useWatch;
|
10
10
|
[key: string]: any;
|
@@ -4,27 +4,27 @@ import { NamePath } from 'antd/es/form/interface';
|
|
4
4
|
import { StoreValue, Store } from 'rc-field-form/es/interface.d';
|
5
5
|
import { ShouldUpdate } from 'rc-field-form/es/Field.d';
|
6
6
|
import React, { ReactNode } from 'react';
|
7
|
-
import { ComponentMap,
|
7
|
+
import { ComponentMap, ProColumnType, ViewType } from './components/render/propsType';
|
8
8
|
export * from './components/render/propsType';
|
9
|
-
export interface
|
9
|
+
export interface ButtonType extends ButtonProps {
|
10
10
|
children?: any;
|
11
11
|
}
|
12
|
-
export interface
|
13
|
-
okButtonProps?:
|
14
|
-
cancelButtonProps?:
|
12
|
+
export interface FooterButtonType {
|
13
|
+
okButtonProps?: ButtonType;
|
14
|
+
cancelButtonProps?: ButtonType;
|
15
15
|
}
|
16
|
-
export interface
|
16
|
+
export interface ProFormItemChildType {
|
17
17
|
value?: any;
|
18
18
|
onChange?: () => void;
|
19
19
|
[key: string]: any;
|
20
20
|
}
|
21
21
|
export type ModeEnum = 'search' | 'drawer';
|
22
22
|
type FooterType = ReactNode | {
|
23
|
-
okButtonProps:
|
24
|
-
cancelButtonProps:
|
23
|
+
okButtonProps: ButtonType;
|
24
|
+
cancelButtonProps: ButtonType;
|
25
25
|
} | boolean;
|
26
26
|
export declare const otherKeys: string[];
|
27
|
-
export interface
|
27
|
+
export interface ProFormOtherType {
|
28
28
|
isView?: boolean;
|
29
29
|
viewEmpty?: React.ReactNode;
|
30
30
|
label?: React.ReactNode;
|
@@ -45,10 +45,10 @@ export interface ProFormOtherProps {
|
|
45
45
|
globalControl?: boolean;
|
46
46
|
formDisabled?: boolean;
|
47
47
|
isDiffChange?: boolean;
|
48
|
-
diffConfig?:
|
48
|
+
diffConfig?: DiffConfigType;
|
49
49
|
desensitizationKey?: string;
|
50
50
|
}
|
51
|
-
export interface
|
51
|
+
export interface DiffConfigType<Values = any> {
|
52
52
|
/** 比对原始数据源 */
|
53
53
|
originalValues: Values;
|
54
54
|
/** 是否显示对比值气泡 */
|
@@ -60,7 +60,7 @@ export interface DiffConfigProps<Values = any> {
|
|
60
60
|
/** 是否跟随父组件滚动 */
|
61
61
|
scrollFollowParent?: string;
|
62
62
|
}
|
63
|
-
export interface
|
63
|
+
export interface ProFormType<Values = any> extends FormProps<Values> {
|
64
64
|
disabled?: boolean;
|
65
65
|
/** 全局控制优先 */
|
66
66
|
globalControl?: boolean;
|
@@ -69,7 +69,7 @@ export interface ProFormProps<Values = any> extends FormProps<Values> {
|
|
69
69
|
/** 是否查看 */
|
70
70
|
isView?: boolean;
|
71
71
|
span?: number;
|
72
|
-
columns?:
|
72
|
+
columns?: ProColumnType<Values>[];
|
73
73
|
rowProps?: RowProps;
|
74
74
|
footer?: FooterType;
|
75
75
|
expand?: boolean | number;
|
@@ -89,7 +89,7 @@ export interface ProFormProps<Values = any> extends FormProps<Values> {
|
|
89
89
|
formId?: string;
|
90
90
|
required?: boolean | boolean[];
|
91
91
|
/** 表单比对配置 */
|
92
|
-
diffConfig?:
|
92
|
+
diffConfig?: DiffConfigType;
|
93
93
|
scrollToError?: boolean;
|
94
94
|
/** 性能模式,谨慎使用,默认不开启
|
95
95
|
* 1. 开启不过滤names的中间态值
|
@@ -98,9 +98,16 @@ export interface ProFormProps<Values = any> extends FormProps<Values> {
|
|
98
98
|
/** 全局脱敏开关的key、默认 zat-design-pro-component-desensitization */
|
99
99
|
desensitizationKey?: string;
|
100
100
|
}
|
101
|
-
export interface
|
101
|
+
export interface TransformType<T = any> {
|
102
102
|
normalize?: (value: StoreValue, prevValue: StoreValue, allValues: Store) => StoreValue;
|
103
103
|
getValueProps?: (value: StoreValue) => Record<string, unknown>;
|
104
104
|
shouldUpdate?: ShouldUpdate<T>;
|
105
105
|
}
|
106
106
|
export type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
|
107
|
+
/**
|
108
|
+
* 兼容旧命名导出
|
109
|
+
*/
|
110
|
+
export type FooterButtonProps = FooterButtonType;
|
111
|
+
export type ProFormOtherProps = ProFormOtherType;
|
112
|
+
export type DiffConfigProps = DiffConfigType;
|
113
|
+
export type Transform = TransformType;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FormInstance, FormItemProps } from 'antd';
|
2
2
|
import { NamePath } from 'antd/es/form/interface';
|
3
3
|
import { StoreValue, Store } from 'rc-field-form/es/interface.d';
|
4
|
-
import {
|
5
|
-
export declare const transformValue: (names: NamePath[], form: FormInstance, fieldName: NamePath, normalize?: (value: StoreValue, prevValue: StoreValue, allValues: Store) => StoreValue, getValueProps?: FormItemProps['getValueProps']) =>
|
4
|
+
import { TransformType } from '../propsType';
|
5
|
+
export declare const transformValue: (names: NamePath[], form: FormInstance, fieldName: NamePath, normalize?: (value: StoreValue, prevValue: StoreValue, allValues: Store) => StoreValue, getValueProps?: FormItemProps['getValueProps']) => TransformType;
|
6
6
|
export default transformValue;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
3
|
-
export declare const FieldProvider: React.Provider<
|
4
|
-
export declare const useFieldProps: () =>
|
2
|
+
import { ProFormOtherType } from '../propsType';
|
3
|
+
export declare const FieldProvider: React.Provider<ProFormOtherType>;
|
4
|
+
export declare const useFieldProps: () => ProFormOtherType;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FormInstance, FormItemProps } from 'antd';
|
2
|
-
import {
|
2
|
+
import { ProColumnType, ProRule } from '../components/render/propsType';
|
3
3
|
interface Result<Values> {
|
4
4
|
shouldUpdate?: FormItemProps<Values>['shouldUpdate'];
|
5
5
|
show?: boolean;
|
@@ -9,8 +9,8 @@ interface Result<Values> {
|
|
9
9
|
[key: string]: any;
|
10
10
|
}
|
11
11
|
interface UseShouldUpdateProps<Values> {
|
12
|
-
show?:
|
13
|
-
formItemProps?:
|
12
|
+
show?: ProColumnType['show'];
|
13
|
+
formItemProps?: ProColumnType['formItemProps'] & {
|
14
14
|
clearNotShow?: boolean;
|
15
15
|
names?: any[];
|
16
16
|
};
|
package/es/ProIcon/index.d.ts
CHANGED
@@ -1,105 +1,180 @@
|
|
1
|
-
import
|
1
|
+
import { CSSProperties, ReactNode, MouseEventHandler } from 'react';
|
2
2
|
import { ButtonProps } from 'antd/lib/button';
|
3
|
-
|
4
|
-
|
3
|
+
/**
|
4
|
+
* 图标模式
|
5
|
+
* @description 定义图标的显示模式:纯图标或按钮形式
|
6
|
+
*/
|
7
|
+
export type ProIconModeType = 'icon' | 'button';
|
8
|
+
/**
|
9
|
+
* 图标映射对象
|
10
|
+
*/
|
11
|
+
interface ProIconMapType {
|
12
|
+
/**
|
13
|
+
* 图标类型
|
14
|
+
* @description 唯一标识图标的类型名称
|
15
|
+
* @default undefined
|
16
|
+
*/
|
5
17
|
type: string;
|
18
|
+
/**
|
19
|
+
* 中文显示文本
|
20
|
+
* @description 图标对应的中文描述
|
21
|
+
* @default undefined
|
22
|
+
*/
|
6
23
|
'text-cn'?: string;
|
24
|
+
/**
|
25
|
+
* 英文显示文本
|
26
|
+
* @description 图标对应的英文描述
|
27
|
+
* @default undefined
|
28
|
+
*/
|
7
29
|
'text-en'?: string;
|
8
30
|
}
|
9
|
-
|
31
|
+
/**
|
32
|
+
* 主题映射对象
|
33
|
+
*/
|
34
|
+
interface ProIconThemeMapType {
|
35
|
+
/**
|
36
|
+
* 主题颜色映射
|
37
|
+
* @description 不同主题下的颜色值数组
|
38
|
+
* @default undefined
|
39
|
+
*/
|
10
40
|
[key: string]: string[];
|
11
41
|
}
|
12
|
-
|
13
|
-
|
14
|
-
|
42
|
+
/**
|
43
|
+
* 操作映射对象
|
44
|
+
*/
|
45
|
+
interface ProIconActionMapType {
|
46
|
+
/**
|
47
|
+
* 主题颜色映射
|
48
|
+
* @description 不同主题下的颜色映射
|
49
|
+
* @default undefined
|
50
|
+
*/
|
51
|
+
themeMap?: ProIconThemeMapType;
|
52
|
+
/**
|
53
|
+
* 主题填充颜色映射
|
54
|
+
* @description 不同主题下的填充颜色映射
|
55
|
+
* @default undefined
|
56
|
+
*/
|
57
|
+
themeFillMap?: ProIconThemeMapType;
|
58
|
+
/**
|
59
|
+
* 渐变色值
|
60
|
+
* @description 渐变色值数组
|
61
|
+
* @default undefined
|
62
|
+
*/
|
15
63
|
gradation?: string[];
|
64
|
+
/**
|
65
|
+
* 填充色值
|
66
|
+
* @description 填充色值数组
|
67
|
+
* @default undefined
|
68
|
+
*/
|
16
69
|
fill?: string[];
|
17
70
|
}
|
18
|
-
export interface
|
71
|
+
export interface ProIconType {
|
19
72
|
/**
|
20
|
-
*
|
21
|
-
* @
|
73
|
+
* 图标路径
|
74
|
+
* @description 本地import引入的图标路径
|
75
|
+
* @default ""
|
22
76
|
*/
|
23
77
|
src?: string;
|
24
78
|
/**
|
25
|
-
*
|
26
|
-
* @
|
79
|
+
* 图标名称
|
80
|
+
* @description 图标的类型名称,用于识别特定图标
|
81
|
+
* @default undefined
|
27
82
|
*/
|
28
83
|
type?: string;
|
29
84
|
/**
|
30
|
-
*
|
31
|
-
* @
|
85
|
+
* 图标大小
|
86
|
+
* @description 图标的大小,同时设置图标的width以及height
|
87
|
+
* @default 14
|
32
88
|
*/
|
33
89
|
size?: number;
|
34
90
|
/**
|
35
|
-
*
|
36
|
-
*
|
37
|
-
* @default
|
91
|
+
* 旋转角度
|
92
|
+
* @description 图标旋转角度(IE9 无效)
|
93
|
+
* @default undefined
|
38
94
|
*/
|
39
95
|
rotate?: number;
|
40
96
|
/**
|
41
|
-
*
|
42
|
-
*
|
43
|
-
* @default
|
97
|
+
* 是否旋转
|
98
|
+
* @description 图标是否旋转loading效果
|
99
|
+
* @default false
|
44
100
|
*/
|
45
101
|
spin?: boolean;
|
46
102
|
/**
|
47
|
-
*
|
48
|
-
*
|
49
|
-
* @default
|
103
|
+
* 图标颜色
|
104
|
+
* @description 图标的颜色,设置svg的fill属性
|
105
|
+
* @default undefined
|
50
106
|
*/
|
51
107
|
color?: string;
|
52
108
|
/**
|
53
|
-
*
|
54
|
-
* @
|
109
|
+
* 是否禁用
|
110
|
+
* @description 设置图标为禁用状态
|
111
|
+
* @default false
|
55
112
|
*/
|
56
113
|
disabled?: boolean;
|
57
114
|
/**
|
58
|
-
*
|
59
|
-
* @
|
115
|
+
* 提示信息
|
116
|
+
* @description 鼠标悬停时显示的提示信息
|
117
|
+
* @default undefined
|
60
118
|
*/
|
61
|
-
tooltip?: string |
|
119
|
+
tooltip?: string | ReactNode;
|
62
120
|
/**
|
63
|
-
*
|
64
|
-
* @
|
121
|
+
* 是否跟随主题
|
122
|
+
* @description 是否跟随系统主题色变化
|
123
|
+
* @default false
|
65
124
|
*/
|
66
125
|
theme?: boolean;
|
67
126
|
/**
|
68
|
-
*
|
69
|
-
* @
|
127
|
+
* 点击事件
|
128
|
+
* @description 图标的点击事件处理函数
|
129
|
+
* @default () => {}
|
70
130
|
*/
|
71
|
-
onClick?:
|
131
|
+
onClick?: MouseEventHandler<SVGSVGElement>;
|
72
132
|
/**
|
73
|
-
*
|
74
|
-
* @
|
133
|
+
* 自定义类名
|
134
|
+
* @description 自定义图标的CSS类名
|
135
|
+
* @default undefined
|
75
136
|
*/
|
76
137
|
className?: string;
|
77
138
|
/**
|
78
|
-
*
|
79
|
-
* @
|
139
|
+
* 自定义样式
|
140
|
+
* @description 计算后的svg元素样式,优先级高于size/color/rotate属性
|
141
|
+
* @default undefined
|
80
142
|
*/
|
81
143
|
style?: CSSProperties;
|
82
144
|
/**
|
83
|
-
*
|
84
|
-
* @
|
145
|
+
* 显示模式
|
146
|
+
* @description 图标的显示模式:图标或按钮
|
147
|
+
* @default 'icon'
|
85
148
|
*/
|
86
|
-
mode?:
|
149
|
+
mode?: ProIconModeType;
|
87
150
|
/**
|
88
|
-
*
|
89
|
-
* @
|
151
|
+
* 按钮属性
|
152
|
+
* @description mode为button时的按钮属性,与antd Button接收props一致
|
153
|
+
* @default { type: 'link' }
|
90
154
|
*/
|
91
155
|
buttonProps?: ButtonProps;
|
92
156
|
/**
|
93
|
-
*
|
94
|
-
* @
|
157
|
+
* 图标映射表
|
158
|
+
* @description 图标与中英文文本的映射表
|
159
|
+
* @default 项目内默认映射
|
160
|
+
*/
|
161
|
+
mapList?: ProIconMapType[];
|
162
|
+
/**
|
163
|
+
* SVG操作表
|
164
|
+
* @description SVG变更操作表,用于主题配置
|
165
|
+
* @default undefined
|
95
166
|
*/
|
96
|
-
|
167
|
+
actionMap?: ProIconActionMapType;
|
97
168
|
/**
|
98
|
-
*
|
99
|
-
* @
|
169
|
+
* 按钮图标标记
|
170
|
+
* @description 内部使用,标记图标作为按钮使用
|
171
|
+
* @default undefined
|
100
172
|
*/
|
101
|
-
actionMap?: actionMap;
|
102
|
-
/** 内部使用 */
|
103
173
|
buttonIcon?: boolean;
|
104
174
|
}
|
175
|
+
export type ModeType = ProIconModeType;
|
176
|
+
export type ProIconProps = ProIconType;
|
177
|
+
export type iconMap = ProIconMapType;
|
178
|
+
export type themeMap = ProIconThemeMapType;
|
179
|
+
export type actionMap = ProIconActionMapType;
|
105
180
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
2
2
|
import { CollapseProps, CollapsePanelProps } from 'antd/es/collapse';
|
3
3
|
export type levelType = '1' | '2';
|
4
|
-
export interface
|
4
|
+
export interface TitleListType {
|
5
5
|
/**
|
6
6
|
* @description 描述的标题
|
7
7
|
* @default -
|
@@ -13,7 +13,7 @@ export interface TitleListProps {
|
|
13
13
|
*/
|
14
14
|
value: string | number | undefined | React.ReactNode;
|
15
15
|
}
|
16
|
-
export interface
|
16
|
+
export interface ProCollapseType {
|
17
17
|
/**
|
18
18
|
* @description 折叠头部标题
|
19
19
|
* @default -
|
@@ -75,6 +75,11 @@ export interface ProCollapseProps {
|
|
75
75
|
*/
|
76
76
|
folding?: boolean;
|
77
77
|
/**
|
78
|
+
* @description 控制折叠面板展开状态
|
79
|
+
* @default -
|
80
|
+
*/
|
81
|
+
open?: boolean;
|
82
|
+
/**
|
78
83
|
* @description antd Collapse属性
|
79
84
|
* @default -
|
80
85
|
*/
|
@@ -86,3 +91,5 @@ export interface ProCollapseProps {
|
|
86
91
|
collapsePanelProps?: CollapsePanelProps;
|
87
92
|
[key: string]: any;
|
88
93
|
}
|
94
|
+
export type ProCollapseProps = ProCollapseType;
|
95
|
+
export type TitleListProps = TitleListType;
|