ant-design / ant-design/pro-components

🧐[问题] 如何给sider menu增加一个鼠标移入移出事件,去修改侧边menu的收起关闭状态

Open
#8,742 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

### 🧐 问题描述

前提是采用侧边导航布局,后续也不会切换成其他模式

需求是鼠标移入收起的侧边菜单栏暂时展开菜单栏,移出则回到收起状态。除了自定义menuRender,有没有可以hack的方式去做这个需求。

### 💻 示例代码

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

The issue names the side navigation layout and the custom menuRender entry point, but no file or test. Start by locating the sidebar navigation implementation and its menuRender handling; done means a collapsed menu expands on mouse entry and returns to the collapsed state on mouse exit.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.