Fixed #3726 - DynamicDialog: Add emits option to handle events emitted by the child component
parent
4b94b03adc
commit
819178c79e
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue