You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
2.0 KiB

11 months ago
import type { ExtractPropTypes, Component } from 'vue';
import type button from './button.vue';
export declare const buttonType: readonly ["default", "primary", "success", "warning", "info", "danger", "text", ""];
export declare const buttonSize: readonly ["", "large", "default", "small"];
export declare const buttonNativeType: readonly ["button", "submit", "reset"];
export declare const buttonProps: {
readonly size: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "", false, "" | "small" | "default" | "large", never>;
readonly disabled: BooleanConstructor;
readonly type: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
readonly icon: import("element-plus/es/utils/props").BuildPropReturn<import("element-plus/es/utils/props").PropWrapper<string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, "", unknown, unknown, unknown>;
readonly nativeType: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "button", unknown, "button" | "submit" | "reset", unknown>;
readonly loading: BooleanConstructor;
readonly plain: BooleanConstructor;
readonly autofocus: BooleanConstructor;
readonly round: BooleanConstructor;
readonly circle: BooleanConstructor;
readonly color: StringConstructor;
readonly autoInsertSpace: import("element-plus/es/utils/props").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
};
export interface ButtonConfigContext {
autoInsertSpace?: boolean;
}
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'];
export declare type ButtonInstance = InstanceType<typeof button>;