UNPKG

@lekseek/ui

Version:

Vue 3 components library

54 lines (53 loc) 1.55 kB
import { PropType } from 'vue'; import { NotificationTypeName } from '../Notification/models'; export interface Notification { id: number; message: string; type?: NotificationTypeName; } declare const _default: import("vue").DefineComponent<{ items: { type: PropType<Notification[]>; required: true; }; size: { type: PropType<"lg" | "sm" | "md">; default: string; validator: (val: string) => boolean; }; width: { type: PropType<number | null>; default: null; }; rounded: { type: PropType<boolean>; default: boolean; }; }, unknown, unknown, {}, { removeNotification(item: Notification): void; }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "remove-notification"[], "remove-notification", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ items: { type: PropType<Notification[]>; required: true; }; size: { type: PropType<"lg" | "sm" | "md">; default: string; validator: (val: string) => boolean; }; width: { type: PropType<number | null>; default: null; }; rounded: { type: PropType<boolean>; default: boolean; }; }>> & { "onRemove-notification"?: ((...args: any[]) => any) | undefined; }, { size: "lg" | "sm" | "md"; rounded: boolean; width: number | null; }>; export default _default;