From ebdaacfb9fb132e9e1d0e17c65a763f30b03e1c3 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 25 Apr 2024 11:49:39 +0200 Subject: [PATCH] chore(Toaster): missing `slots` definition --- src/runtime/components/Toaster.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/runtime/components/Toaster.vue b/src/runtime/components/Toaster.vue index 7d0c9015..1a303b49 100644 --- a/src/runtime/components/Toaster.vue +++ b/src/runtime/components/Toaster.vue @@ -19,6 +19,10 @@ export interface ToasterProps extends Omit ui?: Partial } +export interface ToasterSlots { + default(): any +} + export type ToasterContext = ComputedRef<{ duration: number }> @@ -32,7 +36,11 @@ import { useToast } from '#imports' import { UToast } from '#components' import { omit } from '#ui/utils' -const props = withDefaults(defineProps(), { expand: true, duration: 5000 }) +const props = withDefaults(defineProps(), { + expand: true, + duration: 5000 +}) +defineSlots() const providerProps = useForwardProps(reactivePick(props, 'duration', 'label', 'swipeThreshold'))