分页器不显示
来源:9-2 Vue项目详情页 - 公用图片画廊组件拆分
慕村3564731
2018-10-19
<div class="wrapper">
<swiper :option="swiperOption">
<swiper-slide>
<img class="gallary-img" src="//img1.qunarzz.com/sight/p0/201401/06/3fbbddda915cb7637439d484440d36be.jpg_r_800x800_c7fa6286.jpg">
</swiper-slide>
<swiper-slide>
<img class="gallary-img" src="//img1.qunarzz.com/sight/p0/1810/32/32392eea822d11c8a3.water.jpg_r_800x800_4172a5f9.jpg">
</swiper-slide>
<div class="swiper-pagination" slot="pagination"></div>
</swiper>
</div>
data () {
return {
swiperOption: {
pagination: '.swiper-pagination',
paginationType: 'fraction'
}
}
}
dom里面没有渲染出来
写回答
3回答
-
<swiper :option="swiperOption"> 这里应该是 :options吧
012019-01-08 -
手写的从前24
2019-01-07
重新又写了一遍好了
152020-03-10 -
Dell
2018-10-20
看起来好像是对的,对比下咱俩的代码,或者看看是不是有多个数据
112018-12-05
相似问题