From 9e18a7f284e20507d8fabb345cced7c8ff3c1fe2 Mon Sep 17 00:00:00 2001 From: Rock070 Date: Fri, 1 Sep 2023 01:42:11 +0800 Subject: [PATCH] feat(Noti): make multi notification (#9) * feat(Noti): make multi notification * fix: type --- packages/core/src/components/Noti.vue | 64 +++++++++++---------------- packages/core/src/types/index.ts | 6 +-- 2 files changed, 29 insertions(+), 41 deletions(-) diff --git a/packages/core/src/components/Noti.vue b/packages/core/src/components/Noti.vue index 697e75e..6178d2c 100644 --- a/packages/core/src/components/Noti.vue +++ b/packages/core/src/components/Noti.vue @@ -1,11 +1,12 @@ diff --git a/packages/core/src/types/index.ts b/packages/core/src/types/index.ts index 0a5aef4..9533074 100644 --- a/packages/core/src/types/index.ts +++ b/packages/core/src/types/index.ts @@ -53,9 +53,9 @@ export type NotiPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-l export interface NotiOptions { message: string - type: NotificationType - position: NotiPosition - duration: number + type?: NotificationType + position?: NotiPosition + duration?: number } export type NotiEvent = (options: Partial) => void