UNPKG

tdesign-mobile-vue

Version:
62 lines (61 loc) 1.85 kB
import { TdFormProps } from './type'; import { PropType } from 'vue'; declare const _default: { colon: BooleanConstructor; contentAlign: { type: PropType<"left" | "right">; default: "left" | "right"; validator(val: TdFormProps['contentAlign']): boolean; }; data: { type: PropType<import("./type").Data>; default: () => {}; }; disabled: { type: BooleanConstructor; default: any; }; errorMessage: { type: PropType<import("./type").FormErrorMessage>; }; labelAlign: { type: PropType<"left" | "right" | "top">; default: "left" | "right" | "top"; validator(val: TdFormProps['labelAlign']): boolean; }; labelWidth: { type: PropType<string | number>; default: string; }; preventSubmitDefault: { type: BooleanConstructor; default: boolean; }; requiredMark: { type: BooleanConstructor; default: any; }; resetType: { type: PropType<"initial" | "empty">; default: "initial" | "empty"; validator(val: TdFormProps['resetType']): boolean; }; rules: { type: PropType<import("./type").FormRules<import("./type").Data>>; }; scrollToFirstError: { type: PropType<"" | "auto" | "smooth">; validator(val: TdFormProps['scrollToFirstError']): boolean; }; showErrorMessage: { type: BooleanConstructor; default: boolean; }; submitWithWarningMessage: BooleanConstructor; onReset: PropType<(context: { e?: Event; }) => void>; onSubmit: PropType<(context: import("./type").SubmitContext<import("./type").Data>) => void>; onValidate: PropType<(result: import("./type").ValidateResultContext<import("./type").Data>) => void>; }; export default _default;