Refactor #3885 - For DynamicDialog

pull/3913/head
Tuğçe Küçükoğlu 2023-04-25 13:23:19 +03:00
parent de6494e220
commit 9c9ea7484e
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<template>
<template v-for="(instance, key) in instanceMap" :key="key">
<DDialog v-model:visible="instance.visible" :_instance="instance" v-bind="instance.options.props" @hide="onDialogHide(instance)" @after-hide="onDialogAfterHide">
<DDialog v-model:visible="instance.visible" :_instance="instance" v-bind="instance.options.props" :pt="pt" @hide="onDialogHide(instance)" @after-hide="onDialogAfterHide">
<template v-if="instance.options.templates && instance.options.templates.header" #header>
<component v-for="(header, index) in getTemplateItems(instance.options.templates.header)" :is="header" :key="index + '_header'"></component>
</template>
@ -13,12 +13,14 @@
</template>
<script>
import BaseComponent from 'primevue/basecomponent';
import Dialog from 'primevue/dialog';
import DynamicDialogEventBus from 'primevue/dynamicdialogeventbus';
import { UniqueComponentId } from 'primevue/utils';
export default {
name: 'DynamicDialog',
extends: BaseComponent,
inheritAttrs: false,
data() {
return {