mini-antui
Advanced tools
Comparing version 0.3.14-alpha.2 to 0.3.14-alpha.3
@@ -57,3 +57,3 @@ Component({ | ||
_this.anchorMap[anchor] = cacheHeight; | ||
cacheHeight += Math.floor(ret[0].height); | ||
cacheHeight += ret[0].height; | ||
_this.scrollWrapHeight = cacheHeight; | ||
@@ -125,3 +125,3 @@ }); | ||
} | ||
if (scrollTop >= this.anchorMap[keys[i]] && scrollTop < this.anchorMap[keys[i + 1]]) { | ||
if (scrollTop >= Math.floor(this.anchorMap[keys[i]]) && scrollTop < Math.floor(this.anchorMap[keys[i + 1]])) { | ||
// 如果没个vtab-content高度小于scroll-view高度,到达底部后就不需要根据scrollTop再去判断左侧的选择项 | ||
@@ -128,0 +128,0 @@ if (scrollTop + this.wrapHeight < this.scrollWrapHeight) { |
{ | ||
"name": "mini-antui", | ||
"version": "0.3.14-alpha.2", | ||
"version": "0.3.14-alpha.3", | ||
"description": "小程序版AntUI", | ||
@@ -5,0 +5,0 @@ "repository": { |
117782