<template>
<swiper :options="swiperOption">
<swiper-slide>
<h3 align="center" style="color:#FFFFFF">< 本周收入(金币) ></h3>
</swiper-slide>
<swiper-slide>2</swiper-slide>
<div class="swiper-pagination" slot="pagination"></div>
</swiper>
</template>
<script>
import Vue from 'vue'
import {swiper,swiperSlide} from 'vue-awesome-swiper'
import myschart from './my-Schart.vue';
export default {
name: 'carrousel',
data() {
return {
swiperOption: {
autoplay: 3000,
direction: 'horizontal',
pagination: '.swiper-pagination',
observeParent: true
}
}
},
components: { myschart, swiper, swiperSlide }
}
</script>
<style>
</style>另外上面的空白条该如何去掉呢?body的margin和padding已经设为0,在app.vue里引入的背景图片
添加回答
举报
0/150
提交
取消