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

fix(Menu): 水平模式,鼠标移除但未隐藏 #851

Merged
merged 2 commits into from
Jun 25, 2024

Conversation

ocean-gao
Copy link
Collaborator

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Related issue (if exists):
#849
Other information:

}
if (isFunction(props.disabled) && props.disabled()) {
return;
const hide = async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处 async 可以去掉

if (isFunction(props.disabled) && props.disabled()) {
return;
const hide = async () => {
function setHide() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

和下面 showsetShow 一致,都使用箭头函数

@1zumii 1zumii merged commit 57e5520 into main Jun 25, 2024
1 check passed
@1zumii 1zumii deleted the feat-menu-hover-close-item branch June 25, 2024 02:07
@1zumii 1zumii linked an issue Jun 25, 2024 that may be closed by this pull request
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.

FMenus, 水平菜单,鼠标移开就自动隐藏
2 participants