Skip to content
Snippets Groups Projects
Commit 3706f4a7 authored by Дмитрий Малюгин's avatar Дмитрий Малюгин :clock4:
Browse files

fix: errors on build

parent c8f1421f
No related branches found
No related tags found
1 merge request!6Finish "UI-library v1.0.0"
...@@ -23,7 +23,7 @@ const meta: Meta = { ...@@ -23,7 +23,7 @@ const meta: Meta = {
options: ['topRight', 'bottomRight', 'bottomLeft', 'topLeft', 'top', 'bottom'], options: ['topRight', 'bottomRight', 'bottomLeft', 'topLeft', 'top', 'bottom'],
}, },
active: { control: 'boolean' }, active: { control: 'boolean' },
static: { control: 'boolean' }, duration: { control: 'number' },
width: { control: 'text' }, width: { control: 'text' },
header: { control: 'text' }, header: { control: 'text' },
text: { control: 'text' }, text: { control: 'text' },
......
...@@ -132,7 +132,7 @@ watch(active, () => { ...@@ -132,7 +132,7 @@ watch(active, () => {
toastsContainer?.appendChild(toast.value); toastsContainer?.appendChild(toast.value);
toastsContainer.style[positionParts.value[0] as 'top' | 'bottom'] = '20px'; 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) { } else if (props.duration) {
toast.value.classList.remove('active'); toast.value.classList.remove('active');
setTimeout(() => { setTimeout(() => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment