Browse Source

改变滚动方向

master
[liang] 4 years ago
parent
commit
7fba7a438e
  1. 14
      src/components/seamless/index.vue

14
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() {

Loading…
Cancel
Save