mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Button: should be unclickavble when loading (#779)
This commit is contained in:
parent
9930a3263b
commit
dadf733d71
@ -65,7 +65,7 @@ export default {
|
||||
<style lang="postcss">
|
||||
.demo-list {
|
||||
.van-cell {
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.page-desc {
|
||||
|
@ -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"
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user