mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
fix(alert): don't show content when there is no content
This commit is contained in:
parent
52a58fa727
commit
27826b31a9
@ -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>
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user