docs: [el-tree-v2] fixed the description of props.value (#4376)

This commit is contained in:
msidolphin 2021-12-04 02:04:38 +08:00 committed by GitHub
parent 240f65c2a3
commit 12855f0d73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 7 deletions

View File

@ -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 |

View File

@ -34,7 +34,7 @@ export default defineComponent({
return {
data: createData(4, 30, 40),
props: ref({
id: 'id',
value: 'id',
label: 'label',
children: 'children',
}),

View File

@ -41,7 +41,7 @@ export default defineComponent({
return {
data: createData(4, 30, 40),
props: ref({
id: 'id',
value: 'id',
label: 'label',
children: 'children',
}),

View File

@ -52,7 +52,7 @@ export default defineComponent({
return {
data,
props: ref({
id: 'id',
value: 'id',
label: 'label',
children: 'children',
}),

View File

@ -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',

View File

@ -48,7 +48,7 @@ export default defineComponent({
data: createData(4, 30, 5),
query: ref(''),
props: ref({
id: 'id',
value: 'id',
label: 'label',
children: 'children',
}),

View File

@ -39,7 +39,7 @@ export default defineComponent({
return {
data: createData(4, 30, 40),
props: ref({
id: 'id',
value: 'id',
label: 'label',
children: 'children',
}),