[bugfix] Switch: can't change status (#438)

This commit is contained in:
neverland 2018-08-19 10:43:44 +08:00 committed by GitHub
parent f6e25a26db
commit 15658e9270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
<view
class="van-switch custom-class {{ checked ? 'van-switch--on' : '' }} {{ disabled ? 'van-switch--disabled' : '' }}"
style="font-size: {{ size }};"
bind:tap="Click"
bind:tap="onClick"
>
<view class="van-switch__node node-class">
<van-loading wx:if="{{ loading }}" size="50%" custom-class="van-switch__loading" />