From fc0438b76df86d54fbf6d0bdf138c7227f04a6e4 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Fri, 4 Jul 2025 14:10:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E7=94=A8=E7=94=B3=E8=AF=B7=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/business/leaseApply.vue | 56 ++++++++++++++++--- .../receiveRecord/receiveRecordEdit.vue | 34 ++++++++--- 2 files changed, 73 insertions(+), 17 deletions(-) diff --git a/src/pages/business/leaseApply.vue b/src/pages/business/leaseApply.vue index 2cbcdd4..d34f154 100644 --- a/src/pages/business/leaseApply.vue +++ b/src/pages/business/leaseApply.vue @@ -8,9 +8,9 @@ :rule="rules.value" :border="true" > - + - + --> - + - + - + - + @@ -706,6 +709,7 @@ const onChangeNumber = (item) => { setTimeout(()=>{ if(item.unitValue==1){ item.preNum = Number(String(item.preNum).replace(/[^\d.]/g,'')) + }else{ item.preNum = Number(String(item.preNum).replace(/[^\d]/g,'')) } @@ -785,6 +789,39 @@ const clearConfig = () => { } } +.centered-item { + display: flex; + align-items: center; // 垂直居中 + .uni-forms-item__label { + display: flex; + align-items: center; // 使 label 垂直居中 + } + .uni-forms-item__content { + display: flex; + align-items: center; // 使输入框垂直居中 + } +} + +// 使用 :deep 选择器调整错误提示样式,添加 !important 提高优先级 +:deep(.uni-forms-item__error-message) { + position: absolute !important; + bottom: 0 !important; + margin-top: 0 !important; + font-size: 14rpx !important; + line-height: 1 !important; // 确保行高合适 + transform: translateY(50%); // 向下移动提示信息,可根据实际调整 +} + +:deep(.uni-forms-item) { + position: relative !important; + padding-bottom: 5rpx !important; + box-sizing: border-box; // 确保内边距包含在元素尺寸内 +} + +// 确保内容区域有足够空间 +:deep(.uni-forms-item__content) { + position: relative; +} .accept { padding: 24rpx; @@ -868,6 +905,7 @@ const clearConfig = () => { border-top: 1px #eee solid; } + // // 表格区域 // .table-area { // margin-top: 24rpx; diff --git a/src/pages/integratedQuery/receiveRecord/receiveRecordEdit.vue b/src/pages/integratedQuery/receiveRecord/receiveRecordEdit.vue index 04b0dd9..c785368 100644 --- a/src/pages/integratedQuery/receiveRecord/receiveRecordEdit.vue +++ b/src/pages/integratedQuery/receiveRecord/receiveRecordEdit.vue @@ -8,11 +8,11 @@ :rule="rules.value" :border="true" > - - + + - + - + - + - + - + @@ -739,6 +742,21 @@ const clearConfig = () => { box-shadow: 0 2rpx 8rpx rgba(55, 132, 251, 0.2); } } + +.centered-item { + display: flex; + align-items: center; // 垂直居中 + .uni-forms-item__label { + display: flex; + align-items: center; // 使 label 垂直居中 + } + .uni-forms-item__content { + display: flex; + align-items: center; // 使输入框垂直居中 + } +} + + .accept { padding: 24rpx; height: 95vh;