Merge branch '2.0' of https://github.com/iview/iview into 2.0

This commit is contained in:
梁灏 2019-03-18 10:06:54 +08:00
commit 6205dd3fc1

View file

@ -80,6 +80,9 @@
// window.addEventListener('resize', this.handleScroll, false);
on(window, 'scroll', this.handleScroll);
on(window, 'resize', this.handleScroll);
this.$nextTick(() => {
this.handleScroll();
});
},
beforeDestroy () {
// window.removeEventListener('scroll', this.handleScroll, false);