Commit 62846c8f by 王志慧

Merge branch 'gh_v1.2.1' of http://192.168.3.233:8090/gh/data-view into gh_v1.2.1

2 parents f85df08a d88f327c
No preview for this file type
......@@ -57,18 +57,18 @@ export default {
},
computedValue() {
const { marqueeBox } = this.$refs
// console.log(this.text)
console.log(this.text)
this.boxWidth = marqueeBox.offsetWidth // 盒子宽度
this.valueWidth = this.text.visualLength(this.fontSize) // 内容文本宽度
const { boxWidth, valueWidth } = this
// console.log(valueWidth, boxWidth)
console.log(valueWidth, boxWidth)
if (valueWidth < boxWidth) {
this.$set(this, 'speed', 0)
} else {
this.$set(this, 'speed', this.scrollamount)
}
this.key = new Date().getTime()
// console.log(valueWidth > boxWidth, this.speed, this.scrollamount)
console.log(valueWidth > boxWidth, this.speed, this.scrollamount)
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!