Display value value is not displayed when the echo Antdesign Select Label Control

<Select  style={{ width: 120 }}  value={this.state.aa} onChange={this.handleChangeVCharge}>
     <Option value="0">aa</Option>
     <Option value="1">bb</Option>
     <Option value="2">cc</Option>
</Select>

Display 012 when the setting is selected, did not show aa bb cc 

Check the code found: submitted submitting a digital code, it is also a digital return, modification method

value={String(this.state.aa)}
 
handleChangeVCharge = (value) =>{
   this.submit({aa:parseInt(value)})
}

Guess you like

Origin www.cnblogs.com/tylz/p/12015811.html