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

@@ -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 16:56:42
* @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
* @LastAuthor : jry
* @lastTime : 2025-12-19 08:55:21
* @FilePath : /uview-plus/libs/config/props/collapseItem.js
*/
export default {
// collapseItem 组件
@@ -21,6 +21,11 @@ export default {
name: '',
icon: '',
duration: 300,
showRight: true
showRight: true,
titleStyle: {},
iconStyle: {},
rightIconStyle: {},
cellCustomStyle: {},
cellCustomClass: ''
}
}

View File

@@ -7,6 +7,13 @@ export const props = defineMixin({
type: String,
default: () => defProps.collapseItem.title
},
// 标题的样式
titleStyle: {
type: [Object, String],
default: () => {
return defProps.collapseItem.titleStyle
}
},
// 标题右侧内容
value: {
type: String,
@@ -62,5 +69,29 @@ export const props = defineMixin({
type: Boolean,
default: () => defProps.collapseItem.showRight
},
// 左侧图标样式
iconStyle: {
type: [Object, String],
default: () => {
return defProps.collapseItem.iconStyle
}
},
// 右侧箭头图标的样式
rightIconStyle: {
type: [Object, String],
default: () => {
return defProps.collapseItem.rightIconStyle
}
},
cellCustomStyle: {
type: [Object, String],
default: () => {
return defProps.collapseItem.cellCustomStyle
}
},
cellCustomClass: {
type: String,
default: () => defProps.collapseItem.cellCustomClass
}
}
})

View File

@@ -11,6 +11,8 @@
@click="clickHandler"
:arrowDirection="expanded ? 'up' : 'down'"
:disabled="disabled"
:customClass="cellCustomClass"
:customStyle="cellCustomStyle"
>
<!-- 微信小程序不支持因为微信中不支持 <slot name="title" #title />的写法 -->
<template #title>
@@ -22,7 +24,7 @@
</template>
<template #icon>
<slot name="icon">
<u-icon v-if="!$slots.icon && icon" :size="22" :name="icon"></u-icon>
<up-icon v-if="!$slots.icon && icon" :size="22" :name="icon"></up-icon>
</slot>
</template>
<template #value>
@@ -34,7 +36,7 @@
</template>
<template #right-icon>
<template v-if="showRight">
<u-icon v-if="!$slots['right-icon']" :size="16" name="arrow-right"></u-icon>
<up-icon v-if="!$slots['right-icon']" :size="16" name="arrow-right"></up-icon>
<slot name="right-icon">
</slot>
</template>
@@ -69,7 +71,7 @@
/**
* collapseItem 折叠面板Item
* @description 通过折叠面板收纳内容区域搭配u-collapse使用
* @tutorial https://ijry.github.io/uview-plus/components/collapse.html
* @tutorial https://uview-plus.jiangruyi.com/components/collapse.html
* @property {String} title 标题
* @property {String} value 标题右侧内容
* @property {String} label 标题下方的描述信息
@@ -199,7 +201,7 @@
// 查询内容高度
queryRect() {
// #ifndef APP-NVUE
// $uGetRect为uView自带的节点查询简化方法详见文档介绍https://ijry.github.io/uview-plus/js/getRect.html
// $uGetRect为uView自带的节点查询简化方法详见文档介绍https://uview-plus.jiangruyi.com/js/getRect.html
// 组件内部一般用this.$uGetRect对外的为uni.$u.getRect二者功能一致名称不同
return new Promise(resolve => {
this.$uGetRect(`#${this.elId}`).then(size => {
@@ -223,7 +225,6 @@
</script>
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-collapse-item {