Skip to content

Commit c2623d2

Browse files
committed
Revert "refactor: revert support for slots in vue-3"
This reverts commit 09bcea9.
1 parent 012427a commit c2623d2

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/components/Toast.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@
1313
ref="progressBar"
1414
></toast-progress>
1515
<div v-if="data.title" class="toast-title" v-html="data.title"></div>
16-
<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>
16+
<div v-if="data.msg" class="toast-message" v-html="data.msg"></div>
2417
</div>
2518
</template>
2619
<script lang="ts">

src/components/ToastContainer.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
:key="position"
66
>
77
<Toast :data="toast" v-for="toast in toasts" :key="toast.index">
8-
<slot />
98
</Toast>
109
</div>
1110
</template>

0 commit comments

Comments
 (0)