chore: merge src and src-next
This commit is contained in:
@@ -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"
|
||||
/>
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user