chore: prettier all demos
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user