From d726e4ddacc68c8bd63084bfbd32893e292d3846 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 11 Apr 2024 15:40:37 +0200 Subject: [PATCH] feat(Toast): implement progress duration Resolves #51 --- playground/app.config.ts | 2 +- playground/pages/toast.vue | 2 +- src/runtime/components/Toast.vue | 28 +++++++++++++++++----------- src/runtime/components/Toaster.vue | 11 +++++++++-- src/theme/toast.ts | 3 +-- 5 files changed, 29 insertions(+), 17 deletions(-) diff --git a/playground/app.config.ts b/playground/app.config.ts index a8795b04..ac8a35cc 100644 --- a/playground/app.config.ts +++ b/playground/app.config.ts @@ -2,7 +2,7 @@ export default defineAppConfig({ toaster: { position: 'bottom-right' as const, expand: true, - duration: 60000 + duration: 5000 }, ui: { primary: 'sky', diff --git a/playground/pages/toast.vue b/playground/pages/toast.vue index fc4a87d8..710ba846 100644 --- a/playground/pages/toast.vue +++ b/playground/pages/toast.vue @@ -109,7 +109,7 @@ function removeToast () {