Commit 0516fdb8 authored by 张子雨's avatar 张子雨

feat: 修改营业时间问题

parent c29e8196
......@@ -319,7 +319,16 @@ const StoreModal = props => {
{getFieldDecorator(item.name, {
rules: [{ required: true, message: '请选择营业时间!' }],
initialValue: formData[item.name],
})(<TimePicker.RangePicker format="HH:mm" disabled={disabled} />)}
})(
<TimePicker.RangePicker
format="HH:mm"
showTime={{
hideDisabledOptions: true,
defaultValue: [moment('00:00', 'HH:mm'), moment('23:59', 'HH:mm')],
}}
disabled={disabled}
/>,
)}
</FormItem>
</div>
{!disabled &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment