Skip to content

Commit

Permalink
modify: 优化 swiper 示例
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyucoding committed Nov 14, 2018
1 parent 095cbdb commit f10aefa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/hello-uniapp/pages/component/swiper/swiper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<view class="uni-padding-wrap">
<view class="page-section swiper">
<view class="page-section-spacing">
<swiper :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
<swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
<swiper-item>
<view class="swiper-item uni-bg-red">A</view>
</swiper-item>
Expand Down Expand Up @@ -74,6 +74,9 @@
</script>

<style>
.swiper {
height: 300upx;
}
.swiper-item {
display: block;
height: 300upx;
Expand Down

0 comments on commit f10aefa

Please sign in to comment.