From 49a6b588c18366f077610ce13fea9ce4d4c9d0b4 Mon Sep 17 00:00:00 2001
From: lai9fox <59388471+lai9fox@users.noreply.github.com>
Date: Sat, 11 Nov 2023 09:30:42 +0800
Subject: [PATCH] docs(tree-select): fix duplicate values in demo (#7083)
---
components/tree-select/demo/basic.vue | 18 ++++++++++++++++++
.../tree-select/demo/custom-tag-render.vue | 12 ++++++------
components/tree-select/demo/highlight.vue | 12 ++++++------
components/tree-select/demo/multiple.vue | 12 ++++++------
4 files changed, 36 insertions(+), 18 deletions(-)
diff --git a/components/tree-select/demo/basic.vue b/components/tree-select/demo/basic.vue
index 70ca2908b..518f23e0d 100644
--- a/components/tree-select/demo/basic.vue
+++ b/components/tree-select/demo/basic.vue
@@ -1,3 +1,21 @@
+
+---
+order: 0
+title:
+ zh-CN: 基本用法
+ en-US: Basic usage
+---
+
+## zh-CN
+
+最简单的用法。
+
+## en-US
+
+The most basic usage.
+
+
+
([
color: 'pink',
children: [
{
- label: 'parent 1',
- value: 'parent 1',
+ label: 'parent 1-0',
+ value: 'parent 1-0',
color: 'pink',
children: [
{
- label: 'parent 1-0',
- value: 'parent 1-0',
+ label: 'parent 1-0-0',
+ value: 'parent 1-0-0',
color: 'orange',
children: [
{
@@ -76,8 +76,8 @@ const treeData = ref([
],
},
{
- label: 'parent 1-1',
- value: 'parent 1-1',
+ label: 'parent 1-0-1',
+ value: 'parent 1-0-1',
color: 'blue',
},
],
diff --git a/components/tree-select/demo/highlight.vue b/components/tree-select/demo/highlight.vue
index 849cb1241..03f09e7da 100644
--- a/components/tree-select/demo/highlight.vue
+++ b/components/tree-select/demo/highlight.vue
@@ -60,12 +60,12 @@ const treeData = ref([
value: 'parent 1',
children: [
{
- label: 'parent 1',
- value: 'parent 1',
+ label: 'parent 1-0',
+ value: 'parent 1-0',
children: [
{
- label: 'parent 1-0',
- value: 'parent 1-0',
+ label: 'parent 1-0-0',
+ value: 'parent 1-0-0',
children: [
{
label: 'my leaf',
@@ -78,8 +78,8 @@ const treeData = ref([
],
},
{
- label: 'parent 1-1',
- value: 'parent 1-1',
+ label: 'parent 1-0-1',
+ value: 'parent 1-0-1',
},
],
},
diff --git a/components/tree-select/demo/multiple.vue b/components/tree-select/demo/multiple.vue
index ef367eca7..d1df751d5 100644
--- a/components/tree-select/demo/multiple.vue
+++ b/components/tree-select/demo/multiple.vue
@@ -46,12 +46,12 @@ const treeData = ref([
value: 'parent 1',
children: [
{
- label: 'parent 1',
- value: 'parent 1',
+ label: 'parent 1-0',
+ value: 'parent 1-0',
children: [
{
- label: 'parent 1-0',
- value: 'parent 1-0',
+ label: 'parent 1-0-0',
+ value: 'parent 1-0-0',
children: [
{
label: 'my leaf',
@@ -64,8 +64,8 @@ const treeData = ref([
],
},
{
- label: 'parent 1-1',
- value: 'parent 1-1',
+ label: 'parent 1-0-1',
+ value: 'parent 1-0-1',
},
],
},