style: 调整布局和样式以改善UI一致性和间距
- 减少主内容区域的边距以优化空间利用 - 注释掉无效的CSS规则 - 调整表单和卡片组件的间距和布局 - 统一按钮和分页组件的内边距
This commit is contained in:
parent
2b44260a25
commit
e0dd5a221f
|
@ -143,6 +143,6 @@ const transitionMain = defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-content {
|
.main-content {
|
||||||
margin: 24px;
|
margin: 12px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -77,9 +77,9 @@ nextTick(() => {
|
||||||
opacity: 0.45;
|
opacity: 0.45;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-sub-menu.is-active .el-sub-menu__title) {
|
/* :deep(.el-sub-menu.is-active .el-sub-menu__title) {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
} */
|
||||||
|
|
||||||
.logout {
|
.logout {
|
||||||
max-width: 120px;
|
max-width: 120px;
|
||||||
|
|
|
@ -78,12 +78,12 @@ onMounted(() => {
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="float-right w-full">
|
<div class="float-right w-full">
|
||||||
<el-form ref="formRef" :inline="true" :model="searchFormParams"
|
<el-form ref="formRef" :inline="true" :model="searchFormParams"
|
||||||
class="search-form bg-bg_color w-[99/100] pl-8 pt-[12px]">
|
class="search-form bg-bg_color flex w-[99/100] pl-[22px] pt-[12px]">
|
||||||
<el-form-item label="柜体名称:" prop="cabinetName">
|
<el-form-item label="" prop="cabinetName">
|
||||||
<el-input v-model="searchFormParams.cabinetName" placeholder="请输入柜体名称" clearable class="!w-[200px]" />
|
<el-input v-model="searchFormParams.cabinetName" placeholder="请输入柜体名称" clearable class="!w-[200px]" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="柜体类型:" prop="cabinetType">
|
<el-form-item label="" prop="cabinetType">
|
||||||
<el-select v-model="searchFormParams.cabinetType" placeholder="请选择类型" clearable class="!w-[180px]">
|
<el-select v-model="searchFormParams.cabinetType" placeholder="请选择柜体类型" clearable class="!w-[180px]">
|
||||||
<el-option label="主柜" :value="0" />
|
<el-option label="主柜" :value="0" />
|
||||||
<el-option label="副柜" :value="1" />
|
<el-option label="副柜" :value="1" />
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -98,6 +98,8 @@ onMounted(() => {
|
||||||
重置
|
重置
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item class="space-item">
|
||||||
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" :icon="useRenderIcon(AddFill)" @click="modalVisible = true"
|
<el-button type="primary" :icon="useRenderIcon(AddFill)" @click="modalVisible = true"
|
||||||
style="margin-right: 10px;">
|
style="margin-right: 10px;">
|
||||||
|
@ -107,7 +109,7 @@ onMounted(() => {
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<div class="grid-container">
|
<div class="grid-container">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="12">
|
||||||
<el-col v-for="(item, index) in dataList" :key="item.cabinetId" :xs="24" :sm="12" :md="8" :lg="4" :xl="4">
|
<el-col v-for="(item, index) in dataList" :key="item.cabinetId" :xs="24" :sm="12" :md="8" :lg="4" :xl="4">
|
||||||
<el-card class="cabinet-card" :body-style="{ padding: '8px 20px' }">
|
<el-card class="cabinet-card" :body-style="{ padding: '8px 20px' }">
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
|
@ -143,13 +145,14 @@ onMounted(() => {
|
||||||
.search-form {
|
.search-form {
|
||||||
:deep(.el-form-item) {
|
:deep(.el-form-item) {
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
|
margin-right: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
:deep(.el-descriptions__cell) {
|
:deep(.el-descriptions__cell) {
|
||||||
padding-bottom: 1px!important;
|
padding-bottom: 1px!important;
|
||||||
}
|
}
|
||||||
.cabinet-card {
|
.cabinet-card {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 12px;
|
||||||
min-height: 210px;
|
min-height: 210px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -192,20 +195,19 @@ onMounted(() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider {
|
.divider {
|
||||||
margin: 10px 0px;
|
margin: 5px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail-btn {
|
.detail-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 0;
|
border: 0;
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
padding: 12px 0;
|
padding: 8px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid-container {
|
.grid-container {
|
||||||
margin: 20px 0;
|
margin: 12px 0;
|
||||||
padding-bottom: 60px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.el-row {
|
.el-row {
|
||||||
|
@ -216,13 +218,18 @@ onMounted(() => {
|
||||||
.pagination-wrapper {
|
.pagination-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: var(--el-bg-color);
|
background: var(--el-bg-color);
|
||||||
padding: 12px 12px;
|
padding: 8px 12px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
:deep(.el-pagination) {
|
:deep(.el-pagination) {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 8px 0;
|
padding: 4px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.space-item {
|
||||||
|
flex: 1;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue