element-plus
Version:
A Component Library for Vue 3
14 lines (13 loc) • 671 B
TypeScript
import type { Dayjs } from 'dayjs';
import type { GetDisabledHours, GetDisabledMinutes, GetDisabledSeconds } from '../common/props';
type UseTimePanelProps = {
getAvailableHours: GetDisabledHours;
getAvailableMinutes: GetDisabledMinutes;
getAvailableSeconds: GetDisabledSeconds;
};
export declare const useTimePanel: ({ getAvailableHours, getAvailableMinutes, getAvailableSeconds, }: UseTimePanelProps) => {
timePickerOptions: Record<string, (...args: any[]) => void>;
getAvailableTime: (date: Dayjs, role: string, first: boolean, compareDate?: Dayjs) => Dayjs;
onSetOption: ([key, val]: [string, (...args: any[]) => void]) => void;
};
export {};