diff --git a/packages/vant/src/tree-select/README.md b/packages/vant/src/tree-select/README.md index c9cdd0b36..6e7bc1639 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 370f2289e..2eb6069ba 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, }; },