tdesign-pro-component
Version:
ProComponents tdesign-vue-next + Vue3 + TS
39 lines (38 loc) • 1.47 kB
TypeScript
import { ProButtonProps, ProButtonSlots } from './types';
declare function __VLS_template(): {
slots: Readonly<ProButtonSlots> & ProButtonSlots;
refs: {};
attrs: Partial<{}>;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<ProButtonProps, {
open: () => void;
close: () => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
click: any;
confirm: any;
open: any;
close: any;
cancel: any;
"update:visible": any;
}, string, import('vue').PublicProps, Readonly<ProButtonProps> & Readonly<{
onClick?: ((...args: any) => any) | undefined;
onConfirm?: ((...args: any) => any) | undefined;
onOpen?: ((...args: any) => any) | undefined;
onClose?: ((...args: any) => any) | undefined;
onCancel?: ((...args: any) => any) | undefined;
"onUpdate:visible"?: ((...args: any) => any) | undefined;
}>, {
theme: "button" | "link";
action: "popup" | "dialog";
visible: boolean;
colorTheme: "default" | "warning" | "success" | "primary" | "danger";
linkHover: "color" | "underline";
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};