UNPKG

vxe-gantt

Version:
26 lines (25 loc) 632 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCalcHeight = getCalcHeight; exports.getCellRestHeight = getCellRestHeight; exports.getRefElem = getRefElem; function getRefElem(refEl) { if (refEl) { const rest = refEl.value; if (rest) { return rest.$el || rest; } } return null; } function getCalcHeight(height) { if (height === 'unset') { return 0; } return height || 0; } function getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight) { return rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight; }