[Doc] detailed Array typing
This commit is contained in:
@@ -50,7 +50,7 @@ export default {
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| items | Required datasets for the component, see Data Structure for detail. | `Array` | `[]` |
|
||||
| items | Required datasets for the component | `Item[]` | `[]` |
|
||||
| height | Height (px) | `number` | `300` |
|
||||
| main-Active-index | The index of selected parent node | `number` | `0` |
|
||||
| active-id | Id of selected item | `string | number` | `0` |
|
||||
@@ -62,7 +62,7 @@ export default {
|
||||
| navclick | triggered when parent node is selected | index: index of selected parent |
|
||||
| itemclick | triggered when item is selected | data: selected item |
|
||||
|
||||
### Data Structure
|
||||
### Item Data Structure
|
||||
|
||||
`items` should be an array contains specified tree objects.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user