Commit 206f4937479d38faf39186f33ebb852966a4bf0d
1 parent
39ed06d6
perf: set RangePicker default time
Showing
1 changed file
with
4 additions
and
2 deletions
1 | -import { Moment } from 'moment'; | 1 | +import moment, { Moment } from 'moment'; |
2 | import { getPacketIntervalByRange, getPacketIntervalByValue, intervalOption } from './helper'; | 2 | import { getPacketIntervalByRange, getPacketIntervalByValue, intervalOption } from './helper'; |
3 | import { FormSchema } from '/@/components/Form'; | 3 | import { FormSchema } from '/@/components/Form'; |
4 | import { ColEx } from '/@/components/Form/src/types'; | 4 | import { ColEx } from '/@/components/Form/src/types'; |
@@ -86,7 +86,9 @@ export const defaultSchemas: FormSchema[] = [ | @@ -86,7 +86,9 @@ export const defaultSchemas: FormSchema[] = [ | ||
86 | const { setFieldsValue } = formActionType; | 86 | const { setFieldsValue } = formActionType; |
87 | let dates: Moment[] = []; | 87 | let dates: Moment[] = []; |
88 | return { | 88 | return { |
89 | - showTime: true, | 89 | + showTime: { |
90 | + defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('23:59:59', 'HH:mm:ss')], | ||
91 | + }, | ||
90 | onCalendarChange(value: Moment[]) { | 92 | onCalendarChange(value: Moment[]) { |
91 | dates = value; | 93 | dates = value; |
92 | }, | 94 | }, |