Carousel (轮播)

横向轮播(KunCarousel + KunCarouselItem):原生滚动吸附 + 触摸滑动,箭头/圆点/自动播放为渐进增强。

基础用法

  • CG 1
  • CG 2
  • CG 3
  • CG 4
Basic.vue

多图视图 (slidesPerView)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
MultiView.vue

自动播放

  • 公告一
  • 公告二
  • 公告三
Autoplay.vue

属性

属性类型默认值说明
ariaLabelstring"轮播"
autoplaynumber0Autoplay interval in ms (0 = off). Pauses on hover/focus, off under reduced-motion.
classNamestring""
gapstring"1rem"Gap between slides (any CSS length).
loopbooleantrueSeamless infinite loop via slide repositioning (CSS `order`), no cloned DOM. Autoplay glides past the last slide into the first instead of snapping back. Default `true`; auto-disabled when there are too few slides to loop cleanly.
showArrowsbooleantrue
showIndicatorsbooleantrue
slidesPerViewnumber1Slides visible at once (>1 for thumbnail strips).