UNPKG

vxe-gantt

Version:
19 lines (18 loc) 493 B
export function getRefElem(refEl) { if (refEl) { const rest = refEl.value; if (rest) { return (rest.$el || rest); } } return null; } export function getCalcHeight(height) { if (height === 'unset') { return 0; } return height || 0; } export function getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight) { return rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight; }