mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 12:17:54 +01:00
fix(plugins): error in provides
This commit is contained in:
@@ -26,9 +26,11 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
provide: {
|
provide: {
|
||||||
|
clipboard: {
|
||||||
copy
|
copy
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
declare module '#app' {
|
declare module '#app' {
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ export default defineNuxtPlugin(() => {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
provide: {
|
provide: {
|
||||||
|
toast: {
|
||||||
addNotification,
|
addNotification,
|
||||||
removeNotification,
|
removeNotification,
|
||||||
success ({ title, description, timeout }: { title?: string, description?: string, timeout?: number } = {}) {
|
success ({ title, description, timeout }: { title?: string, description?: string, timeout?: number } = {}) {
|
||||||
@@ -61,6 +62,7 @@ export default defineNuxtPlugin(() => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
declare module '#app' {
|
declare module '#app' {
|
||||||
|
|||||||
Reference in New Issue
Block a user