docs(tree-select): fix duplicate values in demo (#7083)
parent
bd080cde2a
commit
49a6b588c1
|
@ -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"
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
],
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue