mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] Button: hide text when loading (#503)
This commit is contained in:
parent
cb9a63f477
commit
fff5d7ee5a
@ -96,16 +96,6 @@
|
|||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--loading {
|
|
||||||
.van-loading {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.van-button__text {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* mini图标默认宽度50px,文字不能超过4个 */
|
/* mini图标默认宽度50px,文字不能超过4个 */
|
||||||
&--mini {
|
&--mini {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -26,5 +26,5 @@
|
|||||||
custom-class="loading-class"
|
custom-class="loading-class"
|
||||||
color="{{ type === 'default' ? '#c9c9c9' : '#fff' }}"
|
color="{{ type === 'default' ? '#c9c9c9' : '#fff' }}"
|
||||||
/>
|
/>
|
||||||
<slot></slot>
|
<slot wx:else></slot>
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user