UNPKG

element-plus

Version:

A Component Library for Vue 3

24 lines (23 loc) 1.58 kB
import type { ExtractPropTypes } from 'vue'; export declare const buttonType: readonly ["default", "primary", "success", "warning", "info", "danger", "text", ""]; export declare const buttonSize: readonly ["", "large", "medium", "small", "mini"]; export declare const buttonNativeType: readonly ["button", "submit", "reset"]; export declare const buttonProps: { readonly type: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown>; readonly icon: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>; readonly nativeType: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "button", unknown, "button" | "reset" | "submit", unknown>; readonly loading: BooleanConstructor; readonly plain: BooleanConstructor; readonly autofocus: BooleanConstructor; readonly round: BooleanConstructor; readonly circle: BooleanConstructor; readonly size: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "", unknown, "" | "small" | "large" | "medium" | "mini", unknown>; readonly disabled: BooleanConstructor; }; export declare const buttonEmits: { click: (evt: MouseEvent) => boolean; }; export declare type ButtonProps = ExtractPropTypes<typeof buttonProps>; export declare type ButtonEmits = typeof buttonEmits; export declare type ButtonType = ButtonProps['type']; export declare type ButtonNativeType = ButtonProps['nativeType'];