mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +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;
|
||||
}, {});
|
||||
|
||||
this.setData(diff);
|
||||
if (Object.keys(diff).length > 0) {
|
||||
this.setData(diff);
|
||||
}
|
||||
|
||||
this.$emit('scroll', {
|
||||
scrollTop: this.scrollTop,
|
||||
|
Loading…
x
Reference in New Issue
Block a user