calendar.d.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. calcCurrentMonth(newValue?: any): void;
  51. calcMonths(): void;
  52. close(trigger: any): void;
  53. onVisibleChange(): void;
  54. handleClose(): void;
  55. handleSelect(e: any): void;
  56. onTplButtonTap(): void;
  57. toTime(val: any): any;
  58. onScroll(e: any): void;
  59. getCurrentDate(): any;
  60. handleSwitchModeChange(e: any): void;
  61. };
  62. }