no message

Former-commit-id: 071f5f99465e967623d9ac03d5e494e82b750415
This commit is contained in:
liyang
2018-09-29 17:14:16 +08:00
parent ec3838fa53
commit e69054ded3
5 changed files with 9669 additions and 991 deletions
@@ -87,12 +87,12 @@ export default {
// 更新元素数据
this.contentWidth = contentWidth
this.scrollWidth = scrollWidth
// 判断何时滚动消失: 当page > content + btns(40)
if (contentWidth > scrollWidth + 40) {
// 判断何时滚动消失: 当scroll > content
if (contentWidth > scrollWidth) {
this.isScroll = false
}
}
// 判断何时滚动出现: 当page < content
// 判断何时滚动出现: 当scroll < content
if (!this.isScroll && contentWidth < scrollWidth) {
this.isScroll = true
// 注意,当isScroll变为true,对应的元素盒子大小会发生变化