props.ts 712 B

12345678910111213141516171819202122232425262728293031
  1. import type { ClCalendarDateConfig, ClCalendarMode } from "../../types";
  2. export type ClCalendarPassThrough = {
  3. className?: string;
  4. };
  5. export type ClCalendarProps = {
  6. className?: string;
  7. pt?: ClCalendarPassThrough;
  8. modelValue?: string | any;
  9. date?: string[];
  10. mode?: ClCalendarMode;
  11. dateConfig?: ClCalendarDateConfig[];
  12. start?: string;
  13. end?: string;
  14. year?: number;
  15. month?: number;
  16. showOtherMonth?: boolean;
  17. showHeader?: boolean;
  18. showWeeks?: boolean;
  19. cellHeight?: number;
  20. cellGap?: number;
  21. color?: string;
  22. textColor?: string;
  23. textOtherMonthColor?: string;
  24. textDisabledColor?: string;
  25. textTodayColor?: string;
  26. textSelectedColor?: string;
  27. bgSelectedColor?: string;
  28. bgRangeColor?: string;
  29. };