ant-design / ant-design/pro-components
🐛[BUG]EditableProTable在filterType为light时,formItemProps.rules会生效导致无法查询
- 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 描述
EditableProTable 在设置 filterType: "light" 时,查询筛选时被应用了 formItemProps.rules,导致无法正常查询。
### 📷 复现步骤
如果 filterType 不设置为 light,则没有这个问题。
### 🏞 期望结果
期望 rule 不会生效。
### 💻 复现代码
https://codesandbox.io/p/sandbox/antd-procomponents-table-qm6x4c
### © 版本信息
- ProComponents 版本: 2.8.3
- antd 版本:5.24.7
- 浏览器环境
- 开发环境 [e.g. mac OS]
### 🚑 其他信息
Contributor guide
Research direction
Start with the EditableProTable implementation and trace the filterType="light" path, focusing on how formItemProps.rules affect filtering. Reproduce the behavior in the linked CodeSandbox with ProComponents 2.8.3 and antd 5.24.7, then verify that filtering works without applying those rules.
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