mc-pro-ui
Version:
一个功能强大的 Vue 3 UI 组件库,提供完整的 TypeScript 支持
52 lines (51 loc) • 1.66 kB
TypeScript
interface DialogParam {
modelValue: boolean;
attrs?: Object;
title?: string;
width?: number | string;
draggable?: boolean;
showConfirmButton?: boolean;
showCancelButton?: boolean;
confirmButtonText?: string;
cancelButtonText?: string;
}
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
header?(_: {
close: () => void;
titleId: string;
titleClass: string;
}): any;
default?(_: {}): any;
footer?(_: {}): any;
};
refs: {};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<DialogParam, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
close: (...args: any[]) => void;
"update:modelValue": (...args: any[]) => void;
confirm: (...args: any[]) => void;
}, string, import('vue').PublicProps, Readonly<DialogParam> & Readonly<{
onClose?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
onConfirm?: (...args: any[]) => any;
}>, {
width: number | string;
title: string;
modelValue: boolean;
draggable: boolean;
showConfirmButton: boolean;
showCancelButton: boolean;
confirmButtonText: string;
cancelButtonText: string;
}, {}, {}, {}, 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;
};
};