@xxlabs/antd-plus 1.1.0 → 1.2.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 +46 -46
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 react2 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";
|
|
@@ -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 | react2.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: react2.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: react2.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 | react2.ReactPortal | react2.ReactElement<unknown, string | react2.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime18.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: react2.ForwardRefExoticComponent<FieldLabelProps & react2.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;
|
|
@@ -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: react2.Context<ProFormInstanceType<any> & {
|
|
1013
1013
|
formRef?: RefObject<FormInstance<any>>;
|
|
1014
1014
|
}>;
|
|
1015
1015
|
//#endregion
|
|
@@ -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 | react2.ReactPortal | react2.ReactElement<unknown, string | react2.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime18.JSX.Element | null | undefined;
|
|
1768
1768
|
//#endregion
|
|
1769
1769
|
//#region src/utils/getFieldPropsOrFormItemProps/index.d.ts
|
|
1770
1770
|
/**
|
|
@@ -2770,7 +2770,7 @@ type CaptFieldRef = {
|
|
|
2770
2770
|
/** 结束计时 */
|
|
2771
2771
|
endTiming: () => void;
|
|
2772
2772
|
};
|
|
2773
|
-
declare const ProFormCaptcha:
|
|
2773
|
+
declare const ProFormCaptcha: react2.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: react11.ComponentClass<{
|
|
|
2781
2781
|
proFieldProps?: ProFieldProps;
|
|
2782
2782
|
footerRender?: LightFilterFooterRender;
|
|
2783
2783
|
children?: any;
|
|
2784
|
-
ref?:
|
|
2784
|
+
ref?: react2.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: react11.ComponentClass<{
|
|
|
2801
2801
|
} & {
|
|
2802
2802
|
getFormItemProps?: () => Record<string, any>;
|
|
2803
2803
|
getFieldProps?: () => Record<string, any>;
|
|
2804
|
-
}, any> |
|
|
2804
|
+
}, any> | react2.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: react11.ComponentClass<{
|
|
|
2812
2812
|
proFieldProps?: ProFieldProps;
|
|
2813
2813
|
footerRender?: LightFilterFooterRender;
|
|
2814
2814
|
children?: any;
|
|
2815
|
-
ref?:
|
|
2815
|
+
ref?: react2.Ref<any>;
|
|
2816
2816
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
2817
2817
|
/** @name 倒计时的秒数 */
|
|
2818
2818
|
countDown?: number;
|
|
@@ -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: react2.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 | react2.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?: react2.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: react2.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>): react2.ReactElement<unknown, string | react2.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: react2.ComponentClass<{
|
|
3576
3576
|
fieldProps?: Partial<FieldProps<any> & RadioProps> | undefined;
|
|
3577
3577
|
placeholder?: string | string[];
|
|
3578
3578
|
secondary?: boolean;
|
|
3579
|
-
emptyText?:
|
|
3579
|
+
emptyText?: react2.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?: react2.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> | react2.FunctionComponent<{
|
|
3591
3591
|
fieldProps?: Partial<FieldProps<any> & RadioProps> | undefined;
|
|
3592
3592
|
placeholder?: string | string[];
|
|
3593
3593
|
secondary?: boolean;
|
|
3594
|
-
emptyText?:
|
|
3594
|
+
emptyText?: react2.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?: react2.Ref<any>;
|
|
3602
3602
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
3603
3603
|
getFormItemProps?: () => Record<string, any>;
|
|
3604
3604
|
getFieldProps?: () => Record<string, any>;
|
|
@@ -3622,16 +3622,16 @@ declare function ProForm<T = Record<string, any>>(props: ProFormProps<T> & {
|
|
|
3622
3622
|
children?: ReactNode | ReactNode[];
|
|
3623
3623
|
}): react_jsx_runtime18.JSX.Element;
|
|
3624
3624
|
declare namespace ProForm {
|
|
3625
|
-
var Group:
|
|
3626
|
-
ref?:
|
|
3625
|
+
var Group: react2.FC<ProFormBaseGroupProps & ProFormGridConfig & {
|
|
3626
|
+
ref?: react2.Ref<any>;
|
|
3627
3627
|
}>;
|
|
3628
3628
|
var useForm: typeof antd_es_form_Form0.useForm;
|
|
3629
|
-
var Item:
|
|
3629
|
+
var Item: react2.FC<ProFormItemProps>;
|
|
3630
3630
|
var useWatch: typeof _rc_component_form0.useWatch;
|
|
3631
|
-
var ErrorList:
|
|
3632
|
-
var Provider:
|
|
3631
|
+
var ErrorList: react2.FC<antd_es_form0.ErrorListProps>;
|
|
3632
|
+
var Provider: react2.FC<antd_es_form_context0.FormProviderProps>;
|
|
3633
3633
|
var useFormInstance: typeof antd_es_form_hooks_useFormInstance0.default;
|
|
3634
|
-
var EditOrReadOnlyContext:
|
|
3634
|
+
var EditOrReadOnlyContext: react2.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>): react2.ReactElement<unknown, string | react2.JSXElementConstructor<any>>;
|
|
3691
3691
|
//#endregion
|
|
3692
3692
|
//#region src/form/layouts/LightFilter/index.d.ts
|
|
3693
3693
|
type LightFilterProps<T, U = Record<string, any>> = {
|
|
@@ -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>>): react2.ReactElement<unknown, string | react2.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>>): react2.ReactElement<unknown, string | react2.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> & {
|
|
@@ -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 | react2.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>> = {
|
|
@@ -4079,8 +4079,8 @@ declare namespace StepsFormWarp {
|
|
|
4079
4079
|
}
|
|
4080
4080
|
//#endregion
|
|
4081
4081
|
//#region src/form/layouts/index.d.ts
|
|
4082
|
-
declare const ProFormGroup:
|
|
4083
|
-
ref?:
|
|
4082
|
+
declare const ProFormGroup: react2.FC<ProFormBaseGroupProps & ProFormGridConfig & {
|
|
4083
|
+
ref?: react2.Ref<any>;
|
|
4084
4084
|
}>;
|
|
4085
4085
|
//#endregion
|
|
4086
4086
|
//#region src/form/components/SchemaForm/typing.d.ts
|
|
@@ -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: react2.ComponentClass<{
|
|
4408
4408
|
fieldProps?: Partial<FieldProps<any> & UploadProps$1<any> & {
|
|
4409
4409
|
height?: number;
|
|
4410
4410
|
}> | undefined;
|
|
@@ -4417,7 +4417,7 @@ declare const ProFormUploadDragger: react11.ComponentClass<{
|
|
|
4417
4417
|
proFieldProps?: ProFieldProps;
|
|
4418
4418
|
footerRender?: LightFilterFooterRender;
|
|
4419
4419
|
children?: any;
|
|
4420
|
-
ref?:
|
|
4420
|
+
ref?: react2.Ref<any>;
|
|
4421
4421
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
4422
4422
|
/**
|
|
4423
4423
|
* @name 上传文件块的图标
|
|
@@ -4461,7 +4461,7 @@ declare const ProFormUploadDragger: react11.ComponentClass<{
|
|
|
4461
4461
|
} & {
|
|
4462
4462
|
getFormItemProps?: () => Record<string, any>;
|
|
4463
4463
|
getFieldProps?: () => Record<string, any>;
|
|
4464
|
-
}, any> |
|
|
4464
|
+
}, any> | react2.FunctionComponent<{
|
|
4465
4465
|
fieldProps?: Partial<FieldProps<any> & UploadProps$1<any> & {
|
|
4466
4466
|
height?: number;
|
|
4467
4467
|
}> | undefined;
|
|
@@ -4474,7 +4474,7 @@ declare const ProFormUploadDragger: react11.ComponentClass<{
|
|
|
4474
4474
|
proFieldProps?: ProFieldProps;
|
|
4475
4475
|
footerRender?: LightFilterFooterRender;
|
|
4476
4476
|
children?: any;
|
|
4477
|
-
ref?:
|
|
4477
|
+
ref?: react2.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: react2.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: react2.Context<FiledContextProps>;
|
|
4688
4688
|
//#endregion
|
|
4689
4689
|
//#region src/layout/components/AppsLogoComponents/types.d.ts
|
|
4690
4690
|
type AppItemProps = {
|
|
@@ -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: react2.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: react2.Context<{
|
|
5907
5907
|
selectedKey: string | undefined;
|
|
5908
5908
|
setSelectedKey: (key: string | undefined) => void;
|
|
5909
5909
|
}>;
|
|
@@ -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>): react2.ReactElement<unknown, string | react2.JSXElementConstructor<any>>;
|
|
6569
6569
|
//#endregion
|
|
6570
6570
|
//#region src/table/components/Dropdown/index.d.ts
|
|
6571
6571
|
interface MenuItems extends MenuItemProps {
|
|
@@ -6675,7 +6675,7 @@ declare function FieldEditableTable<DataType extends Record<string, any>, Params
|
|
|
6675
6675
|
declare namespace FieldEditableTable {
|
|
6676
6676
|
var RecordCreator: <T = Record<string, any>>(props: RecordCreatorProps<T> & {
|
|
6677
6677
|
children: JSX.Element;
|
|
6678
|
-
}) =>
|
|
6678
|
+
}) => react2.FunctionComponentElement<any>;
|
|
6679
6679
|
}
|
|
6680
6680
|
//#endregion
|
|
6681
6681
|
//#region src/table/components/EditableTable/CellEditorTable.d.ts
|
|
@@ -6729,7 +6729,7 @@ declare class FormSearch<T, U> extends Component<BaseFormProps<T, U> & {
|
|
|
6729
6729
|
*/
|
|
6730
6730
|
declare const ProviderTableContainer: {
|
|
6731
6731
|
<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = "text">(props: ProTableProps<DataType, Params, ValueType>): react_jsx_runtime18.JSX.Element;
|
|
6732
|
-
Summary:
|
|
6732
|
+
Summary: react2.FC<react2.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
|
};
|
package/dist/index.js
CHANGED
|
@@ -14943,7 +14943,7 @@ const BaseProFormField = (props) => {
|
|
|
14943
14943
|
if (childrenRender) return childrenRender;
|
|
14944
14944
|
const mode = proFieldProps$1?.mode || modeContext.mode || "edit";
|
|
14945
14945
|
const token = theme.useToken();
|
|
14946
|
-
if (
|
|
14946
|
+
if (proFieldProps$1?.readonly) return /* @__PURE__ */ jsx("div", {
|
|
14947
14947
|
style: {
|
|
14948
14948
|
padding: token.cssVar.paddingXXS,
|
|
14949
14949
|
borderRadius: token.cssVar.borderRadius,
|