Skip to content

Commit bc576d6

Browse files
committed
docs: update treeselect
1 parent 2c39273 commit bc576d6

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

components/tree-select/demo/basic.vue

+4-22
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
<docs>
2-
---
3-
order: 0
4-
title:
5-
zh-CN: 基本用法
6-
en-US: Basic usage
7-
---
8-
9-
## zh-CN
10-
11-
最简单的用法。
12-
13-
## en-US
14-
15-
The most basic usage.
16-
17-
</docs>
18-
191
<template>
202
<a-tree-select
213
v-model:value="value"
@@ -40,8 +22,8 @@ import type { TreeSelectProps } from 'ant-design-vue';
4022
const value = ref<string>();
4123
const treeData = ref<TreeSelectProps['treeData']>([
4224
{
43-
label: 'parent 1',
44-
value: 'parent 1',
25+
label: 'root 1',
26+
value: 'root 1',
4527
children: [
4628
{
4729
label: 'parent 1',
@@ -68,8 +50,8 @@ const treeData = ref<TreeSelectProps['treeData']>([
6850
],
6951
},
7052
{
71-
label: 'parent 1-1',
72-
value: 'parent 1-1',
53+
label: 'parent 2',
54+
value: 'parent 2',
7355
},
7456
],
7557
},

0 commit comments

Comments
 (0)