tav-ui
Version:
20 lines (15 loc) • 588 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
function useComputedHeight(intance, minHeight) {
vue.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`;
}
});
}
exports.useComputedHeight = useComputedHeight;
//# sourceMappingURL=useComputedHeight2.js.map