mealcomes
Version:
MealComes 用于学习前端的组件库
56 lines (55 loc) • 1.83 kB
TypeScript
import { CalendarDateType } from './calendar';
import { default as dayjs, Dayjs } from 'dayjs';
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
header?(_: {
date: string;
}): any;
'date-cell'?(_: {
data: {
isSelected: boolean;
type: string;
day: string;
date: Date;
};
}): any;
};
refs: {};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
readonly modelValue: {
readonly type: DateConstructor;
};
readonly mini: {
readonly type: BooleanConstructor;
readonly default: false;
};
}>, {
selectedDay: import('vue').WritableComputedRef<dayjs.Dayjs | undefined, dayjs.Dayjs | undefined>;
pickDay: (day: Dayjs) => void;
selectDate: (type: CalendarDateType) => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (val: Date) => void;
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
readonly modelValue: {
readonly type: DateConstructor;
};
readonly mini: {
readonly type: BooleanConstructor;
readonly default: false;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((val: Date) => any) | undefined;
}>, {
readonly mini: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};