mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
32 lines
692 B
Vue
32 lines
692 B
Vue
<template>
|
|
<demo-section>
|
|
<demo-block :title="$t('basicUsage')">
|
|
<van-cell-group>
|
|
<van-switch-cell v-model="checked" :title="$t('title')" />
|
|
</van-cell-group>
|
|
</demo-block>
|
|
|
|
<demo-block :title="$t('disabled')">
|
|
<van-cell-group>
|
|
<van-switch-cell v-model="checked" disabled :title="$t('title')" />
|
|
</van-cell-group>
|
|
</demo-block>
|
|
|
|
<demo-block :title="$t('loading')">
|
|
<van-cell-group>
|
|
<van-switch-cell v-model="checked" loading :title="$t('title')" />
|
|
</van-cell-group>
|
|
</demo-block>
|
|
</demo-section>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
checked: true
|
|
};
|
|
}
|
|
};
|
|
</script>
|