ant-design / ant-design/pro-components
🧐[问题]请问,proFormList,max设置1,然后使用自定义按钮添加,自带的按钮超过1一条之后,还是会自动显示出来呢
Open
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
proFormList内部自定义了一个添加按钮,如何在点击自带的添加按钮之后,隐藏自带的呢。尝试使用max属性,添加一条之后会隐藏,但是在使用自定义添加,自带的添加按钮又会显示出来
[https://codesandbox.io/s/xing-wei-shou-wei-forked-9yvlk4?file=/App.tsx](url)
Contributor guide
Research direction
Start with the linked CodeSandbox's App.tsx and reproduce the ProFormList case using max=1, a custom add button, and the built-in add button. Trace how the list limit and button visibility respond to custom additions; done means the built-in button stays hidden after one item is added.
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
- Clearly specified
- Newbie friendliness
- 45/100