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}
            />

screen shot 2016-07-14 at 2 00 05 pm

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

Most upvoted comments

@zzzzxiao 可以暂时通过DatePicker的defaultPickerValue属性来设置起始时间和结束时间