diff --git a/src/components/seamless/index.vue b/src/components/seamless/index.vue index 93e32f3..6e8821e 100644 --- a/src/components/seamless/index.vue +++ b/src/components/seamless/index.vue @@ -38,16 +38,11 @@ export default { }, data() { return { - - } - }, - computed: { - optionSetting() { - return { + optionSetting: { step: 0.5, // 数值越大速度滚动越快 - limitMoveNum: 2, // 开始无缝滚动的数据量 this.dataList.length + limitMoveNum: this.listData.length, // 开始无缝滚动的数据量 this.dataList.length hoverStop: false, // 是否开启鼠标悬停stop - direction: 1, // 0向下 1向上 2向左 3向右 + direction: 0, // 0向下 1向上 2向左 3向右 // autoPlay: false, openWatch: true, // 开启数据实时监控刷新dom singleHeight: 0, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1 @@ -55,6 +50,9 @@ export default { waitTime: 1000 // 单步运动停止的时间(默认值1000ms) } } + }, + computed: { + }, mounted() { @@ -87,7 +85,7 @@ export default { font-size: 0.25rem; color: #fff; background: url(../../assets/img/brand/parkIngo.png) no-repeat; - background-size: 9.8rem 0.7rem; + background-size: 9.8rem 0.7rem; } .sn-body {