@xxlabs/antd-plus 1.2.0 → 1.4.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 +291 -180
- 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
|
@@ -10395,7 +10395,7 @@ var Radio_default = FieldRadio;
|
|
|
10395
10395
|
* @param
|
|
10396
10396
|
*/
|
|
10397
10397
|
const FieldRangePicker = (t0) => {
|
|
10398
|
-
const $ = c(
|
|
10398
|
+
const $ = c(71);
|
|
10399
10399
|
const { text, mode, light, label, format: t1, render, picker, formItemRender, plain, showTime, lightLabel, variant, fieldProps, ref } = t0;
|
|
10400
10400
|
const format = t1 === void 0 ? "YYYY-MM-DD" : t1;
|
|
10401
10401
|
const intl = useIntl();
|
|
@@ -10420,7 +10420,7 @@ const FieldRangePicker = (t0) => {
|
|
|
10420
10420
|
t3 = {
|
|
10421
10421
|
display: "flex",
|
|
10422
10422
|
flexWrap: "wrap",
|
|
10423
|
-
gap:
|
|
10423
|
+
gap: 4,
|
|
10424
10424
|
alignItems: "center"
|
|
10425
10425
|
};
|
|
10426
10426
|
$[3] = t3;
|
|
@@ -10432,80 +10432,89 @@ const FieldRangePicker = (t0) => {
|
|
|
10432
10432
|
$[4] = t4;
|
|
10433
10433
|
$[5] = t5;
|
|
10434
10434
|
} else t5 = $[5];
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
t7 = /* @__PURE__ */ jsx("div", { children: t6 });
|
|
10435
|
+
let t6;
|
|
10436
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10437
|
+
t6 = /* @__PURE__ */ jsx("div", { children: "~" });
|
|
10439
10438
|
$[6] = t6;
|
|
10440
|
-
|
|
10441
|
-
|
|
10439
|
+
} else t6 = $[6];
|
|
10440
|
+
const t7 = parsedEndText || "-";
|
|
10442
10441
|
let t8;
|
|
10443
|
-
if ($[
|
|
10444
|
-
t8 = /* @__PURE__ */
|
|
10442
|
+
if ($[7] !== t7) {
|
|
10443
|
+
t8 = /* @__PURE__ */ jsx("div", { children: t7 });
|
|
10444
|
+
$[7] = t7;
|
|
10445
|
+
$[8] = t8;
|
|
10446
|
+
} else t8 = $[8];
|
|
10447
|
+
let t9;
|
|
10448
|
+
if ($[9] !== ref || $[10] !== t5 || $[11] !== t8) {
|
|
10449
|
+
t9 = /* @__PURE__ */ jsxs("div", {
|
|
10445
10450
|
ref,
|
|
10446
10451
|
style: t3,
|
|
10447
|
-
children: [
|
|
10452
|
+
children: [
|
|
10453
|
+
t5,
|
|
10454
|
+
t6,
|
|
10455
|
+
t8
|
|
10456
|
+
]
|
|
10448
10457
|
});
|
|
10449
|
-
$[
|
|
10450
|
-
$[
|
|
10451
|
-
$[10] = t7;
|
|
10458
|
+
$[9] = ref;
|
|
10459
|
+
$[10] = t5;
|
|
10452
10460
|
$[11] = t8;
|
|
10453
|
-
|
|
10454
|
-
|
|
10461
|
+
$[12] = t9;
|
|
10462
|
+
} else t9 = $[12];
|
|
10463
|
+
const dom = t9;
|
|
10455
10464
|
if (render) {
|
|
10456
|
-
let
|
|
10457
|
-
if ($[
|
|
10458
|
-
let
|
|
10459
|
-
if ($[
|
|
10460
|
-
|
|
10461
|
-
$[
|
|
10462
|
-
$[
|
|
10463
|
-
} else
|
|
10464
|
-
|
|
10465
|
+
let t10;
|
|
10466
|
+
if ($[13] !== dom || $[14] !== fieldProps || $[15] !== mode || $[16] !== render || $[17] !== text) {
|
|
10467
|
+
let t11;
|
|
10468
|
+
if ($[19] !== dom) {
|
|
10469
|
+
t11 = /* @__PURE__ */ jsx("span", { children: dom });
|
|
10470
|
+
$[19] = dom;
|
|
10471
|
+
$[20] = t11;
|
|
10472
|
+
} else t11 = $[20];
|
|
10473
|
+
t10 = render(text, {
|
|
10465
10474
|
mode,
|
|
10466
10475
|
...fieldProps
|
|
10467
|
-
},
|
|
10468
|
-
$[
|
|
10469
|
-
$[
|
|
10470
|
-
$[
|
|
10471
|
-
$[
|
|
10472
|
-
$[
|
|
10473
|
-
$[
|
|
10474
|
-
} else
|
|
10475
|
-
return
|
|
10476
|
+
}, t11);
|
|
10477
|
+
$[13] = dom;
|
|
10478
|
+
$[14] = fieldProps;
|
|
10479
|
+
$[15] = mode;
|
|
10480
|
+
$[16] = render;
|
|
10481
|
+
$[17] = text;
|
|
10482
|
+
$[18] = t10;
|
|
10483
|
+
} else t10 = $[18];
|
|
10484
|
+
return t10;
|
|
10476
10485
|
}
|
|
10477
10486
|
return dom;
|
|
10478
10487
|
}
|
|
10479
10488
|
if (mode === "edit" || mode === "update") {
|
|
10480
10489
|
let t3;
|
|
10481
|
-
if ($[
|
|
10490
|
+
if ($[21] !== fieldProps.value) {
|
|
10482
10491
|
t3 = parseValueToDay(fieldProps.value);
|
|
10483
|
-
$[
|
|
10484
|
-
$[
|
|
10485
|
-
} else t3 = $[
|
|
10492
|
+
$[21] = fieldProps.value;
|
|
10493
|
+
$[22] = t3;
|
|
10494
|
+
} else t3 = $[22];
|
|
10486
10495
|
const dayValue = t3;
|
|
10487
10496
|
let dom_0;
|
|
10488
10497
|
let t4;
|
|
10489
|
-
if ($[
|
|
10498
|
+
if ($[23] !== fieldProps || $[24] !== setOpen) {
|
|
10490
10499
|
t4 = (value) => {
|
|
10491
10500
|
fieldProps?.onChange?.(value);
|
|
10492
10501
|
if (!value) setOpen(false);
|
|
10493
10502
|
};
|
|
10494
|
-
$[
|
|
10495
|
-
$[
|
|
10496
|
-
$[
|
|
10497
|
-
} else t4 = $[
|
|
10503
|
+
$[23] = fieldProps;
|
|
10504
|
+
$[24] = setOpen;
|
|
10505
|
+
$[25] = t4;
|
|
10506
|
+
} else t4 = $[25];
|
|
10498
10507
|
const handleRangeChange = t4;
|
|
10499
10508
|
if (light) {
|
|
10500
10509
|
const t5 = dayValue || open ? false : void 0;
|
|
10501
10510
|
let t6;
|
|
10502
|
-
if ($[
|
|
10511
|
+
if ($[26] !== dayValue) {
|
|
10503
10512
|
t6 = dayValue ? { paddingInlineEnd: 0 } : void 0;
|
|
10504
|
-
$[
|
|
10505
|
-
$[
|
|
10506
|
-
} else t6 = $[
|
|
10513
|
+
$[26] = dayValue;
|
|
10514
|
+
$[27] = t6;
|
|
10515
|
+
} else t6 = $[27];
|
|
10507
10516
|
let t7;
|
|
10508
|
-
if ($[
|
|
10517
|
+
if ($[28] !== dayValue || $[29] !== fieldProps || $[30] !== format || $[31] !== handleRangeChange || $[32] !== intl || $[33] !== open || $[34] !== picker || $[35] !== setOpen || $[36] !== showTime) {
|
|
10509
10518
|
t7 = dayValue || open ? /* @__PURE__ */ jsx(DatePicker.RangePicker, {
|
|
10510
10519
|
format,
|
|
10511
10520
|
picker,
|
|
@@ -10520,29 +10529,29 @@ const FieldRangePicker = (t0) => {
|
|
|
10520
10529
|
fieldProps?.onOpenChange?.(isOpen);
|
|
10521
10530
|
}
|
|
10522
10531
|
}) : null;
|
|
10523
|
-
$[
|
|
10524
|
-
$[
|
|
10525
|
-
$[
|
|
10526
|
-
$[
|
|
10527
|
-
$[
|
|
10528
|
-
$[
|
|
10529
|
-
$[
|
|
10530
|
-
$[
|
|
10531
|
-
$[
|
|
10532
|
-
$[
|
|
10533
|
-
} else t7 = $[
|
|
10532
|
+
$[28] = dayValue;
|
|
10533
|
+
$[29] = fieldProps;
|
|
10534
|
+
$[30] = format;
|
|
10535
|
+
$[31] = handleRangeChange;
|
|
10536
|
+
$[32] = intl;
|
|
10537
|
+
$[33] = open;
|
|
10538
|
+
$[34] = picker;
|
|
10539
|
+
$[35] = setOpen;
|
|
10540
|
+
$[36] = showTime;
|
|
10541
|
+
$[37] = t7;
|
|
10542
|
+
} else t7 = $[37];
|
|
10534
10543
|
let t8;
|
|
10535
|
-
if ($[
|
|
10544
|
+
if ($[38] !== fieldProps || $[39] !== setOpen) {
|
|
10536
10545
|
t8 = () => {
|
|
10537
10546
|
fieldProps?.onOpenChange?.(true);
|
|
10538
10547
|
setOpen(true);
|
|
10539
10548
|
};
|
|
10540
|
-
$[
|
|
10541
|
-
$[
|
|
10542
|
-
$[
|
|
10543
|
-
} else t8 = $[
|
|
10549
|
+
$[38] = fieldProps;
|
|
10550
|
+
$[39] = setOpen;
|
|
10551
|
+
$[40] = t8;
|
|
10552
|
+
} else t8 = $[40];
|
|
10544
10553
|
let t9;
|
|
10545
|
-
if ($[
|
|
10554
|
+
if ($[41] !== fieldProps.disabled || $[42] !== label || $[43] !== lightLabel || $[44] !== t5 || $[45] !== t6 || $[46] !== t7 || $[47] !== t8 || $[48] !== variant) {
|
|
10546
10555
|
t9 = /* @__PURE__ */ jsx(FieldLabel, {
|
|
10547
10556
|
ref: lightLabel,
|
|
10548
10557
|
allowClear: false,
|
|
@@ -10554,40 +10563,40 @@ const FieldRangePicker = (t0) => {
|
|
|
10554
10563
|
variant,
|
|
10555
10564
|
onClick: t8
|
|
10556
10565
|
});
|
|
10557
|
-
$[
|
|
10558
|
-
$[
|
|
10559
|
-
$[
|
|
10560
|
-
$[
|
|
10561
|
-
$[
|
|
10562
|
-
$[
|
|
10563
|
-
$[
|
|
10564
|
-
$[
|
|
10565
|
-
$[
|
|
10566
|
-
} else t9 = $[
|
|
10566
|
+
$[41] = fieldProps.disabled;
|
|
10567
|
+
$[42] = label;
|
|
10568
|
+
$[43] = lightLabel;
|
|
10569
|
+
$[44] = t5;
|
|
10570
|
+
$[45] = t6;
|
|
10571
|
+
$[46] = t7;
|
|
10572
|
+
$[47] = t8;
|
|
10573
|
+
$[48] = variant;
|
|
10574
|
+
$[49] = t9;
|
|
10575
|
+
} else t9 = $[49];
|
|
10567
10576
|
dom_0 = t9;
|
|
10568
10577
|
} else {
|
|
10569
10578
|
let t5;
|
|
10570
|
-
if ($[
|
|
10579
|
+
if ($[50] !== intl) {
|
|
10571
10580
|
t5 = intl.getMessage("tableForm.selectPlaceholder", "请选择");
|
|
10572
|
-
$[
|
|
10573
|
-
$[
|
|
10574
|
-
} else t5 = $[
|
|
10581
|
+
$[50] = intl;
|
|
10582
|
+
$[51] = t5;
|
|
10583
|
+
} else t5 = $[51];
|
|
10575
10584
|
let t6;
|
|
10576
|
-
if ($[
|
|
10585
|
+
if ($[52] !== intl) {
|
|
10577
10586
|
t6 = intl.getMessage("tableForm.selectPlaceholder", "请选择");
|
|
10578
|
-
$[
|
|
10579
|
-
$[
|
|
10580
|
-
} else t6 = $[
|
|
10587
|
+
$[52] = intl;
|
|
10588
|
+
$[53] = t6;
|
|
10589
|
+
} else t6 = $[53];
|
|
10581
10590
|
let t7;
|
|
10582
|
-
if ($[
|
|
10591
|
+
if ($[54] !== t5 || $[55] !== t6) {
|
|
10583
10592
|
t7 = [t5, t6];
|
|
10584
|
-
$[
|
|
10585
|
-
$[
|
|
10586
|
-
$[
|
|
10587
|
-
} else t7 = $[
|
|
10593
|
+
$[54] = t5;
|
|
10594
|
+
$[55] = t6;
|
|
10595
|
+
$[56] = t7;
|
|
10596
|
+
} else t7 = $[56];
|
|
10588
10597
|
const t8 = plain === void 0 ? variant : plain ? "borderless" : "outlined";
|
|
10589
10598
|
let t9;
|
|
10590
|
-
if ($[
|
|
10599
|
+
if ($[57] !== dayValue || $[58] !== fieldProps || $[59] !== format || $[60] !== ref || $[61] !== showTime || $[62] !== t7 || $[63] !== t8) {
|
|
10591
10600
|
t9 = /* @__PURE__ */ jsx(DatePicker.RangePicker, {
|
|
10592
10601
|
ref,
|
|
10593
10602
|
format,
|
|
@@ -10597,31 +10606,31 @@ const FieldRangePicker = (t0) => {
|
|
|
10597
10606
|
...fieldProps,
|
|
10598
10607
|
value: dayValue
|
|
10599
10608
|
});
|
|
10600
|
-
$[
|
|
10601
|
-
$[
|
|
10602
|
-
$[
|
|
10603
|
-
$[
|
|
10604
|
-
$[
|
|
10605
|
-
$[
|
|
10606
|
-
$[
|
|
10607
|
-
$[
|
|
10608
|
-
} else t9 = $[
|
|
10609
|
+
$[57] = dayValue;
|
|
10610
|
+
$[58] = fieldProps;
|
|
10611
|
+
$[59] = format;
|
|
10612
|
+
$[60] = ref;
|
|
10613
|
+
$[61] = showTime;
|
|
10614
|
+
$[62] = t7;
|
|
10615
|
+
$[63] = t8;
|
|
10616
|
+
$[64] = t9;
|
|
10617
|
+
} else t9 = $[64];
|
|
10609
10618
|
dom_0 = t9;
|
|
10610
10619
|
}
|
|
10611
10620
|
if (formItemRender) {
|
|
10612
10621
|
let t5;
|
|
10613
|
-
if ($[
|
|
10622
|
+
if ($[65] !== dom_0 || $[66] !== fieldProps || $[67] !== formItemRender || $[68] !== mode || $[69] !== text) {
|
|
10614
10623
|
t5 = formItemRender(text, {
|
|
10615
10624
|
mode,
|
|
10616
10625
|
...fieldProps
|
|
10617
10626
|
}, dom_0);
|
|
10618
|
-
$[
|
|
10619
|
-
$[
|
|
10620
|
-
$[
|
|
10621
|
-
$[
|
|
10622
|
-
$[
|
|
10623
|
-
$[
|
|
10624
|
-
} else t5 = $[
|
|
10627
|
+
$[65] = dom_0;
|
|
10628
|
+
$[66] = fieldProps;
|
|
10629
|
+
$[67] = formItemRender;
|
|
10630
|
+
$[68] = mode;
|
|
10631
|
+
$[69] = text;
|
|
10632
|
+
$[70] = t5;
|
|
10633
|
+
} else t5 = $[70];
|
|
10625
10634
|
return t5;
|
|
10626
10635
|
}
|
|
10627
10636
|
return dom_0;
|
|
@@ -11430,7 +11439,17 @@ const FieldTimeRangePickerComponents = ({ text, light, label, mode, lightLabel,
|
|
|
11430
11439
|
if (mode === "read") {
|
|
11431
11440
|
const dom = /* @__PURE__ */ jsxs("div", {
|
|
11432
11441
|
ref,
|
|
11433
|
-
|
|
11442
|
+
style: {
|
|
11443
|
+
display: "flex",
|
|
11444
|
+
flexWrap: "wrap",
|
|
11445
|
+
gap: 4,
|
|
11446
|
+
alignItems: "center"
|
|
11447
|
+
},
|
|
11448
|
+
children: [
|
|
11449
|
+
/* @__PURE__ */ jsx("div", { children: parsedStartText || "-" }),
|
|
11450
|
+
/* @__PURE__ */ jsx("div", { children: "~" }),
|
|
11451
|
+
/* @__PURE__ */ jsx("div", { children: parsedEndText || "-" })
|
|
11452
|
+
]
|
|
11434
11453
|
});
|
|
11435
11454
|
if (render) return render(text, {
|
|
11436
11455
|
mode,
|
|
@@ -14892,91 +14911,183 @@ var Captcha_default = ProFormCaptcha;
|
|
|
14892
14911
|
//#endregion
|
|
14893
14912
|
//#region src/form/components/Field/index.tsx
|
|
14894
14913
|
const BaseProFormField = (props) => {
|
|
14895
|
-
const
|
|
14914
|
+
const $ = c(46);
|
|
14915
|
+
let autoFocus;
|
|
14916
|
+
let children;
|
|
14917
|
+
let dependenciesValues;
|
|
14918
|
+
let fieldProps;
|
|
14919
|
+
let formItemRender;
|
|
14920
|
+
let onChange;
|
|
14921
|
+
let params;
|
|
14922
|
+
let proFieldProps$1;
|
|
14923
|
+
let render;
|
|
14924
|
+
let restProps;
|
|
14925
|
+
let t0;
|
|
14926
|
+
let t1;
|
|
14927
|
+
let valueEnum;
|
|
14928
|
+
let valueType$15;
|
|
14929
|
+
if ($[0] !== props) {
|
|
14930
|
+
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;
|
|
14931
|
+
fieldProps = t2$1;
|
|
14932
|
+
children = t3$1;
|
|
14933
|
+
autoFocus = t4$1;
|
|
14934
|
+
render = t5$1;
|
|
14935
|
+
proFieldProps$1 = t6$1;
|
|
14936
|
+
formItemRender = t7$1;
|
|
14937
|
+
valueType$15 = t8$1;
|
|
14938
|
+
onChange = t9$1;
|
|
14939
|
+
valueEnum = t10$1;
|
|
14940
|
+
params = t11$1;
|
|
14941
|
+
dependenciesValues = t12$1;
|
|
14942
|
+
t0 = t13;
|
|
14943
|
+
t1 = t14;
|
|
14944
|
+
restProps = t15;
|
|
14945
|
+
$[0] = props;
|
|
14946
|
+
$[1] = autoFocus;
|
|
14947
|
+
$[2] = children;
|
|
14948
|
+
$[3] = dependenciesValues;
|
|
14949
|
+
$[4] = fieldProps;
|
|
14950
|
+
$[5] = formItemRender;
|
|
14951
|
+
$[6] = onChange;
|
|
14952
|
+
$[7] = params;
|
|
14953
|
+
$[8] = proFieldProps$1;
|
|
14954
|
+
$[9] = render;
|
|
14955
|
+
$[10] = restProps;
|
|
14956
|
+
$[11] = t0;
|
|
14957
|
+
$[12] = t1;
|
|
14958
|
+
$[13] = valueEnum;
|
|
14959
|
+
$[14] = valueType$15;
|
|
14960
|
+
} else {
|
|
14961
|
+
autoFocus = $[1];
|
|
14962
|
+
children = $[2];
|
|
14963
|
+
dependenciesValues = $[3];
|
|
14964
|
+
fieldProps = $[4];
|
|
14965
|
+
formItemRender = $[5];
|
|
14966
|
+
onChange = $[6];
|
|
14967
|
+
params = $[7];
|
|
14968
|
+
proFieldProps$1 = $[8];
|
|
14969
|
+
render = $[9];
|
|
14970
|
+
restProps = $[10];
|
|
14971
|
+
t0 = $[11];
|
|
14972
|
+
t1 = $[12];
|
|
14973
|
+
valueEnum = $[13];
|
|
14974
|
+
valueType$15 = $[14];
|
|
14975
|
+
}
|
|
14976
|
+
const cacheForSwr = t0 === void 0 ? false : t0;
|
|
14977
|
+
const valuePropName = t1 === void 0 ? "value" : t1;
|
|
14896
14978
|
const modeContext = useContext(EditOrReadOnlyContext);
|
|
14897
|
-
|
|
14898
|
-
|
|
14979
|
+
let t2;
|
|
14980
|
+
if ($[15] !== dependenciesValues || $[16] !== params || $[17] !== restProps.request) {
|
|
14981
|
+
t2 = dependenciesValues && restProps.request ? {
|
|
14899
14982
|
...params,
|
|
14900
14983
|
...dependenciesValues || {}
|
|
14901
14984
|
} : 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
|
-
|
|
14985
|
+
$[15] = dependenciesValues;
|
|
14986
|
+
$[16] = params;
|
|
14987
|
+
$[17] = restProps.request;
|
|
14988
|
+
$[18] = t2;
|
|
14989
|
+
} else t2 = $[18];
|
|
14990
|
+
const propsParams = t2;
|
|
14991
|
+
let t3;
|
|
14992
|
+
if ($[19] !== fieldProps?.onChange) {
|
|
14993
|
+
t3 = (...t4$1) => {
|
|
14994
|
+
const restParams = t4$1;
|
|
14995
|
+
if (fieldProps?.onChange) {
|
|
14996
|
+
(fieldProps?.onChange)?.(...restParams);
|
|
14997
|
+
return;
|
|
14998
|
+
}
|
|
14999
|
+
};
|
|
15000
|
+
$[19] = fieldProps?.onChange;
|
|
15001
|
+
$[20] = t3;
|
|
15002
|
+
} else t3 = $[20];
|
|
15003
|
+
const memoUnChange = useRefFunction(t3);
|
|
15004
|
+
let t4;
|
|
15005
|
+
if ($[21] !== autoFocus || $[22] !== fieldProps || $[23] !== memoUnChange) {
|
|
15006
|
+
t4 = {
|
|
15007
|
+
autoFocus,
|
|
15008
|
+
...fieldProps,
|
|
15009
|
+
onChange: memoUnChange
|
|
15010
|
+
};
|
|
15011
|
+
$[21] = autoFocus;
|
|
15012
|
+
$[22] = fieldProps;
|
|
15013
|
+
$[23] = memoUnChange;
|
|
15014
|
+
$[24] = t4;
|
|
15015
|
+
} else t4 = $[24];
|
|
15016
|
+
const memoFieldProps = t4;
|
|
15017
|
+
let t5;
|
|
15018
|
+
if ($[25] !== children || $[26] !== fieldProps?.onChange || $[27] !== onChange || $[28] !== restProps) {
|
|
15019
|
+
t5 = () => {
|
|
15020
|
+
if (children) {
|
|
15021
|
+
if (isValidElement(children)) return cloneElement(children, {
|
|
15022
|
+
...restProps,
|
|
15023
|
+
onChange: (...t6$1) => {
|
|
15024
|
+
const restParams_0 = t6$1;
|
|
15025
|
+
if (fieldProps?.onChange) {
|
|
15026
|
+
(fieldProps?.onChange)?.(...restParams_0);
|
|
15027
|
+
return;
|
|
15028
|
+
}
|
|
15029
|
+
onChange?.(...restParams_0);
|
|
15030
|
+
},
|
|
15031
|
+
...children?.props || {}
|
|
15032
|
+
});
|
|
15033
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
15034
|
+
}
|
|
15035
|
+
};
|
|
15036
|
+
$[25] = children;
|
|
15037
|
+
$[26] = fieldProps?.onChange;
|
|
15038
|
+
$[27] = onChange;
|
|
15039
|
+
$[28] = restProps;
|
|
15040
|
+
$[29] = t5;
|
|
15041
|
+
} else t5 = $[29];
|
|
15042
|
+
fieldProps?.onChange;
|
|
15043
|
+
let t6;
|
|
15044
|
+
if ($[30] !== t5) {
|
|
15045
|
+
t6 = t5();
|
|
15046
|
+
$[30] = t5;
|
|
15047
|
+
$[31] = t6;
|
|
15048
|
+
} else t6 = $[31];
|
|
15049
|
+
const childrenRender = t6;
|
|
14943
15050
|
if (childrenRender) return childrenRender;
|
|
14944
15051
|
const mode = proFieldProps$1?.mode || modeContext.mode || "edit";
|
|
14945
|
-
const
|
|
14946
|
-
|
|
14947
|
-
|
|
14948
|
-
|
|
14949
|
-
|
|
14950
|
-
|
|
14951
|
-
|
|
14952
|
-
|
|
14953
|
-
|
|
15052
|
+
const t7 = formItemRender;
|
|
15053
|
+
const t8 = render;
|
|
15054
|
+
const t9 = fieldProps?.[valuePropName];
|
|
15055
|
+
let t10;
|
|
15056
|
+
if ($[32] !== valueEnum) {
|
|
15057
|
+
t10 = runFunction(valueEnum);
|
|
15058
|
+
$[32] = valueEnum;
|
|
15059
|
+
$[33] = t10;
|
|
15060
|
+
} else t10 = $[33];
|
|
15061
|
+
const t11 = valueType$15 || "text";
|
|
15062
|
+
let t12;
|
|
15063
|
+
if ($[34] !== cacheForSwr || $[35] !== memoFieldProps || $[36] !== mode || $[37] !== proFieldProps$1 || $[38] !== propsParams || $[39] !== restProps || $[40] !== t10 || $[41] !== t11 || $[42] !== t7 || $[43] !== t8 || $[44] !== t9) {
|
|
15064
|
+
t12 = /* @__PURE__ */ jsx(PureProField, {
|
|
14954
15065
|
cacheForSwr,
|
|
14955
15066
|
fieldProps: memoFieldProps,
|
|
14956
|
-
formItemRender,
|
|
14957
|
-
render,
|
|
14958
|
-
text:
|
|
14959
|
-
valueEnum:
|
|
14960
|
-
valueType:
|
|
15067
|
+
formItemRender: t7,
|
|
15068
|
+
render: t8,
|
|
15069
|
+
text: t9,
|
|
15070
|
+
valueEnum: t10,
|
|
15071
|
+
valueType: t11,
|
|
14961
15072
|
...proFieldProps$1,
|
|
14962
15073
|
...restProps,
|
|
14963
15074
|
mode,
|
|
14964
15075
|
params: propsParams
|
|
14965
|
-
})
|
|
14966
|
-
|
|
14967
|
-
|
|
14968
|
-
|
|
14969
|
-
|
|
14970
|
-
|
|
14971
|
-
|
|
14972
|
-
|
|
14973
|
-
|
|
14974
|
-
|
|
14975
|
-
|
|
14976
|
-
|
|
14977
|
-
|
|
14978
|
-
|
|
14979
|
-
|
|
15076
|
+
});
|
|
15077
|
+
$[34] = cacheForSwr;
|
|
15078
|
+
$[35] = memoFieldProps;
|
|
15079
|
+
$[36] = mode;
|
|
15080
|
+
$[37] = proFieldProps$1;
|
|
15081
|
+
$[38] = propsParams;
|
|
15082
|
+
$[39] = restProps;
|
|
15083
|
+
$[40] = t10;
|
|
15084
|
+
$[41] = t11;
|
|
15085
|
+
$[42] = t7;
|
|
15086
|
+
$[43] = t8;
|
|
15087
|
+
$[44] = t9;
|
|
15088
|
+
$[45] = t12;
|
|
15089
|
+
} else t12 = $[45];
|
|
15090
|
+
return t12;
|
|
14980
15091
|
};
|
|
14981
15092
|
const ProFormField = warpField_default?.(memo(BaseProFormField, (prevProps, nextProps) => {
|
|
14982
15093
|
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.4.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",
|