ant-design / ant-design/pro-components
🐛[BUG] ProFormList为空时并且禁用添加按钮渲染多余的dom
- 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
### 🐛 bug 描述
把添加按钮禁用,还会保留一个控件的高度
### 📷 复现步骤
[]}>
### 🏞 期望结果
- 希望没有这个空元素
- 能否提供一个render当空列表时渲染,类似Table的
### 💻 复现代码
### © 版本信息
- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]
### 🚑 其他信息
Contributor guide
Research direction
Start by locating the ProFormList component and trace how creatorButtonProps={false} and actionRender={() => []} are handled when the list is empty. Reproduce the example from the issue, then verify that no empty element retains control height and that the requested empty-list rendering behavior is addressed.
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