vue-carousel.d.ts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. interface VueCarouselItem {
  2. active: boolean;
  3. bottom: boolean;
  4. content: any;
  5. left: boolean;
  6. raw: any;
  7. right: boolean;
  8. sliding: boolean;
  9. toBottom: boolean;
  10. toLeft: boolean;
  11. toRight: boolean;
  12. toTop: boolean;
  13. top: boolean;
  14. }
  15. declare type VueCarouselList = VueCarouselItem[];
  16. declare const _default: import("vue").DefineComponent<{
  17. autoplay: {
  18. type: BooleanConstructor;
  19. default: boolean;
  20. };
  21. controls: {
  22. type: (BooleanConstructor | StringConstructor)[];
  23. default: string;
  24. };
  25. data: {
  26. type: ArrayConstructor;
  27. default: undefined;
  28. };
  29. direction: {
  30. type: StringConstructor;
  31. default: string;
  32. };
  33. duration: {
  34. type: NumberConstructor;
  35. default: number;
  36. };
  37. indicators: {
  38. type: (BooleanConstructor | StringConstructor)[];
  39. default: boolean;
  40. };
  41. indicatorTrigger: {
  42. type: StringConstructor;
  43. default: string;
  44. };
  45. indicatorType: {
  46. type: StringConstructor;
  47. default: string;
  48. };
  49. interval: {
  50. type: NumberConstructor;
  51. default: number;
  52. };
  53. pauseOnEnter: {
  54. type: BooleanConstructor;
  55. default: boolean;
  56. };
  57. slideOnSwipe: {
  58. type: BooleanConstructor;
  59. default: boolean;
  60. };
  61. tag: {
  62. type: StringConstructor;
  63. default: string;
  64. };
  65. }, unknown, {
  66. endX: number;
  67. endY: number;
  68. index: number;
  69. list: VueCarouselList;
  70. onVisibilityChange: () => void;
  71. playing: boolean;
  72. sliding: boolean;
  73. startX: number;
  74. startY: number;
  75. timeout: number;
  76. }, {}, {
  77. init(): void;
  78. play(): void;
  79. cycle(): void;
  80. pause(): void;
  81. stop(): void;
  82. prev(done?: (() => void) | undefined): void;
  83. next(done?: (() => void) | undefined): void;
  84. slide(index: number, reverse?: boolean, done?: () => void): void;
  85. slideTo(index: number, done?: (() => void) | undefined): void;
  86. slideStart(event: PointerEvent | TouchEvent | MouseEvent): void;
  87. slideMove(event: PointerEvent | TouchEvent | MouseEvent): void;
  88. slideEnd(): void;
  89. }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("slide" | "slid")[], "slide" | "slid", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  90. autoplay: {
  91. type: BooleanConstructor;
  92. default: boolean;
  93. };
  94. controls: {
  95. type: (BooleanConstructor | StringConstructor)[];
  96. default: string;
  97. };
  98. data: {
  99. type: ArrayConstructor;
  100. default: undefined;
  101. };
  102. direction: {
  103. type: StringConstructor;
  104. default: string;
  105. };
  106. duration: {
  107. type: NumberConstructor;
  108. default: number;
  109. };
  110. indicators: {
  111. type: (BooleanConstructor | StringConstructor)[];
  112. default: boolean;
  113. };
  114. indicatorTrigger: {
  115. type: StringConstructor;
  116. default: string;
  117. };
  118. indicatorType: {
  119. type: StringConstructor;
  120. default: string;
  121. };
  122. interval: {
  123. type: NumberConstructor;
  124. default: number;
  125. };
  126. pauseOnEnter: {
  127. type: BooleanConstructor;
  128. default: boolean;
  129. };
  130. slideOnSwipe: {
  131. type: BooleanConstructor;
  132. default: boolean;
  133. };
  134. tag: {
  135. type: StringConstructor;
  136. default: string;
  137. };
  138. }>> & {
  139. onSlide?: ((...args: any[]) => any) | undefined;
  140. onSlid?: ((...args: any[]) => any) | undefined;
  141. }, {
  142. data: unknown[];
  143. autoplay: boolean;
  144. controls: string | boolean;
  145. direction: string;
  146. duration: number;
  147. indicators: string | boolean;
  148. indicatorTrigger: string;
  149. indicatorType: string;
  150. interval: number;
  151. pauseOnEnter: boolean;
  152. slideOnSwipe: boolean;
  153. tag: string;
  154. }>;
  155. export default _default;