chore: prettier all demos

This commit is contained in:
陈嘉涵
2020-01-19 15:39:00 +08:00
parent 207e80f396
commit 82208c42b8
55 changed files with 646 additions and 498 deletions
+19 -4
View File
@@ -17,16 +17,31 @@
</demo-block>
<demo-block :title="$t('customContent')">
<van-tree-select height="55vw" :items="simpleItems" :main-active-index.sync="activeIndex3">
<van-tree-select
height="55vw"
:items="simpleItems"
:main-active-index.sync="activeIndex3"
>
<template slot="content">
<van-image v-if="activeIndex3 === 0" src="https://img.yzcdn.cn/vant/apple-1.jpg" />
<van-image v-if="activeIndex3 === 1" src="https://img.yzcdn.cn/vant/apple-2.jpg" />
<van-image
v-if="activeIndex3 === 0"
src="https://img.yzcdn.cn/vant/apple-1.jpg"
/>
<van-image
v-if="activeIndex3 === 1"
src="https://img.yzcdn.cn/vant/apple-2.jpg"
/>
</template>
</van-tree-select>
</demo-block>
<demo-block :title="$t('showInfo')">
<van-tree-select height="55vw" :items="infoItems" :active-id.sync="activeId2" :main-active-index.sync="activeIndex4" />
<van-tree-select
height="55vw"
:items="infoItems"
:active-id.sync="activeId2"
:main-active-index.sync="activeIndex4"
/>
</demo-block>
</demo-section>
</template>