indexes.d.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { RelationsOptions, SuperComponent } from '../common/src/index';
  2. export default class Indexes extends SuperComponent {
  3. externalClasses: string[];
  4. properties: import("./type").TdIndexesProps;
  5. controlledProps: {
  6. key: string;
  7. event: string;
  8. }[];
  9. data: {
  10. prefix: string;
  11. classPrefix: string;
  12. _height: number;
  13. _indexList: any[];
  14. scrollTop: number;
  15. activeAnchor: any;
  16. showTips: boolean;
  17. };
  18. relations: RelationsOptions;
  19. behaviors: string[];
  20. timer: any;
  21. groupTop: any[];
  22. sidebar: any;
  23. observers: {
  24. indexList(v: any): void;
  25. height(v: any): void;
  26. current(current: string | number): void;
  27. };
  28. lifetimes: {
  29. ready(): void;
  30. };
  31. methods: {
  32. setHeight(height: string | number): void;
  33. setIndexList(list: any): void;
  34. getAllRect(): void;
  35. getAnchorsRect(): Promise<any[]>;
  36. getSidebarRect(): void;
  37. toggleTips(flag: boolean): void;
  38. setAnchorByCurrent(current: string | number, source: 'init' | 'click' | 'touch' | 'update'): void;
  39. onClick(e: any): void;
  40. onTouchMove(e: any): void;
  41. onTouchCancel(): void;
  42. onTouchEnd(e: any): void;
  43. onAnchorTouch: (...args: any[]) => void;
  44. setAnchorOnScroll(scrollTop: number): void;
  45. onScroll({ scrollTop }: {
  46. scrollTop: any;
  47. }): void;
  48. };
  49. }