Explorar el Código

表格高度适应

@dongkboy hace 1 año
padre
commit
cc94764a12
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/views/Core/KtCommonTable.vue

+ 3 - 2
src/views/Core/KtCommonTable.vue

@@ -1306,12 +1306,13 @@ export default {
     }
     setTimeout(() => {
       let tableTop = that.$refs.commonTable.offsetTop;
-      let bottomTop = that.$refs.bottomFixed.offsetTop;
-      that.tableHeight = bottomTop - tableTop - 120 + "px";
+      let height = window.innerHeight;
+      that.tableHeight = height - tableTop - 160 + "px";
     }, 10);
     // window.onresize = function () {
     //   let tableTop = that.$refs.commonTable.offsetTop;
     //   let bottomTop = that.$refs.bottomFixed.offsetTop;
+
     //   that.tableHeight = bottomTop - tableTop - 120 + "px";
     // };
   },