vue3-tree
vue3-tree copied to clipboard
`id` should not be required.
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
-
I'm submitting a ...
- [x] feature request
-
What is the current behavior? Initial data
[
{
"id": 1,
"label": "Animal",
"nodes": [
{
"id": 2,
"label": "Dog"
},
{
"id": 3,
"label": "Cat"
}
]
}
]
- What is the expected behavior? If I don't give an id it should generate it.
[
{
"label": "Animal",
"nodes": [
{
"label": "Dog"
},
{
"label": "Cat"
}
]
}
]
- What is the motivation / use case for changing the behavior? Common usage is like this. In addition, it is tiring for the end user to create an id for unidentified data.