UNPKG

@jiaozhiye/qm-design-vue

Version:

A Component Library for Vue3.0

96 lines (95 loc) 3.19 kB
import type { PropType, ExtractPropTypes } from 'vue'; import type { IAuth, JSXElement } from '../../_utils/types'; type IConfirm = { title?: string | JSXElement; onConfirm?: () => void; onCancel?: () => void; }; export declare const _props: { click: { type: PropType<(ev: MouseEvent) => Promise<void> | void>; }; shortcutKey: { type: StringConstructor; }; authConfig: { type: PropType<IAuth>; default: () => {}; }; confirm: { type: PropType<IConfirm>; default: undefined; }; tabindex: { type: NumberConstructor; }; size: { readonly type: PropType<"" | "large" | "default" | "small">; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; disabled: BooleanConstructor; type: { readonly type: PropType<"" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger">; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; } & { readonly default: ""; }; icon: { readonly type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; nativeType: { readonly type: PropType<"button" | "reset" | "submit">; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; } & { readonly default: "button"; }; loading: BooleanConstructor; loadingIcon: { readonly type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; } & { readonly default: () => any; }; plain: BooleanConstructor; text: BooleanConstructor; link: BooleanConstructor; bg: BooleanConstructor; autofocus: BooleanConstructor; round: BooleanConstructor; circle: BooleanConstructor; color: StringConstructor; dark: BooleanConstructor; autoInsertSpace: { readonly type: PropType<boolean>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; } & { readonly default: undefined; }; tag: { readonly type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; } & { readonly default: "button"; }; }; export declare const _emits: { click: (ev: MouseEvent) => boolean; }; export type ButtonProps = ExtractPropTypes<typeof _props>; export type ButtonEmits = typeof _emits; export {};