mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Fixed #3802 - Improve folder structure for nuxt configurations
This commit is contained in:
parent
851950270b
commit
f5fe822afb
563 changed files with 1703 additions and 1095 deletions
|
@ -1,21 +0,0 @@
|
|||
import ToastEventBus from 'primevue/toasteventbus';
|
||||
import { PrimeVueToastSymbol } from 'primevue/usetoast';
|
||||
|
||||
export default {
|
||||
install: (app) => {
|
||||
const ToastService = {
|
||||
add: (message) => {
|
||||
ToastEventBus.emit('add', message);
|
||||
},
|
||||
removeGroup: (group) => {
|
||||
ToastEventBus.emit('remove-group', group);
|
||||
},
|
||||
removeAllGroups: () => {
|
||||
ToastEventBus.emit('remove-all-groups');
|
||||
}
|
||||
};
|
||||
|
||||
app.config.globalProperties.$toast = ToastService;
|
||||
app.provide(PrimeVueToastSymbol, ToastService);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue