vxe-gantt
Version:
A vue based gantt component
19 lines (18 loc) • 493 B
JavaScript
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;
}