import type { CSSProperties } from 'react'; import type { Dayjs } from 'dayjs'; /** 与 PisellTimeNavigator 一致:dayjs 或可解析字符串 */ export declare type ReservationScheduleValue = Dayjs | string | null | undefined; /** * PisellReservationSchedule:营业日切换条(上一日 / 文案 / 下一日) */ export interface PisellReservationScheduleProps { /** * 当前选中日(受控),日历日语义,建议使用 startOf('day') 对齐 */ value?: ReservationScheduleValue; /** * 选中日变更 */ onChange?: (date: Dayjs) => void; /** * 非受控初始日 */ defaultValue?: ReservationScheduleValue; /** * 不可早于该日(含) */ minDate?: ReservationScheduleValue; /** * 不可晚于该日(含) */ maxDate?: ReservationScheduleValue; /** * 自定义类名 */ className?: string; /** * 根节点样式 */ style?: CSSProperties; /** * 为 true 时禁用上一日/下一日、日期点选(弹日历);用于「跟随当前时刻」等只读日期条 * @default false */ navigationLocked?: boolean; /** * `navigationLocked` 时的展示形态:`full` 保留左右箭头占位;`labelOnly` 仅展示中间日期文案(如场控页)。 * @default 'full' */ navigationLockedDisplay?: 'full' | 'labelOnly'; /** * 顶栏切换步长:`day` 按日;`week` 按周;`month` 按月(与 RecordBoard 日历视图联动)。 * @default 'day' */ navigationUnit?: 'day' | 'week' | 'month'; }