mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-02 05:08:03 +01:00
feat(useToast): add clear method
This commit is contained in:
@@ -50,10 +50,15 @@ export function useToast() {
|
|||||||
}, 200)
|
}, 200)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clear() {
|
||||||
|
toasts.value = []
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
toasts,
|
toasts,
|
||||||
add,
|
add,
|
||||||
update,
|
update,
|
||||||
remove
|
remove,
|
||||||
|
clear
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user