tav-ui
Version:
16 lines (13 loc) • 496 B
JavaScript
import { onMounted } from 'vue';
function useComputedHeight(intance, minHeight) {
onMounted(() => {
const tableBoxEl = intance && intance.value;
if (tableBoxEl) {
const currentHeight = tableBoxEl.offsetHeight;
console.log(currentHeight, "currentHeightcurrentHeight", minHeight);
tableBoxEl.style.height = currentHeight > minHeight ? `${currentHeight}px` : `${minHeight}px`;
}
});
}
export { useComputedHeight };
//# sourceMappingURL=useComputedHeight2.mjs.map