跳到主要内容

eo-context-menu

<eo-context-menu>

构件 eo-context-menu

Examples

Basic

Playground

Properties

NameDescriptionTypeDefaultRequired
actions

动作列表

Action[]
active

是否激活

boolean
positionPosition
itemDraggable

action中的菜单项是否可拖拽

boolean

Events

NameDescriptionEvent Detail
action.click

点击菜单项动作时触发

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

开始拖拽菜单项时触发

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

完成拖拽菜单项时触发

SimpleAction - 该菜单项动作配置

Methods

NameDescriptionParamsReturns
openparam_1: OpenInfo
close

Type references

OpenInfo

NameTypeRequiredDescription
positionPosition

通常设为 [EVENT.clientX, EVENT.clientY]

Position

[x: number, y: number]