DatePicker 回调参数可以自定义吗
gitSirzh opened this issue · comments
jszh commented
onPickerConfirm 这个回调我想返回的参数是: ("2018年","01月","01日"),我想要的是 去掉年月日("2018","01","01")
Levofloxacin commented
<DatePicker
HH={false}
mm={false}
ss={false}
unit={this.state.unit}
startYear={this.state.startYear}
selectedValue = {[1990 + 'năm', 1 + 'tháng', 1 + 'Ngày']}
onPickerConfirm={(value) => {
newValue = value[2]+value[1]+value[0];
this.setState({
birthday: newValue,
})
}}
onPickerCancel={() => {
}}
ref={ref => this.DatePicker = ref} />