首页 > 其他 > 详细

vue中引入swiper

时间:2017-04-25 11:11:05      阅读:349      评论:0      收藏:0      [点我收藏+]
import { swiper, swiperSlide } from ‘vue-awesome-swiper‘
data () {
return {
swiperOption: {
height: 160,
speed: 2000,
autoplay: 3000,
direction: ‘vertical‘,
autoHeight: true,
loop: true
}
}
},
swiper(:options=‘swiperOption‘ v-loading=‘loading‘ element-loading-text=‘数据加载中,请稍候...‘)
swiper-slide(v-for=‘rows in recs‘)
ul
li(v-for=‘item in rows‘)
a(:href=‘item.profileUrl‘ target=‘_blank‘)
img(:src=‘item.icon‘)
span.item
h3 {{item.nick}}
p.desc {{item.desc}}
p.statis
span 粉丝量:{{item.fans >= 1000000 ? Math.floor(item.fans / 10000) + ‘万‘ : item.fans}}
span 上周播放量:{{item.plays}}次

vue中引入swiper

原文:http://www.cnblogs.com/cina33blogs/p/6760820.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!