Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(tree): 改进beforeRightClick回调支持对菜单进行更多配置 #608

Merged
merged 1 commit into from
May 17, 2021
Merged

perf(tree): 改进beforeRightClick回调支持对菜单进行更多配置 #608

merged 1 commit into from
May 17, 2021

Conversation

mynetfan
Copy link
Collaborator

当tree处于抽屉或者对话框中时,右键菜单会因为z-index太低而没能显示在对话框或抽屉的上层。
此PR修改了对beforeRightClick的回调的处理,允许beforeRightClick返回菜单的items数组(兼容之前的代码写法)或者返回ContextMenuOptions来对右键菜单进行更多定制,比如返回{styles:{"z-index":2010},items}来让右键菜单可以在抽屉或弹窗中正确显示。

@anncwb anncwb merged commit adff788 into vbenjs:main May 17, 2021
@mynetfan mynetfan deleted the master branch May 17, 2021 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants