element-plus
Version:
A Component Library for Vue 3
75 lines (74 loc) • 2.63 kB
TypeScript
declare var __VLS_1: {
date: string;
}, __VLS_40: {
data: {
isSelected: boolean;
type: string;
day: string;
date: Date;
};
}, __VLS_50: {
data: {
isSelected: boolean;
type: string;
day: string;
date: Date;
};
};
type __VLS_Slots = {} & {
header?: (props: typeof __VLS_1) => any;
} & {
'date-cell'?: (props: typeof __VLS_40) => any;
} & {
'date-cell'?: (props: typeof __VLS_50) => any;
};
declare const __VLS_base: import("vue").DefineComponent<{
readonly modelValue: {
readonly type: import("vue").PropType<Date>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly range: {
readonly type: import("vue").PropType<[Date, Date]>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
}, {
/** @description currently selected date */
selectedDay: import("vue").WritableComputedRef<import("dayjs").Dayjs | undefined>;
/** @description select a specific date */
pickDay: (day: import("dayjs").Dayjs) => void;
/** @description select date */
selectDate: (type: import("./calendar").CalendarDateType) => void;
/** @description Calculate the validate date range according to the start and end dates */
calculateValidatedDateRange: (startDayjs: import("dayjs").Dayjs, endDayjs: import("dayjs").Dayjs) => [import("dayjs").Dayjs, import("dayjs").Dayjs][];
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
"update:modelValue": (value: Date) => void;
input: (value: Date) => void;
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
readonly modelValue: {
readonly type: import("vue").PropType<Date>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly range: {
readonly type: import("vue").PropType<[Date, Date]>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
}>> & {
"onUpdate:modelValue"?: ((value: Date) => any) | undefined;
onInput?: ((value: Date) => any) | undefined;
}, {}, {}>;
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};