eo-actions
<eo-actions>
构件 eo-actions
Examples
Basic
item draggable
Properties
Name | Description | Type | Default | Required |
---|---|---|---|---|
actions | 操作列表配置 | Action[] | ||
checkedKeys | actions选中项配置 | (string | number)[] | [] | |
itemDraggable | action中的菜单项是否可拖拽 | boolean |
Events
Name | Description | Event Detail |
---|---|---|
action.click | 点击按钮时触发 | SimpleAction - 该按钮配置 |
item.drag.start | 开始拖拽菜单项时触发 | SimpleAction - 该菜单项动作配置 |
item.drag.end | 完成拖拽菜单项时触发 | SimpleAction - 该菜单项动作配置 |
Type references
SimpleAction
Name | Description | Type | Default | Required |
---|---|---|---|---|
key | string | number | |||
text | string | ✅ | ||
event | string | |||
icon | GeneralIconProps | |||
disabled | boolean | |||
hidden | boolean | |||
tooltip | string | |||
url | string | |||
href | string | |||
target | Target | |||
danger | boolean | |||
dragConf | { format: string; data: unknown } |
Divider
Name | Description | Type | Default | Required |
---|---|---|---|---|
type | "divider" | ✅ | ||
hidden | boolean |
SubMenuAction
extends SimpleAction
Name | Description | Type | Default | Required |
---|---|---|---|---|
items | SimpleAction[] | ✅ | ||
placement | Placement |
Action
SimpleAction | Divider | SubMenuAction