[bugfix] Button: should be unclickavble when loading (#779)

This commit is contained in:
neverland 2018-03-26 19:52:17 +08:00 committed by GitHub
parent 9930a3263b
commit dadf733d71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -65,7 +65,7 @@ export default {
<style lang="postcss">
.demo-list {
.van-cell {
text-align: center;
justify-content: center;
}
.page-desc {

View File

@ -11,7 +11,8 @@
'van-button--disabled': disabled,
'van-button--loading': loading,
'van-button--block': block,
'van-button--bottom-action': bottomAction
'van-button--bottom-action': bottomAction,
'van-button--unclickable': disabled || loading
}
]"
@click="onClick"

View File

@ -27,10 +27,14 @@
transform: translate(-50%, -50%);
}
&:not([disabled]):active::before {
&:active::before {
opacity: .3;
}
&--unclickable:before {
display: none;
}
&--default {
color: $button-default-color;
background-color: $button-default-background-color;