UNPKG

@minto-ai/mt-ui

Version:

UI组件库

97 lines (96 loc) 2.94 kB
import { MessageTypes } from './message'; declare function close(): void; declare function __VLS_template(): { attrs: Partial<{}>; slots: { default?(_: {}): any; }; refs: { messageRef: HTMLDivElement; }; rootEl: any; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{ readonly message: { readonly type: StringConstructor; readonly required: true; }; readonly type: { readonly type: import('vue').PropType<MessageTypes>; readonly validator: (value: MessageTypes) => boolean; readonly default: "success"; }; readonly duration: { readonly type: NumberConstructor; readonly default: 3000; }; readonly showClose: { readonly type: BooleanConstructor; readonly default: false; }; readonly offset: { readonly type: NumberConstructor; readonly default: 16; }; readonly onClose: { readonly type: FunctionConstructor; readonly default: () => void; }; readonly id: { readonly type: StringConstructor; readonly required: true; }; }>, { close: typeof close; bottom: import('vue').ComputedRef<number>; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { destroy: (...args: any[]) => void; }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{ readonly message: { readonly type: StringConstructor; readonly required: true; }; readonly type: { readonly type: import('vue').PropType<MessageTypes>; readonly validator: (value: MessageTypes) => boolean; readonly default: "success"; }; readonly duration: { readonly type: NumberConstructor; readonly default: 3000; }; readonly showClose: { readonly type: BooleanConstructor; readonly default: false; }; readonly offset: { readonly type: NumberConstructor; readonly default: 16; }; readonly onClose: { readonly type: FunctionConstructor; readonly default: () => void; }; readonly id: { readonly type: StringConstructor; readonly required: true; }; }>> & Readonly<{ onDestroy?: ((...args: any[]) => any) | undefined; }>, { readonly type: "error" | "success" | "warning"; readonly offset: number; readonly showClose: boolean; readonly onClose: Function; readonly duration: number; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, { messageRef: HTMLDivElement; }, any>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };