当前位置:网站首页>The element with setfieldsvalue set is obtained as undefined with GetFieldValue

The element with setfieldsvalue set is obtained as undefined with GetFieldValue

2022-07-07 08:04:00 ixiaolin

Solution

form Replace with your object name ,discount Replace it with you undefined Field name ,initialValue Yes, set the default value , The number type is set to 0, The string type is set to '' Empty string is enough .

this.form.getFieldDecorator('discount', {
    initialValue: 0, preserve: true})
原网站

版权声明
本文为[ixiaolin]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130645471953.html