problem description
look at the official documentation and directly set defaultValue= {["a10", "c12"]}
to Select < / br > but I can"t get the correct effect after combining form"s initialValue
. The contents of the initialValue are displayed, but the contents of the corresponding Option are not displayed. The reason is that the data of the Option
option comes from another interface, and initialValue
is already in effect before rendering. Is there any way to solve it? You can"t just set the this.props.form.setFiledValue
sense.
do you have any ideas to solve the problem? Thank you
the environmental background of the problems and what methods you have tried
initialValue
rendered first, but the data of Options has not yet been obtained, which leads to the direct display of username
. However, we hope to be able to judge the value after Option rendering, so as to render "${item.realname} ${item.nickname}"
//
:ownersAsListownersList
Thank you!