@tongziyang/uni-calendar-plugin
Version:
A comprehensive calendar plugin for uniapp with support for Gregorian and Lunar calendars, date selection, hotel booking, check-in functionality, and more.
77 lines (76 loc) • 2.68 kB
TypeScript
/// <reference types="shims-vue" />
import { PropType } from 'vue';
import { DateInfo } from '../types';
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
day: {
type: PropType<DateInfo>;
required: true;
};
showLunar: {
type: BooleanConstructor;
default: boolean;
};
showPrice: {
type: BooleanConstructor;
default: boolean;
};
disabledDate: {
type: PropType<(date: Date) => boolean>;
default: () => null;
};
highlightWeekend: {
type: BooleanConstructor;
default: boolean;
};
}>, {
dayClass: import("vue").ComputedRef<{
'uni-calendar__day--not-current-month': boolean;
'uni-calendar__day--today': boolean;
'uni-calendar__day--selected': boolean;
'uni-calendar__day--in-range': boolean | undefined;
'uni-calendar__day--range-start': boolean | undefined;
'uni-calendar__day--range-end': boolean | undefined;
'uni-calendar__day--weekend': boolean | undefined;
'uni-calendar__day--holiday': boolean | undefined;
'uni-calendar__day--rest-day': boolean | undefined;
'uni-calendar__day--work-day': boolean | undefined;
'uni-calendar__day--checked-in': boolean | undefined;
'uni-calendar__day--disabled': boolean;
'uni-calendar__day--lunar-first-day': boolean;
'uni-calendar__day--solar-term': boolean | "" | undefined;
}>;
handleClick: (event: MouseEvent, day: DateInfo) => void;
handleTouchStart: (event: TouchEvent | MouseEvent) => void;
handleTouchEnd: (event: TouchEvent | MouseEvent) => void;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
'day-click': (event: MouseEvent, day: DateInfo) => true;
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
day: {
type: PropType<DateInfo>;
required: true;
};
showLunar: {
type: BooleanConstructor;
default: boolean;
};
showPrice: {
type: BooleanConstructor;
default: boolean;
};
disabledDate: {
type: PropType<(date: Date) => boolean>;
default: () => null;
};
highlightWeekend: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{
"onDay-click"?: ((event: MouseEvent, day: DateInfo) => any) | undefined;
}>, {
showLunar: boolean;
showPrice: boolean;
disabledDate: (date: Date) => boolean;
highlightWeekend: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;