File tree 1 file changed +4
-22
lines changed
components/tree-select/demo
1 file changed +4
-22
lines changed Original file line number Diff line number Diff line change 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
-
19
1
<template >
20
2
<a-tree-select
21
3
v-model:value =" value"
@@ -40,8 +22,8 @@ import type { TreeSelectProps } from 'ant-design-vue';
40
22
const value = ref <string >();
41
23
const treeData = ref <TreeSelectProps [' treeData' ]>([
42
24
{
43
- label: ' parent 1' ,
44
- value: ' parent 1' ,
25
+ label: ' root 1' ,
26
+ value: ' root 1' ,
45
27
children: [
46
28
{
47
29
label: ' parent 1' ,
@@ -68,8 +50,8 @@ const treeData = ref<TreeSelectProps['treeData']>([
68
50
],
69
51
},
70
52
{
71
- label: ' parent 1-1 ' ,
72
- value: ' parent 1-1 ' ,
53
+ label: ' parent 2 ' ,
54
+ value: ' parent 2 ' ,
73
55
},
74
56
],
75
57
},
You can’t perform that action at this time.
0 commit comments