ant-design / ant-design/pro-components
🧐[问题] EditableProTable 编辑行点击保存时,如何获取表单项校验失败的结果?
Open
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
提问前先看看:
### 🧐 EditableProTable 编辑行点击保存时,如何获取表单项校验失败的结果?
EditableProTable 表单项设置为必填后 ,如果该项不填,保存时在onsave这个api中拿不到校验失败的信息,只能在控制台看到,期望能再onsave中拿到校验失败的信息
### 💻 示例代码
Contributor guide
Research direction
Start by reproducing the issue with an EditableProTable row containing a required form item, then trace the onSave callback and the validation path. Done means the onSave API exposes the validation failure result when saving an incomplete row.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100