ant-design / ant-design/pro-components

🐛[BUG]ProLayout 顶部一级菜单切换左侧二级导航,多了一层ProLayout

Open
#9,646 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

提问前先看看:

### 🐛 bug 描述
顶部一级菜单切换左侧二级导航,多了一层ProLayout,通过umi配置控制也不生效,我看给的示例也是有问题的。
https://procomponents.ant.design/components/layout?tab=api这个页面的基础用法,打开示例如下链接
https://codesandbox.io/p/sandbox/txtp73?file=%2Findex.html

### 📷 复现步骤
打开这个页面看示例就有bug:https://procomponents.ant.design/components/layout?tab=api

### 🏞 期望结果
希望去掉一层ProLayout包裹

### 💻 复现代码

### © 版本信息

- ProComponents 版本: 3.1.12-0
- umi 版本 ^4.0.0
- 浏览器环境 chrome
- 开发环境 mac pro

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start with the ProLayout documentation example at https://procomponents.ant.design/components/layout?tab=api and its linked CodeSandbox reproduction. Reproduce the top-level menu switching to the left secondary navigation, then inspect how many ProLayout wrappers are rendered and whether the umi configuration is applied. Done means the example renders only one ProLayout wrapper and the navigation behaves as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.