fix(alert): don't show content when there is no content

This commit is contained in:
07akioni 2019-10-30 16:35:34 +08:00
parent 52a58fa727
commit 27826b31a9
2 changed files with 17 additions and 14 deletions

View File

@ -43,7 +43,10 @@
>
{{ title }}
</div>
<div class="n-alert-body__content">
<div
v-if="$slots.default"
class="n-alert-body__content"
>
<slot />
</div>
</div>

View File

@ -69,7 +69,7 @@ const NMessage = {
},
attachMessageContainer,
notice (content, option) {
console.log('test', this)
// console.log('test', this)
const messageContainer = this.attachMessageContainer()
const messageCell = new this.Vue({
...Message,