ant-design / ant-design/pro-components
🧐[问题] pro-layout 配置 suppressSiderWhenMenuEmpty 在移动端仍会渲染 ant-pro-global-header-collapsed-button
Open
🎖️ featrue
layout
- 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
### 🧐 问题描述
menu 为空,同时配置 suppressSiderWhenMenuEmpty: true,在移动端展示时,header 左上角仍会渲染 ant-pro-global-header-collapsed-button span,期望是 menu 为空时不要渲染
### 💻 示例代码
https://github.com/anydong/vite-template-admin
### 🚑 其他信息
Contributor guide
Research direction
Start by reproducing the mobile layout behavior with the linked vite-template-admin example, using an empty menu and suppressSiderWhenMenuEmpty set to true. Trace the pro-layout mobile header rendering and verify that the ant-pro-global-header-collapsed-button span is absent when the menu is empty.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100