pull-down-refresh.d.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { SuperComponent, RelationsOptions } from '../common/src/index';
  2. export default class PullDownRefresh extends SuperComponent {
  3. pixelRatio: number;
  4. startPoint: {
  5. pageX: number;
  6. pageY: number;
  7. } | null;
  8. isPulling: boolean;
  9. maxBarHeight: number;
  10. loadingBarHeight: number;
  11. maxRefreshAnimateTimeFlag: number;
  12. closingAnimateTimeFlag: number;
  13. externalClasses: string[];
  14. options: {
  15. multipleSlots: boolean;
  16. };
  17. relations: RelationsOptions;
  18. properties: import("./type").TdPullDownRefreshProps;
  19. data: {
  20. prefix: string;
  21. classPrefix: string;
  22. barHeight: number;
  23. refreshStatus: number;
  24. loosing: boolean;
  25. enableToRefresh: boolean;
  26. scrollTop: number;
  27. };
  28. lifetimes: {
  29. attached(): void;
  30. detached(): void;
  31. };
  32. observers: {
  33. value(val: any): void;
  34. maxBarHeight(val: any): void;
  35. loadingBarHeight(val: any): void;
  36. };
  37. methods: {
  38. onScrollToBottom(): void;
  39. onScrollToTop(): void;
  40. onScroll(e: any): void;
  41. onTouchStart(e: WechatMiniprogram.Component.TrivialInstance): void;
  42. onTouchMove(e: WechatMiniprogram.Component.TrivialInstance): void;
  43. onTouchEnd(e: WechatMiniprogram.Component.TrivialInstance): void;
  44. toRpx(v: number | string): number;
  45. toPx(v: number): number;
  46. setRefreshBarHeight(barHeight: number): Promise<unknown>;
  47. close(): void;
  48. setScrollTop(scrollTop: number): void;
  49. scrollToTop(): void;
  50. };
  51. }