feat:设备使用记录

This commit is contained in:
houjunxiang
2026-03-05 16:54:47 +08:00
parent 749ac7f507
commit 9c88c45d66
357 changed files with 21486 additions and 5845 deletions

View File

@@ -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);