Skip to content

Swiper 轮播

Display · Display component

Carousel content.

On-demand importwbbb-ui/components/swiper

Basic Usage

Example code
<script setup lang="ts">
import { WbbbSwiper } from 'wbbb-ui/components/swiper'
import 'wbbb-ui/styles/swiper'
</script>

<template>
  <WbbbSwiper />
</template>
Live mobile previewOpen in a new tab ↗

States and Interaction

All listed states can be operated and verified in the live Playground preview.

Image contentLoading图片失败Text card

API Reference

Props

PropertyDescriptionTypeDefaultRequired
autoplayAutomatically advances to the next slide.booleanfalseNo
circularAllows the carousel to loop from the last item to the first.booleantrueNo
indicatorDotsShows pagination dots for carousel items.booleantrueNo
intervalSets the delay between automatic carousel transitions in milliseconds.number3000No
itemsProvides the data items rendered by the component.WbbbSwiperItem[]() => []No

Events

  • change

Slots

  • default

Two-way binding

Does not support v-model.

Platform Notes

Build verification: H5, App Vue, WeChat Mini Program, Alipay Mini Program, and Douyin Mini Program.

Runtime differences: H5 supports keyboard focus and reduced motion. Mini Programs provide equivalent touch interaction; verify upload, date selection, and overlays on target platforms.

Usage note: Use Playground to verify further state combinations and cross-platform behavior.

Wbbb UI · Built for uni-app product experiences