Fixed #3726 - DynamicDialog: Add emits option to handle events emitted by the child component

pull/3743/head
mertsincan 2023-03-13 11:04:33 +00:00
parent 4b94b03adc
commit 819178c79e
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<template v-if="instance.options.templates && instance.options.templates.header" #header> <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> <component v-for="(header, index) in getTemplateItems(instance.options.templates.header)" :is="header" :key="index + '_header'"></component>
</template> </template>
<component :is="instance.content"></component> <component :is="instance.content" v-bind="instance.options.emits"></component>
<template v-if="instance.options.templates && instance.options.templates.footer" #footer> <template v-if="instance.options.templates && instance.options.templates.footer" #footer>
<component v-for="(footer, index) in getTemplateItems(instance.options.templates.footer)" :is="footer" :key="index + '_footer'"></component> <component v-for="(footer, index) in getTemplateItems(instance.options.templates.footer)" :is="footer" :key="index + '_footer'"></component>
</template> </template>