hongluan-ui
Version:
Hongluan Component Library for Vue 3
101 lines (100 loc) • 4.29 kB
TypeScript
import type { CalendarDateCell } from './date-table';
declare const _default: import("vue").DefineComponent<{
readonly selectedDay: {
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
readonly required: false;
readonly validator: (val: unknown) => boolean;
__epPropKey: true;
};
readonly range: {
readonly type: import("vue").PropType<[import("dayjs").Dayjs, import("dayjs").Dayjs]>;
readonly required: false;
readonly validator: (val: unknown) => boolean;
__epPropKey: true;
};
readonly date: {
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
readonly required: true;
readonly validator: (val: unknown) => boolean;
__epPropKey: true;
};
readonly hideHeader: {
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
readonly required: false;
readonly validator: (val: unknown) => boolean;
__epPropKey: true;
};
}, {
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
readonly selectedDay: {
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
readonly required: false;
readonly validator: (val: unknown) => boolean;
__epPropKey: true;
};
readonly range: {
readonly type: import("vue").PropType<[import("dayjs").Dayjs, import("dayjs").Dayjs]>;
readonly required: false;
readonly validator: (val: unknown) => boolean;
__epPropKey: true;
};
readonly date: {
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
readonly required: true;
readonly validator: (val: unknown) => boolean;
__epPropKey: true;
};
readonly hideHeader: {
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
readonly required: false;
readonly validator: (val: unknown) => boolean;
__epPropKey: true;
};
}>> & {
onPick?: (value: import("dayjs").Dayjs) => any;
}>>;
emit: (event: "pick", value: import("dayjs").Dayjs) => void;
isInRange: import("vue").ComputedRef<boolean>;
now: import("dayjs").Dayjs;
rows: import("vue").ComputedRef<CalendarDateCell[][]>;
weekDays: import("vue").ComputedRef<string[]>;
getFormattedDate: (day: number, type: import("./date-table").CalendarDateCellType) => import("dayjs").Dayjs;
handlePickDay: ({ text, type }: CalendarDateCell) => void;
getSlotData: ({ text, type }: CalendarDateCell) => {
isSelected: boolean;
type: string;
day: string;
date: Date;
};
getCellClass: ({ text, type }: CalendarDateCell) => string[];
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
pick: (value: import("dayjs").Dayjs) => boolean;
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
readonly selectedDay: {
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
readonly required: false;
readonly validator: (val: unknown) => boolean;
__epPropKey: true;
};
readonly range: {
readonly type: import("vue").PropType<[import("dayjs").Dayjs, import("dayjs").Dayjs]>;
readonly required: false;
readonly validator: (val: unknown) => boolean;
__epPropKey: true;
};
readonly date: {
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
readonly required: true;
readonly validator: (val: unknown) => boolean;
__epPropKey: true;
};
readonly hideHeader: {
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
readonly required: false;
readonly validator: (val: unknown) => boolean;
__epPropKey: true;
};
}>> & {
onPick?: (value: import("dayjs").Dayjs) => any;
}, {}>;
export default _default;