UNPKG

tdesign-mobile-vue

Version:
51 lines (50 loc) 1.76 kB
import { TdButtonProps } from './type'; import { PropType } from 'vue'; declare const _default: { block: BooleanConstructor; content: { type: PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>; }; disabled: { type: BooleanConstructor; default: any; }; ghost: BooleanConstructor; icon: { type: PropType<(h: typeof import("vue").h) => import("..").SlotReturnValue>; }; loading: BooleanConstructor; loadingProps: { type: PropType<import("..").TdLoadingProps>; }; shape: { type: PropType<"circle" | "round" | "square" | "rectangle">; default: "circle" | "round" | "square" | "rectangle"; validator(val: TdButtonProps['shape']): boolean; }; size: { type: PropType<"small" | "medium" | "large" | "extra-small">; default: "small" | "medium" | "large" | "extra-small"; validator(val: TdButtonProps['size']): boolean; }; suffix: { type: PropType<(h: typeof import("vue").h) => import("..").SlotReturnValue>; }; theme: { type: PropType<"default" | "light" | "primary" | "danger">; default: "default" | "light" | "primary" | "danger"; validator(val: TdButtonProps['theme']): boolean; }; type: { type: PropType<"button" | "reset" | "submit">; default: "button" | "reset" | "submit"; validator(val: TdButtonProps['type']): boolean; }; variant: { type: PropType<"base" | "text" | "dashed" | "outline">; default: "base" | "text" | "dashed" | "outline"; validator(val: TdButtonProps['variant']): boolean; }; onClick: PropType<(e: MouseEvent) => void>; }; export default _default;