This commit is contained in:
duanxiaohai 2024-08-11 17:41:34 +08:00
parent 0e0940c60a
commit e7fae8c4a6
2 changed files with 17 additions and 35 deletions

View File

@ -1493,4 +1493,21 @@ onBeforeUnmount(() => {
letter-spacing: 2px; letter-spacing: 2px;
} }
} }
:deep(.el-table) {
background: rgba(32, 64, 115, 1);
--el-table-border-color: none;
border: 1px solid #7aceff;
}
:deep(.el-table--enable-row-hover .el-table__body tr:hover > td) {
background-color: #2f4b74;
}
:deep(.el-table__empty-block) {
background-color: #122560;
}
:deep(.el-table .el-table__row) {
border-bottom: none;
}
</style> </style>

View File

@ -47,7 +47,6 @@
:key="tableKey" :key="tableKey"
:header-cell-style="{ background: '#008FCD' }" :header-cell-style="{ background: '#008FCD' }"
> >
<template v-for="item in data.columns"> <template v-for="item in data.columns">
<el-table-column <el-table-column
:key="item.label" :key="item.label"
@ -150,40 +149,6 @@ const data = reactive({
pagination: {}, pagination: {},
}); });
//
// const tableHeaderColor = (arg) => {
// return {
// // paddingLeft: "10px",
// letterSpacing: "1px",
// fontSize: "16px",
// height: "79px",
// backgroundColor: "rgba(23 92 185)",
// color: "#fff",
// border: "none",
// textAlign: "center",
// fontFamily: "PingFangSC, PingFang SC",
// // boxShadow: " inset 0px 0px 56px 0px rgba(173,221,255,0.5)",
// };
// };
// const rowState = (row) => {
// if (row.rowIndex % 2 == 0) {
// return {
// letterSpacing: "1px",
// fontSize: "14px",
// height: "36px",
// backgroundColor: "rgba(31, 63, 113, 1)",
// color: "#fff",
// };
// } else if (row.rowIndex % 2 !== 0) {
// return {
// letterSpacing: "1px",
// fontSize: "14px",
// height: "36px",
// backgroundColor: "rgba(43, 74, 121, 1)",
// color: "#fff",
// };
// }
// };
const gridData = []; const gridData = [];
// //
const tableKey = ref(Math.random()); const tableKey = ref(Math.random());