效果图

代码
<FormItem {...this.formItemLayout} label="起止时间">
{getFieldDecorator('times', {
rules: [{ required: true, message: '起止时间不能为空' }]
})(
<RangePicker
format="YYYY-MM-DD HH:mm:ss"
showTime={{ defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('23:59:59', 'HH:mm:ss')] }}
/>
)}
</FormItem>
网友评论