1.0.1 • Published 2 years ago
xverse-components-action-panel-compact v1.0.1
API
| 参数名 | 类型 | 说明 | 默认值 | 是否必填 | 备注 |
|---|---|---|---|---|---|
| actions | IActionItem[] | 角色动作配置 | - | true | 最多 4 个且需要配置和 rid 当中数据一致才能读取显示 |
| avatarId | string | 角色 id | - | true | - |
| iconStyle | CSSProperties | 动作 ICON 样式 | - | false | - |
| foldIconVisible | boolean | 是否加入开关 | true | false | 默认为加入开关 |
| unfold | boolean | 默认是否展开 | true | false | 默认为展开 |
| isLoop | boolean | 动作是否循环 | - | false | 默认动作不循环 |
| closeImageUrl | string | 收起态 ICON | - | false | - |
| className | string | 自定义类名 | - | false | - |
| onMainClick | () => void | - | false | - |