jd-opensource / jd-opensource/drip-form

[Feature] 希望提供onChange api 来支持用户获取formData的变化

Open
#236 1 comment 0 reactions 0 assignees View on GitHub
awaiting-approval enhancement
Dominant language
TypeScript
Stars
627
Forks
73
PR merge metrics
No merged PRs in 30d

Description

### Is your feature request related to a problem? Please describe.

现在有一个场景,是form的外层组件需要实时感知用户对form的修改,并获取change后的formData。
但是目前只能通过ref获取,或者通过submit来一次性获取最终结果,无法感知用户的实时修改。

### Description

1. 提供onChange api
2. onChange传递参数为:实时的formData,校验的结果errMsg等

### Describe the solution you'd like

/

### Describe alternatives you've considered

/

### Self-service

- [ ] I'd be willing to contribute this feature to DripForm myself.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.