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