mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Changelog: update for 2.0.0-alpha.1 (#7303)
* minor updates & fixes * Changelog: update for 2.0.0-alpha.1 * update zh installation doc * update demo block scroll
This commit is contained in:
@@ -182,7 +182,8 @@
|
||||
return {
|
||||
hovering: false,
|
||||
isExpanded: false,
|
||||
fixedControl: false
|
||||
fixedControl: false,
|
||||
scrollParent: null
|
||||
};
|
||||
},
|
||||
|
||||
@@ -239,7 +240,7 @@
|
||||
},
|
||||
|
||||
removeScrollHandler() {
|
||||
document.removeEventListener('scroll', this.scrollHandler);
|
||||
this.scrollParent && this.scrollParent.removeEventListener('scroll', this.scrollHandler);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -287,7 +288,8 @@
|
||||
return;
|
||||
}
|
||||
setTimeout(() => {
|
||||
document.addEventListener('scroll', this.scrollHandler);
|
||||
this.scrollParent = document.querySelector('.page-component__scroll > .el-scrollbar__wrap');
|
||||
this.scrollParent && this.scrollParent.addEventListener('scroll', this.scrollHandler);
|
||||
this.scrollHandler();
|
||||
}, 200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user