mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
31 lines
534 B
Plaintext
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>
|