message.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /// <reference types="miniprogram-api-typings" />
  2. import { SuperComponent, ComponentsOptionsType } from '../common/src/index';
  3. import { MessageProps } from './message.interface';
  4. export default class Message extends SuperComponent {
  5. externalClasses: string[];
  6. options: ComponentsOptionsType;
  7. properties: MessageProps;
  8. data: {
  9. prefix: string;
  10. classPrefix: string;
  11. visible: boolean;
  12. loop: number;
  13. animation: any[];
  14. showAnimation: any[];
  15. iconName: string;
  16. wrapTop: number;
  17. };
  18. observers: {
  19. marquee(val: any): void;
  20. };
  21. closeTimeoutContext: number;
  22. nextAnimationContext: number;
  23. resetAnimation: WechatMiniprogram.Animation;
  24. showAnimation: WechatMiniprogram.AnimationExportResult;
  25. hideAnimation: WechatMiniprogram.AnimationExportResult;
  26. ready(): void;
  27. memoInitalData(): void;
  28. resetData(cb: () => void): void;
  29. detached(): void;
  30. setIcon(icon?: string | boolean): void;
  31. checkAnimation(): void;
  32. clearMessageAnimation(): void;
  33. show(): void;
  34. hide(): void;
  35. reset(): void;
  36. handleClose(): void;
  37. handleBtnClick(): void;
  38. }