本人的需求是Select組件中的defaultValue數(shù)據(jù)是從網(wǎng)絡(luò)獲取的, 無法正常顯示想要的數(shù)據(jù)。
請求來的默認值數(shù)據(jù)
百度得到解決方案:在Select 組件中添加一個key, 值為你所需要的 defaultValue
添加key
解決方案出處????:
出處:http://react-china.org/t/antd-select-defaultvalue/15304
本人的需求是Select組件中的defaultValue數(shù)據(jù)是從網(wǎng)絡(luò)獲取的, 無法正常顯示想要的數(shù)據(jù)。
百度得到解決方案:在Select 組件中添加一個key, 值為你所需要的 defaultValue
解決方案出處????:
出處:http://react-china.org/t/antd-select-defaultvalue/15304