ant-design: Can not use showTime[defaultValue] in RangePicker
使用 showTime 设置 TimePicker 的 defaultValue 后 console 报错
<RangePicker style={widthStyle}
locale={enUS}
showTime={{
format: 'HH:mm',
defaultValue: '00:00:00'
}}
format="yyyy/MM/dd HH:mm"
onChange={this.changeDateRange}
/>
antd 版本 1.6.2
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 22 (13 by maintainers)
Commits related to this issue
- fix: should support DatePicker|RangePicker[showTime.defaultValue], close: #5691 #2375 — committed to ant-design/ant-design by benjycui 7 years ago
- fix: should support DatePicker|RangePicker[showTime.defaultValue], close: #5691 #2375 — committed to ant-design/ant-design by benjycui 7 years ago
- fix: should support DatePicker|RangePicker[showTime.defaultValue], (#6160) close: #5691 #2375 — committed to ant-design/ant-design by benjycui 7 years ago
@zzzzxiao 可以暂时通过DatePicker的defaultPickerValue属性来设置起始时间和结束时间