@xxlabs/antd-plus 1.5.1 → 1.5.2
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/dist/index.d.ts +128 -126
- package/dist/index.js +94 -92
- package/package.json +9 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import * as antd from "antd";
|
|
1
|
+
import * as _$antd from "antd";
|
|
2
2
|
import { AffixProps, AvatarProps, BadgeProps, Breadcrumb, BreadcrumbProps, ButtonProps, CascaderProps, CheckboxProps, ColProps, ColorPickerProps, DatePickerProps, DescriptionsProps, DividerProps, DrawerProps, Form, FormInstance, FormItemProps, FormProps, ImageProps, InputNumberProps, InputProps, ListProps, MenuItemProps, MenuProps, ModalProps, PopoverProps, ProgressProps, Radio, RadioGroupProps, RadioProps, RateProps, RowProps, SegmentedProps, SelectProps, SiderProps, SliderSingleProps, SpaceProps, SpinProps, StatisticProps as StatisticProps$1, StepsProps, SwitchProps, TabPaneProps, TableColumnType, TablePaginationConfig, TableProps, TabsProps, TagType, TimeRangePickerProps, TreeSelectProps, UploadProps, WatermarkProps, theme } from "antd";
|
|
3
|
-
import * as react from "react";
|
|
3
|
+
import * as _$react from "react";
|
|
4
4
|
import { AnchorHTMLAttributes, CSSProperties, Component, ComponentClass, Context, DependencyList, Dispatch, EffectCallback, FC, ForwardRefExoticComponent, HTMLAttributes, JSX, Key, MouseEvent, MouseEventHandler, PropsWithChildren, ReactElement, ReactNode, Ref, RefObject, SetStateAction } from "react";
|
|
5
5
|
import { CSSInterpolation, CSSObject } from "@ant-design/cssinjs";
|
|
6
6
|
import dayjs from "dayjs";
|
|
7
7
|
import { useMergedState } from "@rc-component/util";
|
|
8
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
9
|
-
import * as safe_stable_stringify0 from "safe-stable-stringify";
|
|
8
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
9
|
+
import * as _$safe_stable_stringify0 from "safe-stable-stringify";
|
|
10
|
+
import * as _$_rc_component_form0 from "@rc-component/form";
|
|
10
11
|
import { MenuDataItem as MenuDataItem$1 } from "@umijs/route-utils";
|
|
11
|
-
import {
|
|
12
|
-
import { GlobalToken } from "antd/es/theme/interface";
|
|
13
|
-
import { SizeType } from "antd/es/config-provider/SizeContext";
|
|
14
|
-
import { TooltipPlacement } from "antd/es/tooltip";
|
|
15
|
-
import { NamePath } from "antd/es/form/interface";
|
|
16
|
-
import { DatePickerProps as DatePickerProps$1, RangePickerProps, WeekPickerProps } from "antd/es/date-picker";
|
|
17
|
-
import * as antd_es_form0 from "antd/es/form";
|
|
18
|
-
import { FormInstance as FormInstance$1, FormItemProps as FormItemProps$1 } from "antd/es/form";
|
|
19
|
-
import { GroupProps, InputRef, PasswordProps, SearchProps, TextAreaProps } from "antd/es/input";
|
|
20
|
-
import { SliderBaseProps, SliderRangeProps } from "antd/es/slider";
|
|
21
|
-
import { AnyObject } from "antd/es/_util/type";
|
|
22
|
-
import { ColumnFilterItem, ColumnType, CompareFn, ExpandableConfig, GetRowKey, SortOrder } from "antd/es/table/interface";
|
|
23
|
-
import { CheckboxGroupProps } from "antd/es/checkbox";
|
|
24
|
-
import { FormListFieldData, FormListOperation, FormListProps } from "antd/es/form/FormList";
|
|
25
|
-
import * as antd_es_form_Form0 from "antd/es/form/Form";
|
|
26
|
-
import { FormProps as FormProps$1 } from "antd/es/form/Form";
|
|
27
|
-
import * as antd_es_form_context0 from "antd/es/form/context";
|
|
28
|
-
import { FormProviderProps } from "antd/es/form/context";
|
|
29
|
-
import * as antd_es_form_hooks_useFormInstance0 from "antd/es/form/hooks/useFormInstance";
|
|
30
|
-
import { BaseOptionType } from "antd/es/cascader";
|
|
31
|
-
import { DefaultOptionType, RefSelectProps } from "antd/es/select";
|
|
32
|
-
import { TextAreaRef } from "antd/es/input/TextArea";
|
|
33
|
-
import { DraggerProps, UploadProps as UploadProps$1 } from "antd/es/upload";
|
|
34
|
-
import { ItemType } from "antd/es/breadcrumb/Breadcrumb";
|
|
35
|
-
import * as _rc_component_table_lib_Footer_Summary0 from "@rc-component/table/lib/Footer/Summary";
|
|
36
|
-
import * as _rc_component_table_lib_Footer_Row0 from "@rc-component/table/lib/Footer/Row";
|
|
37
|
-
import * as _rc_component_table_lib_Footer_Cell0 from "@rc-component/table/lib/Footer/Cell";
|
|
38
|
-
import { ListGridType } from "antd/es/list";
|
|
12
|
+
import { FormItemTooltipType } from "antd/es/form/FormItemLabel.js";
|
|
13
|
+
import { GlobalToken } from "antd/es/theme/interface/index.js";
|
|
14
|
+
import { SizeType } from "antd/es/config-provider/SizeContext.js";
|
|
15
|
+
import { TooltipPlacement } from "antd/es/tooltip/index.js";
|
|
16
|
+
import { NamePath } from "antd/es/form/interface.js";
|
|
17
|
+
import { DatePickerProps as DatePickerProps$1, RangePickerProps, WeekPickerProps } from "antd/es/date-picker/index.js";
|
|
18
|
+
import * as _$antd_es_form0 from "antd/es/form/index.js";
|
|
19
|
+
import { FormInstance as FormInstance$1, FormItemProps as FormItemProps$1 } from "antd/es/form/index.js";
|
|
20
|
+
import { GroupProps, InputRef, PasswordProps, SearchProps, TextAreaProps } from "antd/es/input/index.js";
|
|
21
|
+
import { SliderBaseProps, SliderRangeProps } from "antd/es/slider/index.js";
|
|
22
|
+
import { AnyObject } from "antd/es/_util/type.js";
|
|
23
|
+
import { ColumnFilterItem, ColumnType, CompareFn, ExpandableConfig, GetRowKey, SortOrder } from "antd/es/table/interface.js";
|
|
24
|
+
import { CheckboxGroupProps } from "antd/es/checkbox/index.js";
|
|
25
|
+
import { FormListFieldData, FormListOperation, FormListProps } from "antd/es/form/FormList.js";
|
|
26
|
+
import * as _$antd_es_form_Form0 from "antd/es/form/Form.js";
|
|
27
|
+
import { FormProps as FormProps$1 } from "antd/es/form/Form.js";
|
|
28
|
+
import * as _$antd_es_form_context0 from "antd/es/form/context.js";
|
|
29
|
+
import { FormProviderProps } from "antd/es/form/context.js";
|
|
30
|
+
import * as _$antd_es_form_hooks_useFormInstance0 from "antd/es/form/hooks/useFormInstance.js";
|
|
31
|
+
import { BaseOptionType } from "antd/es/cascader/index.js";
|
|
32
|
+
import { DefaultOptionType, RefSelectProps } from "antd/es/select/index.js";
|
|
33
|
+
import { TextAreaRef } from "antd/es/input/TextArea.js";
|
|
34
|
+
import { DraggerProps, UploadProps as UploadProps$1 } from "antd/es/upload/index.js";
|
|
35
|
+
import { ItemType } from "antd/es/breadcrumb/Breadcrumb.js";
|
|
36
|
+
import * as _$_rc_component_table_lib_Footer_Summary0 from "@rc-component/table/lib/Footer/Summary.js";
|
|
37
|
+
import * as _$_rc_component_table_lib_Footer_Row0 from "@rc-component/table/lib/Footer/Row.js";
|
|
38
|
+
import * as _$_rc_component_table_lib_Footer_Cell0 from "@rc-component/table/lib/Footer/Cell.js";
|
|
39
|
+
import { ListGridType } from "antd/es/list/index.js";
|
|
39
40
|
|
|
40
41
|
//#region src/card/components/CheckCard/Group.d.ts
|
|
41
42
|
type CheckCardValueType = string | number | boolean;
|
|
@@ -367,7 +368,7 @@ type CardPropsBase = {
|
|
|
367
368
|
headerBordered?: boolean; /** 卡片标题 */
|
|
368
369
|
title?: ReactNode; /** 副标题 */
|
|
369
370
|
subTitle?: ReactNode; /** 标题说明 */
|
|
370
|
-
tooltip?: string |
|
|
371
|
+
tooltip?: string | FormItemTooltipType; /** 右上角自定义区域 */
|
|
371
372
|
extra?: ReactNode; /** 布局,center 代表垂直居中 */
|
|
372
373
|
layout?: 'default' | 'center'; /** 卡片类型 */
|
|
373
374
|
type?: 'default' | 'inner'; /** 指定 Flex 方向,仅在嵌套子卡片时有效 */
|
|
@@ -475,7 +476,7 @@ type ProCardType = CardType & {
|
|
|
475
476
|
Divider: typeof ProCardDivider;
|
|
476
477
|
Group: typeof Group$1;
|
|
477
478
|
};
|
|
478
|
-
declare const Group$1: (props: PropsWithChildren<CardProps>) => react_jsx_runtime0.JSX.Element;
|
|
479
|
+
declare const Group$1: (props: PropsWithChildren<CardProps>) => _$react_jsx_runtime0.JSX.Element;
|
|
479
480
|
declare const ProCard: ProCardType;
|
|
480
481
|
//#endregion
|
|
481
482
|
//#region src/provider/intl.d.ts
|
|
@@ -705,7 +706,7 @@ declare const operationUnit: (token: ProAliasToken) => CSSObject;
|
|
|
705
706
|
* @returns UseStyleResult
|
|
706
707
|
*/
|
|
707
708
|
declare function useStyle(componentName: string, styleFn: (token: ProAliasToken) => CSSInterpolation): {
|
|
708
|
-
wrapSSR: (node: ReactElement) => ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
709
|
+
wrapSSR: (node: ReactElement) => ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
709
710
|
hashId: string;
|
|
710
711
|
};
|
|
711
712
|
//#endregion
|
|
@@ -796,7 +797,7 @@ type ConfigContextPropsType = {
|
|
|
796
797
|
dark?: boolean;
|
|
797
798
|
prefixCls?: string;
|
|
798
799
|
};
|
|
799
|
-
declare const ConfigConsumer: react.Consumer<ConfigContextPropsType>;
|
|
800
|
+
declare const ConfigConsumer: _$react.Consumer<ConfigContextPropsType>;
|
|
800
801
|
/**
|
|
801
802
|
* 用于配置 Pro 的一些全局性的东西
|
|
802
803
|
* @param props
|
|
@@ -822,7 +823,7 @@ declare const ProConfigProvider: FC<{
|
|
|
822
823
|
* @returns The return value of the function is the intl object.
|
|
823
824
|
*/
|
|
824
825
|
declare function useIntl(): IntlType;
|
|
825
|
-
declare const ProProvider: react.Context<ConfigContextPropsType>;
|
|
826
|
+
declare const ProProvider: _$react.Context<ConfigContextPropsType>;
|
|
826
827
|
//#endregion
|
|
827
828
|
//#region src/utils/components/DropdownFooter/index.d.ts
|
|
828
829
|
type LightFilterFooterRender$1 = ((onConfirm?: ButtonProps['onClick'], onClear?: ButtonProps['onClick']) => JSX.Element | false) | false;
|
|
@@ -851,7 +852,7 @@ declare class ErrorBoundary extends Component<{
|
|
|
851
852
|
errorInfo: string;
|
|
852
853
|
};
|
|
853
854
|
componentDidCatch(): void;
|
|
854
|
-
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime0.JSX.Element | null | undefined;
|
|
855
|
+
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | _$react.ReactPortal | _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | _$react_jsx_runtime0.JSX.Element | null | undefined;
|
|
855
856
|
}
|
|
856
857
|
//#endregion
|
|
857
858
|
//#region src/utils/components/FieldLabel/index.d.ts
|
|
@@ -876,7 +877,7 @@ type FieldLabelProps = {
|
|
|
876
877
|
*/
|
|
877
878
|
onLabelClick?: () => void;
|
|
878
879
|
};
|
|
879
|
-
declare const FieldLabel: react.ForwardRefExoticComponent<FieldLabelProps & react.RefAttributes<any>>;
|
|
880
|
+
declare const FieldLabel: _$react.ForwardRefExoticComponent<FieldLabelProps & _$react.RefAttributes<any>>;
|
|
880
881
|
//#endregion
|
|
881
882
|
//#region src/utils/components/FilterDropdown/index.d.ts
|
|
882
883
|
type FooterRender = ((onConfirm?: ButtonProps['onClick'], onClear?: ButtonProps['onClick']) => JSX.Element | false) | false;
|
|
@@ -909,7 +910,7 @@ interface InlineErrorFormItemProps extends FormItemProps {
|
|
|
909
910
|
popoverProps?: PopoverProps;
|
|
910
911
|
children: any;
|
|
911
912
|
}
|
|
912
|
-
declare const InlineErrorFormItem: (props: InlineErrorFormItemProps) => react_jsx_runtime0.JSX.Element;
|
|
913
|
+
declare const InlineErrorFormItem: (props: InlineErrorFormItemProps) => _$react_jsx_runtime0.JSX.Element;
|
|
913
914
|
//#endregion
|
|
914
915
|
//#region src/utils/components/LabelIconTip/index.d.ts
|
|
915
916
|
/**
|
|
@@ -920,7 +921,7 @@ declare const InlineErrorFormItem: (props: InlineErrorFormItemProps) => react_js
|
|
|
920
921
|
declare const LabelIconTip: FC<{
|
|
921
922
|
label: ReactNode;
|
|
922
923
|
subTitle?: ReactNode;
|
|
923
|
-
tooltip?: string |
|
|
924
|
+
tooltip?: string | FormItemTooltipType;
|
|
924
925
|
ellipsis?: boolean | {
|
|
925
926
|
showTitle?: boolean;
|
|
926
927
|
};
|
|
@@ -962,7 +963,7 @@ type ProFormInstanceType<T> = {
|
|
|
962
963
|
*/
|
|
963
964
|
validateFieldsReturnFormatValue?: (nameList?: NamePath[]) => Promise<T>;
|
|
964
965
|
};
|
|
965
|
-
declare const ProFormContext: react.Context<ProFormInstanceType<any> & {
|
|
966
|
+
declare const ProFormContext: _$react.Context<ProFormInstanceType<any> & {
|
|
966
967
|
formRef?: RefObject<FormInstance<any>>;
|
|
967
968
|
}>;
|
|
968
969
|
//#endregion
|
|
@@ -1102,7 +1103,7 @@ declare function useEditableArray<RecordType extends AnyObject>(props: RowEditab
|
|
|
1102
1103
|
};
|
|
1103
1104
|
actionRender: (row: RecordType & {
|
|
1104
1105
|
index: number;
|
|
1105
|
-
}) => ReactNode[] | (react_jsx_runtime0.JSX.Element | undefined)[];
|
|
1106
|
+
}) => ReactNode[] | (_$react_jsx_runtime0.JSX.Element | undefined)[];
|
|
1106
1107
|
startEditable: (recordKey: Key, record?: RecordType | undefined) => boolean;
|
|
1107
1108
|
cancelEditable: (recordKey: RecordKey, needReTry?: boolean | undefined) => Promise<boolean>;
|
|
1108
1109
|
addEditRecord: (row: RecordType, options?: AddLineOptions | undefined) => boolean;
|
|
@@ -1134,7 +1135,7 @@ type ProFormBaseGroupProps = {
|
|
|
1134
1135
|
* @example 自定义Icon
|
|
1135
1136
|
* <ProForm.Group title="标题" tooltip={{icon:<Info/>,title:自定义提示信息}}>
|
|
1136
1137
|
*/
|
|
1137
|
-
tooltip?:
|
|
1138
|
+
tooltip?: FormItemTooltipType | string;
|
|
1138
1139
|
/**
|
|
1139
1140
|
* @name 额外的内容配置,在标题的另外一边
|
|
1140
1141
|
*
|
|
@@ -1473,7 +1474,7 @@ type ProSchema<Entity = Record<string, any>, ExtraProps = unknown, ComponentsTyp
|
|
|
1473
1474
|
* @name 标题
|
|
1474
1475
|
*/
|
|
1475
1476
|
title?: ((schema: ProSchema<Entity, ExtraProps, ComponentsType, ValueType, ExtraFormItemProps>, type: ComponentsType, dom: ReactNode) => ReactNode) | ReactNode; /** @name 展示一个 icon,hover 是展示一些提示信息 */
|
|
1476
|
-
tooltip?:
|
|
1477
|
+
tooltip?: FormItemTooltipType | string;
|
|
1477
1478
|
/**
|
|
1478
1479
|
* 支持 object 和Map,Map 是支持其他基础类型作为 key
|
|
1479
1480
|
*
|
|
@@ -1638,7 +1639,7 @@ declare const dateArrayFormatter: (value: any[], format: FormatType | FormatType
|
|
|
1638
1639
|
* @param item
|
|
1639
1640
|
* @param text
|
|
1640
1641
|
*/
|
|
1641
|
-
declare const genCopyable: (dom: ReactNode, item: any, text: string) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime0.JSX.Element | null | undefined;
|
|
1642
|
+
declare const genCopyable: (dom: ReactNode, item: any, text: string) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | _$react.ReactPortal | _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | _$react_jsx_runtime0.JSX.Element | null | undefined;
|
|
1642
1643
|
//#endregion
|
|
1643
1644
|
//#region src/utils/getFieldPropsOrFormItemProps/index.d.ts
|
|
1644
1645
|
/**
|
|
@@ -1817,7 +1818,7 @@ declare const proFieldParsingText: (text: string | number | (string | number)[],
|
|
|
1817
1818
|
declare function runFunction<T extends any[]>(valueEnum: any, ...rest: T): any;
|
|
1818
1819
|
//#endregion
|
|
1819
1820
|
//#region src/utils/stringify/index.d.ts
|
|
1820
|
-
declare const stringify: typeof safe_stable_stringify0.default;
|
|
1821
|
+
declare const stringify: typeof _$safe_stable_stringify0.default;
|
|
1821
1822
|
//#endregion
|
|
1822
1823
|
//#region src/utils/transformKeySubmitValue/index.d.ts
|
|
1823
1824
|
type DataFormatMapType = Record<string, SearchTransformKeyFn | undefined>;
|
|
@@ -1847,7 +1848,7 @@ declare function useEditableMap<RecordType>(props: RowEditableConfig<RecordType>
|
|
|
1847
1848
|
editableKeys: Key[];
|
|
1848
1849
|
setEditableRowKeys: (updater: Key[] | ((origin: Key[]) => Key[]), ignoreDestroy?: boolean) => void;
|
|
1849
1850
|
isEditable: (recordKey: RecordKey) => boolean;
|
|
1850
|
-
actionRender: (key: RecordKey, config?: ActionTypeText<RecordType>) => ReactNode[] | (react_jsx_runtime0.JSX.Element | undefined)[];
|
|
1851
|
+
actionRender: (key: RecordKey, config?: ActionTypeText<RecordType>) => ReactNode[] | (_$react_jsx_runtime0.JSX.Element | undefined)[];
|
|
1851
1852
|
startEditable: (recordKey: RecordKey, recordValue?: any) => boolean;
|
|
1852
1853
|
cancelEditable: (recordKey: RecordKey) => boolean;
|
|
1853
1854
|
};
|
|
@@ -1917,7 +1918,7 @@ type ProDescriptionsProps<RecordType = Record<string, any>, ValueType = 'text'>
|
|
|
1917
1918
|
actionRef?: RefObject<ProCoreActionType<any> | undefined>;
|
|
1918
1919
|
loading?: boolean;
|
|
1919
1920
|
onLoadingChange?: (loading?: boolean) => void;
|
|
1920
|
-
tooltip?:
|
|
1921
|
+
tooltip?: FormItemTooltipType | string; /** Form props 的相关配置 */
|
|
1921
1922
|
formProps?: FormProps; /** @name 编辑相关的配置 */
|
|
1922
1923
|
editable?: RowEditableConfig<RecordType>; /** 默认的数据源 */
|
|
1923
1924
|
dataSource?: RecordType; /** 受控数据源改变 */
|
|
@@ -1942,7 +1943,7 @@ declare const FieldRender: FC<ProDescriptionsItemProps<any> & {
|
|
|
1942
1943
|
emptyText?: ReactNode;
|
|
1943
1944
|
}>;
|
|
1944
1945
|
declare const ProDescriptions: {
|
|
1945
|
-
<RecordType extends Record<string, any>, ValueType = "text">(props: ProDescriptionsProps<RecordType, ValueType>): react_jsx_runtime0.JSX.Element;
|
|
1946
|
+
<RecordType extends Record<string, any>, ValueType = "text">(props: ProDescriptionsProps<RecordType, ValueType>): _$react_jsx_runtime0.JSX.Element;
|
|
1946
1947
|
Item: FC<ProDescriptionsItemProps<Record<string, any>, "text">>;
|
|
1947
1948
|
};
|
|
1948
1949
|
//#endregion
|
|
@@ -2556,7 +2557,7 @@ type CommonFormProps<T = Record<string, any>, U = Record<string, any>> = {
|
|
|
2556
2557
|
} & ProFormGridConfig;
|
|
2557
2558
|
//#endregion
|
|
2558
2559
|
//#region src/form/BaseForm/LightWrapper/index.d.ts
|
|
2559
|
-
type SizeType$1 = 'small' | 'middle' | 'large' | undefined;
|
|
2560
|
+
type SizeType$1 = 'small' | 'medium' | 'middle' | 'large' | undefined;
|
|
2560
2561
|
type LightWrapperProps = {
|
|
2561
2562
|
label?: ReactNode;
|
|
2562
2563
|
disabled?: boolean;
|
|
@@ -2605,7 +2606,7 @@ type CaptFieldRef = {
|
|
|
2605
2606
|
startTiming: () => void; /** 结束计时 */
|
|
2606
2607
|
endTiming: () => void;
|
|
2607
2608
|
};
|
|
2608
|
-
declare const ProFormCaptcha: react.ComponentClass<{
|
|
2609
|
+
declare const ProFormCaptcha: _$react.ComponentClass<{
|
|
2609
2610
|
fieldProps?: Partial<FieldProps<any> & InputProps> | undefined;
|
|
2610
2611
|
placeholder?: string | string[];
|
|
2611
2612
|
secondary?: boolean;
|
|
@@ -2616,7 +2617,7 @@ declare const ProFormCaptcha: react.ComponentClass<{
|
|
|
2616
2617
|
proFieldProps?: ProFieldProps;
|
|
2617
2618
|
footerRender?: LightFilterFooterRender;
|
|
2618
2619
|
children?: any;
|
|
2619
|
-
ref?: react.Ref<any>;
|
|
2620
|
+
ref?: _$react.Ref<any>;
|
|
2620
2621
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
2621
2622
|
/** @name 倒计时的秒数 */countDown?: number; /** 手机号的 name */
|
|
2622
2623
|
phoneName?: NamePath; /** @name 获取验证码的方法 */
|
|
@@ -2630,7 +2631,7 @@ declare const ProFormCaptcha: react.ComponentClass<{
|
|
|
2630
2631
|
} & {
|
|
2631
2632
|
getFormItemProps?: () => Record<string, any>;
|
|
2632
2633
|
getFieldProps?: () => Record<string, any>;
|
|
2633
|
-
}, any> | react.FunctionComponent<{
|
|
2634
|
+
}, any> | _$react.FunctionComponent<{
|
|
2634
2635
|
fieldProps?: Partial<FieldProps<any> & InputProps> | undefined;
|
|
2635
2636
|
placeholder?: string | string[];
|
|
2636
2637
|
secondary?: boolean;
|
|
@@ -2641,7 +2642,7 @@ declare const ProFormCaptcha: react.ComponentClass<{
|
|
|
2641
2642
|
proFieldProps?: ProFieldProps;
|
|
2642
2643
|
footerRender?: LightFilterFooterRender;
|
|
2643
2644
|
children?: any;
|
|
2644
|
-
ref?: react.Ref<any>;
|
|
2645
|
+
ref?: _$react.Ref<any>;
|
|
2645
2646
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
2646
2647
|
/** @name 倒计时的秒数 */countDown?: number; /** 手机号的 name */
|
|
2647
2648
|
phoneName?: NamePath; /** @name 获取验证码的方法 */
|
|
@@ -2820,7 +2821,7 @@ declare const ProFormDependency: {
|
|
|
2820
2821
|
children,
|
|
2821
2822
|
ignoreFormListField,
|
|
2822
2823
|
...rest
|
|
2823
|
-
}: ProFormDependencyProps<T>): react_jsx_runtime0.JSX.Element;
|
|
2824
|
+
}: ProFormDependencyProps<T>): _$react_jsx_runtime0.JSX.Element;
|
|
2824
2825
|
displayName: string;
|
|
2825
2826
|
};
|
|
2826
2827
|
//#endregion
|
|
@@ -2872,7 +2873,7 @@ type ProFormFieldProps<T = any, FiledProps = Record<string, any>> = ProSchema<T,
|
|
|
2872
2873
|
declare const ProFormField: <FiledProps, DataType = Record<string, any>>(props: ProFormFieldProps<DataType, FiledProps>) => ReactElement;
|
|
2873
2874
|
//#endregion
|
|
2874
2875
|
//#region src/form/components/FormItem/index.d.ts
|
|
2875
|
-
declare const FormItemProvide: react.Context<{
|
|
2876
|
+
declare const FormItemProvide: _$react.Context<{
|
|
2876
2877
|
name?: NamePath;
|
|
2877
2878
|
label?: ReactNode;
|
|
2878
2879
|
}>;
|
|
@@ -3006,7 +3007,7 @@ type FormControlInjectProps = ReturnType<typeof Form.Item.useStatus> & {
|
|
|
3006
3007
|
*/
|
|
3007
3008
|
declare function FormControlRender(props: WithControlPropsType<{
|
|
3008
3009
|
children: (props: FormControlInjectProps) => ReactElement;
|
|
3009
|
-
}>): ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
3010
|
+
}>): ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
3010
3011
|
/**
|
|
3011
3012
|
* 提取props中的 value 和 onChange 属性
|
|
3012
3013
|
*/
|
|
@@ -3038,7 +3039,7 @@ declare function pickControlPropsWithId(props: FormControlInjectProps): {
|
|
|
3038
3039
|
* </FormItemRender>
|
|
3039
3040
|
* ```
|
|
3040
3041
|
*/
|
|
3041
|
-
declare const FormItemRender: FC<Omit<antd.FormItemProps<unknown>, "children"> & {
|
|
3042
|
+
declare const FormItemRender: FC<Omit<_$antd.FormItemProps<unknown>, "children"> & {
|
|
3042
3043
|
children: (formItemProps: FormControlInjectProps) => ReactNode;
|
|
3043
3044
|
}>;
|
|
3044
3045
|
/**
|
|
@@ -3056,7 +3057,7 @@ declare const FormItemRender: FC<Omit<antd.FormItemProps<unknown>, "children"> &
|
|
|
3056
3057
|
* </ProFormItemRender>
|
|
3057
3058
|
* ```
|
|
3058
3059
|
*/
|
|
3059
|
-
declare const ProFormItemRender: FC<Omit<antd.FormItemProps<any> & {
|
|
3060
|
+
declare const ProFormItemRender: FC<Omit<_$antd.FormItemProps<any> & {
|
|
3060
3061
|
ignoreFormItem?: boolean;
|
|
3061
3062
|
valueType?: ProFieldValueType;
|
|
3062
3063
|
transform?: SearchTransformKeyFn;
|
|
@@ -3066,7 +3067,7 @@ declare const ProFormItemRender: FC<Omit<antd.FormItemProps<any> & {
|
|
|
3066
3067
|
} & {
|
|
3067
3068
|
addonBefore?: ReactNode;
|
|
3068
3069
|
addonAfter?: ReactNode;
|
|
3069
|
-
addonWarpStyle?: react.CSSProperties;
|
|
3070
|
+
addonWarpStyle?: _$react.CSSProperties;
|
|
3070
3071
|
convertValue?: SearchConvertKeyFn;
|
|
3071
3072
|
help?: ReactNode | ((params: {
|
|
3072
3073
|
errors: ReactNode[];
|
|
@@ -3305,7 +3306,7 @@ type ProFromListCommonProps = {
|
|
|
3305
3306
|
};
|
|
3306
3307
|
//#endregion
|
|
3307
3308
|
//#region src/form/components/List/index.d.ts
|
|
3308
|
-
declare const FormListContext: react.Context<Record<string, any> | (FormListFieldData & {
|
|
3309
|
+
declare const FormListContext: _$react.Context<Record<string, any> | (FormListFieldData & {
|
|
3309
3310
|
listName: NamePath;
|
|
3310
3311
|
})>;
|
|
3311
3312
|
type FormListActionType<T = any> = FormListOperation & {
|
|
@@ -3325,7 +3326,7 @@ type ProFormListProps<T> = Omit<FormListProps, 'children' | 'rules'> & ProFromLi
|
|
|
3325
3326
|
* @example 自定义Icon
|
|
3326
3327
|
* <ProForm.Group title="标题" tooltip={{icon:<Info/>,title:自定义提示信息}}>
|
|
3327
3328
|
*/
|
|
3328
|
-
tooltip?:
|
|
3329
|
+
tooltip?: FormItemTooltipType;
|
|
3329
3330
|
/**
|
|
3330
3331
|
* @name 行操作的钩子配置
|
|
3331
3332
|
*
|
|
@@ -3374,7 +3375,7 @@ type ProFormListProps<T> = Omit<FormListProps, 'children' | 'rules'> & ProFromLi
|
|
|
3374
3375
|
className?: string;
|
|
3375
3376
|
readonly?: boolean;
|
|
3376
3377
|
} & Pick<ProFormGridConfig, 'colProps' | 'rowProps'>;
|
|
3377
|
-
declare function ProFormList<T>(props: ProFormListProps<T>): react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
|
|
3378
|
+
declare function ProFormList<T>(props: ProFormListProps<T>): _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | null;
|
|
3378
3379
|
//#endregion
|
|
3379
3380
|
//#region src/form/components/Money/index.d.ts
|
|
3380
3381
|
type ProFormMoneyProps = ProFormFieldItemProps<Omit<FieldMoneyProps, 'valueType' | 'text'> & InputNumberProps<number>> & {
|
|
@@ -3398,33 +3399,33 @@ type ProFormRadioGroupProps = ProFormFieldItemProps<RadioGroupProps, HTMLDivElem
|
|
|
3398
3399
|
options?: RadioGroupProps['options'];
|
|
3399
3400
|
} & ProFormFieldRemoteProps;
|
|
3400
3401
|
declare const RadioGroup: FC<ProFormRadioGroupProps>;
|
|
3401
|
-
declare const ProFormRadio: react.ComponentClass<{
|
|
3402
|
+
declare const ProFormRadio: _$react.ComponentClass<{
|
|
3402
3403
|
fieldProps?: Partial<FieldProps<any> & RadioProps> | undefined;
|
|
3403
3404
|
placeholder?: string | string[];
|
|
3404
3405
|
secondary?: boolean;
|
|
3405
|
-
emptyText?: react.ReactNode;
|
|
3406
|
+
emptyText?: _$react.ReactNode;
|
|
3406
3407
|
cacheForSwr?: boolean;
|
|
3407
3408
|
disabled?: boolean;
|
|
3408
3409
|
width?: number | "sm" | "md" | "xl" | "xs" | "lg";
|
|
3409
3410
|
proFieldProps?: ProFieldProps;
|
|
3410
3411
|
footerRender?: LightFilterFooterRender;
|
|
3411
3412
|
children?: any;
|
|
3412
|
-
ref?: react.Ref<any>;
|
|
3413
|
+
ref?: _$react.Ref<any>;
|
|
3413
3414
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
3414
3415
|
getFormItemProps?: () => Record<string, any>;
|
|
3415
3416
|
getFieldProps?: () => Record<string, any>;
|
|
3416
|
-
}, any> | react.FunctionComponent<{
|
|
3417
|
+
}, any> | _$react.FunctionComponent<{
|
|
3417
3418
|
fieldProps?: Partial<FieldProps<any> & RadioProps> | undefined;
|
|
3418
3419
|
placeholder?: string | string[];
|
|
3419
3420
|
secondary?: boolean;
|
|
3420
|
-
emptyText?: react.ReactNode;
|
|
3421
|
+
emptyText?: _$react.ReactNode;
|
|
3421
3422
|
cacheForSwr?: boolean;
|
|
3422
3423
|
disabled?: boolean;
|
|
3423
3424
|
width?: number | "sm" | "md" | "xl" | "xs" | "lg";
|
|
3424
3425
|
proFieldProps?: ProFieldProps;
|
|
3425
3426
|
footerRender?: LightFilterFooterRender;
|
|
3426
3427
|
children?: any;
|
|
3427
|
-
ref?: react.Ref<any>;
|
|
3428
|
+
ref?: _$react.Ref<any>;
|
|
3428
3429
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
3429
3430
|
getFormItemProps?: () => Record<string, any>;
|
|
3430
3431
|
getFieldProps?: () => Record<string, any>;
|
|
@@ -3446,18 +3447,18 @@ declare const ProFormRate: FC<ProFormFieldItemProps<RateProps>>;
|
|
|
3446
3447
|
type ProFormProps<T = Record<string, any>, U = Record<string, any>> = Omit<FormProps<T>, 'onFinish'> & CommonFormProps<T, U>;
|
|
3447
3448
|
declare function ProForm<T = Record<string, any>>(props: ProFormProps<T> & {
|
|
3448
3449
|
children?: ReactNode | ReactNode[];
|
|
3449
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
3450
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
3450
3451
|
declare namespace ProForm {
|
|
3451
|
-
var Group: react.FC<ProFormBaseGroupProps & ProFormGridConfig & {
|
|
3452
|
-
ref?: react.Ref<any>;
|
|
3452
|
+
var Group: _$react.FC<ProFormBaseGroupProps & ProFormGridConfig & {
|
|
3453
|
+
ref?: _$react.Ref<any>;
|
|
3453
3454
|
}>;
|
|
3454
|
-
var useForm: typeof antd_es_form_Form0.useForm;
|
|
3455
|
-
var Item: react.FC<ProFormItemProps>;
|
|
3456
|
-
var useWatch: typeof
|
|
3457
|
-
var ErrorList: react.FC<antd_es_form0.ErrorListProps>;
|
|
3458
|
-
var Provider: react.FC<antd_es_form_context0.FormProviderProps>;
|
|
3459
|
-
var useFormInstance: typeof antd_es_form_hooks_useFormInstance0.default;
|
|
3460
|
-
var EditOrReadOnlyContext: react.Context<{
|
|
3455
|
+
var useForm: typeof _$antd_es_form_Form0.useForm;
|
|
3456
|
+
var Item: _$react.FC<ProFormItemProps>;
|
|
3457
|
+
var useWatch: typeof _$_rc_component_form0.useWatch;
|
|
3458
|
+
var ErrorList: _$react.FC<_$antd_es_form0.ErrorListProps>;
|
|
3459
|
+
var Provider: _$react.FC<_$antd_es_form_context0.FormProviderProps>;
|
|
3460
|
+
var useFormInstance: typeof _$antd_es_form_hooks_useFormInstance0.default;
|
|
3461
|
+
var EditOrReadOnlyContext: _$react.Context<{
|
|
3461
3462
|
mode: "edit" | "read" | "update";
|
|
3462
3463
|
}>;
|
|
3463
3464
|
}
|
|
@@ -3506,7 +3507,7 @@ declare function DrawerForm<T = Record<string, any>, U = Record<string, any>>({
|
|
|
3506
3507
|
onOpenChange,
|
|
3507
3508
|
open: propsOpen,
|
|
3508
3509
|
...rest
|
|
3509
|
-
}: DrawerFormProps<T, U>): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
3510
|
+
}: DrawerFormProps<T, U>): _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
3510
3511
|
//#endregion
|
|
3511
3512
|
//#region src/form/layouts/LightFilter/index.d.ts
|
|
3512
3513
|
type LightFilterProps<T, U = Record<string, any>> = {
|
|
@@ -3549,7 +3550,7 @@ type LightFilterProps<T, U = Record<string, any>> = {
|
|
|
3549
3550
|
*/
|
|
3550
3551
|
popoverProps?: Omit<PopoverProps, 'children' | 'content' | 'trigger' | 'open' | 'onOpenChange' | 'placement'>;
|
|
3551
3552
|
} & Omit<FormProps<T>, 'onFinish'> & CommonFormProps<T, U>;
|
|
3552
|
-
declare function LightFilter<T = Record<string, any>>(props: LightFilterProps<T>): react_jsx_runtime0.JSX.Element;
|
|
3553
|
+
declare function LightFilter<T = Record<string, any>>(props: LightFilterProps<T>): _$react_jsx_runtime0.JSX.Element;
|
|
3553
3554
|
//#endregion
|
|
3554
3555
|
//#region src/form/layouts/LoginForm/index.d.ts
|
|
3555
3556
|
type LoginFormProps<T> = {
|
|
@@ -3597,7 +3598,7 @@ type LoginFormProps<T> = {
|
|
|
3597
3598
|
containerStyle?: CSSProperties;
|
|
3598
3599
|
otherStyle?: CSSProperties;
|
|
3599
3600
|
} & Omit<ProFormProps<T>, 'title'>;
|
|
3600
|
-
declare function LoginForm<T = Record<string, any>>(props: Partial<LoginFormProps<T>>): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
3601
|
+
declare function LoginForm<T = Record<string, any>>(props: Partial<LoginFormProps<T>>): _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
3601
3602
|
//#endregion
|
|
3602
3603
|
//#region src/form/layouts/LoginFormPage/index.d.ts
|
|
3603
3604
|
type LoginFormPageProps<T> = {
|
|
@@ -3662,7 +3663,7 @@ type LoginFormPageProps<T> = {
|
|
|
3662
3663
|
mainStyle?: CSSProperties;
|
|
3663
3664
|
otherStyle?: CSSProperties;
|
|
3664
3665
|
} & Omit<ProFormProps<T>, 'title'>;
|
|
3665
|
-
declare function LoginFormPage<T = Record<string, any>>(props: Partial<LoginFormPageProps<T>>): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
3666
|
+
declare function LoginFormPage<T = Record<string, any>>(props: Partial<LoginFormPageProps<T>>): _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
3666
3667
|
//#endregion
|
|
3667
3668
|
//#region src/form/layouts/ModalForm/index.d.ts
|
|
3668
3669
|
type ModalFormProps<T = Record<string, any>, U = Record<string, any>> = Omit<FormProps<T>, 'onFinish' | 'title'> & CommonFormProps<T, U> & {
|
|
@@ -3697,7 +3698,7 @@ declare function ModalForm<T = Record<string, any>, U = Record<string, any>>({
|
|
|
3697
3698
|
width,
|
|
3698
3699
|
open: propsOpen,
|
|
3699
3700
|
...rest
|
|
3700
|
-
}: ModalFormProps<T, U>): react_jsx_runtime0.JSX.Element;
|
|
3701
|
+
}: ModalFormProps<T, U>): _$react_jsx_runtime0.JSX.Element;
|
|
3701
3702
|
//#endregion
|
|
3702
3703
|
//#region src/form/layouts/QueryFilter/Actions.d.ts
|
|
3703
3704
|
type ActionsProps = {
|
|
@@ -3818,7 +3819,7 @@ type BaseQueryFilterProps = Omit<ActionsProps, 'submitter' | 'setCollapsed' | 'i
|
|
|
3818
3819
|
type QueryFilterProps<T = Record<string, any>, U = Record<string, any>> = Omit<FormProps$1<T>, 'onFinish'> & CommonFormProps<T, U> & BaseQueryFilterProps & {
|
|
3819
3820
|
onReset?: (values: T) => void;
|
|
3820
3821
|
};
|
|
3821
|
-
declare function QueryFilter<T = Record<string, any>>(props: QueryFilterProps<T>): ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
3822
|
+
declare function QueryFilter<T = Record<string, any>>(props: QueryFilterProps<T>): ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
3822
3823
|
//#endregion
|
|
3823
3824
|
//#region src/form/layouts/StepsForm/StepForm.d.ts
|
|
3824
3825
|
type StepFormProps<T = Record<string, any>, U = Record<string, any>> = {
|
|
@@ -3826,7 +3827,7 @@ type StepFormProps<T = Record<string, any>, U = Record<string, any>> = {
|
|
|
3826
3827
|
stepProps?: NonNullable<StepsProps['items']>[number];
|
|
3827
3828
|
index?: number;
|
|
3828
3829
|
} & Omit<FormProps<T>, 'onFinish' | 'form'> & Omit<CommonFormProps<T, U>, 'submitter' | 'form'>;
|
|
3829
|
-
declare function StepForm<T = Record<string, any>>(stepNativeProps: StepFormProps<T>): react_jsx_runtime0.JSX.Element;
|
|
3830
|
+
declare function StepForm<T = Record<string, any>>(stepNativeProps: StepFormProps<T>): _$react_jsx_runtime0.JSX.Element;
|
|
3830
3831
|
//#endregion
|
|
3831
3832
|
//#region src/form/layouts/StepsForm/index.d.ts
|
|
3832
3833
|
type StepsFormProps<T = Record<string, any>> = {
|
|
@@ -3877,15 +3878,15 @@ type StepsFormProps<T = Record<string, any>> = {
|
|
|
3877
3878
|
} & Omit<FormProviderProps, 'children'>;
|
|
3878
3879
|
declare function StepsFormWarp<T = Record<string, any>>(props: StepsFormProps<T> & {
|
|
3879
3880
|
children: any;
|
|
3880
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
3881
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
3881
3882
|
declare namespace StepsFormWarp {
|
|
3882
3883
|
var StepForm: typeof StepForm;
|
|
3883
|
-
var useForm: typeof antd_es_form_Form0.useForm;
|
|
3884
|
+
var useForm: typeof _$antd_es_form_Form0.useForm;
|
|
3884
3885
|
}
|
|
3885
3886
|
//#endregion
|
|
3886
3887
|
//#region src/form/layouts/index.d.ts
|
|
3887
|
-
declare const ProFormGroup: react.FC<ProFormBaseGroupProps & ProFormGridConfig & {
|
|
3888
|
-
ref?: react.Ref<any>;
|
|
3888
|
+
declare const ProFormGroup: _$react.FC<ProFormBaseGroupProps & ProFormGridConfig & {
|
|
3889
|
+
ref?: _$react.Ref<any>;
|
|
3889
3890
|
}>;
|
|
3890
3891
|
//#endregion
|
|
3891
3892
|
//#region src/form/components/SchemaForm/typing.d.ts
|
|
@@ -3995,7 +3996,7 @@ type FormSchema<T = Record<string, any>, ValueType = 'text'> = {
|
|
|
3995
3996
|
*
|
|
3996
3997
|
* @see 此组件仍为 beta 版本,api 可能发生变化
|
|
3997
3998
|
*/
|
|
3998
|
-
declare function BetaSchemaForm<T, ValueType = 'text'>(props: FormSchema<T, ValueType>): react_jsx_runtime0.JSX.Element;
|
|
3999
|
+
declare function BetaSchemaForm<T, ValueType = 'text'>(props: FormSchema<T, ValueType>): _$react_jsx_runtime0.JSX.Element;
|
|
3999
4000
|
//#endregion
|
|
4000
4001
|
//#region src/form/components/Segmented/index.d.ts
|
|
4001
4002
|
/**
|
|
@@ -4204,7 +4205,7 @@ type ProFormUploadDraggerProps = ProFormFieldItemProps<DraggerProps> & {
|
|
|
4204
4205
|
action?: UploadProps$1['action'];
|
|
4205
4206
|
accept?: UploadProps$1['accept'];
|
|
4206
4207
|
};
|
|
4207
|
-
declare const ProFormUploadDragger: react.ComponentClass<{
|
|
4208
|
+
declare const ProFormUploadDragger: _$react.ComponentClass<{
|
|
4208
4209
|
fieldProps?: Partial<FieldProps<any> & UploadProps$1<any> & {
|
|
4209
4210
|
height?: number;
|
|
4210
4211
|
}> | undefined;
|
|
@@ -4217,7 +4218,7 @@ declare const ProFormUploadDragger: react.ComponentClass<{
|
|
|
4217
4218
|
proFieldProps?: ProFieldProps;
|
|
4218
4219
|
footerRender?: LightFilterFooterRender;
|
|
4219
4220
|
children?: any;
|
|
4220
|
-
ref?: react.Ref<any>;
|
|
4221
|
+
ref?: _$react.Ref<any>;
|
|
4221
4222
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
4222
4223
|
/**
|
|
4223
4224
|
* @name 上传文件块的图标
|
|
@@ -4261,7 +4262,7 @@ declare const ProFormUploadDragger: react.ComponentClass<{
|
|
|
4261
4262
|
} & {
|
|
4262
4263
|
getFormItemProps?: () => Record<string, any>;
|
|
4263
4264
|
getFieldProps?: () => Record<string, any>;
|
|
4264
|
-
}, any> | react.FunctionComponent<{
|
|
4265
|
+
}, any> | _$react.FunctionComponent<{
|
|
4265
4266
|
fieldProps?: Partial<FieldProps<any> & UploadProps$1<any> & {
|
|
4266
4267
|
height?: number;
|
|
4267
4268
|
}> | undefined;
|
|
@@ -4274,7 +4275,7 @@ declare const ProFormUploadDragger: react.ComponentClass<{
|
|
|
4274
4275
|
proFieldProps?: ProFieldProps;
|
|
4275
4276
|
footerRender?: LightFilterFooterRender;
|
|
4276
4277
|
children?: any;
|
|
4277
|
-
ref?: react.Ref<any>;
|
|
4278
|
+
ref?: _$react.Ref<any>;
|
|
4278
4279
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
4279
4280
|
/**
|
|
4280
4281
|
* @name 上传文件块的图标
|
|
@@ -4458,7 +4459,7 @@ type ProFormFieldItemProps<T = Record<string, any>, K = any> = {
|
|
|
4458
4459
|
type ProFormFieldRemoteProps = Pick<ProSchema, 'debounceTime' | 'request' | 'valueEnum' | 'params'>;
|
|
4459
4460
|
//#endregion
|
|
4460
4461
|
//#region src/form/helpers/grid.d.ts
|
|
4461
|
-
declare const GridContext: react.Context<ProFormGridConfig>;
|
|
4462
|
+
declare const GridContext: _$react.Context<ProFormGridConfig>;
|
|
4462
4463
|
//#endregion
|
|
4463
4464
|
//#region src/form/FieldContext.d.ts
|
|
4464
4465
|
type FiledContextProps = {
|
|
@@ -4475,7 +4476,7 @@ type FiledContextProps = {
|
|
|
4475
4476
|
formKey?: string; /** 表单的 getPopupContainer 控制 */
|
|
4476
4477
|
getPopupContainer?: (e: HTMLElement) => ParentNode;
|
|
4477
4478
|
} & Pick<CommonFormProps, 'formRef' | 'grid'>;
|
|
4478
|
-
declare const FieldContext: react.Context<FiledContextProps>;
|
|
4479
|
+
declare const FieldContext: _$react.Context<FiledContextProps>;
|
|
4479
4480
|
//#endregion
|
|
4480
4481
|
//#region src/layout/components/AppsLogoComponents/types.d.ts
|
|
4481
4482
|
type AppItemProps = {
|
|
@@ -5001,7 +5002,7 @@ declare const ProBreadcrumb: FC<BreadcrumbProps>;
|
|
|
5001
5002
|
declare const PageContainer: FC<PageContainerProps>;
|
|
5002
5003
|
declare const ProPageHeader: (props: PageContainerProps & {
|
|
5003
5004
|
prefixedClassName: string;
|
|
5004
|
-
}) => react_jsx_runtime0.JSX.Element | null;
|
|
5005
|
+
}) => _$react_jsx_runtime0.JSX.Element | null;
|
|
5005
5006
|
//#endregion
|
|
5006
5007
|
//#region src/layout/components/PageLoading/index.d.ts
|
|
5007
5008
|
declare const PageLoading: FC<SpinProps & any>;
|
|
@@ -5605,7 +5606,7 @@ type ProHelpDataSource<ValueType = 'text'> = {
|
|
|
5605
5606
|
* 该上下文对象通常用于在 React 组件树中共享数据,即可以通过在组件中使用 ProHelpProvide.Provider 包裹一组组件,
|
|
5606
5607
|
* 将 dataSource 和 valueTypeMap 数据源传递给这些组件,这些组件即可从上下文中获取 dataSource 数据源,实现数据的共享和传递。
|
|
5607
5608
|
*/
|
|
5608
|
-
declare const ProHelpProvide: react.Context<{
|
|
5609
|
+
declare const ProHelpProvide: _$react.Context<{
|
|
5609
5610
|
/**
|
|
5610
5611
|
* 帮助文档的数据源,包含一组帮助文档数据,每个数据包含标题和内容等信息。
|
|
5611
5612
|
*/
|
|
@@ -5651,7 +5652,7 @@ type ProHelpContentPanelProps$1 = {
|
|
|
5651
5652
|
declare const ProHelpContentPanel: FC<ProHelpContentPanelProps$1>;
|
|
5652
5653
|
//#endregion
|
|
5653
5654
|
//#region src/layout/components/Help/ProHelpPanel.d.ts
|
|
5654
|
-
declare const SelectKeyProvide: react.Context<{
|
|
5655
|
+
declare const SelectKeyProvide: _$react.Context<{
|
|
5655
5656
|
selectedKey: string | undefined;
|
|
5656
5657
|
setSelectedKey: (key: string | undefined) => void;
|
|
5657
5658
|
}>;
|
|
@@ -5828,7 +5829,7 @@ declare const ProHelp: <ValueTypeMap = {
|
|
|
5828
5829
|
valueTypeMap,
|
|
5829
5830
|
onLoadContext,
|
|
5830
5831
|
...props
|
|
5831
|
-
}: ProHelpProps<ValueTypeMap>) => react_jsx_runtime0.JSX.Element;
|
|
5832
|
+
}: ProHelpProps<ValueTypeMap>) => _$react_jsx_runtime0.JSX.Element;
|
|
5832
5833
|
//#endregion
|
|
5833
5834
|
//#region src/table/components/Alert/index.d.ts
|
|
5834
5835
|
type AlertRenderType<T> = ((props: {
|
|
@@ -5876,7 +5877,7 @@ type ListToolBarHeaderMenuProps = {
|
|
|
5876
5877
|
//#region src/table/components/ListToolBar/index.d.ts
|
|
5877
5878
|
type ListToolBarSetting = {
|
|
5878
5879
|
icon: ReactNode;
|
|
5879
|
-
tooltip?:
|
|
5880
|
+
tooltip?: FormItemTooltipType | string;
|
|
5880
5881
|
key?: string;
|
|
5881
5882
|
onClick?: (key?: string) => void;
|
|
5882
5883
|
};
|
|
@@ -5901,7 +5902,7 @@ type ListToolBarProps = {
|
|
|
5901
5902
|
style?: CSSProperties; /** 标题 */
|
|
5902
5903
|
title?: ReactNode; /** 副标题 */
|
|
5903
5904
|
subTitle?: ReactNode; /** 标题提示 */
|
|
5904
|
-
tooltip?: string |
|
|
5905
|
+
tooltip?: string | FormItemTooltipType; /** 搜索输入栏相关配置 */
|
|
5905
5906
|
search?: SearchPropType; /** 搜索回调 */
|
|
5906
5907
|
onSearch?: (keyWords: string) => void; /** 工具栏右侧操作区 */
|
|
5907
5908
|
actions?: ReactNode[]; /** 工作栏右侧设置区 */
|
|
@@ -5939,7 +5940,7 @@ type OptionsFunctionType = (e: MouseEvent<HTMLSpanElement>, action?: ActionType)
|
|
|
5939
5940
|
type OptionsType = OptionsFunctionType | boolean;
|
|
5940
5941
|
type ToolBarProps<T = unknown> = {
|
|
5941
5942
|
headerTitle?: ReactNode;
|
|
5942
|
-
tooltip?: string |
|
|
5943
|
+
tooltip?: string | FormItemTooltipType;
|
|
5943
5944
|
toolbar?: ListToolBarProps;
|
|
5944
5945
|
toolBarRender?: (action: ActionType | undefined, rows: {
|
|
5945
5946
|
selectedRowKeys?: (string | number)[];
|
|
@@ -5959,7 +5960,7 @@ type ToolbarRenderProps<T> = {
|
|
|
5959
5960
|
onFormSearchSubmit: (params: any) => void;
|
|
5960
5961
|
searchNode: ReactNode;
|
|
5961
5962
|
tableColumn: any[];
|
|
5962
|
-
tooltip?: string |
|
|
5963
|
+
tooltip?: string | FormItemTooltipType;
|
|
5963
5964
|
selectedRows: T[];
|
|
5964
5965
|
selectedRowKeys: Key[] | (string | number)[];
|
|
5965
5966
|
headerTitle: ReactNode;
|
|
@@ -6082,6 +6083,7 @@ type ProTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
6082
6083
|
*/
|
|
6083
6084
|
params?: U; /** @name 列状态的配置,可以用来操作列功能 */
|
|
6084
6085
|
columnsState?: ColumnStateType;
|
|
6086
|
+
size?: DensitySize;
|
|
6085
6087
|
onSizeChange?: (size: DensitySize) => void;
|
|
6086
6088
|
/**
|
|
6087
6089
|
* @name table 外面卡片的设置
|
|
@@ -6160,7 +6162,7 @@ type ProTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
6160
6162
|
tableClassName?: string; /** @name 给封装的 table 的 style */
|
|
6161
6163
|
tableStyle?: CSSProperties; /** @name 左上角的 title */
|
|
6162
6164
|
headerTitle?: ReactNode; /** @name 标题旁边的 tooltip */
|
|
6163
|
-
tooltip?: string |
|
|
6165
|
+
tooltip?: string | FormItemTooltipType; /** @name 操作栏配置 */
|
|
6164
6166
|
options?: OptionConfig | false;
|
|
6165
6167
|
/**
|
|
6166
6168
|
* @type SearchConfig
|
|
@@ -6224,7 +6226,7 @@ type ProTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
6224
6226
|
* @name 窗口聚焦时自动重新请求
|
|
6225
6227
|
*/
|
|
6226
6228
|
revalidateOnFocus?: boolean; /** 默认的表格大小 */
|
|
6227
|
-
defaultSize?:
|
|
6229
|
+
defaultSize?: DensitySize;
|
|
6228
6230
|
/**
|
|
6229
6231
|
* @name, 可编辑表格的name,通过这个name 可以直接与 form通信,无需嵌套
|
|
6230
6232
|
*/
|
|
@@ -6233,7 +6235,7 @@ type ProTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
6233
6235
|
* 错误边界自定义
|
|
6234
6236
|
*/
|
|
6235
6237
|
ErrorBoundary?: ComponentClass<any, any> | false;
|
|
6236
|
-
} & Omit<TableProps<DataSource>, 'columns' | 'rowSelection'>;
|
|
6238
|
+
} & Omit<TableProps<DataSource>, 'columns' | 'rowSelection' | 'size'>;
|
|
6237
6239
|
type ActionType = ProCoreActionType & {
|
|
6238
6240
|
/** 原生 DOM 元素引用 */nativeElement?: HTMLDivElement; /** 聚焦方法 */
|
|
6239
6241
|
focus?: () => void;
|
|
@@ -6260,7 +6262,7 @@ type DragTableProps<T, U> = {
|
|
|
6260
6262
|
dragSortHandlerRender?: (rowData: T, idx: number) => ReactNode; /** @name 拖动排序完成回调 */
|
|
6261
6263
|
onDragSortEnd?: (beforeIndex: number, afterIndex: number, newDataSource: T[]) => Promise<void> | void;
|
|
6262
6264
|
} & ProTableProps<T, U>;
|
|
6263
|
-
declare function DragSortTable<T extends Record<string, any>, U extends ParamsType = ParamsType, ValueType = 'text'>(props: DragTableProps<T, U>): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
6265
|
+
declare function DragSortTable<T extends Record<string, any>, U extends ParamsType = ParamsType, ValueType = 'text'>(props: DragTableProps<T, U>): _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
6264
6266
|
//#endregion
|
|
6265
6267
|
//#region src/table/components/Dropdown/index.d.ts
|
|
6266
6268
|
interface MenuItems extends MenuItemProps {
|
|
@@ -6359,18 +6361,18 @@ type EditableProTableProps<T, U extends ParamsType, ValueType = 'text'> = Omit<P
|
|
|
6359
6361
|
* A React component that is used to create a table.
|
|
6360
6362
|
* @param props
|
|
6361
6363
|
*/
|
|
6362
|
-
declare function FieldEditableTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>): react_jsx_runtime0.JSX.Element;
|
|
6364
|
+
declare function FieldEditableTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>): _$react_jsx_runtime0.JSX.Element;
|
|
6363
6365
|
declare namespace FieldEditableTable {
|
|
6364
6366
|
var RecordCreator: <T = Record<string, any>>(props: RecordCreatorProps<T> & {
|
|
6365
6367
|
children: JSX.Element;
|
|
6366
|
-
}) => react.FunctionComponentElement<any>;
|
|
6368
|
+
}) => _$react.FunctionComponentElement<any>;
|
|
6367
6369
|
}
|
|
6368
6370
|
//#endregion
|
|
6369
6371
|
//#region src/table/components/EditableTable/CellEditorTable.d.ts
|
|
6370
|
-
declare function CellEditorTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>): react_jsx_runtime0.JSX.Element;
|
|
6372
|
+
declare function CellEditorTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>): _$react_jsx_runtime0.JSX.Element;
|
|
6371
6373
|
//#endregion
|
|
6372
6374
|
//#region src/table/components/EditableTable/RowEditorTable.d.ts
|
|
6373
|
-
declare function RowEditorTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>): react_jsx_runtime0.JSX.Element;
|
|
6375
|
+
declare function RowEditorTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>): _$react_jsx_runtime0.JSX.Element;
|
|
6374
6376
|
//#endregion
|
|
6375
6377
|
//#region src/table/components/Form/index.d.ts
|
|
6376
6378
|
type BaseFormProps<T, U> = {
|
|
@@ -6406,7 +6408,7 @@ declare class FormSearch<T, U> extends Component<BaseFormProps<T, U> & {
|
|
|
6406
6408
|
*/
|
|
6407
6409
|
isEqual: (next: BaseFormProps<T, U>) => boolean;
|
|
6408
6410
|
shouldComponentUpdate: (next: BaseFormProps<T, U>) => boolean;
|
|
6409
|
-
render: () => react_jsx_runtime0.JSX.Element;
|
|
6411
|
+
render: () => _$react_jsx_runtime0.JSX.Element;
|
|
6410
6412
|
}
|
|
6411
6413
|
//#endregion
|
|
6412
6414
|
//#region src/table/Table.d.ts
|
|
@@ -6416,10 +6418,10 @@ declare class FormSearch<T, U> extends Component<BaseFormProps<T, U> & {
|
|
|
6416
6418
|
* @param props
|
|
6417
6419
|
*/
|
|
6418
6420
|
declare const ProviderTableContainer: {
|
|
6419
|
-
<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = "text">(props: ProTableProps<DataType, Params, ValueType>): react_jsx_runtime0.JSX.Element;
|
|
6420
|
-
Summary: react.FC<react.PropsWithChildren<_rc_component_table_lib_Footer_Summary0.SummaryProps>> & {
|
|
6421
|
-
Row: React.FC<React.PropsWithChildren<_rc_component_table_lib_Footer_Row0.FooterRowProps>>;
|
|
6422
|
-
Cell: React.FC<React.PropsWithChildren<_rc_component_table_lib_Footer_Cell0.SummaryCellProps>>;
|
|
6421
|
+
<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = "text">(props: ProTableProps<DataType, Params, ValueType>): _$react_jsx_runtime0.JSX.Element;
|
|
6422
|
+
Summary: _$react.FC<_$react.PropsWithChildren<_$_rc_component_table_lib_Footer_Summary0.SummaryProps>> & {
|
|
6423
|
+
Row: React.FC<React.PropsWithChildren<_$_rc_component_table_lib_Footer_Row0.FooterRowProps>>;
|
|
6424
|
+
Cell: React.FC<React.PropsWithChildren<_$_rc_component_table_lib_Footer_Cell0.SummaryCellProps>>;
|
|
6423
6425
|
};
|
|
6424
6426
|
};
|
|
6425
6427
|
//#endregion
|
|
@@ -6496,7 +6498,7 @@ type BaseProListMetas<T = any> = {
|
|
|
6496
6498
|
type ProListMetas<T = any> = BaseProListMetas<T> & { [key in keyof T]?: IsAny<T> extends true ? ProListMetaAction<T> : ProListMeta<T> };
|
|
6497
6499
|
type GetComponentProps<RecordType> = (record: RecordType, index: number) => HTMLAttributes<HTMLElement>;
|
|
6498
6500
|
type ProListProps<RecordType = any, Params = Record<string, any>, ValueType = 'text'> = Omit<ProTableProps<RecordType, Params, ValueType>, 'size' | 'footer'> & AntdListProps<RecordType> & {
|
|
6499
|
-
tooltip?:
|
|
6501
|
+
tooltip?: FormItemTooltipType | string;
|
|
6500
6502
|
metas?: ProListMetas<RecordType>;
|
|
6501
6503
|
showActions?: 'hover' | 'always';
|
|
6502
6504
|
showExtra?: 'hover' | 'always';
|
|
@@ -6508,8 +6510,8 @@ type ProListProps<RecordType = any, Params = Record<string, any>, ValueType = 't
|
|
|
6508
6510
|
itemTitleRender?: ItemProps<RecordType>['itemTitleRender'];
|
|
6509
6511
|
};
|
|
6510
6512
|
type TriggerEventHandler<RecordType> = (record: RecordType) => void;
|
|
6511
|
-
declare function BaseProList<RecordType extends Record<string, any>, U extends Record<string, any> = Record<string, any>>(props: ProListProps<RecordType, U>): react_jsx_runtime0.JSX.Element;
|
|
6512
|
-
declare function ProList<RecordType extends Record<string, any>, U extends Record<string, any> = Record<string, any>>(props: ProListProps<RecordType, U>): react_jsx_runtime0.JSX.Element;
|
|
6513
|
+
declare function BaseProList<RecordType extends Record<string, any>, U extends Record<string, any> = Record<string, any>>(props: ProListProps<RecordType, U>): _$react_jsx_runtime0.JSX.Element;
|
|
6514
|
+
declare function ProList<RecordType extends Record<string, any>, U extends Record<string, any> = Record<string, any>>(props: ProListProps<RecordType, U>): _$react_jsx_runtime0.JSX.Element;
|
|
6513
6515
|
//#endregion
|
|
6514
6516
|
//#region src/skeleton/components/Descriptions/index.d.ts
|
|
6515
6517
|
type DescriptionsPageSkeletonProps = {
|
|
@@ -6528,7 +6530,7 @@ declare const TableItemSkeleton: ({
|
|
|
6528
6530
|
}: {
|
|
6529
6531
|
active: boolean;
|
|
6530
6532
|
header?: boolean;
|
|
6531
|
-
}) => react_jsx_runtime0.JSX.Element;
|
|
6533
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
6532
6534
|
/**
|
|
6533
6535
|
* Table 骨架屏
|
|
6534
6536
|
*
|
|
@@ -6542,7 +6544,7 @@ declare const DescriptionsSkeleton: ({
|
|
|
6542
6544
|
active
|
|
6543
6545
|
}: {
|
|
6544
6546
|
active: boolean;
|
|
6545
|
-
}) => react_jsx_runtime0.JSX.Element;
|
|
6547
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
6546
6548
|
//#endregion
|
|
6547
6549
|
//#region src/skeleton/components/List/index.d.ts
|
|
6548
6550
|
/** 列表子项目骨架屏 */
|
|
@@ -6564,7 +6566,7 @@ declare const PageHeaderSkeleton: ({
|
|
|
6564
6566
|
active
|
|
6565
6567
|
}: {
|
|
6566
6568
|
active: boolean;
|
|
6567
|
-
}) => react_jsx_runtime0.JSX.Element;
|
|
6569
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
6568
6570
|
type ListPageSkeletonProps = {
|
|
6569
6571
|
active?: boolean;
|
|
6570
6572
|
pageHeader?: false;
|
|
@@ -6582,7 +6584,7 @@ declare const ListToolbarSkeleton: ({
|
|
|
6582
6584
|
active
|
|
6583
6585
|
}: {
|
|
6584
6586
|
active: boolean;
|
|
6585
|
-
}) => react_jsx_runtime0.JSX.Element;
|
|
6587
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
6586
6588
|
declare const ListPageSkeleton: FC<ListPageSkeletonProps>;
|
|
6587
6589
|
//#endregion
|
|
6588
6590
|
//#region src/skeleton/index.d.ts
|