UNPKG

easyest-xqp

Version:

31 lines (30 loc) 828 B
import { ExtractPropTypes, PropType } from "vue"; /** * 按钮的类型定义 */ export type IButtonType = "default" | "primary" | "success" | "warning" | "error" | "info" | "link"; export declare const buttonProps: { /** * @description button type */ readonly type: { readonly type: PropType<IButtonType>; readonly default: ""; }; /** * @description disable the button */ readonly disabled: { readonly type: BooleanConstructor; readonly default: false; }; readonly icon: { readonly type: StringConstructor; readonly default: ""; }; }; export declare const buttonEmits: { click: (evt: MouseEvent) => boolean; }; export type ButtonEmits = typeof buttonEmits; export type ButtonProps = ExtractPropTypes<typeof buttonProps>;