mealcomes
Version:
MealComes 用于学习前端的组件库
89 lines (88 loc) • 3.55 kB
TypeScript
export declare const McCalendar: import('../../utils').SFCWithInstall<{
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
readonly modelValue: {
readonly type: DateConstructor;
};
readonly mini: {
readonly type: BooleanConstructor;
readonly default: false;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((val: Date) => any) | undefined;
}>, {
selectedDay: import('vue').WritableComputedRef<import('dayjs').Dayjs | undefined, import('dayjs').Dayjs | undefined>;
pickDay: (day: import('dayjs').Dayjs) => void;
selectDate: (type: import('../../mealcomes').CalendarDateType) => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (val: Date) => void;
}, import('vue').PublicProps, {
readonly mini: boolean;
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import('vue').ExtractPropTypes<{
readonly modelValue: {
readonly type: DateConstructor;
};
readonly mini: {
readonly type: BooleanConstructor;
readonly default: false;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((val: Date) => any) | undefined;
}>, {
selectedDay: import('vue').WritableComputedRef<import('dayjs').Dayjs | undefined, import('dayjs').Dayjs | undefined>;
pickDay: (day: import('dayjs').Dayjs) => void;
selectDate: (type: import('../../mealcomes').CalendarDateType) => void;
}, {}, {}, {}, {
readonly mini: boolean;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
readonly modelValue: {
readonly type: DateConstructor;
};
readonly mini: {
readonly type: BooleanConstructor;
readonly default: false;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((val: Date) => any) | undefined;
}>, {
selectedDay: import('vue').WritableComputedRef<import('dayjs').Dayjs | undefined, import('dayjs').Dayjs | undefined>;
pickDay: (day: import('dayjs').Dayjs) => void;
selectDate: (type: import('../../mealcomes').CalendarDateType) => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (val: Date) => void;
}, string, {
readonly mini: boolean;
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
$slots: {
header?(_: {
date: string;
}): any;
'date-cell'?(_: {
data: {
isSelected: boolean;
type: string;
day: string;
date: Date;
};
}): any;
};
})>;
export default McCalendar;
export type * from './src/calendar';
export * from './src/calendar';
export type CalendarInstance = InstanceType<typeof McCalendar>;
declare module 'vue' {
interface GlobalComponents {
McCalendar: typeof McCalendar;
}
}