From 3706f4a7c1652729492c5db75e3d24fddd57e432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=9C=D0=B0?= =?UTF-8?q?=D0=BB=D1=8E=D0=B3=D0=B8=D0=BD?= <d.malygin@iqdev.digital> Date: Thu, 13 Feb 2025 16:32:37 +0500 Subject: [PATCH] fix: errors on build --- src/components/Toast/Toast.stories.ts | 2 +- src/components/Toast/Toast.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Toast/Toast.stories.ts b/src/components/Toast/Toast.stories.ts index 58c792a..7b36869 100644 --- a/src/components/Toast/Toast.stories.ts +++ b/src/components/Toast/Toast.stories.ts @@ -23,7 +23,7 @@ const meta: Meta = { options: ['topRight', 'bottomRight', 'bottomLeft', 'topLeft', 'top', 'bottom'], }, active: { control: 'boolean' }, - static: { control: 'boolean' }, + duration: { control: 'number' }, width: { control: 'text' }, header: { control: 'text' }, text: { control: 'text' }, diff --git a/src/components/Toast/Toast.vue b/src/components/Toast/Toast.vue index 4ba7ea0..bcf16ce 100644 --- a/src/components/Toast/Toast.vue +++ b/src/components/Toast/Toast.vue @@ -132,7 +132,7 @@ watch(active, () => { toastsContainer?.appendChild(toast.value); toastsContainer.style[positionParts.value[0] as 'top' | 'bottom'] = '20px'; - timeout = setTimeout(() => (active.value = false), (props.duration as number) * 1000); + timeout = setTimeout(() => (active.value = false), (props.duration as number) * 1000) as unknown as number; } else if (props.duration) { toast.value.classList.remove('active'); setTimeout(() => { -- GitLab