Compare commits

...

2 Commits

Author SHA1 Message Date
nemo-shen
8aecb0e843
Merge pull request #4584 from baosc/dev
index-bar 在wx:if为false时, 抛异常
2021-12-22 23:18:42 +08:00
GRANDSOFT\baosc
f2080a3b3b index-bar 在wx:if为false时, 抛异常 2021-10-27 17:22:39 +08:00

View File

@ -101,6 +101,9 @@ VantComponent({
setListRect() {
return getRect(this, '.van-index-bar').then((rect) => {
if (!isDef(rect)) {
return;
}
Object.assign(this, {
height: rect.height,
top: rect.top + this.scrollTop,