pc-component
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -1,2 +0,2 @@ | ||
import { onMounted, ref, computed } from 'vue'; | ||
import { onMounted, ref, computed } from "vue"; | ||
@@ -7,8 +7,9 @@ function getTableHeight(h) { | ||
onMounted(() => { | ||
const pageDom = document.querySelector('#app'); | ||
const header = document.querySelector('#header').offsetHeight; | ||
const tableFooter = document.querySelector('#table_footer').offsetHeight; | ||
const pageDom = document.querySelector("#app").offsetHeight || 0; | ||
const header = document.querySelector("#header").offsetHeight || 0; | ||
const tableFooter = | ||
document.querySelector("#table_footer").offsetHeight || 0; | ||
if (pageDom) { | ||
pageH.value = pageDom.offsetHeight - header - tableFooter; | ||
pageH.value = pageDom - header - tableFooter; | ||
} | ||
@@ -24,3 +25,3 @@ }); | ||
return { | ||
tableHeight | ||
tableHeight, | ||
}; | ||
@@ -27,0 +28,0 @@ } |
{ | ||
"name": "pc-component", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
39976
17
696