Skip to content

[Feature] 右键菜单插件不仅仅只在单元格上触发,空白处也可以弹出右键菜单 #5151

@TankTao

Description

@TankTao

What problem does this feature solve?

当使用vtable插件@visactor/vtable-plugins 中的 ContextMenuPlugin 时候,能不能在空白处也触发右键菜单,不仅仅是单元格上

What does the proposed API look like?

直接把context-menu.js 这个文件改下,当然了,也要给vtable的 menu:{contextMenuWorkOnlyCell:false} 不然的话,CONTEXTMENU_CANVAS 事件是触发不了的,这其实也是一个bug

context-menu.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions