@opensig/opendesign
Version:
26 lines (25 loc) • 1.21 kB
TypeScript
import { default as dayjs, Dayjs } from 'dayjs';
import { DisabledMonthFn } from '../types.ts';
type __VLS_Props = {
year: number;
selectedDate: Dayjs | null;
disabledMonth?: DisabledMonthFn;
minDate?: Dayjs | null;
maxDate?: Dayjs | null;
/** 已确认的范围起始月份(排序后) */
rangeStart?: Dayjs | null;
/** 已确认的范围结束月份(排序后) */
rangeEnd?: Dayjs | null;
/** 第一次点击的锚点月份(选择进行中时传入,顺序无意义) */
anchorMonth?: Dayjs | null;
/** 悬停预览月份(selecting='end' 时传入,用于实时预览) */
hoverMonth?: Dayjs | null;
};
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
select: (month: number) => any;
hover: (date: dayjs.Dayjs) => any;
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
onSelect?: ((month: number) => any) | undefined;
onHover?: ((date: dayjs.Dayjs) => any) | undefined;
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
export default _default;