123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866 |
- import type {
- A11yOptions,
- AutoplayOptions,
- ControllerOptions,
- CoverflowEffectOptions,
- CubeEffectOptions,
- FadeEffectOptions,
- FlipEffectOptions,
- CreativeEffectOptions,
- CardsEffectOptions,
- HashNavigationOptions,
- HistoryOptions,
- KeyboardOptions,
- MousewheelOptions,
- NavigationOptions,
- PaginationOptions,
- ParallaxOptions,
- ScrollbarOptions,
- ThumbsOptions,
- VirtualOptions,
- ZoomOptions,
- FreeModeOptions,
- GridOptions,
- } from './types/index.d.ts';
- import { ComponentOptionsMixin, DefineComponent, PropType, Ref } from 'vue';
- import type { SwiperOptions, Swiper as SwiperClass } from './types/index.d.ts';
- declare const Swiper: DefineComponent<
- {
- tag: {
- type: StringConstructor;
- default: string;
- };
- wrapperTag: {
- type: StringConstructor;
- default: string;
- };
- modules: {
- type: ArrayConstructor;
- default: undefined;
- };
- init: {
- type: BooleanConstructor;
- default: undefined;
- };
- direction: {
- type: PropType<SwiperOptions['direction']>;
- default: SwiperOptions['direction'];
- };
- oneWayMovement: {
- type: PropType<SwiperOptions['oneWayMovement']>;
- default: SwiperOptions['oneWayMovement'];
- };
- swiperElementNodeName: {
- type: PropType<SwiperOptions['swiperElementNodeName']>;
- default: SwiperOptions['swiperElementNodeName'];
- };
- touchEventsTarget: {
- type: PropType<SwiperOptions['touchEventsTarget']>;
- default: undefined;
- };
- initialSlide: {
- type: NumberConstructor;
- default: undefined;
- };
- speed: { type: NumberConstructor; default: undefined };
- cssMode: { type: BooleanConstructor; default: undefined };
- updateOnWindowResize: {
- type: BooleanConstructor;
- default: undefined;
- };
- resizeObserver: {
- type: BooleanConstructor;
- default: undefined;
- };
- nested: { type: BooleanConstructor; default: undefined };
- focusableElements: {
- type: StringConstructor;
- default: undefined;
- };
- width: { type: NumberConstructor; default: undefined };
- height: { type: NumberConstructor; default: undefined };
- preventInteractionOnTransition: {
- type: BooleanConstructor;
- default: undefined;
- };
- userAgent: { type: StringConstructor; default: undefined };
- url: { type: StringConstructor; default: undefined };
- edgeSwipeDetection: {
- type: BooleanConstructor | StringConstructor;
- default: undefined;
- };
- edgeSwipeThreshold: {
- type: NumberConstructor;
- default: undefined;
- };
- autoHeight: {
- type: BooleanConstructor;
- default: undefined;
- };
- setWrapperSize: {
- type: BooleanConstructor;
- default: undefined;
- };
- virtualTranslate: {
- type: BooleanConstructor;
- default: undefined;
- };
- effect: {
- type: PropType<SwiperOptions['effect']>;
- default: undefined;
- };
- breakpoints: {
- type: PropType<SwiperOptions['breakpoints']>;
- default: undefined;
- };
- spaceBetween: {
- type: PropType<SwiperOptions['spaceBetween']>;
- default: undefined;
- };
- slidesPerView: {
- type: PropType<SwiperOptions['slidesPerView']>;
- default: undefined;
- };
- maxBackfaceHiddenSlides: {
- type: NumberConstructor;
- default: undefined;
- };
- slidesPerGroup: {
- type: NumberConstructor;
- default: undefined;
- };
- slidesPerGroupSkip: {
- type: NumberConstructor;
- default: undefined;
- };
- slidesPerGroupAuto: {
- type: BooleanConstructor;
- default: undefined;
- };
- centeredSlides: {
- type: BooleanConstructor;
- default: undefined;
- };
- centeredSlidesBounds: {
- type: BooleanConstructor;
- default: undefined;
- };
- slidesOffsetBefore: {
- type: NumberConstructor;
- default: undefined;
- };
- slidesOffsetAfter: {
- type: NumberConstructor;
- default: undefined;
- };
- normalizeSlideIndex: {
- type: BooleanConstructor;
- default: undefined;
- };
- centerInsufficientSlides: {
- type: BooleanConstructor;
- default: undefined;
- };
- watchOverflow: {
- type: BooleanConstructor;
- default: undefined;
- };
- roundLengths: {
- type: BooleanConstructor;
- default: undefined;
- };
- touchRatio: {
- type: NumberConstructor;
- default: undefined;
- };
- touchAngle: {
- type: NumberConstructor;
- default: undefined;
- };
- simulateTouch: {
- type: BooleanConstructor;
- default: undefined;
- };
- shortSwipes: {
- type: BooleanConstructor;
- default: undefined;
- };
- longSwipes: {
- type: BooleanConstructor;
- default: undefined;
- };
- longSwipesRatio: {
- type: NumberConstructor;
- default: undefined;
- };
- longSwipesMs: {
- type: NumberConstructor;
- default: undefined;
- };
- followFinger: {
- type: BooleanConstructor;
- default: undefined;
- };
- allowTouchMove: {
- type: BooleanConstructor;
- default: undefined;
- };
- threshold: { type: NumberConstructor; default: undefined };
- touchMoveStopPropagation: {
- type: BooleanConstructor;
- default: undefined;
- };
- touchStartPreventDefault: {
- type: BooleanConstructor;
- default: undefined;
- };
- touchStartForcePreventDefault: {
- type: BooleanConstructor;
- default: undefined;
- };
- touchReleaseOnEdges: {
- type: BooleanConstructor;
- default: undefined;
- };
- uniqueNavElements: {
- type: BooleanConstructor;
- default: undefined;
- };
- resistance: {
- type: BooleanConstructor;
- default: undefined;
- };
- resistanceRatio: {
- type: NumberConstructor;
- default: undefined;
- };
- watchSlidesProgress: {
- type: BooleanConstructor;
- default: undefined;
- };
- grabCursor: {
- type: BooleanConstructor;
- default: undefined;
- };
- preventClicks: {
- type: BooleanConstructor;
- default: undefined;
- };
- preventClicksPropagation: {
- type: BooleanConstructor;
- default: undefined;
- };
- slideToClickedSlide: {
- type: BooleanConstructor;
- default: undefined;
- };
- loop: { type: BooleanConstructor; default: undefined };
- loopAddBlankSlides: { type: BooleanConstructor; default: undefined };
- loopAdditionalSlides: {
- type: NumberConstructor;
- default: undefined;
- };
- loopPreventsSliding: { type: BooleanConstructor; default: undefined };
- rewind: { type: BooleanConstructor; default: undefined };
- allowSlidePrev: {
- type: BooleanConstructor;
- default: undefined;
- };
- allowSlideNext: {
- type: BooleanConstructor;
- default: undefined;
- };
- swipeHandler: {
- type: BooleanConstructor;
- default: undefined;
- };
- noSwiping: {
- type: BooleanConstructor;
- default: undefined;
- };
- noSwipingClass: {
- type: StringConstructor;
- default: undefined;
- };
- noSwipingSelector: {
- type: StringConstructor;
- default: undefined;
- };
- passiveListeners: {
- type: BooleanConstructor;
- default: undefined;
- };
- containerModifierClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideActiveClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideVisibleClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideFullyVisibleClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideBlankClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideNextClass: {
- type: StringConstructor;
- default: undefined;
- };
- slidePrevClass: {
- type: StringConstructor;
- default: undefined;
- };
- wrapperClass: {
- type: StringConstructor;
- default: undefined;
- };
- lazyPreloaderClass: {
- type: StringConstructor;
- default: undefined;
- };
- lazyPreloadPrevNext: {
- type: NumberConstructor;
- default: undefined;
- };
- runCallbacksOnInit: {
- type: BooleanConstructor;
- default: undefined;
- };
- observer: { type: BooleanConstructor; default: undefined };
- observeParents: {
- type: BooleanConstructor;
- default: undefined;
- };
- observeSlideChildren: {
- type: BooleanConstructor;
- default: undefined;
- };
- a11y: {
- type: PropType<A11yOptions | boolean>;
- default: undefined;
- };
- autoplay: {
- type: PropType<AutoplayOptions | boolean>;
- default: undefined;
- };
- controller: {
- type: PropType<ControllerOptions>;
- default: undefined;
- };
- coverflowEffect: {
- type: PropType<CoverflowEffectOptions>;
- default: undefined;
- };
- cubeEffect: {
- type: PropType<CubeEffectOptions>;
- default: undefined;
- };
- fadeEffect: {
- type: PropType<FadeEffectOptions>;
- default: undefined;
- };
- flipEffect: {
- type: PropType<FlipEffectOptions>;
- default: undefined;
- };
- creativeEffect: {
- type: PropType<CreativeEffectOptions>;
- default: undefined;
- };
- cardsEffect: {
- type: PropType<CardsEffectOptions>;
- default: undefined;
- };
- hashNavigation: {
- type: PropType<HashNavigationOptions | boolean>;
- default: undefined;
- };
- history: {
- type: PropType<HistoryOptions | boolean>;
- default: undefined;
- };
- keyboard: {
- type: PropType<KeyboardOptions | boolean>;
- default: undefined;
- };
- mousewheel: {
- type: PropType<MousewheelOptions | boolean>;
- default: undefined;
- };
- navigation: {
- type: PropType<NavigationOptions | boolean>;
- default: undefined;
- };
- pagination: {
- type: PropType<PaginationOptions | boolean>;
- default: undefined;
- };
- parallax: {
- type: PropType<ParallaxOptions | boolean>;
- default: undefined;
- };
- scrollbar: {
- type: PropType<ScrollbarOptions | boolean>;
- default: undefined;
- };
- thumbs: { type: PropType<ThumbsOptions>; default: undefined };
- virtual: {
- type: PropType<VirtualOptions | boolean>;
- default: undefined;
- };
- zoom: {
- type: PropType<ZoomOptions | boolean>;
- default: undefined;
- };
- freeMode: {
- type: PropType<FreeModeOptions | boolean>;
- default: undefined;
- };
- grid: {
- type: PropType<GridOptions>;
- default: undefined;
- };
- },
- () => JSX.Element,
- unknown,
- {},
- {},
- ComponentOptionsMixin,
- ComponentOptionsMixin,
- {
- swiper: (swiper: SwiperClass) => void;
- /**
- * Event will be fired in when autoplay started
- */
- autoplayStart: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when autoplay stopped
- */
- autoplayStop: (swiper: SwiperClass) => void;
- /**
- * Event will be fired on autoplay pause
- */
- autoplayPause: (swiper: SwiperClass) => void;
- /**
- * Event will be fired on autoplay resume
- */
- autoplayResume: (swiper: SwiperClass) => void;
- /**
- * Event triggers continuously while autoplay is enabled. It contains time left (in ms) before transition to next slide and percentage of that time related to autoplay delay
- */
- autoplayTimeLeft: (swiper: SwiperClass, timeLeft: number, percentage: number) => void;
- /**
- * Event will be fired when slide changed with autoplay
- */
- autoplay: (swiper: SwiperClass) => void;/**
- * Event will be fired on window hash change
- */
- hashChange: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when swiper updates the hash
- */
- hashSet: (swiper: SwiperClass) => void;/**
- * Event will be fired on key press
- */
- keyPress: (swiper: SwiperClass, keyCode: string) => void;/**
- * Event will be fired on mousewheel scroll
- */
- scroll: (swiper: SwiperClass, event: WheelEvent) => void;/**
- * Event will be fired on navigation hide
- */
- navigationHide: (swiper: SwiperClass) => void;
- /**
- * Event will be fired on navigation show
- */
- navigationShow: (swiper: SwiperClass) => void;
- /**
- * Event will be fired on navigation prev button click
- */
- navigationPrev: (swiper: SwiperClass) => void;
- /**
- * Event will be fired on navigation next button click
- */
- navigationNext: (swiper: SwiperClass) => void;/**
- * Event will be fired after pagination rendered
- */
- paginationRender: (swiper: SwiperClass, paginationEl: HTMLElement) => void;
- /**
- * Event will be fired when pagination updated
- */
- paginationUpdate: (swiper: SwiperClass, paginationEl: HTMLElement) => void;
- /**
- * Event will be fired on pagination hide
- */
- paginationHide: (swiper: SwiperClass) => void;
- /**
- * Event will be fired on pagination show
- */
- paginationShow: (swiper: SwiperClass) => void;/**
- * Event will be fired on draggable scrollbar drag start
- */
- scrollbarDragStart: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
- /**
- * Event will be fired on draggable scrollbar drag move
- */
- scrollbarDragMove: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
- /**
- * Event will be fired on draggable scrollbar drag end
- */
- scrollbarDragEnd: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;/**
- * Event will be fired on zoom change
- */
- zoomChange: (swiper: SwiperClass, scale: number, imageEl: HTMLElement, slideEl: HTMLElement) => void;
-
- /**
- * Fired right after Swiper initialization.
- * @note Note that with `swiper.on('init')` syntax it will
- * work only in case you set `init: false` parameter.
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * init: false,
- * // other parameters
- * });
- * swiper.on('init', function() {
- * // do something
- * });
- * // init Swiper
- * swiper.init();
- * ```
- *
- * @example
- * ```js
- * // Otherwise use it as the parameter:
- * const swiper = new Swiper('.swiper', {
- * // other parameters
- * on: {
- * init: function () {
- * // do something
- * },
- * }
- * });
- * ```
- */
- init: (swiper: SwiperClass) => any;
- /**
- * Event will be fired right before Swiper destroyed
- */
- beforeDestroy: (swiper: SwiperClass) => void;
- /**
- * Event will be fired after slides and their sizes are calculated and updated
- */
- slidesUpdated: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when currently active slide is changed
- */
- slideChange: (swiper: SwiperClass) => void;
- /**
- * Event will be fired in the beginning of animation to other slide (next or previous).
- */
- slideChangeTransitionStart: (swiper: SwiperClass) => void;
- /**
- * Event will be fired after animation to other slide (next or previous).
- */
- slideChangeTransitionEnd: (swiper: SwiperClass) => void;
- /**
- * Same as "slideChangeTransitionStart" but for "forward" direction only
- */
- slideNextTransitionStart: (swiper: SwiperClass) => void;
- /**
- * Same as "slideChangeTransitionEnd" but for "forward" direction only
- */
- slideNextTransitionEnd: (swiper: SwiperClass) => void;
- /**
- * Same as "slideChangeTransitionStart" but for "backward" direction only
- */
- slidePrevTransitionStart: (swiper: SwiperClass) => void;
- /**
- * Same as "slideChangeTransitionEnd" but for "backward" direction only
- */
- slidePrevTransitionEnd: (swiper: SwiperClass) => void;
- /**
- * Event will be fired in the beginning of transition.
- */
- transitionStart: (swiper: SwiperClass) => void;
- /**
- * Event will be fired after transition.
- */
- transitionEnd: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when user touch Swiper. Receives `pointerdown` event as an arguments.
- */
- touchStart: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
- /**
- * Event will be fired when user touch and move finger over Swiper. Receives `pointermove` event as an arguments.
- */
- touchMove: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
- /**
- * Event will be fired when user touch and move finger over Swiper in direction opposite to direction parameter. Receives `pointermove` event as an arguments.
- */
- touchMoveOpposite: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
- /**
- * Event will be fired when user touch and move finger over Swiper and move it. Receives `pointermove` event as an arguments.
- */
- sliderMove: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
- /**
- * Event will be fired when user release Swiper. Receives `pointerup` event as an arguments.
- */
- touchEnd: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
- /**
- * Event will be fired when user click/tap on Swiper. Receives `pointerup` event as an arguments.
- */
- click: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
- /**
- * Event will be fired when user click/tap on Swiper. Receives `pointerup` event as an arguments.
- */
- tap: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
- /**
- * Event will be fired when user double tap on Swiper's container. Receives `pointerup` event as an arguments
- */
- doubleTap: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
- /**
- * Event will be fired when Swiper progress is changed, as an arguments it receives progress that is always from 0 to 1
- */
- progress: (swiper: SwiperClass, progress: number) => void;
- /**
- * Event will be fired when Swiper reach its beginning (initial position)
- */
- reachBeginning: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when Swiper reach last slide
- */
- reachEnd: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when Swiper goes to beginning or end position
- */
- toEdge: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when Swiper goes from beginning or end position
- */
- fromEdge: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when swiper's wrapper change its position. Receives current translate value as an arguments
- */
- setTranslate: (swiper: SwiperClass, translate: number) => void;
- /**
- * Event will be fired everytime when swiper starts animation. Receives current transition duration (in ms) as an arguments
- */
- setTransition: (swiper: SwiperClass, transition: number) => void;
- /**
- * Event will be fired on window resize right before swiper's onresize manipulation
- */
- resize: (swiper: SwiperClass) => void;
- /**
- * Event will be fired if observer is enabled and it detects DOM mutations
- */
- observerUpdate: (swiper: SwiperClass) => void;
- /**
- * Event will be fired right before "loop fix"
- */
- beforeLoopFix: (swiper: SwiperClass) => void;
- /**
- * Event will be fired after "loop fix"
- */
- loopFix: (swiper: SwiperClass) => void;
- /**
- * Event will be fired on breakpoint change
- */
- breakpoint: (swiper: SwiperClass, breakpointParams: SwiperOptions) => void;
- /**
- * !INTERNAL: Event will fired right before breakpoint change
- */
- _beforeBreakpoint: (swiper: SwiperClass, breakpointParams: SwiperOptions) => void;
- /**
- * !INTERNAL: Event will fired after setting CSS classes on swiper container element
- */
- _containerClasses: (swiper: SwiperClass, classNames: string) => void;
- /**
- * !INTERNAL: Event will fired after setting CSS classes on swiper slide element
- */
- _slideClass: (swiper: SwiperClass, slideEl: HTMLElement, classNames: string) => void;
- /**
- * !INTERNAL: Event will fired after setting CSS classes on all swiper slides
- */
- _slideClasses: (
- swiper: SwiperClass,
- slides: { slideEl: HTMLElement; classNames: string; index: number }[],
- ) => void;
- /**
- * !INTERNAL: Event will fired as soon as swiper instance available (before init)
- */
- _swiper: (swiper: SwiperClass) => void;
- /**
- * !INTERNAL: Event will be fired on free mode touch end (release) and there will no be momentum
- */
- _freeModeNoMomentumRelease: (swiper: SwiperClass) => void;
- /**
- * Event will fired on active index change
- */
- activeIndexChange: (swiper: SwiperClass) => void;
- /**
- * Event will fired on snap index change
- */
- snapIndexChange: (swiper: SwiperClass) => void;
- /**
- * Event will fired on real index change
- */
- realIndexChange: (swiper: SwiperClass) => void;
- /**
- * Event will fired right after initialization
- */
- afterInit: (swiper: SwiperClass) => void;
- /**
- * Event will fired right before initialization
- */
- beforeInit: (swiper: SwiperClass) => void;
- /**
- * Event will fired before resize handler
- */
- beforeResize: (swiper: SwiperClass) => void;
- /**
- * Event will fired before slide change transition start
- */
- beforeSlideChangeStart: (swiper: SwiperClass) => void;
- /**
- * Event will fired before transition start
- */
- beforeTransitionStart: (swiper: SwiperClass, speed: number, internal: any) => void; // what is internal?
- /**
- * Event will fired on direction change
- */
- changeDirection: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when user double click/tap on Swiper
- */
- doubleClick: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
- /**
- * Event will be fired on swiper destroy
- */
- destroy: (swiper: SwiperClass) => void;
- /**
- * Event will be fired on momentum bounce
- */
- momentumBounce: (swiper: SwiperClass) => void;
- /**
- * Event will be fired on orientation change (e.g. landscape -> portrait)
- */
- orientationchange: (swiper: SwiperClass) => void;
- /**
- * Event will be fired in the beginning of animation of resetting slide to current one
- */
- slideResetTransitionStart: (swiper: SwiperClass) => void;
- /**
- * Event will be fired in the end of animation of resetting slide to current one
- */
- slideResetTransitionEnd: (swiper: SwiperClass) => void;
- /**
- * Event will be fired with first touch/drag move
- */
- sliderFirstMove: (swiper: SwiperClass, event: TouchEvent) => void;
- /**
- * Event will be fired when number of slides has changed
- */
- slidesLengthChange: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when slides grid has changed
- */
- slidesGridLengthChange: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when snap grid has changed
- */
- snapGridLengthChange: (swiper: SwiperClass) => void;
- /**
- * Event will be fired after swiper.update() call
- */
- update: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when swiper is locked (when `watchOverflow` enabled)
- */
- lock: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when swiper is unlocked (when `watchOverflow` enabled)
- */
- unlock: (swiper: SwiperClass) => void;
-
- }
- >;
- declare const SwiperSlide: DefineComponent<{
- tag: {
- type: StringConstructor;
- default: string;
- };
- swiperRef: { type: PropType<SwiperClass>; required: false };
- lazy: { type: BooleanConstructor; default: false };
- zoom: { type: BooleanConstructor; default: undefined };
- virtualIndex: {
- type: StringConstructor | NumberConstructor;
- default: undefined;
- };
- }>;
- declare const useSwiper: () => Ref<SwiperClass>;
- declare const useSwiperSlide: () => Ref<{
- isActive: boolean;
- isVisible: boolean;
- isPrev: boolean;
- isNext: boolean;
- }>;
- export { Swiper, SwiperSlide, useSwiper, useSwiperSlide };
|