ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.13k stars 14.63k forks source link

[Bug Report] el-carousel #22544

Open zhao-yang857 opened 1 year ago

zhao-yang857 commented 1 year ago

Element UI version

2.15.13

OS/Browsers version

谷歌 113.0.5672.127

Vue version

2.7.14

Reproduction Link

https://github.com/ElemeFE/element/issues/new/choose

Steps to reproduce

当轮播图片的长度为2时,轮播的方向会 来回切换,而不是向单一的方向切换

What is Expected?

轮播的方向可以向一个方向切换

What is actually happening?

轮播的方向会来回切换

de1ck commented 1 year ago

https://element.eleme.cn/#/zh-CN/component/carousel#carousel-attributes

el-carousel loop 默认是开启循环的