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

点击n-menu中的菜单时,不应该触发render-icon事件 #3670

Closed
0xyk3r opened this issue Sep 4, 2022 · 1 comment
Closed

点击n-menu中的菜单时,不应该触发render-icon事件 #3670

0xyk3r opened this issue Sep 4, 2022 · 1 comment
Labels
feature request New feature or request

Comments

@0xyk3r
Copy link

0xyk3r commented Sep 4, 2022

This function solves the problem (这个功能解决的问题)

点击n-menu中的菜单时,会触发render-icon事件(在options未被改变的情况下)。我不确定这是一个bug还是有意而为之的。

Expected API (期望的 API)

render-icon事件应该仅在options变动后触发,或者提供一个开关来控制是否在点击menu item时触发?

@github-actions github-actions bot added the feature request New feature or request label Sep 4, 2022
@0xyk3r 0xyk3r changed the title 点击n-menu中的菜单时,会触发render-icon事件 点击n-menu中的菜单时,不应该触发render-icon事件 Sep 4, 2022
@07akioni
Copy link
Collaborator

07akioni commented Sep 4, 2022

这个原因很早以前 vue 有个 bug,所以当时用一个不确保渲染性能的方法解决了:
image

我不是很确认这个 bug Vue 后面处理了么,不过大概率应该是处理了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants