mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-01 10:47:57 +08:00
docs: [el-tree-v2] fixed the description of props.value (#4376)
This commit is contained in:
parent
240f65c2a3
commit
12855f0d73
@ -90,7 +90,7 @@ tree-v2/filter
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
| --------- | ------------------------------------------------------------------------------------ | -------------- | -------- |
|
||||
| id | unique identity key name for nodes, its value should be unique across the whole tree | string, number | id |
|
||||
| value | unique identity key name for nodes, its value should be unique across the whole tree | string, number | id |
|
||||
| label | specify which key of node object is used as the node's label | string | label |
|
||||
| children | specify which node object is used as the node's subtree | string | children |
|
||||
| disabled | specify which key of node object represents if node's checkbox is disabled | boolean | disabled |
|
||||
|
@ -34,7 +34,7 @@ export default defineComponent({
|
||||
return {
|
||||
data: createData(4, 30, 40),
|
||||
props: ref({
|
||||
id: 'id',
|
||||
value: 'id',
|
||||
label: 'label',
|
||||
children: 'children',
|
||||
}),
|
||||
|
@ -41,7 +41,7 @@ export default defineComponent({
|
||||
return {
|
||||
data: createData(4, 30, 40),
|
||||
props: ref({
|
||||
id: 'id',
|
||||
value: 'id',
|
||||
label: 'label',
|
||||
children: 'children',
|
||||
}),
|
||||
|
@ -52,7 +52,7 @@ export default defineComponent({
|
||||
return {
|
||||
data,
|
||||
props: ref({
|
||||
id: 'id',
|
||||
value: 'id',
|
||||
label: 'label',
|
||||
children: 'children',
|
||||
}),
|
||||
|
@ -40,7 +40,7 @@ export default defineComponent({
|
||||
return {
|
||||
data: createData(4, 30, 40),
|
||||
props: ref({
|
||||
id: 'id',
|
||||
value: 'id',
|
||||
label: 'label',
|
||||
children: 'children',
|
||||
disabled: 'disabled',
|
||||
|
@ -48,7 +48,7 @@ export default defineComponent({
|
||||
data: createData(4, 30, 5),
|
||||
query: ref(''),
|
||||
props: ref({
|
||||
id: 'id',
|
||||
value: 'id',
|
||||
label: 'label',
|
||||
children: 'children',
|
||||
}),
|
||||
|
@ -39,7 +39,7 @@ export default defineComponent({
|
||||
return {
|
||||
data: createData(4, 30, 40),
|
||||
props: ref({
|
||||
id: 'id',
|
||||
value: 'id',
|
||||
label: 'label',
|
||||
children: 'children',
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user