mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +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,28 +0,0 @@
|
|||
import { markRaw } from 'vue';
|
||||
import { PrimeVueDialogSymbol } from 'primevue/usedialog';
|
||||
import DynamicDialogEventBus from 'primevue/dynamicdialogeventbus';
|
||||
|
||||
export default {
|
||||
install: (app) => {
|
||||
const DialogService = {
|
||||
open: (content, options) => {
|
||||
const instance = {
|
||||
content: content && markRaw(content),
|
||||
options: options || {},
|
||||
data: options && options.data,
|
||||
close: (params) => {
|
||||
DynamicDialogEventBus.emit('close', { instance, params });
|
||||
}
|
||||
};
|
||||
|
||||
DynamicDialogEventBus.emit('open', { instance });
|
||||
|
||||
return instance;
|
||||
}
|
||||
};
|
||||
|
||||
app.config.unwrapInjectedRef = true; // Remove it after Vue 3.3. Details: https://vuejs.org/guide/components/provide-inject.html#working-with-reactivity
|
||||
app.config.globalProperties.$dialog = DialogService;
|
||||
app.provide(PrimeVueDialogSymbol, DialogService);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue