Commit 9d77b282 authored by Nature's avatar Nature

s-tab添加横向滚动支持

parent 464d57aa
......@@ -89,7 +89,7 @@ export default {
index += 1
let vm = this
let count = Math.floor(vm.deviceWidth / width)
let overFlowWinth = vm.deviceWidth - count * width
let overFlowWidth = vm.deviceWidth - count * width
let num
if (index > count) {
num = index - count
......@@ -99,7 +99,7 @@ export default {
if (num === 0) {
vm.translate = -num * width
} else {
vm.translate = -num * width + overFlowWinth
vm.translate = -num * width + overFlowWidth
}
},
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment