diff --git a/packages/vant/src/tree-select/README.md b/packages/vant/src/tree-select/README.md index 3574fad3f..f92f8f4b0 100644 --- a/packages/vant/src/tree-select/README.md +++ b/packages/vant/src/tree-select/README.md @@ -79,7 +79,7 @@ import { ref } from 'vue'; export default { setup() { - const activeId = ref([1, 2]); + const activeIds = ref([1, 2]); const activeIndex = ref(0); const items = [ { @@ -103,7 +103,7 @@ export default { return { items, - activeId, + activeIds, activeIndex, }; }, diff --git a/packages/vant/src/tree-select/README.zh-CN.md b/packages/vant/src/tree-select/README.zh-CN.md index efe366785..2f643fd16 100644 --- a/packages/vant/src/tree-select/README.zh-CN.md +++ b/packages/vant/src/tree-select/README.zh-CN.md @@ -83,7 +83,7 @@ import { ref } from 'vue'; export default { setup() { - const activeId = ref([1, 2]); + const activeIds = ref([1, 2]); const activeIndex = ref(0); const items = [ { @@ -107,7 +107,7 @@ export default { return { items, - activeId, + activeIds, activeIndex, }; },