mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-23 09:50:27 +08:00
perf(sticky): avoid set data if nothing change (#3879)
This commit is contained in:
parent
2390413915
commit
d5e4cf9ff0
@ -108,7 +108,9 @@ VantComponent({
|
|||||||
return prev;
|
return prev;
|
||||||
}, {});
|
}, {});
|
||||||
|
|
||||||
|
if (Object.keys(diff).length > 0) {
|
||||||
this.setData(diff);
|
this.setData(diff);
|
||||||
|
}
|
||||||
|
|
||||||
this.$emit('scroll', {
|
this.$emit('scroll', {
|
||||||
scrollTop: this.scrollTop,
|
scrollTop: this.scrollTop,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user