Commit c1a916f0 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化列表滚动

parent 5fbfa3f0
...@@ -316,6 +316,22 @@ img { ...@@ -316,6 +316,22 @@ img {
background-color: rgba(5, 149, 253, 1); background-color: rgba(5, 149, 253, 1);
} }
.ant-table-fixed-header .ant-table-scroll .ant-table-header {
overflow: hidden !important;
margin-bottom: 0 !important;
padding-right: 6px;
tr:only-child > th:last-child {
border-right-color: #f0f0f0 !important;
}
}
.ant-table-placeholder {
width: calc(100% - 6px);
}
// .ant-table-header {
// background: #fff;
// }
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 6px; width: 6px;
height: 6px; height: 6px;
......
...@@ -112,7 +112,10 @@ export default { ...@@ -112,7 +112,10 @@ export default {
tableHeaders, tableHeaders,
searchName: "", searchName: "",
tableLoading: false, tableLoading: false,
BegindAndEndTime: [], BegindAndEndTime: [
this.$moment().format("YYYY-MM-DD"),
this.$moment().format("YYYY-MM-DD"),
],
tableSourceData: [], tableSourceData: [],
pageSizeOptions: ["10", "30", "50", "100"], pageSizeOptions: ["10", "30", "50", "100"],
current: 1, current: 1,
...@@ -166,7 +169,10 @@ export default { ...@@ -166,7 +169,10 @@ export default {
}, },
resetSearch() { resetSearch() {
this.current = 1; this.current = 1;
this.BegindAndEndTime = []; this.BegindAndEndTime = [
this.$moment().format("YYYY-MM-DD"),
this.$moment().format("YYYY-MM-DD"),
];
this.searchName = ""; this.searchName = "";
this.getOperLogList(); this.getOperLogList();
}, },
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
} }
} }
html{ html {
font-size: var(--base-font-size); font-size: var(--base-font-size);
} }
...@@ -25,8 +25,8 @@ html{ ...@@ -25,8 +25,8 @@ html{
.effect-box { .effect-box {
position: sticky; position: sticky;
top: 0; top: 0;
/* height: 100vh; */ height: 100vh;
min-height: 930rem; /* min-height: 930rem; */
background-color: #031233; background-color: #031233;
perspective: 800px; perspective: 800px;
overflow: hidden; overflow: hidden;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment