import { Dayjs } from 'dayjs'; export interface MultiDayTimeSelectValue { startDate: Dayjs; endDate: Dayjs; duration: number; } export interface MultiDayTimeSelectProps { /** 最大天数,默认30天 */ maxDays?: number; /** 默认开始时间 */ defaultStartDate?: Dayjs; /** 开始时间和结束时间是否分离,false使用RangePicker,true使用两个独立的DatePicker */ separateStartEnd?: boolean; /** 受控值 */ value?: MultiDayTimeSelectValue; /** 值变化回调 */ onChange?: (value: MultiDayTimeSelectValue) => void; /** 语言环境 */ locale?: string; /** 是否禁用 */ disabled?: boolean; /** 开始日期标签 */ startDateLabel?: string; /** 结束日期标签 */ endDateLabel?: string; /** 时长标签 */ durationLabel?: string; }