import { Dayjs } from 'dayjs'; import { IInitialStateParams } from '@mjcloud/redux'; import { PanelMode } from 'rc-picker/lib/interface'; import { IDictionary, IControlSetConfig } from '@mjcloud/types'; import { IValueState } from '@mjcloud/instance/dist/valueInstanceBase'; import { ControlDisabledModeEnum, ControlModifyModeEnum } from '@mjcloud/types'; export declare type DateFormatType = 'yyyy' | 'yyyy-MM' | 'yyyy-MM-dd' | 'yyyy-MM-dd HH:mm' | 'yyyy-MM-dd HH:mm:ss' | 'HH:mm' | 'HH:mm:ss'; export interface IDateTimeRangeInitialStateParams extends IInitialStateParams { } export interface IDateTimeRangeConfig extends IControlSetConfig { startFieldName: string; endFieldName: string; min?: string; max?: string; format: DateFormatType; businessType?: string; startPlaceholder: string; endPlaceholder: string; /** * 当前子项在哪些模式下为禁用状态,默认为 `ControlDisabledModeEnum.none` * (none.不禁用,all.禁用) */ disabledMode?: ControlDisabledModeEnum; title: string; autoFocus: boolean; needFast: boolean; modifyMode?: ControlModifyModeEnum; } export interface IDateTimeRangeState extends IValueState> { startFieldName: string; endFieldName: string; min: Dayjs | undefined; max: Dayjs | undefined; mode: PanelMode; picker?: any; format: string; showTime: boolean; needFast: boolean; checkedFast?: string; businessType: string | undefined; startPlaceholder: string; endPlaceholder: string; }