| | |
| | | import { props } from './props'; |
| | | import { mpMixin } from '../../libs/mixin/mpMixin'; |
| | | import { mixin } from '../../libs/mixin/mixin'; |
| | | import { addUnit, addStyle, deepMerge, sleep, sys } from '../../libs/function/index'; |
| | | import { addUnit, addStyle, deepMerge, sleep, getWindowInfo } from '../../libs/function/index'; |
| | | // #ifdef APP-NVUE |
| | | const dom = uni.requireNativePlugin('dom') |
| | | // #endif |
| | |
| | | innerScrollTop: 0, |
| | | // vue下,scroll-view在上拉加载时的偏移值 |
| | | offset: 0, |
| | | sys: sys() |
| | | sys: getWindowInfo() |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | scrollTop = e.detail.scrollTop |
| | | // #endif |
| | | this.innerScrollTop = scrollTop |
| | | this.$emit('scroll', Math.abs(scrollTop)) |
| | | this.$emit('scroll', scrollTop) |
| | | }, |
| | | scrollIntoViewById(id) { |
| | | // #ifdef APP-NVUE |