2018-07-31 12:00:33 +08:00

31 lines
534 B
Plaintext

<demo-block title="基础用法">
<van-switch
checked="{{ checked }}"
bind:change="onChange"
/>
</demo-block>
<demo-block title="禁用状态">
<van-switch
checked="{{ checked }}"
disabled
bind:change="onChange"
/>
</demo-block>
<demo-block title="加载状态">
<van-switch
checked="{{ checked }}"
loading
bind:change="onChange"
/>
</demo-block>
<demo-block title="高级用法">
<van-switch
checked="{{ checked2 }}"
size="36px"
bind:change="onChange2"
/>
</demo-block>