1 | import type {
|
2 | A11yOptions,
|
3 | AutoplayOptions,
|
4 | ControllerOptions,
|
5 | CoverflowEffectOptions,
|
6 | CubeEffectOptions,
|
7 | FadeEffectOptions,
|
8 | FlipEffectOptions,
|
9 | CreativeEffectOptions,
|
10 | CardsEffectOptions,
|
11 | HashNavigationOptions,
|
12 | HistoryOptions,
|
13 | KeyboardOptions,
|
14 | MousewheelOptions,
|
15 | NavigationOptions,
|
16 | PaginationOptions,
|
17 | ParallaxOptions,
|
18 | ScrollbarOptions,
|
19 | ThumbsOptions,
|
20 | VirtualOptions,
|
21 | ZoomOptions,
|
22 | FreeModeOptions,
|
23 | GridOptions,
|
24 | } from './types/index.d.ts';
|
25 | import { ComponentOptionsMixin, DefineComponent, PropType, Ref } from 'vue';
|
26 | import type { SwiperOptions, Swiper as SwiperClass } from './types/index.d.ts';
|
27 |
|
28 | declare const Swiper: DefineComponent<
|
29 | {
|
30 | tag: {
|
31 | type: StringConstructor;
|
32 | default: string;
|
33 | };
|
34 | wrapperTag: {
|
35 | type: StringConstructor;
|
36 | default: string;
|
37 | };
|
38 | modules: {
|
39 | type: ArrayConstructor;
|
40 | default: undefined;
|
41 | };
|
42 | init: {
|
43 | type: BooleanConstructor;
|
44 | default: undefined;
|
45 | };
|
46 | direction: {
|
47 | type: PropType<SwiperOptions['direction']>;
|
48 | default: SwiperOptions['direction'];
|
49 | };
|
50 | oneWayMovement: {
|
51 | type: PropType<SwiperOptions['oneWayMovement']>;
|
52 | default: SwiperOptions['oneWayMovement'];
|
53 | };
|
54 | touchEventsTarget: {
|
55 | type: PropType<SwiperOptions['touchEventsTarget']>;
|
56 | default: undefined;
|
57 | };
|
58 | initialSlide: {
|
59 | type: NumberConstructor;
|
60 | default: undefined;
|
61 | };
|
62 | speed: { type: NumberConstructor; default: undefined };
|
63 | cssMode: { type: BooleanConstructor; default: undefined };
|
64 | updateOnWindowResize: {
|
65 | type: BooleanConstructor;
|
66 | default: undefined;
|
67 | };
|
68 | resizeObserver: {
|
69 | type: BooleanConstructor;
|
70 | default: undefined;
|
71 | };
|
72 | nested: { type: BooleanConstructor; default: undefined };
|
73 | focusableElements: {
|
74 | type: StringConstructor;
|
75 | default: undefined;
|
76 | };
|
77 | width: { type: NumberConstructor; default: undefined };
|
78 | height: { type: NumberConstructor; default: undefined };
|
79 | preventInteractionOnTransition: {
|
80 | type: BooleanConstructor;
|
81 | default: undefined;
|
82 | };
|
83 | userAgent: { type: StringConstructor; default: undefined };
|
84 | url: { type: StringConstructor; default: undefined };
|
85 | edgeSwipeDetection: {
|
86 | type: BooleanConstructor | StringConstructor;
|
87 | default: undefined;
|
88 | };
|
89 | edgeSwipeThreshold: {
|
90 | type: NumberConstructor;
|
91 | default: undefined;
|
92 | };
|
93 | autoHeight: {
|
94 | type: BooleanConstructor;
|
95 | default: undefined;
|
96 | };
|
97 | setWrapperSize: {
|
98 | type: BooleanConstructor;
|
99 | default: undefined;
|
100 | };
|
101 | virtualTranslate: {
|
102 | type: BooleanConstructor;
|
103 | default: undefined;
|
104 | };
|
105 | effect: {
|
106 | type: PropType<SwiperOptions['effect']>;
|
107 | default: undefined;
|
108 | };
|
109 | breakpoints: {
|
110 | type: PropType<SwiperOptions['breakpoints']>;
|
111 | default: undefined;
|
112 | };
|
113 | spaceBetween: {
|
114 | type: PropType<SwiperOptions['spaceBetween']>;
|
115 | default: undefined;
|
116 | };
|
117 | slidesPerView: {
|
118 | type: PropType<SwiperOptions['slidesPerView']>;
|
119 | default: undefined;
|
120 | };
|
121 | maxBackfaceHiddenSlides: {
|
122 | type: NumberConstructor;
|
123 | default: undefined;
|
124 | };
|
125 | slidesPerGroup: {
|
126 | type: NumberConstructor;
|
127 | default: undefined;
|
128 | };
|
129 | slidesPerGroupSkip: {
|
130 | type: NumberConstructor;
|
131 | default: undefined;
|
132 | };
|
133 | slidesPerGroupAuto: {
|
134 | type: BooleanConstructor;
|
135 | default: undefined;
|
136 | };
|
137 | centeredSlides: {
|
138 | type: BooleanConstructor;
|
139 | default: undefined;
|
140 | };
|
141 | centeredSlidesBounds: {
|
142 | type: BooleanConstructor;
|
143 | default: undefined;
|
144 | };
|
145 | slidesOffsetBefore: {
|
146 | type: NumberConstructor;
|
147 | default: undefined;
|
148 | };
|
149 | slidesOffsetAfter: {
|
150 | type: NumberConstructor;
|
151 | default: undefined;
|
152 | };
|
153 | normalizeSlideIndex: {
|
154 | type: BooleanConstructor;
|
155 | default: undefined;
|
156 | };
|
157 | centerInsufficientSlides: {
|
158 | type: BooleanConstructor;
|
159 | default: undefined;
|
160 | };
|
161 | watchOverflow: {
|
162 | type: BooleanConstructor;
|
163 | default: undefined;
|
164 | };
|
165 | roundLengths: {
|
166 | type: BooleanConstructor;
|
167 | default: undefined;
|
168 | };
|
169 | touchRatio: {
|
170 | type: NumberConstructor;
|
171 | default: undefined;
|
172 | };
|
173 | touchAngle: {
|
174 | type: NumberConstructor;
|
175 | default: undefined;
|
176 | };
|
177 | simulateTouch: {
|
178 | type: BooleanConstructor;
|
179 | default: undefined;
|
180 | };
|
181 | shortSwipes: {
|
182 | type: BooleanConstructor;
|
183 | default: undefined;
|
184 | };
|
185 | longSwipes: {
|
186 | type: BooleanConstructor;
|
187 | default: undefined;
|
188 | };
|
189 | longSwipesRatio: {
|
190 | type: NumberConstructor;
|
191 | default: undefined;
|
192 | };
|
193 | longSwipesMs: {
|
194 | type: NumberConstructor;
|
195 | default: undefined;
|
196 | };
|
197 | followFinger: {
|
198 | type: BooleanConstructor;
|
199 | default: undefined;
|
200 | };
|
201 | allowTouchMove: {
|
202 | type: BooleanConstructor;
|
203 | default: undefined;
|
204 | };
|
205 | threshold: { type: NumberConstructor; default: undefined };
|
206 | touchMoveStopPropagation: {
|
207 | type: BooleanConstructor;
|
208 | default: undefined;
|
209 | };
|
210 | touchStartPreventDefault: {
|
211 | type: BooleanConstructor;
|
212 | default: undefined;
|
213 | };
|
214 | touchStartForcePreventDefault: {
|
215 | type: BooleanConstructor;
|
216 | default: undefined;
|
217 | };
|
218 | touchReleaseOnEdges: {
|
219 | type: BooleanConstructor;
|
220 | default: undefined;
|
221 | };
|
222 | uniqueNavElements: {
|
223 | type: BooleanConstructor;
|
224 | default: undefined;
|
225 | };
|
226 | resistance: {
|
227 | type: BooleanConstructor;
|
228 | default: undefined;
|
229 | };
|
230 | resistanceRatio: {
|
231 | type: NumberConstructor;
|
232 | default: undefined;
|
233 | };
|
234 | watchSlidesProgress: {
|
235 | type: BooleanConstructor;
|
236 | default: undefined;
|
237 | };
|
238 | grabCursor: {
|
239 | type: BooleanConstructor;
|
240 | default: undefined;
|
241 | };
|
242 | preventClicks: {
|
243 | type: BooleanConstructor;
|
244 | default: undefined;
|
245 | };
|
246 | preventClicksPropagation: {
|
247 | type: BooleanConstructor;
|
248 | default: undefined;
|
249 | };
|
250 | slideToClickedSlide: {
|
251 | type: BooleanConstructor;
|
252 | default: undefined;
|
253 | };
|
254 | loop: { type: BooleanConstructor; default: undefined };
|
255 | loopedSlides: {
|
256 | type: NumberConstructor;
|
257 | default: undefined;
|
258 | };
|
259 | loopPreventsSliding: { type: BooleanConstructor; default: undefined };
|
260 | rewind: { type: BooleanConstructor; default: undefined };
|
261 | allowSlidePrev: {
|
262 | type: BooleanConstructor;
|
263 | default: undefined;
|
264 | };
|
265 | allowSlideNext: {
|
266 | type: BooleanConstructor;
|
267 | default: undefined;
|
268 | };
|
269 | swipeHandler: {
|
270 | type: BooleanConstructor;
|
271 | default: undefined;
|
272 | };
|
273 | noSwiping: {
|
274 | type: BooleanConstructor;
|
275 | default: undefined;
|
276 | };
|
277 | noSwipingClass: {
|
278 | type: StringConstructor;
|
279 | default: undefined;
|
280 | };
|
281 | noSwipingSelector: {
|
282 | type: StringConstructor;
|
283 | default: undefined;
|
284 | };
|
285 | passiveListeners: {
|
286 | type: BooleanConstructor;
|
287 | default: undefined;
|
288 | };
|
289 | containerModifierClass: {
|
290 | type: StringConstructor;
|
291 | default: undefined;
|
292 | };
|
293 | slideClass: {
|
294 | type: StringConstructor;
|
295 | default: undefined;
|
296 | };
|
297 | slideActiveClass: {
|
298 | type: StringConstructor;
|
299 | default: undefined;
|
300 | };
|
301 | slideVisibleClass: {
|
302 | type: StringConstructor;
|
303 | default: undefined;
|
304 | };
|
305 | slideNextClass: {
|
306 | type: StringConstructor;
|
307 | default: undefined;
|
308 | };
|
309 | slidePrevClass: {
|
310 | type: StringConstructor;
|
311 | default: undefined;
|
312 | };
|
313 | wrapperClass: {
|
314 | type: StringConstructor;
|
315 | default: undefined;
|
316 | };
|
317 | lazyPreloaderClass: {
|
318 | type: StringConstructor;
|
319 | default: undefined;
|
320 | };
|
321 | lazyPreloadPrevNext: {
|
322 | type: NumberConstructor;
|
323 | default: undefined;
|
324 | };
|
325 | runCallbacksOnInit: {
|
326 | type: BooleanConstructor;
|
327 | default: undefined;
|
328 | };
|
329 | observer: { type: BooleanConstructor; default: undefined };
|
330 | observeParents: {
|
331 | type: BooleanConstructor;
|
332 | default: undefined;
|
333 | };
|
334 | observeSlideChildren: {
|
335 | type: BooleanConstructor;
|
336 | default: undefined;
|
337 | };
|
338 | a11y: {
|
339 | type: PropType<A11yOptions | boolean>;
|
340 | default: undefined;
|
341 | };
|
342 | autoplay: {
|
343 | type: PropType<AutoplayOptions | boolean>;
|
344 | default: undefined;
|
345 | };
|
346 | controller: {
|
347 | type: PropType<ControllerOptions>;
|
348 | default: undefined;
|
349 | };
|
350 | coverflowEffect: {
|
351 | type: PropType<CoverflowEffectOptions>;
|
352 | default: undefined;
|
353 | };
|
354 | cubeEffect: {
|
355 | type: PropType<CubeEffectOptions>;
|
356 | default: undefined;
|
357 | };
|
358 | fadeEffect: {
|
359 | type: PropType<FadeEffectOptions>;
|
360 | default: undefined;
|
361 | };
|
362 | flipEffect: {
|
363 | type: PropType<FlipEffectOptions>;
|
364 | default: undefined;
|
365 | };
|
366 | creativeEffect: {
|
367 | type: PropType<CreativeEffectOptions>;
|
368 | default: undefined;
|
369 | };
|
370 | cardsEffect: {
|
371 | type: PropType<CardsEffectOptions>;
|
372 | default: undefined;
|
373 | };
|
374 | hashNavigation: {
|
375 | type: PropType<HashNavigationOptions | boolean>;
|
376 | default: undefined;
|
377 | };
|
378 | history: {
|
379 | type: PropType<HistoryOptions | boolean>;
|
380 | default: undefined;
|
381 | };
|
382 | keyboard: {
|
383 | type: PropType<KeyboardOptions | boolean>;
|
384 | default: undefined;
|
385 | };
|
386 | mousewheel: {
|
387 | type: PropType<MousewheelOptions | boolean>;
|
388 | default: undefined;
|
389 | };
|
390 | navigation: {
|
391 | type: PropType<NavigationOptions | boolean>;
|
392 | default: undefined;
|
393 | };
|
394 | pagination: {
|
395 | type: PropType<PaginationOptions | boolean>;
|
396 | default: undefined;
|
397 | };
|
398 | parallax: {
|
399 | type: PropType<ParallaxOptions | boolean>;
|
400 | default: undefined;
|
401 | };
|
402 | scrollbar: {
|
403 | type: PropType<ScrollbarOptions | boolean>;
|
404 | default: undefined;
|
405 | };
|
406 | thumbs: { type: PropType<ThumbsOptions>; default: undefined };
|
407 | virtual: {
|
408 | type: PropType<VirtualOptions | boolean>;
|
409 | default: undefined;
|
410 | };
|
411 | zoom: {
|
412 | type: PropType<ZoomOptions | boolean>;
|
413 | default: undefined;
|
414 | };
|
415 | freeMode: {
|
416 | type: PropType<FreeModeOptions | boolean>;
|
417 | default: undefined;
|
418 | };
|
419 | grid: {
|
420 | type: PropType<GridOptions>;
|
421 | default: undefined;
|
422 | };
|
423 | },
|
424 | () => JSX.Element,
|
425 | unknown,
|
426 | {},
|
427 | {},
|
428 | ComponentOptionsMixin,
|
429 | ComponentOptionsMixin,
|
430 | {
|
431 | swiper: (swiper: SwiperClass) => void;
|
432 | |
433 |
|
434 |
|
435 | autoplayStart: (swiper: SwiperClass) => void;
|
436 | |
437 |
|
438 |
|
439 | autoplayStop: (swiper: SwiperClass) => void;
|
440 | |
441 |
|
442 |
|
443 | autoplayPause: (swiper: SwiperClass) => void;
|
444 | |
445 |
|
446 |
|
447 | autoplayResume: (swiper: SwiperClass) => void;
|
448 | |
449 |
|
450 |
|
451 | autoplayTimeLeft: (swiper: SwiperClass, timeLeft: number, percentage: number) => void;
|
452 | |
453 |
|
454 |
|
455 | autoplay: (swiper: SwiperClass) => void; |
456 |
|
457 |
|
458 | hashChange: (swiper: SwiperClass) => void;
|
459 | |
460 |
|
461 |
|
462 | hashSet: (swiper: SwiperClass) => void; |
463 |
|
464 |
|
465 | scroll: (swiper: SwiperClass, event: WheelEvent) => void; |
466 |
|
467 |
|
468 | navigationHide: (swiper: SwiperClass) => void;
|
469 | |
470 |
|
471 |
|
472 | navigationShow: (swiper: SwiperClass) => void;
|
473 | |
474 |
|
475 |
|
476 | navigationPrev: (swiper: SwiperClass) => void;
|
477 | |
478 |
|
479 |
|
480 | navigationNext: (swiper: SwiperClass) => void; |
481 |
|
482 |
|
483 | keyPress: (swiper: SwiperClass, keyCode: string) => void; |
484 |
|
485 |
|
486 | paginationRender: (swiper: SwiperClass, paginationEl: HTMLElement) => void;
|
487 |
|
488 | |
489 |
|
490 |
|
491 | paginationUpdate: (swiper: SwiperClass, paginationEl: HTMLElement) => void;
|
492 |
|
493 | |
494 |
|
495 |
|
496 | paginationHide: (swiper: SwiperClass) => void;
|
497 |
|
498 | |
499 |
|
500 |
|
501 | paginationShow: (swiper: SwiperClass) => void; |
502 |
|
503 |
|
504 | scrollbarDragStart: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
505 |
|
506 | |
507 |
|
508 |
|
509 | scrollbarDragMove: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
510 |
|
511 | |
512 |
|
513 |
|
514 | scrollbarDragEnd: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void; |
515 |
|
516 |
|
517 | zoomChange: (swiper: SwiperClass, scale: number, imageEl: HTMLElement, slideEl: HTMLElement) => void;
|
518 |
|
519 | |
520 |
|
521 |
|
522 |
|
523 |
|
524 |
|
525 |
|
526 |
|
527 |
|
528 |
|
529 |
|
530 |
|
531 |
|
532 |
|
533 |
|
534 |
|
535 |
|
536 |
|
537 |
|
538 |
|
539 |
|
540 |
|
541 |
|
542 |
|
543 |
|
544 |
|
545 |
|
546 |
|
547 |
|
548 |
|
549 |
|
550 | init: (swiper: SwiperClass) => any;
|
551 |
|
552 | |
553 |
|
554 |
|
555 | beforeDestroy: (swiper: SwiperClass) => void;
|
556 |
|
557 | |
558 |
|
559 |
|
560 | slideChange: (swiper: SwiperClass) => void;
|
561 |
|
562 | |
563 |
|
564 |
|
565 | slideChangeTransitionStart: (swiper: SwiperClass) => void;
|
566 |
|
567 | |
568 |
|
569 |
|
570 | slideChangeTransitionEnd: (swiper: SwiperClass) => void;
|
571 |
|
572 | |
573 |
|
574 |
|
575 | slideNextTransitionStart: (swiper: SwiperClass) => void;
|
576 |
|
577 | |
578 |
|
579 |
|
580 | slideNextTransitionEnd: (swiper: SwiperClass) => void;
|
581 |
|
582 | |
583 |
|
584 |
|
585 | slidePrevTransitionStart: (swiper: SwiperClass) => void;
|
586 |
|
587 | |
588 |
|
589 |
|
590 | slidePrevTransitionEnd: (swiper: SwiperClass) => void;
|
591 |
|
592 | |
593 |
|
594 |
|
595 | transitionStart: (swiper: SwiperClass) => void;
|
596 |
|
597 | |
598 |
|
599 |
|
600 | transitionEnd: (swiper: SwiperClass) => void;
|
601 |
|
602 | |
603 |
|
604 |
|
605 | touchStart: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
606 |
|
607 | |
608 |
|
609 |
|
610 | touchMove: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
611 |
|
612 | |
613 |
|
614 |
|
615 | touchMoveOpposite: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
616 |
|
617 | |
618 |
|
619 |
|
620 | sliderMove: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
621 |
|
622 | |
623 |
|
624 |
|
625 | touchEnd: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
626 |
|
627 | |
628 |
|
629 |
|
630 | click: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
631 |
|
632 | |
633 |
|
634 |
|
635 | tap: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
636 |
|
637 | |
638 |
|
639 |
|
640 | doubleTap: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
641 |
|
642 | |
643 |
|
644 |
|
645 | progress: (swiper: SwiperClass, progress: number) => void;
|
646 |
|
647 | |
648 |
|
649 |
|
650 | reachBeginning: (swiper: SwiperClass) => void;
|
651 |
|
652 | |
653 |
|
654 |
|
655 | reachEnd: (swiper: SwiperClass) => void;
|
656 |
|
657 | |
658 |
|
659 |
|
660 | toEdge: (swiper: SwiperClass) => void;
|
661 |
|
662 | |
663 |
|
664 |
|
665 | fromEdge: (swiper: SwiperClass) => void;
|
666 |
|
667 | |
668 |
|
669 |
|
670 | setTranslate: (swiper: SwiperClass, translate: number) => void;
|
671 |
|
672 | |
673 |
|
674 |
|
675 | setTransition: (swiper: SwiperClass, transition: number) => void;
|
676 |
|
677 | |
678 |
|
679 |
|
680 | resize: (swiper: SwiperClass) => void;
|
681 |
|
682 | |
683 |
|
684 |
|
685 | observerUpdate: (swiper: SwiperClass) => void;
|
686 |
|
687 | |
688 |
|
689 |
|
690 | beforeLoopFix: (swiper: SwiperClass) => void;
|
691 |
|
692 | |
693 |
|
694 |
|
695 | loopFix: (swiper: SwiperClass) => void;
|
696 |
|
697 | |
698 |
|
699 |
|
700 | breakpoint: (swiper: SwiperClass, breakpointParams: SwiperOptions) => void;
|
701 |
|
702 | |
703 |
|
704 |
|
705 | _beforeBreakpoint: (swiper: SwiperClass, breakpointParams: SwiperOptions) => void;
|
706 |
|
707 | |
708 |
|
709 |
|
710 | _containerClasses: (swiper: SwiperClass, classNames: string) => void;
|
711 |
|
712 | |
713 |
|
714 |
|
715 | _slideClass: (swiper: SwiperClass, slideEl: HTMLElement, classNames: string) => void;
|
716 |
|
717 | |
718 |
|
719 |
|
720 | _slideClasses: (
|
721 | swiper: SwiperClass,
|
722 | slides: { slideEl: HTMLElement; classNames: string; index: number }[],
|
723 | ) => void;
|
724 |
|
725 | |
726 |
|
727 |
|
728 | _swiper: (swiper: SwiperClass) => void;
|
729 |
|
730 | |
731 |
|
732 |
|
733 | _freeModeNoMomentumRelease: (swiper: SwiperClass) => void;
|
734 |
|
735 | |
736 |
|
737 |
|
738 | activeIndexChange: (swiper: SwiperClass) => void;
|
739 | |
740 |
|
741 |
|
742 | snapIndexChange: (swiper: SwiperClass) => void;
|
743 | |
744 |
|
745 |
|
746 | realIndexChange: (swiper: SwiperClass) => void;
|
747 | |
748 |
|
749 |
|
750 | afterInit: (swiper: SwiperClass) => void;
|
751 | |
752 |
|
753 |
|
754 | beforeInit: (swiper: SwiperClass) => void;
|
755 | |
756 |
|
757 |
|
758 | beforeResize: (swiper: SwiperClass) => void;
|
759 | |
760 |
|
761 |
|
762 | beforeSlideChangeStart: (swiper: SwiperClass) => void;
|
763 | |
764 |
|
765 |
|
766 | beforeTransitionStart: (swiper: SwiperClass, speed: number, internal: any) => void;
|
767 | |
768 |
|
769 |
|
770 | changeDirection: (swiper: SwiperClass) => void;
|
771 | |
772 |
|
773 |
|
774 | doubleClick: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
775 | |
776 |
|
777 |
|
778 | destroy: (swiper: SwiperClass) => void;
|
779 | |
780 |
|
781 |
|
782 | momentumBounce: (swiper: SwiperClass) => void;
|
783 | |
784 |
|
785 |
|
786 | orientationchange: (swiper: SwiperClass) => void;
|
787 | |
788 |
|
789 |
|
790 | slideResetTransitionStart: (swiper: SwiperClass) => void;
|
791 | |
792 |
|
793 |
|
794 | slideResetTransitionEnd: (swiper: SwiperClass) => void;
|
795 | |
796 |
|
797 |
|
798 | sliderFirstMove: (swiper: SwiperClass, event: TouchEvent) => void;
|
799 | |
800 |
|
801 |
|
802 | slidesLengthChange: (swiper: SwiperClass) => void;
|
803 | |
804 |
|
805 |
|
806 | slidesGridLengthChange: (swiper: SwiperClass) => void;
|
807 | |
808 |
|
809 |
|
810 | snapGridLengthChange: (swiper: SwiperClass) => void;
|
811 | |
812 |
|
813 |
|
814 | update: (swiper: SwiperClass) => void;
|
815 | |
816 |
|
817 |
|
818 | lock: (swiper: SwiperClass) => void;
|
819 | |
820 |
|
821 |
|
822 | unlock: (swiper: SwiperClass) => void;
|
823 |
|
824 | }
|
825 | >;
|
826 |
|
827 | declare const SwiperSlide: DefineComponent<{
|
828 | tag: {
|
829 | type: StringConstructor;
|
830 | default: string;
|
831 | };
|
832 | swiperRef: { type: PropType<SwiperClass>; required: false };
|
833 | lazy: { type: BooleanConstructor; default: false };
|
834 | zoom: { type: BooleanConstructor; default: undefined };
|
835 | virtualIndex: {
|
836 | type: StringConstructor | NumberConstructor;
|
837 | default: undefined;
|
838 | };
|
839 | }>;
|
840 |
|
841 | declare const useSwiper: () => Ref<SwiperClass>;
|
842 | declare const useSwiperSlide: () => Ref<{
|
843 | isActive: boolean;
|
844 | isVisible: boolean;
|
845 | isPrev: boolean;
|
846 | isNext: boolean;
|
847 | }>;
|
848 |
|
849 | export { Swiper, SwiperSlide, useSwiper, useSwiperSlide };
|