You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Joe 9b449c2688 first commit 2 years ago
..
README.en-US.md first commit 2 years ago
README.md first commit 2 years ago
index.wxs first commit 2 years ago
props.d.ts first commit 2 years ago
props.js first commit 2 years ago
swiper.d.ts first commit 2 years ago
swiper.js first commit 2 years ago
swiper.json first commit 2 years ago
swiper.wxml first commit 2 years ago
swiper.wxss first commit 2 years ago
type.d.ts first commit 2 years ago
type.js first commit 2 years ago

README.en-US.md

:: BASE_DOC ::

API

Swiper Props

name type default description required
autoplay Boolean true - N
current Number 0 - N
direction String horizontal optionshorizontal/vertical N
display-multiple-items Number 1 0.32.0 N
duration Number 300 - N
easing-function String default 0.32.0。optionsdefault/linear/easeInCubic/easeOutCubic/easeInOutCubic N
height String / Number 192 - N
image-props Object - 0.34.0 N
interval Number 5000 - N
list Array - 0.32.0。Typescriptstring[] N
loop Boolean true - N
navigation Boolean / Object / Slot true TypescriptSwiperNavProps | booleanSwiperNav API Documentssee more ts definition N
next-margin String / Number 0 0.32.0 N
pagination-position String bottom optionstop-left/top/top-right/bottom-left/bottom/bottom-right N
previous-margin String / Number 0 0.32.0 N
snap-to-edge Boolean false 0.32.0 N

Swiper Events

name params description
change (current: number, source: SwiperChangeSource) see more ts definition
type SwiperChangeSource = 'autoplay' | 'touch' | 'nav'
click (index: number) 0.34.0

SwiperNav Props

name type default description required
current Number 0 0.34.0 N
direction String horizontal 0.34.0。optionshorizontal/vertical N
min-show-num Number 2 - N
pagination-position String bottom 0.34.0。optionstop-left/top/top-right/bottom-left/bottom/bottom-right N
show-controls Boolean false 0.32.0 N
total Number 0 0.34.0 N
type String dots TypescriptSwiperNavigationType type SwiperNavigationType = 'dots' | 'dots-bar' | 'fraction'see more ts definition N