Merge branch '2.0' of https://github.com/iview/iview into 2.0
This commit is contained in:
commit
6205dd3fc1
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@
|
||||||
// window.addEventListener('resize', this.handleScroll, false);
|
// window.addEventListener('resize', this.handleScroll, false);
|
||||||
on(window, 'scroll', this.handleScroll);
|
on(window, 'scroll', this.handleScroll);
|
||||||
on(window, 'resize', this.handleScroll);
|
on(window, 'resize', this.handleScroll);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.handleScroll();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
// window.removeEventListener('scroll', this.handleScroll, false);
|
// window.removeEventListener('scroll', this.handleScroll, false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue