React开发(245):ant design form自定义验证
生活随笔
收集整理的這篇文章主要介紹了
React开发(245):ant design form自定义验证
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
<Form.Item label="聯系人手機號:">{getFieldDecorator('contactMobile', {initialValue: type === 'update' ?
activeUpdateData.contactMobile : '',rules: [{ required: true, message: '請輸入聯系人手機號' },{ pattern: isPhone, message: '手機號格式不正確' },],})(<Input disabled={disabled} />)}</Form.Item>
總結
以上是生活随笔為你收集整理的React开发(245):ant design form自定义验证的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Google SRE 读书笔记 扒一扒S
- 下一篇: idea2021设置代码字体大小