[Improvement] Reorganize demos (#1052)

This commit is contained in:
neverland
2018-05-12 15:22:37 +08:00
committed by GitHub
parent a55eda8891
commit 4de1e7da55
83 changed files with 109 additions and 113 deletions

View File

@@ -0,0 +1,31 @@
<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>