@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
132 lines (131 loc) • 4.2 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
import { ConfigurableProps } from '@vexip-ui/config';
import { Dateable } from '@vexip-ui/utils';
import { CalendarPanelSlots, CalendarSlots } from './symbol';
export declare const calendarPanelProps: {
inherit: PropType<boolean>;
locale: PropType<Partial<{
year: string;
month: string;
month1: string;
month2: string;
month3: string;
month4: string;
month5: string;
month6: string;
month7: string;
month8: string;
month9: string;
month10: string;
month11: string;
month12: string;
week1: string;
week2: string;
week3: string;
week4: string;
week5: string;
week6: string;
week7: string;
ariaLabel: {
year: string;
month: string;
month1: string;
month2: string;
month3: string;
month4: string;
month5: string;
month6: string;
month7: string;
month8: string;
month9: string;
month10: string;
month11: string;
month12: string;
week1: string;
week2: string;
week3: string;
week4: string;
week5: string;
week6: string;
week7: string;
};
}>>;
value: PropType<string | number | Date | Dateable[]>;
year: PropType<number>;
month: PropType<number>;
weekDays: PropType<string[]>;
weekStart: PropType<number>;
today: PropType<string | number | Date>;
disabledDate: PropType<(data: Date) => boolean>;
valueType: PropType<"start" | "end">;
min: PropType<string | number | Date>;
max: PropType<string | number | Date>;
range: PropType<boolean>;
slots: PropType<CalendarPanelSlots>;
onSelect: PropType<((date: Date) => void) | ((date: Date) => void)[]>;
onHover: PropType<((date: Date | null) => void) | ((date: Date | null) => void)[]>;
};
export type CalendarPanelProps = ExtractPropTypes<typeof calendarPanelProps>;
export type CalendarPanelCProps = ConfigurableProps<CalendarPanelProps>;
export declare const calendarProps: {
inherit: PropType<boolean>;
locale: PropType<Partial<{
year: string;
month: string;
month1: string;
month2: string;
month3: string;
month4: string;
month5: string;
month6: string;
month7: string;
month8: string;
month9: string;
month10: string;
month11: string;
month12: string;
week1: string;
week2: string;
week3: string;
week4: string;
week5: string;
week6: string;
week7: string;
ariaLabel: {
year: string;
month: string;
month1: string;
month2: string;
month3: string;
month4: string;
month5: string;
month6: string;
month7: string;
month8: string;
month9: string;
month10: string;
month11: string;
month12: string;
week1: string;
week2: string;
week3: string;
week4: string;
week5: string;
week6: string;
week7: string;
};
}>>;
value: PropType<string | number | Date | Dateable[]>;
year: PropType<number>;
month: PropType<number>;
weekDays: PropType<string[]>;
weekStart: PropType<number>;
today: PropType<string | number | Date>;
disabledDate: PropType<(data: Date) => boolean>;
slots: PropType<CalendarSlots>;
onSelect: PropType<((date: Date) => void) | ((date: Date) => void)[]>;
onYearChange: PropType<((year: number, month: number) => void) | ((year: number, month: number) => void)[]>;
onMonthChange: PropType<((year: number, month: number) => void) | ((year: number, month: number) => void)[]>;
};
export type CalendarProps = ExtractPropTypes<typeof calendarProps>;
export type CalendarCProps = ConfigurableProps<CalendarProps>;