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 | 2 | import { getPacketIntervalByRange, getPacketIntervalByValue, intervalOption } from './helper'; |
3 | 3 | import { FormSchema } from '/@/components/Form'; |
4 | 4 | import { ColEx } from '/@/components/Form/src/types'; |
... | ... | @@ -86,7 +86,9 @@ export const defaultSchemas: FormSchema[] = [ |
86 | 86 | const { setFieldsValue } = formActionType; |
87 | 87 | let dates: Moment[] = []; |
88 | 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 | 92 | onCalendarChange(value: Moment[]) { |
91 | 93 | dates = value; |
92 | 94 | }, | ... | ... |