tabs.d.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /// <reference types="miniprogram-api-typings" />
  2. import { SuperComponent, RelationsOptions } from '../common/src/index';
  3. export default class Tabs extends SuperComponent {
  4. behaviors: string[];
  5. externalClasses: string[];
  6. relations: RelationsOptions;
  7. properties: import("./type").TdTabsProps;
  8. controlledProps: {
  9. key: string;
  10. event: string;
  11. }[];
  12. observers: {
  13. value(name: any): void;
  14. animation(v: any): void;
  15. placement(): void;
  16. };
  17. data: {
  18. prefix: string;
  19. classPrefix: string;
  20. tabs: any[];
  21. currentIndex: number;
  22. trackStyle: string;
  23. isScrollX: boolean;
  24. isScrollY: boolean;
  25. direction: string;
  26. animate: {
  27. duration: number;
  28. };
  29. offset: number;
  30. };
  31. created(): void;
  32. attached(): void;
  33. methods: {
  34. adjustPlacement(): void;
  35. };
  36. updateTabs(cb: any): void;
  37. setCurrentIndexByName(name: any): void;
  38. setCurrentIndex(index: number): void;
  39. getCurrentName(): any;
  40. calcScrollOffset(containerWidth: number, targetLeft: number, targetWidth: number, offset: number, currentIndex: number): number;
  41. setTrack(): void;
  42. onTabTap(event: any): void;
  43. onTouchStart(event: any): void;
  44. onTouchMove(event: any): void;
  45. onTouchEnd(): void;
  46. onTouchScroll(event: WechatMiniprogram.CustomEvent): void;
  47. changeIndex(index: any): void;
  48. getAvailableTabIndex(deltaX: number): number;
  49. }