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:24:32
* @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
* @LastAuthor : jry
* @lastTime : 2025-12-19 08:55:21
* @FilePath : /uview-plus/libs/config/props/textarea.js
*/
export default {
// textarea 组件

View File

@@ -3,9 +3,9 @@
<textarea
class="u-textarea__field"
:value="innerValue"
:style="{ height: addUnit(height) }"
:style="fieldStyle"
:placeholder="placeholder"
:placeholder-style="addStyle(placeholderStyle, 'string')"
:placeholder-style="addStyle(placeholderStyle, typeof placeholderStyle === 'string' ? 'string' : 'object')"
:placeholder-class="placeholderClass"
:disabled="disabled"
:focus="focus"
@@ -50,7 +50,7 @@ import { addStyle, addUnit, deepMerge, formValidate, os } from '../../libs/funct
/**
* Textarea 文本域
* @description 文本域此组件满足了可能出现的表单信息补充,编辑等实际逻辑的功能,内置了字数校验等
* @tutorial https://ijry.github.io/uview-plus/components/textarea.html
* @tutorial https://uview-plus.jiangruyi.com/components/textarea.html
*
* @property {String | Number} value 输入框的内容
* @property {String | Number} placeholder 输入框为空时占位符
@@ -146,6 +146,15 @@ export default {
// #endif
},
computed: {
fieldStyle() {
let style = {};
style['height'] = addUnit(this.height);
if (this.autoHeight) {
style['height'] = 'auto';
style['minHeight'] = addUnit(this.height);
}
return style;
},
// 组件的类名
textareaClass() {
let classes = [],
@@ -236,8 +245,6 @@ export default {
</script>
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-textarea {
border-radius: 4px;
background-color: #fff;