support BackTop to 2.0
This commit is contained in:
parent
4aec6a66bb
commit
1d8f776752
6 changed files with 24 additions and 4 deletions
|
@ -35,7 +35,7 @@
|
|||
backTop: false
|
||||
};
|
||||
},
|
||||
ready () {
|
||||
mounted () {
|
||||
window.addEventListener('scroll', this.handleScroll, false);
|
||||
window.addEventListener('resize', this.handleScroll, false);
|
||||
},
|
||||
|
|
|
@ -3,7 +3,7 @@ import 'core-js/fn/array/find-index';
|
|||
|
||||
import Affix from './components/affix';
|
||||
import Alert from './components/alert';
|
||||
// import BackTop from './components/back-top';
|
||||
import BackTop from './components/back-top';
|
||||
import Badge from './components/badge';
|
||||
import Breadcrumb from './components/breadcrumb';
|
||||
import Button from './components/button';
|
||||
|
@ -49,7 +49,7 @@ import locale from './locale';
|
|||
const iview = {
|
||||
Affix,
|
||||
Alert,
|
||||
// BackTop,
|
||||
BackTop,
|
||||
Badge,
|
||||
Breadcrumb,
|
||||
BreadcrumbItem: Breadcrumb.Item,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue