Browse Source

style: 增加表格外div高度值,控制表格表头固定

bxy 1 year ago
parent
commit
3384cd000b

+ 1 - 0
src/views/datamanager/alertformdata/components/common/AlertTable.vue

@@ -140,6 +140,7 @@ onBeforeMount(() => {
 .alert-table-box {
   display: flex;
   flex-direction: column;
+  height: calc(100vh - 350px);
 }
 
 .detail-text {

+ 3 - 2
src/views/datamanager/alertformdata/components/default/Default.vue

@@ -282,8 +282,9 @@ onBeforeMount(() => {
 }
 
 .table-list {
-  height: calc(100vh - 350px);
-  overflow-y: scroll;
+  flex: 1;
+  // height: calc(100vh - 350px);
+  // overflow-y: scroll;
 
   .action-bar {
     display: flex;