@beisen-cmps/ux-m-platform-carousel

平台移动端轮播图组件

Usage no npm install needed!

<script type="module">
  import beisenCmpsUxMPlatformCarousel from 'https://cdn.skypack.dev/@beisen-cmps/ux-m-platform-carousel';
</script>

README

Carousel轮播图

注意: 涉及移动端的手势,移动端组件建议在移动端使用并查看效果

UI规则

  • 默认为左右滑动手势/点击下方圆点切换图片
  • 可设置自动播放

API

Carousel props

name description type default
imageList 图片数组 Array [{"url": "https://xxx",'name' : 'xxx'}] []
showTitle 显示图片名称 Boolean false
autoPlay 自动播放 Boolean false
onTouchTap 点击图片时的回调函数 Function null