chore: merge src and src-next

This commit is contained in:
chenjiahan
2020-07-15 20:02:00 +08:00
parent 6672b34618
commit 0304fcb6fa
382 changed files with 464 additions and 24746 deletions
+10 -6
View File
@@ -17,9 +17,9 @@ Vue.use(TreeSelect);
```html
<van-tree-select
v-model:active-id="activeId"
v-model:main-active-index="activeIndex"
:items="items"
:active-id.sync="activeId"
:main-active-index.sync="activeIndex"
/>
```
@@ -41,9 +41,9 @@ export default {
```html
<van-tree-select
v-model:active-id="activeIds"
v-model:main-active-index="activeIndex"
:items="items"
:active-id.sync="activeIds"
:main-active-index.sync="activeIndex"
/>
```
@@ -64,7 +64,11 @@ export default {
通过`content`插槽可以自定义右侧区域的内容
```html
<van-tree-select height="55vw" :items="items" :main-active-index.sync="active">
<van-tree-select
v-model:main-active-index="active"
height="55vw"
:items="items"
>
<template #content>
<van-image
v-if="active === 0"
@@ -95,9 +99,9 @@ export default {
```html
<van-tree-select
v-model:main-active-index="activeIndex"
height="55vw"
:items="items"
:main-active-index.sync="activeIndex"
/>
```