ant-design / ant-design/pro-components
🐛[BUG] 搜索栏类型同时存在
- 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 描述
搜索栏类型同时存在
### 📷 复现步骤
如上,这个是默认状态 ,当=query 的时候 只显示一个
如上,从query切换成light,当=light' 的时候 query的消失了 只有light存在
如上,当再次从light切换回query的时候 light那个栏没消失 query和light同时存在
总结:
当搜索栏类型=query 的时候 有两种结果
第一种结果: 只会显示查询表单
第二种结果: 会显示查询表单 也会显示轻量筛选
当搜索栏类型=light 的时候 有一种结果
第一种结果: 只会显示轻量筛选
### 🏞 期望结果
搜索栏类型=query的时候 只显示查询表单
搜索栏类型=light的时候 只显示轻量筛选
### 💻 复现代码
https://pro-components.antdigital.dev/components/table?tab=api¤t=1&pageSize=5#%E6%90%9C%E7%B4%A2%E6%A0%8F%E7%B1%BB%E5%9E%8B%E5%88%87%E6%8D%A2
### © 版本信息
- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]
### 🚑 其他信息
Contributor guide
Research direction
Start with the ProComponents table demo at the linked “搜索栏类型切换” section and reproduce switching from query to light and back. Compare the displayed controls with the expected behavior: query should show only the query form, and light should show only the lightweight filter; the issue does not name source files or tests.
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
- 52/100