Loading src/components/Toast/Toast.stories.ts +1 −1 Original line number Diff line number Diff line Loading @@ -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' }, Loading src/components/Toast/Toast.vue +1 −1 Original line number Diff line number Diff line Loading @@ -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(() => { Loading Loading
src/components/Toast/Toast.stories.ts +1 −1 Original line number Diff line number Diff line Loading @@ -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' }, Loading
src/components/Toast/Toast.vue +1 −1 Original line number Diff line number Diff line Loading @@ -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(() => { Loading