UNPKG

easyest-xqp

Version:

34 lines (33 loc) 985 B
import { ExtractPropTypes, PropType } from "vue"; import { IButtonType } from "./button"; export type IButton = { name?: string; type: IButtonType; disabled?: boolean; operate?: string; icon?: string; }; export type IPosition = "left" | "right" | "center"; export declare const buttonGroupProps: { /** * @description buttonGroup buttons */ readonly btns: { readonly type: PropType<IButton[]>; readonly default: readonly []; }; /** * @description position the button position */ readonly position: { readonly type: PropType<IPosition>; readonly default: "center"; }; }; export declare const buttonGroupEmits: { click: (btn: IButton, evt: MouseEvent) => boolean; mouseOver: (evt: MouseEvent) => boolean; mouseLeave: (evt: MouseEvent) => boolean; }; export type ButtonGroupEmits = typeof buttonGroupEmits; export type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>;