ListProps interface
列表组件:支持多级嵌套、图标、展开的列表
Signature
typescript
interface ListProps1
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
boolean | (Optional) Whether to show the border | ||
boolean | (Optional) Whether nested child items are allowed to expand | ||
number | (Optional) List item height (pixels) | ||
List data ( required) | |||
(id: string, item: ListChildren) => void | (Optional) 点击列表项时触发,参数为 id 与列表项 | ||
(id: string) => void | (Optional) 右键点击列表项时触发,参数为 id | ||
(id: string) => void | (Optional) 双击列表项时触发,参数为 id |