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 17:14:11
* @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
* @LastAuthor : jry
* @lastTime : 2025-12-19 08:55:21
* @FilePath : /uview-plus/libs/config/props/lineProgress.js
*/
export default {
// lineProgress 组件
@@ -14,6 +14,7 @@ export default {
inactiveColor: '#ececec',
percentage: 0,
showText: true,
height: 12
height: 12,
fromRight: false,
}
}

View File

@@ -25,6 +25,11 @@ export const props = defineMixin({
height: {
type: [String, Number],
default: () => defProps.lineProgress.height
},
// 是否从右往左加载
fromRight: {
type: Boolean,
default: () => defProps.lineProgress.fromRight
}
}
})

View File

@@ -34,7 +34,7 @@
/**
* lineProgress 线型进度条
* @description 展示操作或任务的当前进度,比如上传文件,是一个线形的进度条。
* @tutorial https://ijry.github.io/uview-plus/components/lineProgress.html
* @tutorial https://uview-plus.jiangruyi.com/components/lineProgress.html
* @property {String} activeColor 激活部分的颜色 ( 默认 '#19be6b' )
* @property {String} inactiveColor 背景色 ( 默认 '#ececec' )
* @property {String | Number} percentage 进度百分比,数值 ( 默认 0 )
@@ -62,6 +62,11 @@
style.width = this.lineWidth
style.backgroundColor = this.activeColor
style.height = addUnit(this.height)
if (this.fromRight) {
style.right = 0;
} else {
style.left = 0;
}
return style
},
innserPercentage() {
@@ -108,7 +113,6 @@
</script>
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-line-progress {
align-items: stretch;
@@ -127,7 +131,6 @@
&__line {
position: absolute;
top: 0;
left: 0;
bottom: 0;
align-items: center;
@include flex(row);