feat: 完成卡片分页
parent
f8f5aec549
commit
c5d9aabe0e
@ -1,3 +1,13 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2025-06-10 17:36:23
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2025-06-12 16:30:23
|
||||
* @FilePath: \Web-Traffic-Police\src\components\CustomTable\index.ts
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
import baseTable from "./src/baseTable";
|
||||
import basePagination from "./src/basePagination";
|
||||
|
||||
export const BaseTable = baseTable;
|
||||
export const BasePagination = basePagination;
|
||||
|
@ -1,151 +0,0 @@
|
||||
.baseTable_wrap {
|
||||
/* 去掉表格整体边框 */
|
||||
.el-table {
|
||||
border: none !important;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* 去掉表头下边框 */
|
||||
.el-table__header-wrapper thead th {
|
||||
border-bottom: none !important;
|
||||
border: none !important;
|
||||
}
|
||||
/* 去掉单元格边框 */
|
||||
.el-table td,
|
||||
.el-table th.is-leaf {
|
||||
border-bottom: none !important;
|
||||
border: none !important;
|
||||
}
|
||||
/* 去掉纵向分割线 */
|
||||
.el-table--border::after,
|
||||
.el-table--group::after,
|
||||
.el-table::before {
|
||||
display: none;
|
||||
}
|
||||
.el-table--border,
|
||||
.el-table--group {
|
||||
border-right: none !important;
|
||||
border-bottom: none !important;
|
||||
border: none !important;
|
||||
}
|
||||
.el-table td,
|
||||
.el-table th {
|
||||
border-right: none !important;
|
||||
border: none !important;
|
||||
border-collapse: collapse !important;
|
||||
}
|
||||
|
||||
.el-scrollbar__view {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.el-table--large .el-table__cell {
|
||||
padding: 8.5px 0;
|
||||
}
|
||||
|
||||
.baseTable_box {
|
||||
cursor: pointer;
|
||||
.el-table__body {
|
||||
background: transparent;
|
||||
border-collapse: collapse !important;
|
||||
border: none !important;
|
||||
tr {
|
||||
color: #fff;
|
||||
background: transparent;
|
||||
|
||||
&:hover td {
|
||||
background: transparent !important;
|
||||
}
|
||||
&:hover {
|
||||
color: #37dbff;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(30, 54, 88, 0) 0%,
|
||||
#0c4fad 53%,
|
||||
rgba(65, 117, 190, 0) 100%
|
||||
);
|
||||
}
|
||||
&.selected-row {
|
||||
color: #37dbff;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(30, 54, 88, 0) 0%,
|
||||
#0c4fad 53%,
|
||||
rgba(65, 117, 190, 0) 100%
|
||||
);
|
||||
// border-top: 1px solid;
|
||||
// border-bottom: 1px solid;
|
||||
// border-image: linear-gradient(90deg, rgba(12, 24, 64, 0), rgba(69, 174, 250, 1), rgba(102, 102, 102, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-table__header > thead {
|
||||
color: #9fb5d7;
|
||||
background-color: #104284 !important;
|
||||
tr {
|
||||
background-color: #104284 !important;
|
||||
}
|
||||
th {
|
||||
background-color: #104284 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.fixed_pagination {
|
||||
padding: 12px 20px 0;
|
||||
}
|
||||
/* full_table */
|
||||
&.full_table {
|
||||
.el-table--large .el-table__cell {
|
||||
padding: 4px 0;
|
||||
}
|
||||
.baseTable_box {
|
||||
cursor: default;
|
||||
.el-table__body {
|
||||
border: none !important;
|
||||
background: linear-gradient(90deg, #082050 0%, #02102a 100%);
|
||||
tr {
|
||||
color: #fff;
|
||||
background: linear-gradient(90deg, #082050 0%, #02102a 100%);
|
||||
&:nth-child(odd) {
|
||||
background: linear-gradient(90deg, #082050 0%, #02102a 100%);
|
||||
}
|
||||
&:nth-child(even) {
|
||||
background: linear-gradient(90deg, #102d65 0%, #081736 100%);
|
||||
}
|
||||
&:hover {
|
||||
border: none !important;
|
||||
}
|
||||
&:hover td {
|
||||
background-color: transparent;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-table__header > thead {
|
||||
color: #9fb5d7;
|
||||
background-color: #104284 !important;
|
||||
tr {
|
||||
background-color: #104284 !important;
|
||||
}
|
||||
th {
|
||||
background-color: #104284 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.fixed_pagination {
|
||||
padding: 28px 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pagination_box {
|
||||
margin-top: 50px;
|
||||
width: 100%;
|
||||
// position: fixed;
|
||||
// bottom: 100px;
|
||||
// right: 40px;
|
||||
background-color: white;
|
||||
z-index: 9;
|
||||
}
|
Loading…
Reference in New Issue