[bugfix] Button: hide text when loading (#503)

This commit is contained in:
neverland 2018-09-05 17:57:45 +08:00 committed by GitHub
parent cb9a63f477
commit fff5d7ee5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 11 deletions

View File

@ -96,16 +96,6 @@
line-height: 28px;
}
&--loading {
.van-loading {
display: inline-block;
}
.van-button__text {
display: none;
}
}
/* mini图标默认宽度50px文字不能超过4个 */
&--mini {
display: inline-block;

View File

@ -26,5 +26,5 @@
custom-class="loading-class"
color="{{ type === 'default' ? '#c9c9c9' : '#fff' }}"
/>
<slot></slot>
<slot wx:else></slot>
</button>