From 217ddc54b52004737593b775fd17f666a2145687 Mon Sep 17 00:00:00 2001 From: inottn Date: Fri, 24 Nov 2023 20:46:40 +0800 Subject: [PATCH] docs(TreeSelect): correct variable names (#12469) --- 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 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, }; },