mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[improvement] SubmitBar: optimzie code (#771)
This commit is contained in:
parent
60fbdfaded
commit
960ae69be3
@ -40,9 +40,5 @@
|
||||
button {
|
||||
width: 110px;
|
||||
}
|
||||
|
||||
&--disabled button {
|
||||
border: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,14 +14,14 @@
|
||||
</block>
|
||||
</view>
|
||||
<van-button
|
||||
type="{{ buttonType }}"
|
||||
disabled="{{ disabled }}"
|
||||
loading="{{ loading }}"
|
||||
bind:click="onSubmit"
|
||||
square
|
||||
size="large"
|
||||
class="van-submit-bar__button {{ disabled ? 'van-submit-bar__button--disabled' : '' }}"
|
||||
type="{{ buttonType }}"
|
||||
loading="{{ loading }}"
|
||||
disabled="{{ disabled }}"
|
||||
class="van-submit-bar__button"
|
||||
custom-class="button-class"
|
||||
bind:click="onSubmit"
|
||||
>
|
||||
{{ loading ? '' : buttonText }}
|
||||
</van-button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user