@lekseek/ui
Version:
Vue 3 components library
54 lines (53 loc) • 1.55 kB
TypeScript
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<"sm" | "md" | "lg">;
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<"sm" | "md" | "lg">;
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: "sm" | "md" | "lg";
width: number | null;
rounded: boolean;
}>;
export default _default;