[improvement] SubmitBar: optimzie code (#771)

This commit is contained in:
neverland 2018-10-17 10:11:57 +08:00 committed by GitHub
parent 60fbdfaded
commit 960ae69be3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 9 deletions

View File

@ -40,9 +40,5 @@
button {
width: 110px;
}
&--disabled button {
border: none !important;
}
}
}

View File

@ -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>