calendar.d.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. allowSameDay(v: any): void;
  37. confirmBtn(v: any): void;
  38. 'firstDayOfWeek,minDate,maxDate'(firstDayOfWeek: any, minDate: any, maxDate: any): void;
  39. value(v: any): void;
  40. visible(v: any): void;
  41. format(v: any): void;
  42. };
  43. methods: {
  44. initialValue(): void;
  45. scrollIntoView(): void;
  46. getCurrentYearAndMonth(v: Date): {
  47. year: number;
  48. month: number;
  49. };
  50. updateActionButton(value: Date): void;
  51. updateCurrentMonth(newValue?: any): void;
  52. calcCurrentMonth(newValue?: any): void;
  53. calcMonths(): void;
  54. close(trigger: any): void;
  55. onVisibleChange(): void;
  56. handleClose(): void;
  57. handleSelect(e: any): void;
  58. onTplButtonTap(): void;
  59. toTime(val: any): any;
  60. onScroll(e: any): void;
  61. getCurrentDate(): any;
  62. handleSwitchModeChange(e: any): void;
  63. };
  64. }