From 7fba7a438e237ca44f809a945ec2fd1ac02de8e8 Mon Sep 17 00:00:00 2001 From: "[liang]" <[595996918@qq.com]> Date: Fri, 5 Aug 2022 18:14:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=8F=98=E6=BB=9A=E5=8A=A8=E6=96=B9?= =?UTF-8?q?=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/seamless/index.vue | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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 {