@xxlabs/antd-plus 1.2.0 → 1.3.0
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 +72 -72
- package/dist/index.js +165 -73
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as antd0 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
|
|
3
|
+
import * as react11 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 "dayjs/locale/zh-cn";
|
|
8
8
|
import { useMergedState } from "@rc-component/util";
|
|
9
|
-
import * as
|
|
9
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
10
10
|
import * as safe_stable_stringify0 from "safe-stable-stringify";
|
|
11
11
|
import * as _rc_component_form0 from "@rc-component/form";
|
|
12
12
|
import { MenuDataItem as MenuDataItem$1 } from "@umijs/route-utils";
|
|
@@ -512,7 +512,7 @@ type ProCardType = CardType & {
|
|
|
512
512
|
Divider: typeof ProCardDivider;
|
|
513
513
|
Group: typeof Group$1;
|
|
514
514
|
};
|
|
515
|
-
declare const Group$1: (props: PropsWithChildren<CardProps>) =>
|
|
515
|
+
declare const Group$1: (props: PropsWithChildren<CardProps>) => react_jsx_runtime16.JSX.Element;
|
|
516
516
|
declare const ProCard: ProCardType;
|
|
517
517
|
//#endregion
|
|
518
518
|
//#region src/provider/intl.d.ts
|
|
@@ -742,7 +742,7 @@ declare const operationUnit: (token: ProAliasToken) => CSSObject;
|
|
|
742
742
|
* @returns UseStyleResult
|
|
743
743
|
*/
|
|
744
744
|
declare function useStyle(componentName: string, styleFn: (token: ProAliasToken) => CSSInterpolation): {
|
|
745
|
-
wrapSSR: (node: ReactElement) => ReactElement<unknown, string |
|
|
745
|
+
wrapSSR: (node: ReactElement) => ReactElement<unknown, string | react11.JSXElementConstructor<any>>;
|
|
746
746
|
hashId: string;
|
|
747
747
|
};
|
|
748
748
|
//#endregion
|
|
@@ -843,7 +843,7 @@ type ConfigContextPropsType = {
|
|
|
843
843
|
dark?: boolean;
|
|
844
844
|
prefixCls?: string;
|
|
845
845
|
};
|
|
846
|
-
declare const ConfigConsumer:
|
|
846
|
+
declare const ConfigConsumer: react11.Consumer<ConfigContextPropsType>;
|
|
847
847
|
/**
|
|
848
848
|
* 用于配置 Pro 的一些全局性的东西
|
|
849
849
|
* @param props
|
|
@@ -869,7 +869,7 @@ declare const ProConfigProvider: FC<{
|
|
|
869
869
|
* @returns The return value of the function is the intl object.
|
|
870
870
|
*/
|
|
871
871
|
declare function useIntl(): IntlType;
|
|
872
|
-
declare const ProProvider:
|
|
872
|
+
declare const ProProvider: react11.Context<ConfigContextPropsType>;
|
|
873
873
|
//#endregion
|
|
874
874
|
//#region src/utils/components/DropdownFooter/index.d.ts
|
|
875
875
|
type LightFilterFooterRender$1 = ((onConfirm?: ButtonProps['onClick'], onClear?: ButtonProps['onClick']) => JSX.Element | false) | false;
|
|
@@ -898,7 +898,7 @@ declare class ErrorBoundary extends Component<{
|
|
|
898
898
|
errorInfo: string;
|
|
899
899
|
};
|
|
900
900
|
componentDidCatch(): void;
|
|
901
|
-
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean |
|
|
901
|
+
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react11.ReactPortal | react11.ReactElement<unknown, string | react11.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime16.JSX.Element | null | undefined;
|
|
902
902
|
}
|
|
903
903
|
//#endregion
|
|
904
904
|
//#region src/utils/components/FieldLabel/index.d.ts
|
|
@@ -923,7 +923,7 @@ type FieldLabelProps = {
|
|
|
923
923
|
*/
|
|
924
924
|
onLabelClick?: () => void;
|
|
925
925
|
};
|
|
926
|
-
declare const FieldLabel:
|
|
926
|
+
declare const FieldLabel: react11.ForwardRefExoticComponent<FieldLabelProps & react11.RefAttributes<any>>;
|
|
927
927
|
//#endregion
|
|
928
928
|
//#region src/utils/components/FilterDropdown/index.d.ts
|
|
929
929
|
type FooterRender = ((onConfirm?: ButtonProps['onClick'], onClear?: ButtonProps['onClick']) => JSX.Element | false) | false;
|
|
@@ -956,7 +956,7 @@ interface InlineErrorFormItemProps extends FormItemProps {
|
|
|
956
956
|
popoverProps?: PopoverProps;
|
|
957
957
|
children: any;
|
|
958
958
|
}
|
|
959
|
-
declare const InlineErrorFormItem: (props: InlineErrorFormItemProps) =>
|
|
959
|
+
declare const InlineErrorFormItem: (props: InlineErrorFormItemProps) => react_jsx_runtime16.JSX.Element;
|
|
960
960
|
//#endregion
|
|
961
961
|
//#region src/utils/components/LabelIconTip/index.d.ts
|
|
962
962
|
/**
|
|
@@ -1009,7 +1009,7 @@ type ProFormInstanceType<T> = {
|
|
|
1009
1009
|
*/
|
|
1010
1010
|
validateFieldsReturnFormatValue?: (nameList?: NamePath[]) => Promise<T>;
|
|
1011
1011
|
};
|
|
1012
|
-
declare const ProFormContext:
|
|
1012
|
+
declare const ProFormContext: react11.Context<ProFormInstanceType<any> & {
|
|
1013
1013
|
formRef?: RefObject<FormInstance<any>>;
|
|
1014
1014
|
}>;
|
|
1015
1015
|
//#endregion
|
|
@@ -1158,7 +1158,7 @@ declare function useEditableArray<RecordType extends AnyObject>(props: RowEditab
|
|
|
1158
1158
|
};
|
|
1159
1159
|
actionRender: (row: RecordType & {
|
|
1160
1160
|
index: number;
|
|
1161
|
-
}) => ReactNode[] | (
|
|
1161
|
+
}) => ReactNode[] | (react_jsx_runtime16.JSX.Element | undefined)[];
|
|
1162
1162
|
startEditable: (recordKey: Key, record?: RecordType | undefined) => boolean;
|
|
1163
1163
|
cancelEditable: (recordKey: RecordKey, needReTry?: boolean | undefined) => Promise<boolean>;
|
|
1164
1164
|
addEditRecord: (row: RecordType, options?: AddLineOptions | undefined) => boolean;
|
|
@@ -1764,7 +1764,7 @@ declare const dateArrayFormatter: (value: any[], format: FormatType | FormatType
|
|
|
1764
1764
|
* @param item
|
|
1765
1765
|
* @param text
|
|
1766
1766
|
*/
|
|
1767
|
-
declare const genCopyable: (dom: ReactNode, item: any, text: string) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean |
|
|
1767
|
+
declare const genCopyable: (dom: ReactNode, item: any, text: string) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react11.ReactPortal | react11.ReactElement<unknown, string | react11.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime16.JSX.Element | null | undefined;
|
|
1768
1768
|
//#endregion
|
|
1769
1769
|
//#region src/utils/getFieldPropsOrFormItemProps/index.d.ts
|
|
1770
1770
|
/**
|
|
@@ -1973,7 +1973,7 @@ declare function useEditableMap<RecordType>(props: RowEditableConfig<RecordType>
|
|
|
1973
1973
|
editableKeys: Key[];
|
|
1974
1974
|
setEditableRowKeys: (updater: Key[] | ((origin: Key[]) => Key[]), ignoreDestroy?: boolean) => void;
|
|
1975
1975
|
isEditable: (recordKey: RecordKey) => boolean;
|
|
1976
|
-
actionRender: (key: RecordKey, config?: ActionTypeText<RecordType>) => ReactNode[] | (
|
|
1976
|
+
actionRender: (key: RecordKey, config?: ActionTypeText<RecordType>) => ReactNode[] | (react_jsx_runtime16.JSX.Element | undefined)[];
|
|
1977
1977
|
startEditable: (recordKey: RecordKey, recordValue?: any) => boolean;
|
|
1978
1978
|
cancelEditable: (recordKey: RecordKey) => boolean;
|
|
1979
1979
|
};
|
|
@@ -2076,7 +2076,7 @@ declare const FieldRender: FC<ProDescriptionsItemProps<any> & {
|
|
|
2076
2076
|
emptyText?: ReactNode;
|
|
2077
2077
|
}>;
|
|
2078
2078
|
declare const ProDescriptions: {
|
|
2079
|
-
<RecordType extends Record<string, any>, ValueType = "text">(props: ProDescriptionsProps<RecordType, ValueType>):
|
|
2079
|
+
<RecordType extends Record<string, any>, ValueType = "text">(props: ProDescriptionsProps<RecordType, ValueType>): react_jsx_runtime16.JSX.Element;
|
|
2080
2080
|
Item: FC<ProDescriptionsItemProps<Record<string, any>, "text">>;
|
|
2081
2081
|
};
|
|
2082
2082
|
//#endregion
|
|
@@ -2770,7 +2770,7 @@ type CaptFieldRef = {
|
|
|
2770
2770
|
/** 结束计时 */
|
|
2771
2771
|
endTiming: () => void;
|
|
2772
2772
|
};
|
|
2773
|
-
declare const ProFormCaptcha:
|
|
2773
|
+
declare const ProFormCaptcha: react11.ComponentClass<{
|
|
2774
2774
|
fieldProps?: Partial<FieldProps<any> & InputProps> | undefined;
|
|
2775
2775
|
placeholder?: string | string[];
|
|
2776
2776
|
secondary?: boolean;
|
|
@@ -2781,7 +2781,7 @@ declare const ProFormCaptcha: react2.ComponentClass<{
|
|
|
2781
2781
|
proFieldProps?: ProFieldProps;
|
|
2782
2782
|
footerRender?: LightFilterFooterRender;
|
|
2783
2783
|
children?: any;
|
|
2784
|
-
ref?:
|
|
2784
|
+
ref?: react11.Ref<any>;
|
|
2785
2785
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
2786
2786
|
/** @name 倒计时的秒数 */
|
|
2787
2787
|
countDown?: number;
|
|
@@ -2801,7 +2801,7 @@ declare const ProFormCaptcha: react2.ComponentClass<{
|
|
|
2801
2801
|
} & {
|
|
2802
2802
|
getFormItemProps?: () => Record<string, any>;
|
|
2803
2803
|
getFieldProps?: () => Record<string, any>;
|
|
2804
|
-
}, any> |
|
|
2804
|
+
}, any> | react11.FunctionComponent<{
|
|
2805
2805
|
fieldProps?: Partial<FieldProps<any> & InputProps> | undefined;
|
|
2806
2806
|
placeholder?: string | string[];
|
|
2807
2807
|
secondary?: boolean;
|
|
@@ -2812,7 +2812,7 @@ declare const ProFormCaptcha: react2.ComponentClass<{
|
|
|
2812
2812
|
proFieldProps?: ProFieldProps;
|
|
2813
2813
|
footerRender?: LightFilterFooterRender;
|
|
2814
2814
|
children?: any;
|
|
2815
|
-
ref?:
|
|
2815
|
+
ref?: react11.Ref<any>;
|
|
2816
2816
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
2817
2817
|
/** @name 倒计时的秒数 */
|
|
2818
2818
|
countDown?: number;
|
|
@@ -2997,7 +2997,7 @@ declare const ProFormDependency: {
|
|
|
2997
2997
|
children,
|
|
2998
2998
|
ignoreFormListField,
|
|
2999
2999
|
...rest
|
|
3000
|
-
}: ProFormDependencyProps<T>):
|
|
3000
|
+
}: ProFormDependencyProps<T>): react_jsx_runtime16.JSX.Element;
|
|
3001
3001
|
displayName: string;
|
|
3002
3002
|
};
|
|
3003
3003
|
//#endregion
|
|
@@ -3049,7 +3049,7 @@ type ProFormFieldProps<T = any, FiledProps = Record<string, any>> = ProSchema<T,
|
|
|
3049
3049
|
declare const ProFormField: <FiledProps, DataType = Record<string, any>>(props: ProFormFieldProps<DataType, FiledProps>) => ReactElement;
|
|
3050
3050
|
//#endregion
|
|
3051
3051
|
//#region src/form/components/FormItem/index.d.ts
|
|
3052
|
-
declare const FormItemProvide:
|
|
3052
|
+
declare const FormItemProvide: react11.Context<{
|
|
3053
3053
|
name?: NamePath;
|
|
3054
3054
|
label?: ReactNode;
|
|
3055
3055
|
}>;
|
|
@@ -3185,7 +3185,7 @@ type FormControlInjectProps = ReturnType<typeof Form.Item.useStatus> & {
|
|
|
3185
3185
|
*/
|
|
3186
3186
|
declare function FormControlRender(props: WithControlPropsType<{
|
|
3187
3187
|
children: (props: FormControlInjectProps) => ReactElement;
|
|
3188
|
-
}>): ReactElement<unknown, string |
|
|
3188
|
+
}>): ReactElement<unknown, string | react11.JSXElementConstructor<any>>;
|
|
3189
3189
|
/**
|
|
3190
3190
|
* 提取props中的 value 和 onChange 属性
|
|
3191
3191
|
*/
|
|
@@ -3245,7 +3245,7 @@ declare const ProFormItemRender: FC<Omit<antd0.FormItemProps<any> & {
|
|
|
3245
3245
|
} & {
|
|
3246
3246
|
addonBefore?: ReactNode;
|
|
3247
3247
|
addonAfter?: ReactNode;
|
|
3248
|
-
addonWarpStyle?:
|
|
3248
|
+
addonWarpStyle?: react11.CSSProperties;
|
|
3249
3249
|
convertValue?: SearchConvertKeyFn;
|
|
3250
3250
|
help?: ReactNode | ((params: {
|
|
3251
3251
|
errors: ReactNode[];
|
|
@@ -3476,7 +3476,7 @@ type ProFromListCommonProps = {
|
|
|
3476
3476
|
};
|
|
3477
3477
|
//#endregion
|
|
3478
3478
|
//#region src/form/components/List/index.d.ts
|
|
3479
|
-
declare const FormListContext:
|
|
3479
|
+
declare const FormListContext: react11.Context<Record<string, any> | (FormListFieldData & {
|
|
3480
3480
|
listName: NamePath;
|
|
3481
3481
|
})>;
|
|
3482
3482
|
type FormListActionType<T = any> = FormListOperation & {
|
|
@@ -3548,7 +3548,7 @@ type ProFormListProps<T> = Omit<FormListProps, 'children' | 'rules'> & ProFromLi
|
|
|
3548
3548
|
className?: string;
|
|
3549
3549
|
readonly?: boolean;
|
|
3550
3550
|
} & Pick<ProFormGridConfig, 'colProps' | 'rowProps'>;
|
|
3551
|
-
declare function ProFormList<T>(props: ProFormListProps<T>):
|
|
3551
|
+
declare function ProFormList<T>(props: ProFormListProps<T>): react11.ReactElement<unknown, string | react11.JSXElementConstructor<any>> | null;
|
|
3552
3552
|
//#endregion
|
|
3553
3553
|
//#region src/form/components/Money/index.d.ts
|
|
3554
3554
|
type ProFormMoneyProps = ProFormFieldItemProps<Omit<FieldMoneyProps, 'valueType' | 'text'> & InputNumberProps<number>> & {
|
|
@@ -3572,33 +3572,33 @@ type ProFormRadioGroupProps = ProFormFieldItemProps<RadioGroupProps, HTMLDivElem
|
|
|
3572
3572
|
options?: RadioGroupProps['options'];
|
|
3573
3573
|
} & ProFormFieldRemoteProps;
|
|
3574
3574
|
declare const RadioGroup: FC<ProFormRadioGroupProps>;
|
|
3575
|
-
declare const ProFormRadio:
|
|
3575
|
+
declare const ProFormRadio: react11.ComponentClass<{
|
|
3576
3576
|
fieldProps?: Partial<FieldProps<any> & RadioProps> | undefined;
|
|
3577
3577
|
placeholder?: string | string[];
|
|
3578
3578
|
secondary?: boolean;
|
|
3579
|
-
emptyText?:
|
|
3579
|
+
emptyText?: react11.ReactNode;
|
|
3580
3580
|
cacheForSwr?: boolean;
|
|
3581
3581
|
disabled?: boolean;
|
|
3582
3582
|
width?: number | "sm" | "md" | "xl" | "xs" | "lg";
|
|
3583
3583
|
proFieldProps?: ProFieldProps;
|
|
3584
3584
|
footerRender?: LightFilterFooterRender;
|
|
3585
3585
|
children?: any;
|
|
3586
|
-
ref?:
|
|
3586
|
+
ref?: react11.Ref<any>;
|
|
3587
3587
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
3588
3588
|
getFormItemProps?: () => Record<string, any>;
|
|
3589
3589
|
getFieldProps?: () => Record<string, any>;
|
|
3590
|
-
}, any> |
|
|
3590
|
+
}, any> | react11.FunctionComponent<{
|
|
3591
3591
|
fieldProps?: Partial<FieldProps<any> & RadioProps> | undefined;
|
|
3592
3592
|
placeholder?: string | string[];
|
|
3593
3593
|
secondary?: boolean;
|
|
3594
|
-
emptyText?:
|
|
3594
|
+
emptyText?: react11.ReactNode;
|
|
3595
3595
|
cacheForSwr?: boolean;
|
|
3596
3596
|
disabled?: boolean;
|
|
3597
3597
|
width?: number | "sm" | "md" | "xl" | "xs" | "lg";
|
|
3598
3598
|
proFieldProps?: ProFieldProps;
|
|
3599
3599
|
footerRender?: LightFilterFooterRender;
|
|
3600
3600
|
children?: any;
|
|
3601
|
-
ref?:
|
|
3601
|
+
ref?: react11.Ref<any>;
|
|
3602
3602
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
3603
3603
|
getFormItemProps?: () => Record<string, any>;
|
|
3604
3604
|
getFieldProps?: () => Record<string, any>;
|
|
@@ -3620,18 +3620,18 @@ declare const ProFormRate: FC<ProFormFieldItemProps<RateProps>>;
|
|
|
3620
3620
|
type ProFormProps<T = Record<string, any>, U = Record<string, any>> = Omit<FormProps<T>, 'onFinish'> & CommonFormProps<T, U>;
|
|
3621
3621
|
declare function ProForm<T = Record<string, any>>(props: ProFormProps<T> & {
|
|
3622
3622
|
children?: ReactNode | ReactNode[];
|
|
3623
|
-
}):
|
|
3623
|
+
}): react_jsx_runtime16.JSX.Element;
|
|
3624
3624
|
declare namespace ProForm {
|
|
3625
|
-
var Group:
|
|
3626
|
-
ref?:
|
|
3625
|
+
var Group: react11.FC<ProFormBaseGroupProps & ProFormGridConfig & {
|
|
3626
|
+
ref?: react11.Ref<any>;
|
|
3627
3627
|
}>;
|
|
3628
3628
|
var useForm: typeof antd_es_form_Form0.useForm;
|
|
3629
|
-
var Item:
|
|
3629
|
+
var Item: react11.FC<ProFormItemProps>;
|
|
3630
3630
|
var useWatch: typeof _rc_component_form0.useWatch;
|
|
3631
|
-
var ErrorList:
|
|
3632
|
-
var Provider:
|
|
3631
|
+
var ErrorList: react11.FC<antd_es_form0.ErrorListProps>;
|
|
3632
|
+
var Provider: react11.FC<antd_es_form_context0.FormProviderProps>;
|
|
3633
3633
|
var useFormInstance: typeof antd_es_form_hooks_useFormInstance0.default;
|
|
3634
|
-
var EditOrReadOnlyContext:
|
|
3634
|
+
var EditOrReadOnlyContext: react11.Context<{
|
|
3635
3635
|
mode: "edit" | "read" | "update";
|
|
3636
3636
|
}>;
|
|
3637
3637
|
}
|
|
@@ -3687,7 +3687,7 @@ declare function DrawerForm<T = Record<string, any>, U = Record<string, any>>({
|
|
|
3687
3687
|
onOpenChange,
|
|
3688
3688
|
open: propsOpen,
|
|
3689
3689
|
...rest
|
|
3690
|
-
}: DrawerFormProps<T, U>):
|
|
3690
|
+
}: DrawerFormProps<T, U>): react11.ReactElement<unknown, string | react11.JSXElementConstructor<any>>;
|
|
3691
3691
|
//#endregion
|
|
3692
3692
|
//#region src/form/layouts/LightFilter/index.d.ts
|
|
3693
3693
|
type LightFilterProps<T, U = Record<string, any>> = {
|
|
@@ -3730,7 +3730,7 @@ type LightFilterProps<T, U = Record<string, any>> = {
|
|
|
3730
3730
|
*/
|
|
3731
3731
|
popoverProps?: Omit<PopoverProps, 'children' | 'content' | 'trigger' | 'open' | 'onOpenChange' | 'placement'>;
|
|
3732
3732
|
} & Omit<FormProps<T>, 'onFinish'> & CommonFormProps<T, U>;
|
|
3733
|
-
declare function LightFilter<T = Record<string, any>>(props: LightFilterProps<T>):
|
|
3733
|
+
declare function LightFilter<T = Record<string, any>>(props: LightFilterProps<T>): react_jsx_runtime16.JSX.Element;
|
|
3734
3734
|
//#endregion
|
|
3735
3735
|
//#region src/form/layouts/LoginForm/index.d.ts
|
|
3736
3736
|
type LoginFormProps<T> = {
|
|
@@ -3778,7 +3778,7 @@ type LoginFormProps<T> = {
|
|
|
3778
3778
|
containerStyle?: CSSProperties;
|
|
3779
3779
|
otherStyle?: CSSProperties;
|
|
3780
3780
|
} & Omit<ProFormProps<T>, 'title'>;
|
|
3781
|
-
declare function LoginForm<T = Record<string, any>>(props: Partial<LoginFormProps<T>>):
|
|
3781
|
+
declare function LoginForm<T = Record<string, any>>(props: Partial<LoginFormProps<T>>): react11.ReactElement<unknown, string | react11.JSXElementConstructor<any>>;
|
|
3782
3782
|
//#endregion
|
|
3783
3783
|
//#region src/form/layouts/LoginFormPage/index.d.ts
|
|
3784
3784
|
type LoginFormPageProps<T> = {
|
|
@@ -3843,7 +3843,7 @@ type LoginFormPageProps<T> = {
|
|
|
3843
3843
|
mainStyle?: CSSProperties;
|
|
3844
3844
|
otherStyle?: CSSProperties;
|
|
3845
3845
|
} & Omit<ProFormProps<T>, 'title'>;
|
|
3846
|
-
declare function LoginFormPage<T = Record<string, any>>(props: Partial<LoginFormPageProps<T>>):
|
|
3846
|
+
declare function LoginFormPage<T = Record<string, any>>(props: Partial<LoginFormPageProps<T>>): react11.ReactElement<unknown, string | react11.JSXElementConstructor<any>>;
|
|
3847
3847
|
//#endregion
|
|
3848
3848
|
//#region src/form/layouts/ModalForm/index.d.ts
|
|
3849
3849
|
type ModalFormProps<T = Record<string, any>, U = Record<string, any>> = Omit<FormProps<T>, 'onFinish' | 'title'> & CommonFormProps<T, U> & {
|
|
@@ -3885,7 +3885,7 @@ declare function ModalForm<T = Record<string, any>, U = Record<string, any>>({
|
|
|
3885
3885
|
width,
|
|
3886
3886
|
open: propsOpen,
|
|
3887
3887
|
...rest
|
|
3888
|
-
}: ModalFormProps<T, U>):
|
|
3888
|
+
}: ModalFormProps<T, U>): react_jsx_runtime16.JSX.Element;
|
|
3889
3889
|
//#endregion
|
|
3890
3890
|
//#region src/form/layouts/QueryFilter/Actions.d.ts
|
|
3891
3891
|
type ActionsProps = {
|
|
@@ -4009,7 +4009,7 @@ type BaseQueryFilterProps = Omit<ActionsProps, 'submitter' | 'setCollapsed' | 'i
|
|
|
4009
4009
|
type QueryFilterProps<T = Record<string, any>, U = Record<string, any>> = Omit<FormProps$1<T>, 'onFinish'> & CommonFormProps<T, U> & BaseQueryFilterProps & {
|
|
4010
4010
|
onReset?: (values: T) => void;
|
|
4011
4011
|
};
|
|
4012
|
-
declare function QueryFilter<T = Record<string, any>>(props: QueryFilterProps<T>): ReactElement<unknown, string |
|
|
4012
|
+
declare function QueryFilter<T = Record<string, any>>(props: QueryFilterProps<T>): ReactElement<unknown, string | react11.JSXElementConstructor<any>>;
|
|
4013
4013
|
//#endregion
|
|
4014
4014
|
//#region src/form/layouts/StepsForm/StepForm.d.ts
|
|
4015
4015
|
type StepFormProps<T = Record<string, any>, U = Record<string, any>> = {
|
|
@@ -4017,7 +4017,7 @@ type StepFormProps<T = Record<string, any>, U = Record<string, any>> = {
|
|
|
4017
4017
|
stepProps?: NonNullable<StepsProps['items']>[number];
|
|
4018
4018
|
index?: number;
|
|
4019
4019
|
} & Omit<FormProps<T>, 'onFinish' | 'form'> & Omit<CommonFormProps<T, U>, 'submitter' | 'form'>;
|
|
4020
|
-
declare function StepForm<T = Record<string, any>>(stepNativeProps: StepFormProps<T>):
|
|
4020
|
+
declare function StepForm<T = Record<string, any>>(stepNativeProps: StepFormProps<T>): react_jsx_runtime16.JSX.Element;
|
|
4021
4021
|
//#endregion
|
|
4022
4022
|
//#region src/form/layouts/StepsForm/index.d.ts
|
|
4023
4023
|
type StepsFormProps<T = Record<string, any>> = {
|
|
@@ -4072,15 +4072,15 @@ type StepsFormProps<T = Record<string, any>> = {
|
|
|
4072
4072
|
} & Omit<FormProviderProps, 'children'>;
|
|
4073
4073
|
declare function StepsFormWarp<T = Record<string, any>>(props: StepsFormProps<T> & {
|
|
4074
4074
|
children: any;
|
|
4075
|
-
}):
|
|
4075
|
+
}): react_jsx_runtime16.JSX.Element;
|
|
4076
4076
|
declare namespace StepsFormWarp {
|
|
4077
4077
|
var StepForm: typeof StepForm;
|
|
4078
4078
|
var useForm: typeof antd_es_form_Form0.useForm;
|
|
4079
4079
|
}
|
|
4080
4080
|
//#endregion
|
|
4081
4081
|
//#region src/form/layouts/index.d.ts
|
|
4082
|
-
declare const ProFormGroup:
|
|
4083
|
-
ref?:
|
|
4082
|
+
declare const ProFormGroup: react11.FC<ProFormBaseGroupProps & ProFormGridConfig & {
|
|
4083
|
+
ref?: react11.Ref<any>;
|
|
4084
4084
|
}>;
|
|
4085
4085
|
//#endregion
|
|
4086
4086
|
//#region src/form/components/SchemaForm/typing.d.ts
|
|
@@ -4194,7 +4194,7 @@ type FormSchema<T = Record<string, any>, ValueType = 'text'> = {
|
|
|
4194
4194
|
*
|
|
4195
4195
|
* @see 此组件仍为 beta 版本,api 可能发生变化
|
|
4196
4196
|
*/
|
|
4197
|
-
declare function BetaSchemaForm<T, ValueType = 'text'>(props: FormSchema<T, ValueType>):
|
|
4197
|
+
declare function BetaSchemaForm<T, ValueType = 'text'>(props: FormSchema<T, ValueType>): react_jsx_runtime16.JSX.Element;
|
|
4198
4198
|
//#endregion
|
|
4199
4199
|
//#region src/form/components/Segmented/index.d.ts
|
|
4200
4200
|
/**
|
|
@@ -4404,7 +4404,7 @@ type ProFormUploadDraggerProps = ProFormFieldItemProps<DraggerProps> & {
|
|
|
4404
4404
|
action?: UploadProps$1['action'];
|
|
4405
4405
|
accept?: UploadProps$1['accept'];
|
|
4406
4406
|
};
|
|
4407
|
-
declare const ProFormUploadDragger:
|
|
4407
|
+
declare const ProFormUploadDragger: react11.ComponentClass<{
|
|
4408
4408
|
fieldProps?: Partial<FieldProps<any> & UploadProps$1<any> & {
|
|
4409
4409
|
height?: number;
|
|
4410
4410
|
}> | undefined;
|
|
@@ -4417,7 +4417,7 @@ declare const ProFormUploadDragger: react2.ComponentClass<{
|
|
|
4417
4417
|
proFieldProps?: ProFieldProps;
|
|
4418
4418
|
footerRender?: LightFilterFooterRender;
|
|
4419
4419
|
children?: any;
|
|
4420
|
-
ref?:
|
|
4420
|
+
ref?: react11.Ref<any>;
|
|
4421
4421
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
4422
4422
|
/**
|
|
4423
4423
|
* @name 上传文件块的图标
|
|
@@ -4461,7 +4461,7 @@ declare const ProFormUploadDragger: react2.ComponentClass<{
|
|
|
4461
4461
|
} & {
|
|
4462
4462
|
getFormItemProps?: () => Record<string, any>;
|
|
4463
4463
|
getFieldProps?: () => Record<string, any>;
|
|
4464
|
-
}, any> |
|
|
4464
|
+
}, any> | react11.FunctionComponent<{
|
|
4465
4465
|
fieldProps?: Partial<FieldProps<any> & UploadProps$1<any> & {
|
|
4466
4466
|
height?: number;
|
|
4467
4467
|
}> | undefined;
|
|
@@ -4474,7 +4474,7 @@ declare const ProFormUploadDragger: react2.ComponentClass<{
|
|
|
4474
4474
|
proFieldProps?: ProFieldProps;
|
|
4475
4475
|
footerRender?: LightFilterFooterRender;
|
|
4476
4476
|
children?: any;
|
|
4477
|
-
ref?:
|
|
4477
|
+
ref?: react11.Ref<any>;
|
|
4478
4478
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
4479
4479
|
/**
|
|
4480
4480
|
* @name 上传文件块的图标
|
|
@@ -4663,7 +4663,7 @@ type ProFormFieldItemProps<T = Record<string, any>, K$1 = any> = {
|
|
|
4663
4663
|
type ProFormFieldRemoteProps = Pick<ProSchema, 'debounceTime' | 'request' | 'valueEnum' | 'params'>;
|
|
4664
4664
|
//#endregion
|
|
4665
4665
|
//#region src/form/helpers/grid.d.ts
|
|
4666
|
-
declare const GridContext:
|
|
4666
|
+
declare const GridContext: react11.Context<ProFormGridConfig>;
|
|
4667
4667
|
//#endregion
|
|
4668
4668
|
//#region src/form/FieldContext.d.ts
|
|
4669
4669
|
type FiledContextProps = {
|
|
@@ -4684,7 +4684,7 @@ type FiledContextProps = {
|
|
|
4684
4684
|
/** 表单的 getPopupContainer 控制 */
|
|
4685
4685
|
getPopupContainer?: (e: HTMLElement) => ParentNode;
|
|
4686
4686
|
} & Pick<CommonFormProps, 'formRef' | 'grid'>;
|
|
4687
|
-
declare const FieldContext:
|
|
4687
|
+
declare const FieldContext: react11.Context<FiledContextProps>;
|
|
4688
4688
|
//#endregion
|
|
4689
4689
|
//#region src/layout/components/AppsLogoComponents/types.d.ts
|
|
4690
4690
|
type AppItemProps = {
|
|
@@ -5248,7 +5248,7 @@ declare const ProBreadcrumb: FC<BreadcrumbProps>;
|
|
|
5248
5248
|
declare const PageContainer: FC<PageContainerProps>;
|
|
5249
5249
|
declare const ProPageHeader: (props: PageContainerProps & {
|
|
5250
5250
|
prefixedClassName: string;
|
|
5251
|
-
}) =>
|
|
5251
|
+
}) => react_jsx_runtime16.JSX.Element | null;
|
|
5252
5252
|
//#endregion
|
|
5253
5253
|
//#region src/layout/components/PageLoading/index.d.ts
|
|
5254
5254
|
declare const PageLoading: FC<SpinProps & any>;
|
|
@@ -5857,7 +5857,7 @@ type ProHelpDataSource<ValueType = 'text'> = {
|
|
|
5857
5857
|
* 该上下文对象通常用于在 React 组件树中共享数据,即可以通过在组件中使用 ProHelpProvide.Provider 包裹一组组件,
|
|
5858
5858
|
* 将 dataSource 和 valueTypeMap 数据源传递给这些组件,这些组件即可从上下文中获取 dataSource 数据源,实现数据的共享和传递。
|
|
5859
5859
|
*/
|
|
5860
|
-
declare const ProHelpProvide:
|
|
5860
|
+
declare const ProHelpProvide: react11.Context<{
|
|
5861
5861
|
/**
|
|
5862
5862
|
* 帮助文档的数据源,包含一组帮助文档数据,每个数据包含标题和内容等信息。
|
|
5863
5863
|
*/
|
|
@@ -5903,7 +5903,7 @@ type ProHelpContentPanelProps$1 = {
|
|
|
5903
5903
|
declare const ProHelpContentPanel: FC<ProHelpContentPanelProps$1>;
|
|
5904
5904
|
//#endregion
|
|
5905
5905
|
//#region src/layout/components/Help/ProHelpPanel.d.ts
|
|
5906
|
-
declare const SelectKeyProvide:
|
|
5906
|
+
declare const SelectKeyProvide: react11.Context<{
|
|
5907
5907
|
selectedKey: string | undefined;
|
|
5908
5908
|
setSelectedKey: (key: string | undefined) => void;
|
|
5909
5909
|
}>;
|
|
@@ -6080,7 +6080,7 @@ declare const ProHelp: <ValueTypeMap = {
|
|
|
6080
6080
|
valueTypeMap,
|
|
6081
6081
|
onLoadContext,
|
|
6082
6082
|
...props
|
|
6083
|
-
}: ProHelpProps<ValueTypeMap>) =>
|
|
6083
|
+
}: ProHelpProps<ValueTypeMap>) => react_jsx_runtime16.JSX.Element;
|
|
6084
6084
|
//#endregion
|
|
6085
6085
|
//#region src/table/components/Alert/index.d.ts
|
|
6086
6086
|
type AlertRenderType<T> = ((props: {
|
|
@@ -6565,7 +6565,7 @@ type DragTableProps<T, U> = {
|
|
|
6565
6565
|
/** @name 拖动排序完成回调 */
|
|
6566
6566
|
onDragSortEnd?: (beforeIndex: number, afterIndex: number, newDataSource: T[]) => Promise<void> | void;
|
|
6567
6567
|
} & ProTableProps<T, U>;
|
|
6568
|
-
declare function DragSortTable<T extends Record<string, any>, U extends ParamsType = ParamsType, ValueType = 'text'>(props: DragTableProps<T, U>):
|
|
6568
|
+
declare function DragSortTable<T extends Record<string, any>, U extends ParamsType = ParamsType, ValueType = 'text'>(props: DragTableProps<T, U>): react11.ReactElement<unknown, string | react11.JSXElementConstructor<any>>;
|
|
6569
6569
|
//#endregion
|
|
6570
6570
|
//#region src/table/components/Dropdown/index.d.ts
|
|
6571
6571
|
interface MenuItems extends MenuItemProps {
|
|
@@ -6671,18 +6671,18 @@ type EditableProTableProps<T, U extends ParamsType, ValueType = 'text'> = Omit<P
|
|
|
6671
6671
|
* A React component that is used to create a table.
|
|
6672
6672
|
* @param props
|
|
6673
6673
|
*/
|
|
6674
|
-
declare function FieldEditableTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>):
|
|
6674
|
+
declare function FieldEditableTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>): react_jsx_runtime16.JSX.Element;
|
|
6675
6675
|
declare namespace FieldEditableTable {
|
|
6676
6676
|
var RecordCreator: <T = Record<string, any>>(props: RecordCreatorProps<T> & {
|
|
6677
6677
|
children: JSX.Element;
|
|
6678
|
-
}) =>
|
|
6678
|
+
}) => react11.FunctionComponentElement<any>;
|
|
6679
6679
|
}
|
|
6680
6680
|
//#endregion
|
|
6681
6681
|
//#region src/table/components/EditableTable/CellEditorTable.d.ts
|
|
6682
|
-
declare function CellEditorTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>):
|
|
6682
|
+
declare function CellEditorTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>): react_jsx_runtime16.JSX.Element;
|
|
6683
6683
|
//#endregion
|
|
6684
6684
|
//#region src/table/components/EditableTable/RowEditorTable.d.ts
|
|
6685
|
-
declare function RowEditorTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>):
|
|
6685
|
+
declare function RowEditorTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>): react_jsx_runtime16.JSX.Element;
|
|
6686
6686
|
//#endregion
|
|
6687
6687
|
//#region src/table/components/Form/index.d.ts
|
|
6688
6688
|
type BaseFormProps<T, U> = {
|
|
@@ -6718,7 +6718,7 @@ declare class FormSearch<T, U> extends Component<BaseFormProps<T, U> & {
|
|
|
6718
6718
|
*/
|
|
6719
6719
|
isEqual: (next: BaseFormProps<T, U>) => boolean;
|
|
6720
6720
|
shouldComponentUpdate: (next: BaseFormProps<T, U>) => boolean;
|
|
6721
|
-
render: () =>
|
|
6721
|
+
render: () => react_jsx_runtime16.JSX.Element;
|
|
6722
6722
|
}
|
|
6723
6723
|
//#endregion
|
|
6724
6724
|
//#region src/table/Table.d.ts
|
|
@@ -6728,8 +6728,8 @@ declare class FormSearch<T, U> extends Component<BaseFormProps<T, U> & {
|
|
|
6728
6728
|
* @param props
|
|
6729
6729
|
*/
|
|
6730
6730
|
declare const ProviderTableContainer: {
|
|
6731
|
-
<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = "text">(props: ProTableProps<DataType, Params, ValueType>):
|
|
6732
|
-
Summary:
|
|
6731
|
+
<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = "text">(props: ProTableProps<DataType, Params, ValueType>): react_jsx_runtime16.JSX.Element;
|
|
6732
|
+
Summary: react11.FC<react11.PropsWithChildren<_rc_component_table_lib_Footer_Summary0.SummaryProps>> & {
|
|
6733
6733
|
Row: React.FC<React.PropsWithChildren<_rc_component_table_lib_Footer_Row0.FooterRowProps>>;
|
|
6734
6734
|
Cell: React.FC<React.PropsWithChildren<_rc_component_table_lib_Footer_Cell0.SummaryCellProps>>;
|
|
6735
6735
|
};
|
|
@@ -6820,8 +6820,8 @@ type ProListProps<RecordType = any, Params = Record<string, any>, ValueType = 't
|
|
|
6820
6820
|
itemTitleRender?: ItemProps<RecordType>['itemTitleRender'];
|
|
6821
6821
|
};
|
|
6822
6822
|
type TriggerEventHandler<RecordType> = (record: RecordType) => void;
|
|
6823
|
-
declare function BaseProList<RecordType extends Record<string, any>, U extends Record<string, any> = Record<string, any>>(props: ProListProps<RecordType, U>):
|
|
6824
|
-
declare function ProList<RecordType extends Record<string, any>, U extends Record<string, any> = Record<string, any>>(props: ProListProps<RecordType, U>):
|
|
6823
|
+
declare function BaseProList<RecordType extends Record<string, any>, U extends Record<string, any> = Record<string, any>>(props: ProListProps<RecordType, U>): react_jsx_runtime16.JSX.Element;
|
|
6824
|
+
declare function ProList<RecordType extends Record<string, any>, U extends Record<string, any> = Record<string, any>>(props: ProListProps<RecordType, U>): react_jsx_runtime16.JSX.Element;
|
|
6825
6825
|
//#endregion
|
|
6826
6826
|
//#region src/skeleton/components/Descriptions/index.d.ts
|
|
6827
6827
|
type DescriptionsPageSkeletonProps = {
|
|
@@ -6840,7 +6840,7 @@ declare const TableItemSkeleton: ({
|
|
|
6840
6840
|
}: {
|
|
6841
6841
|
active: boolean;
|
|
6842
6842
|
header?: boolean;
|
|
6843
|
-
}) =>
|
|
6843
|
+
}) => react_jsx_runtime16.JSX.Element;
|
|
6844
6844
|
/**
|
|
6845
6845
|
* Table 骨架屏
|
|
6846
6846
|
*
|
|
@@ -6854,7 +6854,7 @@ declare const DescriptionsSkeleton: ({
|
|
|
6854
6854
|
active
|
|
6855
6855
|
}: {
|
|
6856
6856
|
active: boolean;
|
|
6857
|
-
}) =>
|
|
6857
|
+
}) => react_jsx_runtime16.JSX.Element;
|
|
6858
6858
|
//#endregion
|
|
6859
6859
|
//#region src/skeleton/components/List/index.d.ts
|
|
6860
6860
|
/** 列表子项目骨架屏 */
|
|
@@ -6876,7 +6876,7 @@ declare const PageHeaderSkeleton: ({
|
|
|
6876
6876
|
active
|
|
6877
6877
|
}: {
|
|
6878
6878
|
active: boolean;
|
|
6879
|
-
}) =>
|
|
6879
|
+
}) => react_jsx_runtime16.JSX.Element;
|
|
6880
6880
|
type ListPageSkeletonProps = {
|
|
6881
6881
|
active?: boolean;
|
|
6882
6882
|
pageHeader?: false;
|
|
@@ -6894,7 +6894,7 @@ declare const ListToolbarSkeleton: ({
|
|
|
6894
6894
|
active
|
|
6895
6895
|
}: {
|
|
6896
6896
|
active: boolean;
|
|
6897
|
-
}) =>
|
|
6897
|
+
}) => react_jsx_runtime16.JSX.Element;
|
|
6898
6898
|
declare const ListPageSkeleton: FC<ListPageSkeletonProps>;
|
|
6899
6899
|
//#endregion
|
|
6900
6900
|
//#region src/skeleton/index.d.ts
|
package/dist/index.js
CHANGED
|
@@ -14892,91 +14892,183 @@ var Captcha_default = ProFormCaptcha;
|
|
|
14892
14892
|
//#endregion
|
|
14893
14893
|
//#region src/form/components/Field/index.tsx
|
|
14894
14894
|
const BaseProFormField = (props) => {
|
|
14895
|
-
const
|
|
14895
|
+
const $ = c(46);
|
|
14896
|
+
let autoFocus;
|
|
14897
|
+
let children;
|
|
14898
|
+
let dependenciesValues;
|
|
14899
|
+
let fieldProps;
|
|
14900
|
+
let formItemRender;
|
|
14901
|
+
let onChange;
|
|
14902
|
+
let params;
|
|
14903
|
+
let proFieldProps$1;
|
|
14904
|
+
let render;
|
|
14905
|
+
let restProps;
|
|
14906
|
+
let t0;
|
|
14907
|
+
let t1;
|
|
14908
|
+
let valueEnum;
|
|
14909
|
+
let valueType$15;
|
|
14910
|
+
if ($[0] !== props) {
|
|
14911
|
+
const { fieldProps: t2$1, children: t3$1, labelCol, label, autoFocus: t4$1, isDefaultDom, render: t5$1, proFieldProps: t6$1, formItemRender: t7$1, valueType: t8$1, initialValue, onChange: t9$1, valueEnum: t10$1, params: t11$1, name, dependenciesValues: t12$1, cacheForSwr: t13, valuePropName: t14, ...t15 } = props;
|
|
14912
|
+
fieldProps = t2$1;
|
|
14913
|
+
children = t3$1;
|
|
14914
|
+
autoFocus = t4$1;
|
|
14915
|
+
render = t5$1;
|
|
14916
|
+
proFieldProps$1 = t6$1;
|
|
14917
|
+
formItemRender = t7$1;
|
|
14918
|
+
valueType$15 = t8$1;
|
|
14919
|
+
onChange = t9$1;
|
|
14920
|
+
valueEnum = t10$1;
|
|
14921
|
+
params = t11$1;
|
|
14922
|
+
dependenciesValues = t12$1;
|
|
14923
|
+
t0 = t13;
|
|
14924
|
+
t1 = t14;
|
|
14925
|
+
restProps = t15;
|
|
14926
|
+
$[0] = props;
|
|
14927
|
+
$[1] = autoFocus;
|
|
14928
|
+
$[2] = children;
|
|
14929
|
+
$[3] = dependenciesValues;
|
|
14930
|
+
$[4] = fieldProps;
|
|
14931
|
+
$[5] = formItemRender;
|
|
14932
|
+
$[6] = onChange;
|
|
14933
|
+
$[7] = params;
|
|
14934
|
+
$[8] = proFieldProps$1;
|
|
14935
|
+
$[9] = render;
|
|
14936
|
+
$[10] = restProps;
|
|
14937
|
+
$[11] = t0;
|
|
14938
|
+
$[12] = t1;
|
|
14939
|
+
$[13] = valueEnum;
|
|
14940
|
+
$[14] = valueType$15;
|
|
14941
|
+
} else {
|
|
14942
|
+
autoFocus = $[1];
|
|
14943
|
+
children = $[2];
|
|
14944
|
+
dependenciesValues = $[3];
|
|
14945
|
+
fieldProps = $[4];
|
|
14946
|
+
formItemRender = $[5];
|
|
14947
|
+
onChange = $[6];
|
|
14948
|
+
params = $[7];
|
|
14949
|
+
proFieldProps$1 = $[8];
|
|
14950
|
+
render = $[9];
|
|
14951
|
+
restProps = $[10];
|
|
14952
|
+
t0 = $[11];
|
|
14953
|
+
t1 = $[12];
|
|
14954
|
+
valueEnum = $[13];
|
|
14955
|
+
valueType$15 = $[14];
|
|
14956
|
+
}
|
|
14957
|
+
const cacheForSwr = t0 === void 0 ? false : t0;
|
|
14958
|
+
const valuePropName = t1 === void 0 ? "value" : t1;
|
|
14896
14959
|
const modeContext = useContext(EditOrReadOnlyContext);
|
|
14897
|
-
|
|
14898
|
-
|
|
14960
|
+
let t2;
|
|
14961
|
+
if ($[15] !== dependenciesValues || $[16] !== params || $[17] !== restProps.request) {
|
|
14962
|
+
t2 = dependenciesValues && restProps.request ? {
|
|
14899
14963
|
...params,
|
|
14900
14964
|
...dependenciesValues || {}
|
|
14901
14965
|
} : params;
|
|
14902
|
-
|
|
14903
|
-
|
|
14904
|
-
|
|
14905
|
-
|
|
14906
|
-
]
|
|
14907
|
-
const
|
|
14908
|
-
|
|
14909
|
-
|
|
14910
|
-
|
|
14911
|
-
|
|
14912
|
-
|
|
14913
|
-
|
|
14914
|
-
|
|
14915
|
-
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
|
|
14919
|
-
|
|
14920
|
-
|
|
14921
|
-
|
|
14922
|
-
|
|
14923
|
-
|
|
14924
|
-
|
|
14925
|
-
|
|
14926
|
-
|
|
14927
|
-
|
|
14928
|
-
|
|
14929
|
-
|
|
14930
|
-
|
|
14931
|
-
|
|
14932
|
-
|
|
14933
|
-
|
|
14934
|
-
|
|
14935
|
-
|
|
14936
|
-
|
|
14937
|
-
|
|
14938
|
-
|
|
14939
|
-
|
|
14940
|
-
|
|
14941
|
-
|
|
14942
|
-
|
|
14966
|
+
$[15] = dependenciesValues;
|
|
14967
|
+
$[16] = params;
|
|
14968
|
+
$[17] = restProps.request;
|
|
14969
|
+
$[18] = t2;
|
|
14970
|
+
} else t2 = $[18];
|
|
14971
|
+
const propsParams = t2;
|
|
14972
|
+
let t3;
|
|
14973
|
+
if ($[19] !== fieldProps?.onChange) {
|
|
14974
|
+
t3 = (...t4$1) => {
|
|
14975
|
+
const restParams = t4$1;
|
|
14976
|
+
if (fieldProps?.onChange) {
|
|
14977
|
+
(fieldProps?.onChange)?.(...restParams);
|
|
14978
|
+
return;
|
|
14979
|
+
}
|
|
14980
|
+
};
|
|
14981
|
+
$[19] = fieldProps?.onChange;
|
|
14982
|
+
$[20] = t3;
|
|
14983
|
+
} else t3 = $[20];
|
|
14984
|
+
const memoUnChange = useRefFunction(t3);
|
|
14985
|
+
let t4;
|
|
14986
|
+
if ($[21] !== autoFocus || $[22] !== fieldProps || $[23] !== memoUnChange) {
|
|
14987
|
+
t4 = {
|
|
14988
|
+
autoFocus,
|
|
14989
|
+
...fieldProps,
|
|
14990
|
+
onChange: memoUnChange
|
|
14991
|
+
};
|
|
14992
|
+
$[21] = autoFocus;
|
|
14993
|
+
$[22] = fieldProps;
|
|
14994
|
+
$[23] = memoUnChange;
|
|
14995
|
+
$[24] = t4;
|
|
14996
|
+
} else t4 = $[24];
|
|
14997
|
+
const memoFieldProps = t4;
|
|
14998
|
+
let t5;
|
|
14999
|
+
if ($[25] !== children || $[26] !== fieldProps?.onChange || $[27] !== onChange || $[28] !== restProps) {
|
|
15000
|
+
t5 = () => {
|
|
15001
|
+
if (children) {
|
|
15002
|
+
if (isValidElement(children)) return cloneElement(children, {
|
|
15003
|
+
...restProps,
|
|
15004
|
+
onChange: (...t6$1) => {
|
|
15005
|
+
const restParams_0 = t6$1;
|
|
15006
|
+
if (fieldProps?.onChange) {
|
|
15007
|
+
(fieldProps?.onChange)?.(...restParams_0);
|
|
15008
|
+
return;
|
|
15009
|
+
}
|
|
15010
|
+
onChange?.(...restParams_0);
|
|
15011
|
+
},
|
|
15012
|
+
...children?.props || {}
|
|
15013
|
+
});
|
|
15014
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
15015
|
+
}
|
|
15016
|
+
};
|
|
15017
|
+
$[25] = children;
|
|
15018
|
+
$[26] = fieldProps?.onChange;
|
|
15019
|
+
$[27] = onChange;
|
|
15020
|
+
$[28] = restProps;
|
|
15021
|
+
$[29] = t5;
|
|
15022
|
+
} else t5 = $[29];
|
|
15023
|
+
fieldProps?.onChange;
|
|
15024
|
+
let t6;
|
|
15025
|
+
if ($[30] !== t5) {
|
|
15026
|
+
t6 = t5();
|
|
15027
|
+
$[30] = t5;
|
|
15028
|
+
$[31] = t6;
|
|
15029
|
+
} else t6 = $[31];
|
|
15030
|
+
const childrenRender = t6;
|
|
14943
15031
|
if (childrenRender) return childrenRender;
|
|
14944
15032
|
const mode = proFieldProps$1?.mode || modeContext.mode || "edit";
|
|
14945
|
-
const
|
|
14946
|
-
|
|
14947
|
-
|
|
14948
|
-
|
|
14949
|
-
|
|
14950
|
-
|
|
14951
|
-
|
|
14952
|
-
|
|
14953
|
-
|
|
15033
|
+
const t7 = formItemRender;
|
|
15034
|
+
const t8 = render;
|
|
15035
|
+
const t9 = fieldProps?.[valuePropName];
|
|
15036
|
+
let t10;
|
|
15037
|
+
if ($[32] !== valueEnum) {
|
|
15038
|
+
t10 = runFunction(valueEnum);
|
|
15039
|
+
$[32] = valueEnum;
|
|
15040
|
+
$[33] = t10;
|
|
15041
|
+
} else t10 = $[33];
|
|
15042
|
+
const t11 = valueType$15 || "text";
|
|
15043
|
+
let t12;
|
|
15044
|
+
if ($[34] !== cacheForSwr || $[35] !== memoFieldProps || $[36] !== mode || $[37] !== proFieldProps$1 || $[38] !== propsParams || $[39] !== restProps || $[40] !== t10 || $[41] !== t11 || $[42] !== t7 || $[43] !== t8 || $[44] !== t9) {
|
|
15045
|
+
t12 = /* @__PURE__ */ jsx(PureProField, {
|
|
14954
15046
|
cacheForSwr,
|
|
14955
15047
|
fieldProps: memoFieldProps,
|
|
14956
|
-
formItemRender,
|
|
14957
|
-
render,
|
|
14958
|
-
text:
|
|
14959
|
-
valueEnum:
|
|
14960
|
-
valueType:
|
|
15048
|
+
formItemRender: t7,
|
|
15049
|
+
render: t8,
|
|
15050
|
+
text: t9,
|
|
15051
|
+
valueEnum: t10,
|
|
15052
|
+
valueType: t11,
|
|
14961
15053
|
...proFieldProps$1,
|
|
14962
15054
|
...restProps,
|
|
14963
15055
|
mode,
|
|
14964
15056
|
params: propsParams
|
|
14965
|
-
})
|
|
14966
|
-
|
|
14967
|
-
|
|
14968
|
-
|
|
14969
|
-
|
|
14970
|
-
|
|
14971
|
-
|
|
14972
|
-
|
|
14973
|
-
|
|
14974
|
-
|
|
14975
|
-
|
|
14976
|
-
|
|
14977
|
-
|
|
14978
|
-
|
|
14979
|
-
|
|
15057
|
+
});
|
|
15058
|
+
$[34] = cacheForSwr;
|
|
15059
|
+
$[35] = memoFieldProps;
|
|
15060
|
+
$[36] = mode;
|
|
15061
|
+
$[37] = proFieldProps$1;
|
|
15062
|
+
$[38] = propsParams;
|
|
15063
|
+
$[39] = restProps;
|
|
15064
|
+
$[40] = t10;
|
|
15065
|
+
$[41] = t11;
|
|
15066
|
+
$[42] = t7;
|
|
15067
|
+
$[43] = t8;
|
|
15068
|
+
$[44] = t9;
|
|
15069
|
+
$[45] = t12;
|
|
15070
|
+
} else t12 = $[45];
|
|
15071
|
+
return t12;
|
|
14980
15072
|
};
|
|
14981
15073
|
const ProFormField = warpField_default?.(memo(BaseProFormField, (prevProps, nextProps) => {
|
|
14982
15074
|
return isDeepEqualReact(nextProps, prevProps, ["onChange", "onBlur"]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xxlabs/antd-plus",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"antd": "^6.2.0",
|
|
45
45
|
"clsx": "^2.1.1",
|
|
46
46
|
"dayjs": "^1.11.19",
|
|
47
|
-
"es-toolkit": "^1.
|
|
47
|
+
"es-toolkit": "^1.44.0",
|
|
48
48
|
"path-to-regexp": "^8.3.0",
|
|
49
49
|
"react": "^19.2.3",
|
|
50
50
|
"react-dom": "^19.2.3",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@semantic-release/github": "^12.0.2",
|
|
66
66
|
"@semantic-release/npm": "^13.1.3",
|
|
67
67
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
68
|
-
"@types/node": "^22.19.
|
|
68
|
+
"@types/node": "^22.19.7",
|
|
69
69
|
"@types/react": "^19.2.8",
|
|
70
70
|
"@types/react-dom": "^19.2.3",
|
|
71
71
|
"babel-plugin-react-compiler": "^1.0.0",
|