UNPKG

@jiaozhiye/qm-design-vue

Version:

A Component Library for Vue3.0

101 lines (100 loc) 4.79 kB
declare const Download: import("../_utils/types").SFCWithInstall<import("vue").DefineComponent<{ text: boolean; type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger"; authConfig: import("../_utils/types").IAuth; disabled: boolean; nativeType: "button" | "reset" | "submit"; loading: boolean; link: boolean; bg: boolean; autofocus: boolean; circle: boolean; dark: boolean; tag: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>; withCredentials: boolean; size?: import("../_utils/types").ComponentSize | 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; plain?: boolean | undefined; round?: boolean | undefined; color?: string | undefined; autoInsertSpace?: boolean | undefined; fileName?: string | undefined; action?: string | import("./src/props").ActionConfig | undefined; headers?: import("./src/props").HttpRequestHeader | undefined; params?: import("../_utils/types").AnyObject<unknown> | undefined; beforeDownload?: ((action: string) => boolean) | undefined; }, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { success: () => boolean; error: (err: object) => boolean; }, string, import("vue").PublicProps, Readonly<{ text: boolean; type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger"; authConfig: import("../_utils/types").IAuth; disabled: boolean; nativeType: "button" | "reset" | "submit"; loading: boolean; link: boolean; bg: boolean; autofocus: boolean; circle: boolean; dark: boolean; tag: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>; withCredentials: boolean; size?: import("../_utils/types").ComponentSize | 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; plain?: boolean | undefined; round?: boolean | undefined; color?: string | undefined; autoInsertSpace?: boolean | undefined; fileName?: string | undefined; action?: string | import("./src/props").ActionConfig | undefined; headers?: import("./src/props").HttpRequestHeader | undefined; params?: import("../_utils/types").AnyObject<unknown> | undefined; beforeDownload?: ((action: string) => boolean) | undefined; }> & Readonly<{ onSuccess?: (() => any) | undefined; onError?: ((err: object) => any) | undefined; }>, { text: boolean; type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "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>; withCredentials: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>; export default Download; export type { DownloadProps } from './src/props';