[improvement] sort out utils (#2672)

This commit is contained in:
neverland
2019-02-02 10:41:01 +08:00
committed by GitHub
parent 0eb06b10a8
commit f0056297c6
9 changed files with 93 additions and 90 deletions

View File

@@ -1,7 +1,7 @@
import { use } from '../utils';
import Loading from '../loading';
import scrollUtils from '../utils/scroll';
import Touch from '../mixins/touch';
import { getScrollTop, getScrollEventTarget } from '../utils/scroll';
const [sfc, bem, t] = use('pull-refresh');
@@ -49,7 +49,7 @@ export default sfc({
},
mounted() {
this.scrollEl = scrollUtils.getScrollEventTarget(this.$el);
this.scrollEl = getScrollEventTarget(this.$el);
},
methods: {
@@ -95,7 +95,7 @@ export default sfc({
},
getCeiling() {
this.ceiling = scrollUtils.getScrollTop(this.scrollEl) === 0;
this.ceiling = getScrollTop(this.scrollEl) === 0;
return this.ceiling;
},