ant-design / ant-design/pro-components
🧐[问题] ProForm + EditableProTable 保存时没有触发校验
- 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
### 🧐 问题描述
EditableProTable 保存时没有触发校验
[复现链接](https://codesandbox.io/s/proform-he-editabletable-tong-shi-shi-yong-forked-zzjvl0)
### 💻 示例代码
```
{
title: '活动名称',
dataIndex: 'title',
width: '30%',
formItemProps: {
rules: [
{
required: true,
message: '此项为必填项',
},
],
},
},
```
### 🚑 其他信息
版本:


Contributor guide
Research direction
Open the linked CodeSandbox reproduction and inspect how ProForm and EditableProTable are combined. Start from the save flow and the column's formItemProps rules; done means saving an empty 活动名称 field triggers the required validation message instead of saving without validation.
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
- 42/100