UNPKG

comic-plus

Version:

<p align="center"> <img width="200px" src="./logo.png"/> </p>

18 lines (16 loc) 600 B
import { InjectionKey, Ref } from 'vue'; import { DatePickerProps } from './main.props'; export type ValueType = Date | string | number | Date[] | string[] | number[]; export type ValueAlone = Date | string | number; export type ShortcutValue = ValueAlone | [ValueAlone, ValueAlone]; export type Shortcut = { label: string; value: ShortcutValue | (() => ShortcutValue); }; type DatePickerProvide = { props: DatePickerProps; show: Ref<boolean>; confirm: (datenum: number | number[]) => void; }; export declare const DATEPICKER_PROVIDE: InjectionKey<DatePickerProvide>; export {};