formily
formily copied to clipboard
feat(core): 支持用户配置 validator 在哪些 pattern & display 下生效
Before submitting a pull request, please make sure the following is done...
- [x] Ensure the pull request title and commit message follow the Commit Specific in English.
- [x] Fork the repo and create your branch from
master
orformily_next
. - [x] If you've added code that should be tested, add tests!
- [x] If you've changed APIs, update the documentation.
- [x] Ensure the test suite passes (
npm test
). - [x] Make sure your code lints (
npm run lint
) - we've done our best to make sure these rules match our internal linting guidelines.
Please do not delete the above content
What have you changed?
为 form 跟 field 添加 validatePattern
跟 validateDisplay
参数,允许用户自己决定 validator 生效的时机 https://github.com/alibaba/formily/discussions/3776