docs(tree-select): fix duplicate values in demo (#7083)

pull/7102/head
lai9fox 2023-11-11 09:30:42 +08:00 committed by GitHub
parent bd080cde2a
commit 49a6b588c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 18 deletions

View File

@ -1,3 +1,21 @@
<docs>
---
order: 0
title:
zh-CN: 基本用法
en-US: Basic usage
---
## zh-CN
最简单的用法
## en-US
The most basic usage.
</docs>
<template>
<a-tree-select
v-model:value="value"

View File

@ -54,13 +54,13 @@ const treeData = ref<TreeSelectProps['treeData']>([
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<TreeSelectProps['treeData']>([
],
},
{
label: 'parent 1-1',
value: 'parent 1-1',
label: 'parent 1-0-1',
value: 'parent 1-0-1',
color: 'blue',
},
],

View File

@ -60,12 +60,12 @@ const treeData = ref<TreeSelectProps['treeData']>([
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<TreeSelectProps['treeData']>([
],
},
{
label: 'parent 1-1',
value: 'parent 1-1',
label: 'parent 1-0-1',
value: 'parent 1-0-1',
},
],
},

View File

@ -46,12 +46,12 @@ const treeData = ref<TreeSelectProps['treeData']>([
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<TreeSelectProps['treeData']>([
],
},
{
label: 'parent 1-1',
value: 'parent 1-1',
label: 'parent 1-0-1',
value: 'parent 1-0-1',
},
],
},