From 7139898d3a6ca199e086811a981153ae47821912 Mon Sep 17 00:00:00 2001 From: Zhousg Date: Mon, 22 May 2023 21:40:14 +0800 Subject: [PATCH] docs(TreeSelect): props add v-model (#11899) --- packages/vant/src/tree-select/README.md | 4 ++-- packages/vant/src/tree-select/README.zh-CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/vant/src/tree-select/README.md b/packages/vant/src/tree-select/README.md index bdcbb92d3..cf694dd6b 100644 --- a/packages/vant/src/tree-select/README.md +++ b/packages/vant/src/tree-select/README.md @@ -194,10 +194,10 @@ export default { | Attribute | Description | Type | Default | | --- | --- | --- | --- | +| v-model:main-active-index | The index of selected parent node | _number \| string_ | `0` | +| v-model:active-id | Id of selected item | _number \| string \|
(number \| string)[]_ | `0` | | items | Required datasets for the component | _TreeSelectItem[]_ | `[]` | | height | Height | _number \| string_ | `300` | -| main-active-index | The index of selected parent node | _number \| string_ | `0` | -| active-id | Id of selected item | _number \| string \|
(number \| string)[]_ | `0` | | max | Maximum number of selected items | _number \| string_ | `Infinity` | | selected-icon | Selected icon | _string_ | `success` | diff --git a/packages/vant/src/tree-select/README.zh-CN.md b/packages/vant/src/tree-select/README.zh-CN.md index 7b14f9076..370f2289e 100644 --- a/packages/vant/src/tree-select/README.zh-CN.md +++ b/packages/vant/src/tree-select/README.zh-CN.md @@ -202,10 +202,10 @@ export default { | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | +| v-model:main-active-index | 左侧选中项的索引 | _number \| string_ | `0` | +| v-model:active-id | 右侧选中项的 id,支持传入数组 | _number \| string \|
(number \| string)[]_ | `0` | | items | 分类显示所需的数据 | _TreeSelectItem[]_ | `[]` | | height | 高度,默认单位为`px` | _number \| string_ | `300` | -| main-active-index | 左侧选中项的索引 | _number \| string_ | `0` | -| active-id | 右侧选中项的 id,支持传入数组 | _number \| string \|
(number \| string)[]_ | `0` | | max | 右侧项最大选中个数 | _number \| string_ | `Infinity` | | selected-icon | 自定义右侧栏选中状态的图标 | _string_ | `success` |