From 82122370457b1785e767ef2b96de8aa58852ed96 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=93=E4=B8=9A=E9=80=AE=E8=99=BE=E6=88=B7aa?=
<30494925+waldonUB@users.noreply.github.com>
Date: Thu, 1 Jun 2023 15:03:54 +0800
Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=90=9Echange=20the=20default=20?=
=?UTF-8?q?=20setting=20of=20=20"treeNodeFilterProp"=20from=20=20"va?=
=?UTF-8?q?=E2=80=A6=20(#6610)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* docs: 📃change the default setting of "treeNodeFilterProp" from "value" to "label"
* revert: ↩revert this config and create another pr to commit
---
components/tree-select/demo/basic.vue | 15 ++++++++-------
components/tree-select/demo/checkable.vue | 13 +++++++------
components/tree-select/demo/custom-tag-render.vue | 15 ++++++++-------
components/tree-select/demo/highlight.vue | 15 ++++++++-------
components/tree-select/demo/multiple.vue | 15 ++++++++-------
components/tree-select/demo/replaceFields.vue | 1 +
components/tree-select/demo/suffix.vue | 12 ++++++++++++
7 files changed, 52 insertions(+), 34 deletions(-)
diff --git a/components/tree-select/demo/basic.vue b/components/tree-select/demo/basic.vue
index e1cea999f..9cd8b3eed 100644
--- a/components/tree-select/demo/basic.vue
+++ b/components/tree-select/demo/basic.vue
@@ -26,10 +26,11 @@ The most basic usage.
allow-clear
tree-default-expand-all
:tree-data="treeData"
+ tree-node-filter-prop="label"
>
-
+
sss
- {{ title }}
+ {{ label }}
@@ -41,25 +42,25 @@ export default defineComponent({
const value = ref();
const treeData = ref([
{
- title: 'parent 1',
+ label: 'parent 1',
value: 'parent 1',
children: [
{
- title: 'parent 1-0',
+ label: 'parent 1-0',
value: 'parent 1-0',
children: [
{
- title: 'my leaf',
+ label: 'my leaf',
value: 'leaf1',
},
{
- title: 'your leaf',
+ label: 'your leaf',
value: 'leaf2',
},
],
},
{
- title: 'parent 1-1',
+ label: 'parent 1-1',
value: 'parent 1-1',
},
],
diff --git a/components/tree-select/demo/checkable.vue b/components/tree-select/demo/checkable.vue
index 36f435e77..d39a825c8 100644
--- a/components/tree-select/demo/checkable.vue
+++ b/components/tree-select/demo/checkable.vue
@@ -24,6 +24,7 @@ Multiple and checkable.
allow-clear
:show-checked-strategy="SHOW_PARENT"
placeholder="Please select"
+ tree-node-filter-prop="label"
/>