0b7f6fa17549aeb2560b06c0ddec4c511891db2fdac567f2cd0e903c09ec2d5a30ac4eb5557f2d9f571a7b9a4b091c6d7d972cabb711b250821556e6f609ab 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. declare function __VLS_template(): {
  2. header?(_: {
  3. date: string;
  4. }): any;
  5. "date-cell"?(_: {
  6. data: {
  7. isSelected: boolean;
  8. type: string;
  9. day: string;
  10. date: Date;
  11. };
  12. }): any;
  13. "date-cell"?(_: {
  14. data: {
  15. isSelected: boolean;
  16. type: string;
  17. day: string;
  18. date: Date;
  19. };
  20. }): any;
  21. };
  22. declare const __VLS_component: import("vue").DefineComponent<{
  23. readonly modelValue: {
  24. readonly type: import("vue").PropType<Date>;
  25. readonly required: false;
  26. readonly validator: ((val: unknown) => boolean) | undefined;
  27. __epPropKey: true;
  28. };
  29. readonly range: {
  30. readonly type: import("vue").PropType<[Date, Date]>;
  31. readonly required: false;
  32. readonly validator: ((val: unknown) => boolean) | undefined;
  33. __epPropKey: true;
  34. };
  35. }, {
  36. /** @description currently selected date */
  37. selectedDay: import("vue").WritableComputedRef<import("dayjs").Dayjs | undefined>;
  38. /** @description select a specific date */
  39. pickDay: (day: import("dayjs").Dayjs) => void;
  40. /** @description select date */
  41. selectDate: (type: import("./calendar").CalendarDateType) => void;
  42. /** @description Calculate the validate date range according to the start and end dates */
  43. calculateValidatedDateRange: (startDayjs: import("dayjs").Dayjs, endDayjs: import("dayjs").Dayjs) => [import("dayjs").Dayjs, import("dayjs").Dayjs][];
  44. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
  45. "update:modelValue": (value: Date) => void;
  46. input: (value: Date) => void;
  47. }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  48. readonly modelValue: {
  49. readonly type: import("vue").PropType<Date>;
  50. readonly required: false;
  51. readonly validator: ((val: unknown) => boolean) | undefined;
  52. __epPropKey: true;
  53. };
  54. readonly range: {
  55. readonly type: import("vue").PropType<[Date, Date]>;
  56. readonly required: false;
  57. readonly validator: ((val: unknown) => boolean) | undefined;
  58. __epPropKey: true;
  59. };
  60. }>> & {
  61. "onUpdate:modelValue"?: ((value: Date) => any) | undefined;
  62. onInput?: ((value: Date) => any) | undefined;
  63. }, {}>;
  64. declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
  65. export default _default;
  66. type __VLS_WithTemplateSlots<T, S> = T & {
  67. new (): {
  68. $slots: S;
  69. };
  70. };