ant-design / ant-design/pro-components
新版(3.1.14-6)LightFiter的表单项有多余label的问题
- 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
### 🧐 问题描述
新版(3.1.14-6)LightFiter的疑问:
1. 新版LightFilter中推荐用LightFilter.select等,但连个类型提示都没有
2. 使用旧版2.x写法,必须加proFieldProps={{ light: true }} 表单项才进入light模式,LightFilter.select等不需要
3. 对于部分表单项,比如ProFormSelect,必须添加labelCol={{ span: 0 }}去掉多余显示的label
### 💻 示例代码
[演示demo](https://codesandbox.io/p/sandbox/ji-ben-shi-yong-forked-95g6sf?file=%2FApp.tsx)
### 🚑 其他信息
Contributor guide
Research direction
Start with the linked CodeSandbox's App.tsx and reproduce the behavior using LightFilter.select and ProFormSelect. Compare the LightFilter usage with the older proFieldProps={{ light: true }} form and verify that the relevant fields provide type hints and do not require labelCol={{ span: 0 }} to hide an unwanted label.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100