修改整体框架样式

This commit is contained in:
Xulinchuan 2025-06-09 17:30:15 +08:00
parent 867573285f
commit beb8d79eaa
6 changed files with 37 additions and 36 deletions

View File

@ -46,6 +46,10 @@
width: 100px; width: 100px;
text-align: right; text-align: right;
padding-right: 8px; padding-right: 8px;
.el-button-gry{
background-color: #25bf82;
border:none
}
} }
.demo-form-inline { .demo-form-inline {
@ -70,6 +74,9 @@
.el-form .el-form-item__label { .el-form .el-form-item__label {
font-weight: 400; font-weight: 400;
} }
.custom-form-inline .el-input {
width: 260px;
}
} }
.table-cont { .table-cont {
min-height: 300px; min-height: 300px;
@ -80,6 +87,16 @@
.el-table__empty-text { .el-table__empty-text {
width: 200px; width: 200px;
} }
.el-button-custom{
font-size: 14px !important;
color: #25bf82;
padding: 0;
}
.el-button-delete{
font-size: 14px !important;
color: #ff4d4f;
padding: 0;
}
} }
/* 自定义弹窗样式 */ /* 自定义弹窗样式 */
@ -212,12 +229,13 @@
justify-content: space-between; justify-content: space-between;
gap: 10px; gap: 10px;
padding: 3px 0; padding: 3px 0;
} }
.el-icon-custom { .el-icon-custom {
vertical-align: middle; vertical-align: middle;
cursor: pointer; cursor: pointer;
font-size: 16px; font-size: 16px;
color: #fff; // color: #fff;
} }
.table-cell-img-box { .table-cell-img-box {
width: 60px; width: 60px;

View File

@ -9,9 +9,9 @@ $yellow: #FEC171;
$panGreen: #30B08F; $panGreen: #30B08F;
// 默认主题变量 // 默认主题变量
$menuText: #bfcbd9; $menuText: #000;
$menuActiveText: #409eff; $menuActiveText: #409eff;
$menuBg: #304156; $menuBg: #fff;
$menuHover: #263445; $menuHover: #263445;
// 浅色主题theme-light // 浅色主题theme-light
@ -25,11 +25,11 @@ $base-sidebar-width: 200px;
$sideBarWidth: 200px; $sideBarWidth: 200px;
// 菜单暗色变量 // 菜单暗色变量
$base-menu-color: #bfcbd9; $base-menu-color: #000;
$base-menu-color-active: #f4f4f5; $base-menu-color-active: #25bf82;
$base-menu-background: #304156; $base-menu-background: #fff;
$base-sub-menu-background: #1f2d3d; $base-sub-menu-background: #fff;
$base-sub-menu-hover: #001528; $base-sub-menu-hover: rgba(64, 158, 255, 0.1);
// 组件变量 // 组件变量
$--color-primary: #409EFF; $--color-primary: #409EFF;

View File

@ -36,10 +36,11 @@
<el-table-column <el-table-column
v-if="showSelection" v-if="showSelection"
type="selection" type="selection"
width="55" width="30"
align="center" align="center"
fixed
/> />
<el-table-column label="排序" width="60" v-if="showSort"> <el-table-column label="排序" width="50" v-if="showSort" fixed>
<template #default="{ $index }"> <template #default="{ $index }">
{{ (currentPage - 1) * pageSize + $index + 1 }} {{ (currentPage - 1) * pageSize + $index + 1 }}
</template> </template>
@ -50,7 +51,7 @@
:prop="column.prop" :prop="column.prop"
:label="column.label" :label="column.label"
:width="column.width" :width="column.width"
:align="column.align || 'left'" :align="column.align || 'center'"
:sortable="column.sortable" :sortable="column.sortable"
:header-class-name="column.headerClassName" :header-class-name="column.headerClassName"
> >

View File

@ -8,7 +8,7 @@
:background-color="getMenuBackground" :background-color="getMenuBackground"
:text-color="getMenuTextColor" :text-color="getMenuTextColor"
:unique-opened="true" :unique-opened="true"
:active-text-color="theme" active-text-color="#25bf82"
:collapse-transition="false" :collapse-transition="false"
mode="vertical" mode="vertical"
:class="sideTheme" :class="sideTheme"

View File

@ -291,7 +291,7 @@ function handleScroll() {
} }
&.active { &.active {
background-color: #42b983; background-color: #42b983 !important;
color: #fff; color: #fff;
border-color: #42b983; border-color: #42b983;

View File

@ -66,7 +66,7 @@
</el-form> </el-form>
</div> </div>
<div class="search-bar-right"> <div class="search-bar-right">
<el-button type="primary" icon="Search" @click="onSubmit">查询</el-button> <el-button type="primary" class="el-button-gry" icon="Search" @click="onSubmit">查询</el-button>
<el-button icon="Refresh" style="margin: 16px 0 0 0" @click="resetForm">重置</el-button> <el-button icon="Refresh" style="margin: 16px 0 0 0" @click="resetForm">重置</el-button>
</div> </div>
</div> </div>
@ -85,27 +85,9 @@
<!-- 自定义-操作 --> <!-- 自定义-操作 -->
<template #action="slotProps"> <template #action="slotProps">
<el-tooltip effect="dark" placement="bottom-end"> <el-button text class="el-button-custom" :dark="isDark" @click="seeDetails(slotProps.row)">查看</el-button>
<template #content> <el-button text class="el-button-custom" :dark="isDark" @click="handleEdit(slotProps.row)">编辑</el-button>
<div class="custom-tooltip-content"> <el-button text class="el-button-delete" :dark="isDark" @click="handleDelete(slotProps.row)">删除</el-button>
<el-icon class="el-icon-custom" @click="seeDetails(slotProps.row)">
<View />
</el-icon>
<el-icon class="el-icon-custom" @click="handleEdit(slotProps.row)">
<Edit />
</el-icon>
<el-icon class="el-icon-custom" @click="handleDelete(slotProps.row)">
<Delete />
</el-icon>
</div>
</template>
<span class="el-dropdown-link">
<el-icon>
<More />
</el-icon>
</span>
</el-tooltip>
</template> </template>
</tableComponent> </tableComponent>
</div> </div>
@ -179,7 +161,7 @@ const columns = ref([
{ prop: "userCategory", label: "用户分类" }, { prop: "userCategory", label: "用户分类" },
{ prop: "unitPrice", label: "客单价" }, { prop: "unitPrice", label: "客单价" },
{ prop: "ordersNums", label: "订单数目" }, { prop: "ordersNums", label: "订单数目" },
{ prop: "action", label: "操作", slotName: "action" }, { prop: "action", label: "操作", slotName: "action",width: "140",align: "center" },
]); ]);
// //