comic-plus
Version:
<p align="center"> <img width="200px" src="./logo.png"/> </p>
98 lines (96 loc) • 3.19 kB
TypeScript
declare function prevMonth(): void;
declare function nextMonth(): void;
declare function prevYear(): void;
declare function nextYear(): void;
declare function today(): void;
declare const dateTypeFn: {
readonly 'prev-year': typeof prevYear;
readonly 'prev-month': typeof prevMonth;
readonly today: typeof today;
readonly 'next-month': typeof nextMonth;
readonly 'next-year': typeof nextYear;
};
type DateType = keyof typeof dateTypeFn;
declare function selectDate(value: DateType | Date): void;
declare function __VLS_template(): {
header?(_: {
data: {
year: any;
month: any;
};
}): any;
day?(_: {
data: {
isSelected: boolean;
day: number;
type: string;
date: string;
};
}): any;
"schedule-card"?(_: {
data: Record<string, any>;
}): any;
};
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
readonly modelValue: DateConstructor;
readonly size: import('vue').PropType<import('../../../utils').ComicSize>;
readonly showWeek: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly showHeader: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly showDay: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly openSchedule: BooleanConstructor;
readonly schedules: {
readonly type: import('vue').PropType<import('./type').Schedules>;
};
readonly cardWidth: NumberConstructor;
readonly format: StringConstructor;
}>, {
selectDate: typeof selectDate;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
change: (date: Date) => void;
"update:modelValue": (date: Date) => void;
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
readonly modelValue: DateConstructor;
readonly size: import('vue').PropType<import('../../../utils').ComicSize>;
readonly showWeek: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly showHeader: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly showDay: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly openSchedule: BooleanConstructor;
readonly schedules: {
readonly type: import('vue').PropType<import('./type').Schedules>;
};
readonly cardWidth: NumberConstructor;
readonly format: StringConstructor;
}>> & Readonly<{
onChange?: (date: Date) => any;
"onUpdate:modelValue"?: (date: Date) => any;
}>, {
readonly showWeek: boolean;
readonly showHeader: boolean;
readonly showDay: boolean;
readonly openSchedule: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};