mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
43 lines
802 B
Vue
43 lines
802 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('loadingStatus')">
|
|
<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>
|