效果图:
![](https://img.haomeiwen.com/i11558443/bb8f4dcdeed8b6bc.jpg)
![](https://img.haomeiwen.com/i11558443/dbb9249d54223b58.jpg)
这里使用的是element-ui的跑马灯组件。
文档地址:http://element.eleme.io/#/zh-CN/component/carousel
代码:
![](https://img.haomeiwen.com/i11558443/296c4f41f8165185.png)
![](https://img.haomeiwen.com/i11558443/c23334c1251512fa.png)
另有网上的示例可以看看: http://jsfiddle.net/wd1a1toh/1/
该文章用作自己的学习和积累,如有不足欢迎指出。
效果图:
这里使用的是element-ui的跑马灯组件。
文档地址:http://element.eleme.io/#/zh-CN/component/carousel
代码:
另有网上的示例可以看看: http://jsfiddle.net/wd1a1toh/1/
该文章用作自己的学习和积累,如有不足欢迎指出。
本文标题:element-ui组件走马灯的setActiveItem方法(
本文链接:https://www.haomeiwen.com/subject/rmjihftx.html
网友评论