pull-down-refresh.d.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { SuperComponent } 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. properties: import("./type").TdPullDownRefreshProps;
  18. data: {
  19. prefix: string;
  20. classPrefix: string;
  21. barHeight: number;
  22. refreshStatus: number;
  23. loosing: boolean;
  24. enableToRefresh: boolean;
  25. scrollTop: number;
  26. };
  27. lifetimes: {
  28. attached(): void;
  29. detached(): void;
  30. };
  31. observers: {
  32. value(val: any): void;
  33. maxBarHeight(val: any): void;
  34. loadingBarHeight(val: any): void;
  35. };
  36. methods: {
  37. onScrollToBottom(): void;
  38. onScrollToTop(): void;
  39. onScroll(e: any): void;
  40. onTouchStart(e: WechatMiniprogram.Component.TrivialInstance): void;
  41. onTouchMove(e: WechatMiniprogram.Component.TrivialInstance): void;
  42. onTouchEnd(e: WechatMiniprogram.Component.TrivialInstance): void;
  43. toRpx(v: number | string): number;
  44. toPx(v: number): number;
  45. setRefreshBarHeight(barHeight: number): Promise<unknown>;
  46. close(): void;
  47. setScrollTop(scrollTop: number): void;
  48. scrollToTop(): void;
  49. };
  50. }