calendar.vue.d.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. declare var __VLS_1: {
  2. date: string;
  3. }, __VLS_47: {
  4. data: {
  5. isSelected: boolean;
  6. type: string;
  7. day: string;
  8. date: Date;
  9. };
  10. }, __VLS_57: {
  11. data: {
  12. isSelected: boolean;
  13. type: string;
  14. day: string;
  15. date: Date;
  16. };
  17. };
  18. type __VLS_Slots = {} & {
  19. header?: (props: typeof __VLS_1) => any;
  20. } & {
  21. 'date-cell'?: (props: typeof __VLS_47) => any;
  22. } & {
  23. 'date-cell'?: (props: typeof __VLS_57) => any;
  24. };
  25. declare const __VLS_base: import("vue").DefineComponent<{
  26. readonly modelValue: {
  27. readonly type: import("vue").PropType<Date>;
  28. readonly required: false;
  29. readonly validator: ((val: unknown) => boolean) | undefined;
  30. __epPropKey: true;
  31. };
  32. readonly range: {
  33. readonly type: import("vue").PropType<[Date, Date]>;
  34. readonly required: false;
  35. readonly validator: ((val: unknown) => boolean) | undefined;
  36. __epPropKey: true;
  37. };
  38. readonly controllerType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "select", unknown, "button", boolean>;
  39. readonly formatter: {
  40. readonly type: import("vue").PropType<(value: number, type: "year" | "month") => string | number>;
  41. readonly required: false;
  42. readonly validator: ((val: unknown) => boolean) | undefined;
  43. __epPropKey: true;
  44. };
  45. }, {
  46. /** @description currently selected date */
  47. selectedDay: import("vue").WritableComputedRef<import("dayjs").Dayjs | undefined>;
  48. /** @description select a specific date */
  49. pickDay: (day: import("dayjs").Dayjs) => void;
  50. /** @description select date */
  51. selectDate: (type: import("./calendar").CalendarDateType) => void;
  52. /** @description Calculate the validate date range according to the start and end dates */
  53. calculateValidatedDateRange: (startDayjs: import("dayjs").Dayjs, endDayjs: import("dayjs").Dayjs) => [import("dayjs").Dayjs, import("dayjs").Dayjs][];
  54. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
  55. "update:modelValue": (value: Date) => void;
  56. input: (value: Date) => void;
  57. }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
  58. readonly modelValue: {
  59. readonly type: import("vue").PropType<Date>;
  60. readonly required: false;
  61. readonly validator: ((val: unknown) => boolean) | undefined;
  62. __epPropKey: true;
  63. };
  64. readonly range: {
  65. readonly type: import("vue").PropType<[Date, Date]>;
  66. readonly required: false;
  67. readonly validator: ((val: unknown) => boolean) | undefined;
  68. __epPropKey: true;
  69. };
  70. readonly controllerType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "select", unknown, "button", boolean>;
  71. readonly formatter: {
  72. readonly type: import("vue").PropType<(value: number, type: "year" | "month") => string | number>;
  73. readonly required: false;
  74. readonly validator: ((val: unknown) => boolean) | undefined;
  75. __epPropKey: true;
  76. };
  77. }>> & {
  78. "onUpdate:modelValue"?: ((value: Date) => any) | undefined;
  79. onInput?: ((value: Date) => any) | undefined;
  80. }, {
  81. readonly controllerType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "button" | "select", unknown>;
  82. }, {}>;
  83. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  84. declare const _default: typeof __VLS_export;
  85. export default _default;
  86. type __VLS_WithSlots<T, S> = T & {
  87. new (): {
  88. $slots: S;
  89. };
  90. };