tdesign-mobile-vue
Version:
tdesign-mobile-vue
396 lines (395 loc) • 15.1 kB
TypeScript
import { TdFormProps, TdFormItemProps } from './type';
import './style';
export * from './type';
export type FormProps = TdFormProps;
export type FormItemProps = TdFormItemProps;
export declare const Form: {
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
colon: BooleanConstructor;
contentAlign: {
type: import("vue").PropType<"left" | "right">;
default: "left" | "right";
validator(val: "left" | "right"): boolean;
};
data: {
type: import("vue").PropType<import("@/components").Data>;
default: () => {};
};
disabled: {
type: BooleanConstructor;
default: any;
};
errorMessage: {
type: import("vue").PropType<import("@/components").FormErrorMessage>;
};
labelAlign: {
type: import("vue").PropType<"left" | "right" | "top">;
default: "left" | "right" | "top";
validator(val: "left" | "right" | "top"): boolean;
};
labelWidth: {
type: import("vue").PropType<string | number>;
default: string;
};
preventSubmitDefault: {
type: BooleanConstructor;
default: boolean;
};
requiredMark: {
type: BooleanConstructor;
default: any;
};
requiredMarkPosition: {
type: import("vue").PropType<"left" | "right">;
validator(val: "left" | "right"): boolean;
};
resetType: {
type: import("vue").PropType<"empty" | "initial">;
default: "empty" | "initial";
validator(val: "empty" | "initial"): boolean;
};
rules: {
type: import("vue").PropType<import("@/components").FormRules<import("@/components").Data>>;
};
scrollToFirstError: {
type: import("vue").PropType<"" | "auto" | "smooth">;
validator(val: "" | "auto" | "smooth"): boolean;
};
showErrorMessage: {
type: BooleanConstructor;
default: boolean;
};
submitWithWarningMessage: BooleanConstructor;
onReset: import("vue").PropType<(context: {
e?: Event;
}) => void>;
onSubmit: import("vue").PropType<(context: import("@/components").SubmitContext<import("@/components").Data>) => void>;
onValidate: import("vue").PropType<(result: import("@/components").ValidateResultContext<import("@/components").Data>) => void>;
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
colon: boolean;
contentAlign: "left" | "right";
data: import("@/components").Data;
disabled: boolean;
labelAlign: "left" | "right" | "top";
labelWidth: string | number;
preventSubmitDefault: boolean;
requiredMark: boolean;
resetType: "empty" | "initial";
showErrorMessage: boolean;
submitWithWarningMessage: boolean;
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import("vue").ExtractPropTypes<{
colon: BooleanConstructor;
contentAlign: {
type: import("vue").PropType<"left" | "right">;
default: "left" | "right";
validator(val: "left" | "right"): boolean;
};
data: {
type: import("vue").PropType<import("@/components").Data>;
default: () => {};
};
disabled: {
type: BooleanConstructor;
default: any;
};
errorMessage: {
type: import("vue").PropType<import("@/components").FormErrorMessage>;
};
labelAlign: {
type: import("vue").PropType<"left" | "right" | "top">;
default: "left" | "right" | "top";
validator(val: "left" | "right" | "top"): boolean;
};
labelWidth: {
type: import("vue").PropType<string | number>;
default: string;
};
preventSubmitDefault: {
type: BooleanConstructor;
default: boolean;
};
requiredMark: {
type: BooleanConstructor;
default: any;
};
requiredMarkPosition: {
type: import("vue").PropType<"left" | "right">;
validator(val: "left" | "right"): boolean;
};
resetType: {
type: import("vue").PropType<"empty" | "initial">;
default: "empty" | "initial";
validator(val: "empty" | "initial"): boolean;
};
rules: {
type: import("vue").PropType<import("@/components").FormRules<import("@/components").Data>>;
};
scrollToFirstError: {
type: import("vue").PropType<"" | "auto" | "smooth">;
validator(val: "" | "auto" | "smooth"): boolean;
};
showErrorMessage: {
type: BooleanConstructor;
default: boolean;
};
submitWithWarningMessage: BooleanConstructor;
onReset: import("vue").PropType<(context: {
e?: Event;
}) => void>;
onSubmit: import("vue").PropType<(context: import("@/components").SubmitContext<import("@/components").Data>) => void>;
onValidate: import("vue").PropType<(result: import("@/components").ValidateResultContext<import("@/components").Data>) => void>;
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
colon: boolean;
contentAlign: "left" | "right";
data: import("@/components").Data;
disabled: boolean;
labelAlign: "left" | "right" | "top";
labelWidth: string | number;
preventSubmitDefault: boolean;
requiredMark: boolean;
resetType: "empty" | "initial";
showErrorMessage: boolean;
submitWithWarningMessage: boolean;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
colon: BooleanConstructor;
contentAlign: {
type: import("vue").PropType<"left" | "right">;
default: "left" | "right";
validator(val: "left" | "right"): boolean;
};
data: {
type: import("vue").PropType<import("@/components").Data>;
default: () => {};
};
disabled: {
type: BooleanConstructor;
default: any;
};
errorMessage: {
type: import("vue").PropType<import("@/components").FormErrorMessage>;
};
labelAlign: {
type: import("vue").PropType<"left" | "right" | "top">;
default: "left" | "right" | "top";
validator(val: "left" | "right" | "top"): boolean;
};
labelWidth: {
type: import("vue").PropType<string | number>;
default: string;
};
preventSubmitDefault: {
type: BooleanConstructor;
default: boolean;
};
requiredMark: {
type: BooleanConstructor;
default: any;
};
requiredMarkPosition: {
type: import("vue").PropType<"left" | "right">;
validator(val: "left" | "right"): boolean;
};
resetType: {
type: import("vue").PropType<"empty" | "initial">;
default: "empty" | "initial";
validator(val: "empty" | "initial"): boolean;
};
rules: {
type: import("vue").PropType<import("@/components").FormRules<import("@/components").Data>>;
};
scrollToFirstError: {
type: import("vue").PropType<"" | "auto" | "smooth">;
validator(val: "" | "auto" | "smooth"): boolean;
};
showErrorMessage: {
type: BooleanConstructor;
default: boolean;
};
submitWithWarningMessage: BooleanConstructor;
onReset: import("vue").PropType<(context: {
e?: Event;
}) => void>;
onSubmit: import("vue").PropType<(context: import("@/components").SubmitContext<import("@/components").Data>) => void>;
onValidate: import("vue").PropType<(result: import("@/components").ValidateResultContext<import("@/components").Data>) => void>;
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
colon: boolean;
contentAlign: "left" | "right";
data: import("@/components").Data;
disabled: boolean;
labelAlign: "left" | "right" | "top";
labelWidth: string | number;
preventSubmitDefault: boolean;
requiredMark: boolean;
resetType: "empty" | "initial";
showErrorMessage: boolean;
submitWithWarningMessage: boolean;
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
export declare const FormItem: {
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
arrow: BooleanConstructor;
contentAlign: {
type: import("vue").PropType<"left" | "right">;
default: "left" | "right";
validator(val: "left" | "right"): boolean;
};
for: {
type: StringConstructor;
default: string;
};
help: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
};
label: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
default: string;
};
labelAlign: {
type: import("vue").PropType<"left" | "right" | "top">;
validator(val: "left" | "right" | "top"): boolean;
};
labelWidth: {
type: import("vue").PropType<string | number>;
};
name: {
type: StringConstructor;
default: string;
};
requiredMark: {
type: BooleanConstructor;
default: any;
};
rules: {
type: import("vue").PropType<import("@/components").FormRule[]>;
};
showErrorMessage: {
type: BooleanConstructor;
default: any;
};
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
arrow: boolean;
contentAlign: "left" | "right";
for: string;
label: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
name: string;
requiredMark: boolean;
showErrorMessage: boolean;
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import("vue").ExtractPropTypes<{
arrow: BooleanConstructor;
contentAlign: {
type: import("vue").PropType<"left" | "right">;
default: "left" | "right";
validator(val: "left" | "right"): boolean;
};
for: {
type: StringConstructor;
default: string;
};
help: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
};
label: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
default: string;
};
labelAlign: {
type: import("vue").PropType<"left" | "right" | "top">;
validator(val: "left" | "right" | "top"): boolean;
};
labelWidth: {
type: import("vue").PropType<string | number>;
};
name: {
type: StringConstructor;
default: string;
};
requiredMark: {
type: BooleanConstructor;
default: any;
};
rules: {
type: import("vue").PropType<import("@/components").FormRule[]>;
};
showErrorMessage: {
type: BooleanConstructor;
default: any;
};
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
arrow: boolean;
contentAlign: "left" | "right";
for: string;
label: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
name: string;
requiredMark: boolean;
showErrorMessage: boolean;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
arrow: BooleanConstructor;
contentAlign: {
type: import("vue").PropType<"left" | "right">;
default: "left" | "right";
validator(val: "left" | "right"): boolean;
};
for: {
type: StringConstructor;
default: string;
};
help: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
};
label: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
default: string;
};
labelAlign: {
type: import("vue").PropType<"left" | "right" | "top">;
validator(val: "left" | "right" | "top"): boolean;
};
labelWidth: {
type: import("vue").PropType<string | number>;
};
name: {
type: StringConstructor;
default: string;
};
requiredMark: {
type: BooleanConstructor;
default: any;
};
rules: {
type: import("vue").PropType<import("@/components").FormRule[]>;
};
showErrorMessage: {
type: BooleanConstructor;
default: any;
};
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
arrow: boolean;
contentAlign: "left" | "right";
for: string;
label: string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue);
name: string;
requiredMark: boolean;
showErrorMessage: boolean;
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
export default Form;