UNPKG

v-datepicker-lite

Version:

A lightweight Vue 3 date picker with date, time, date-time, week, and month modes

14 lines (13 loc) 652 B
export declare function useTime(selectedTime: Date | null, timeFormat: '12h' | '24h', minuteInterval: number, emit: any): { hours: import('vue').Ref<number, number>; minutes: import('vue').Ref<number, number>; timeOptions: import('vue').Ref<string[], string[]>; is12HourFormat: import('vue').ComputedRef<boolean>; initializeTime: () => void; updateTime: (newSelectedTime: Date | null) => void; generateTimeOptions: () => void; getCurrentTimeString: () => string; selectTime: (timeString: string) => void; scrollToSelected: (timeListRef: HTMLDivElement | null) => void; onTimeUpdate: (time: Date) => void; };