sticky.d.ts 852 B

123456789101112131415161718192021222324252627282930
  1. import { SuperComponent } from '../common/src/index';
  2. import type { TdStickyProps } from './type';
  3. export interface StickyProps extends TdStickyProps {
  4. }
  5. export default class Sticky extends SuperComponent {
  6. externalClasses: string[];
  7. properties: TdStickyProps;
  8. behaviors: string[];
  9. observers: {
  10. 'offsetTop, disabled, container'(): void;
  11. };
  12. data: {
  13. prefix: string;
  14. containerStyle: string;
  15. contentStyle: string;
  16. classPrefix: string;
  17. };
  18. ready(): void;
  19. methods: {
  20. onScroll(event?: {
  21. scrollTop: number;
  22. }): void;
  23. setDataAfterDiff(data: {
  24. isFixed: boolean;
  25. height?: number;
  26. transform?: number;
  27. }): void;
  28. getContainerRect(): Promise<WechatMiniprogram.BoundingClientRectCallbackResult>;
  29. };
  30. }