@jiaozhiye/qm-design-vue
Version:
A Component Library for Vue3.0
86 lines (85 loc) • 3.96 kB
TypeScript
declare const Button: import("../_utils/types").SFCWithInstall<import("vue").DefineComponent<{
text: boolean;
type: "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger";
authConfig: import("../_utils/types").IAuth;
disabled: boolean;
nativeType: "button" | "reset" | "submit";
loading: boolean;
plain: boolean;
link: boolean;
bg: boolean;
autofocus: boolean;
round: boolean;
circle: boolean;
dark: boolean;
tag: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>;
size?: ("" | "large" | "default" | "small") | undefined;
click?: ((ev: MouseEvent) => void | Promise<void>) | undefined;
shortcutKey?: string | undefined;
confirm?: {
title?: string | import("../_utils/types").JSXElement | undefined;
onConfirm?: (() => void) | undefined;
onCancel?: (() => void) | undefined;
} | undefined;
tabindex?: number | undefined;
icon?: (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | undefined;
loadingIcon?: (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | undefined;
color?: string | undefined;
autoInsertSpace?: boolean | undefined;
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
click: (ev: MouseEvent) => boolean;
}, string, import("vue").PublicProps, Readonly<{
text: boolean;
type: "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger";
authConfig: import("../_utils/types").IAuth;
disabled: boolean;
nativeType: "button" | "reset" | "submit";
loading: boolean;
plain: boolean;
link: boolean;
bg: boolean;
autofocus: boolean;
round: boolean;
circle: boolean;
dark: boolean;
tag: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>;
size?: ("" | "large" | "default" | "small") | undefined;
click?: ((ev: MouseEvent) => void | Promise<void>) | undefined;
shortcutKey?: string | undefined;
confirm?: {
title?: string | import("../_utils/types").JSXElement | undefined;
onConfirm?: (() => void) | undefined;
onCancel?: (() => void) | undefined;
} | undefined;
tabindex?: number | undefined;
icon?: (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | undefined;
loadingIcon?: (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | undefined;
color?: string | undefined;
autoInsertSpace?: boolean | undefined;
}> & Readonly<{
onClick?: ((ev: MouseEvent) => any) | undefined;
}>, {
text: boolean;
type: "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger";
authConfig: import("../_utils/types").IAuth;
confirm: {
title?: string | import("../_utils/types").JSXElement | undefined;
onConfirm?: (() => void) | undefined;
onCancel?: (() => void) | undefined;
};
disabled: boolean;
nativeType: "button" | "reset" | "submit";
loading: boolean;
loadingIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>;
plain: boolean;
link: boolean;
bg: boolean;
autofocus: boolean;
round: boolean;
circle: boolean;
dark: boolean;
autoInsertSpace: boolean;
tag: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default Button;
export type { ButtonProps } from './src/props';