calendar.d.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /// <reference types="miniprogram-api-typings" />
  2. import { SuperComponent } from '../common/src/index';
  3. import { TdCalendarProps } from './type';
  4. export interface CalendarProps extends TdCalendarProps {
  5. }
  6. export default class Calendar extends SuperComponent {
  7. behaviors: string[];
  8. externalClasses: string[];
  9. options: WechatMiniprogram.Component.ComponentOptions;
  10. properties: TdCalendarProps;
  11. data: {
  12. prefix: string;
  13. classPrefix: string;
  14. months: any[];
  15. scrollIntoView: string;
  16. innerConfirmBtn: {};
  17. realLocalText: {};
  18. currentMonth: {};
  19. actionButtons: {
  20. preYearBtnDisable: boolean;
  21. prevMonthBtnDisable: boolean;
  22. nextMonthBtnDisable: boolean;
  23. nextYearBtnDisable: boolean;
  24. };
  25. };
  26. controlledProps: {
  27. key: string;
  28. event: string;
  29. }[];
  30. lifetimes: {
  31. created(): void;
  32. ready(): void;
  33. };
  34. observers: {
  35. type(v: any): void;
  36. confirmBtn(v: any): void;
  37. 'firstDayOfWeek,minDate,maxDate'(firstDayOfWeek: any, minDate: any, maxDate: any): void;
  38. value(v: any): void;
  39. visible(v: any): void;
  40. format(v: any): void;
  41. };
  42. methods: {
  43. initialValue(): void;
  44. scrollIntoView(): void;
  45. getCurrentYearAndMonth(v: Date): {
  46. year: number;
  47. month: number;
  48. };
  49. updateActionButton(value: Date): void;
  50. updateCurrentMonth(): void;
  51. calcCurrentMonth(newValue?: any): void;
  52. calcMonths(): void;
  53. close(trigger: any): void;
  54. onVisibleChange(): void;
  55. handleClose(): void;
  56. handleSelect(e: any): void;
  57. onTplButtonTap(): void;
  58. toTime(val: any): any;
  59. onScroll(e: any): void;
  60. getCurrentDate(): any;
  61. handleSwitchModeChange(e: any): void;
  62. };
  63. }