跳到主要内容

eo-actions

<eo-actions>

构件 eo-actions

Examples

Basic

Playground

item draggable

Playground

Properties

NameDescriptionTypeDefaultRequired
actions

操作列表配置

Action[]
checkedKeys

actions选中项配置

(string | number)[] []
itemDraggable

action中的菜单项是否可拖拽

boolean

Events

NameDescriptionEvent Detail
action.click

点击按钮时触发

SimpleAction - 该按钮配置
item.drag.start

开始拖拽菜单项时触发

SimpleAction - 该菜单项动作配置
item.drag.end

完成拖拽菜单项时触发

SimpleAction - 该菜单项动作配置

Type references

SimpleAction

NameTypeRequiredDescription
keystring | number
textstring
eventstring
iconGeneralIconProps
disabledboolean
hiddenboolean
tooltipstring
urlstring
hrefstring
targetTarget
dangerboolean
dragConf{ format: string; data: unknown }

Divider

NameTypeRequiredDescription
type"divider"
hiddenboolean

SubMenuAction

extends SimpleAction
NameTypeRequiredDescription
itemsSimpleAction[]
placementPlacement

Action

SimpleAction | Divider | SubMenuAction