We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4032ba commit 09bcea9Copy full SHA for 09bcea9
src/components/Toast.vue
@@ -13,7 +13,14 @@
13
ref="progressBar"
14
></toast-progress>
15
<div v-if="data.title" class="toast-title" v-html="data.title"></div>
16
- <div v-if="data.msg" class="toast-message" v-html="data.msg"></div>
+ <div
17
+ v-if="data.msg && !$slots.default"
18
+ class="toast-message"
19
+ v-html="data.msg"
20
+ ></div>
21
+ <div v-if="$slots.default" class="toast-message">
22
+ <slot />
23
+ </div>
24
</div>
25
</template>
26
<script lang="ts">
src/components/ToastContainer.vue
@@ -5,6 +5,7 @@
5
:key="position"
6
>
7
<Toast :data="toast" v-for="toast in toasts" :key="toast.index">
8
9
</Toast>
10
11
0 commit comments