mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
[Improvement] Dialog: optimize style without content (#1233)
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
<transition name="van-dialog-bounce">
|
||||
<div v-show="value" :class="[b(), className]">
|
||||
<div v-if="title" v-text="title" :class="b('header')" />
|
||||
<div :class="b('content')" class="van-hairline">
|
||||
<div :class="b('content')" v-if="message || $slots.default">
|
||||
<slot>
|
||||
<div v-if="message" v-html="message" :class="b('message', { withtitle: title })" />
|
||||
<div v-if="message" v-html="message" :class="b('message', { 'has-title': title })" />
|
||||
</slot>
|
||||
</div>
|
||||
<div :class="b('footer', { 'buttons': showCancelButton && showConfirmButton })">
|
||||
<div class="van-hairline--top" :class="b('footer', { 'buttons': showCancelButton && showConfirmButton })">
|
||||
<van-button
|
||||
v-show="showCancelButton"
|
||||
:loading="loading.cancel"
|
||||
|
Reference in New Issue
Block a user