react学习(47)----react中initialValue和value不能一起定义
生活随笔
收集整理的這篇文章主要介紹了
react学习(47)----react中initialValue和value不能一起定义
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
<Row gutter={12}><Col span={12}><Form.Item label="活動開始時間">{getFieldDecorator('startTimeLong', {initialValue: popupByIdDetail.startTimeLong,rules: [{ required: true, message: '活動開始時間不能為空' }],})(<DatePickervalue={popupByIdDetail.startTimeLong}format="YYYY-MM-DD HH:mm:ss"/>)}</Form.Item></Col></Row>
總結
以上是生活随笔為你收集整理的react学习(47)----react中initialValue和value不能一起定义的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Vue.js 3.0 响应式 API 比
- 下一篇: 2021 整理的最全学习资源,送给每一个