ant-design / ant-design/pro-components

新版(3.1.14-6)LightFiter的表单项有多余label的问题

Open
#9,677 4 comments 0 reactions 0 assignees View on GitHub
question
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)

### 🚑 其他信息

Image

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.