feat:设备使用记录
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
/*
|
||||
* @Author : LQ
|
||||
* @Description :
|
||||
* @version : 1.0
|
||||
* @version : 3.0
|
||||
* @Date : 2021-08-20 16:44:21
|
||||
* @LastAuthor : LQ
|
||||
* @lastTime : 2021-08-20 17:14:53
|
||||
* @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
|
||||
* @LastAuthor : jry
|
||||
* @lastTime : 2025-12-19 08:55:21
|
||||
* @FilePath : /uview-plus/libs/config/props/list.js
|
||||
*/
|
||||
export default {
|
||||
// list 组件
|
||||
|
||||
@@ -50,14 +50,14 @@
|
||||
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
|
||||
/**
|
||||
* List 列表
|
||||
* @description 该组件为高性能列表组件
|
||||
* @tutorial https://ijry.github.io/uview-plus/components/list.html
|
||||
* @tutorial https://uview-plus.jiangruyi.com/components/list.html
|
||||
* @property {Boolean} showScrollbar 控制是否出现滚动条,仅nvue有效 (默认 false )
|
||||
* @property {String | Number} lowerThreshold 距底部多少时触发scrolltolower事件 (默认 50 )
|
||||
* @property {String | Number} upperThreshold 距顶部多少时触发scrolltoupper事件,非nvue有效 (默认 0 )
|
||||
@@ -90,7 +90,7 @@
|
||||
innerScrollTop: 0,
|
||||
// vue下,scroll-view在上拉加载时的偏移值
|
||||
offset: 0,
|
||||
sys: sys()
|
||||
sys: getWindowInfo()
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -114,7 +114,7 @@
|
||||
this.anchors = []
|
||||
},
|
||||
mounted() {},
|
||||
emits: ["scroll", "scrolltolower", "scrolltoupper",
|
||||
emits: ["scroll", "scrolltolower", "scroll-to-lower", "scrolltoupper", "scroll-to-upper",
|
||||
"refresherpulling", "refresherrefresh", "refresherrestore", "refresherabort"],
|
||||
methods: {
|
||||
updateOffsetFromChild(top) {
|
||||
@@ -145,6 +145,8 @@
|
||||
scrolltolower(e) {
|
||||
sleep(30).then(() => {
|
||||
this.$emit('scrolltolower')
|
||||
// 支付宝小程序奇怪无法触发scrolltolowerhttps://github.com/ijry/uview-plus/issues/422
|
||||
this.$emit('scroll-to-lower')
|
||||
})
|
||||
},
|
||||
// #ifndef APP-NVUE
|
||||
@@ -152,6 +154,7 @@
|
||||
scrolltoupper(e) {
|
||||
sleep(30).then(() => {
|
||||
this.$emit('scrolltoupper')
|
||||
this.$emit('scroll-to-upper')
|
||||
// 这一句很重要,能绝对保证在性功能障碍的webview,滚动条到顶时,取消偏移值,让页面置顶
|
||||
this.offset = 0
|
||||
})
|
||||
@@ -174,7 +177,6 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "../../libs/css/components.scss";
|
||||
|
||||
.u-list {
|
||||
@include flex(column);
|
||||
|
||||
Reference in New Issue
Block a user