tabs.d.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { SuperComponent } from '../common/src/index';
  2. export default class Tabs extends SuperComponent {
  3. behaviors: string[];
  4. externalClasses: string[];
  5. relations: {
  6. './tab-panel': {
  7. type: "descendant";
  8. linked(target: any): void;
  9. unlinked(): void;
  10. };
  11. };
  12. properties: import("./type").TdTabsProps;
  13. controlledProps: {
  14. key: string;
  15. event: string;
  16. }[];
  17. observers: {
  18. value(name: any): void;
  19. animation(v: any): void;
  20. };
  21. data: {
  22. prefix: string;
  23. classPrefix: string;
  24. tabs: any[];
  25. currentIndex: number;
  26. trackStyle: string;
  27. isScrollX: boolean;
  28. isScrollY: boolean;
  29. direction: string;
  30. animate: {
  31. duration: number;
  32. };
  33. };
  34. created(): void;
  35. attached(): void;
  36. updateTabs(): void;
  37. setCurrentIndexByName(name: any): void;
  38. setCurrentIndex(index: number): void;
  39. getCurrentName(): any;
  40. setTrack(color?: string): void;
  41. onTabTap(event: any): void;
  42. onTouchStart(event: any): void;
  43. onTouchMove(event: any): void;
  44. onTouchEnd(): void;
  45. changeIndex(index: any): void;
  46. getAvailableTabIndex(deltaX: number): number;
  47. }