调整标签管理的错乱

This commit is contained in:
cst61
2026-02-01 17:10:04 +08:00
parent 30b1c8f9ba
commit c6ed438a94
6 changed files with 227 additions and 86 deletions

View File

@@ -357,16 +357,30 @@ page {
.form-card {
background-color: #FFFFFF;
border-radius: 24rpx;
padding: 32rpx;
padding: 40rpx 24rpx 32rpx 24rpx;
margin-bottom: 32rpx;
box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);
}
/* 第一个表单项特殊处理,确保顶部空间 */
.form-card .form-item:first-child {
padding-top: 24rpx;
margin-top: 16rpx;
}
/* 表单项样式 */
.form-item {
display: flex;
flex-direction: column;
display: flex !important;
flex-direction: row !important;
flex-wrap: nowrap !important;
align-items: flex-start;
margin-bottom: 32rpx;
min-height: 88rpx;
padding-top: 8rpx;
box-sizing: border-box;
width: 100%;
overflow: hidden;
justify-content: center;
}
.form-item:last-child {
margin-bottom: 0;
@@ -375,16 +389,34 @@ page {
/* 表单项标签样式 */
.form-item__label {
font-size: 28rpx;
color: #333333;
color: #333;
font-weight: 500;
margin-bottom: 16rpx;
line-height: 1.5;
width: 140rpx;
flex-shrink: 0;
flex-grow: 0;
margin-right: 24rpx;
margin-left: 0;
padding: 12rpx 0 12rpx 16rpx;
white-space: nowrap;
box-sizing: border-box;
min-height: 88rpx;
line-height: 1.4;
text-align: left;
display: flex;
align-items: flex-start;
justify-content: flex-start;
}
/* 输入框样式 */
.form-item__input {
width: 100%;
flex: 1 !important;
flex-shrink: 1 !important;
flex-grow: 1 !important;
min-width: 0 !important;
max-width: none !important;
width: auto !important;
height: 88rpx;
line-height: 88rpx;
background-color: #F9FAFB;
border: 2rpx solid #E5E7EB;
border-radius: 16rpx;
@@ -393,6 +425,9 @@ page {
color: #333333;
box-sizing: border-box;
transition: all 0.3s ease;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.form-item__input:focus {
border-color: #007AFF;
@@ -402,7 +437,12 @@ page {
/* 文本域样式 */
.form-item__textarea {
width: 100%;
flex: 1 !important;
flex-shrink: 1 !important;
flex-grow: 1 !important;
min-width: 0 !important;
max-width: none !important;
width: auto !important;
min-height: 160rpx;
background-color: #F9FAFB;
border: 2rpx solid #E5E7EB;
@@ -423,6 +463,13 @@ page {
/* 标签选择器样式 */
.tag-select-wrapper {
position: relative;
flex: 1;
flex-shrink: 1;
min-width: 0;
display: flex;
align-items: center;
overflow: hidden;
height: 88rpx;
}
.tag-select {
width: 100%;
@@ -456,19 +503,16 @@ page {
/* 下拉菜单样式 */
.tag-select-dropdown {
position: absolute;
top: 100%;
left: 0;
right: 0;
position: fixed;
background-color: #FFFFFF;
border: 2rpx solid #E5E7EB;
border-radius: 16rpx;
margin-top: 8rpx;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.12);
z-index: 100;
z-index: 9999;
overflow: hidden;
max-height: 400rpx;
overflow-y: auto;
min-width: 200rpx;
}
.tag-select-dropdown__item {
padding: 24rpx;
@@ -498,7 +542,12 @@ page {
right: 0;
bottom: 0;
background-color: transparent;
z-index: 99;
z-index: 9998;
}
/* textarea类型表单项 - 标签和textarea在同一行但textarea可以换行 */
.form-item--textarea {
align-items: flex-start;
}
/* 开关类型表单项 - 横向布局 */