Skip to content

Commit c7134fc

Browse files
Merge pull request #73 from vue-final/feat/v-html-in-dynamic-modal-slot
feat: support v-html in dynamic modal slot
2 parents ead4f35 + 19a005a commit c7134fc

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

dist/VueFinalModal.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ModalsContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@before-open="e => beforeOpen(e, modal)"
1212
>
1313
<template v-for="(slot, key) in modal.slots" v-slot:[key]>
14-
<template v-if="isString(slot)">{{ slot }}</template>
14+
<div v-if="isString(slot)" :key="key" v-html="slot"></div>
1515
<component v-else :key="key" :is="slot.component" v-bind="slot.bind" v-on="slot.on" />
1616
</template>
1717
</component>

0 commit comments

Comments
 (0)