Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules2/@antv/dom-util/esm/get-outer-height.js
T
2026-09-10 15:40:10 +08:00

13 lines
679 B
JavaScript

import getStyle from './get-style';
import getHeight from './get-height';
export default function getOuterHeight(el, defaultValue) {
var height = getHeight(el, defaultValue);
var bTop = parseFloat(getStyle(el, 'borderTopWidth')) || 0;
var pTop = parseFloat(getStyle(el, 'paddingTop')) || 0;
var pBottom = parseFloat(getStyle(el, 'paddingBottom')) || 0;
var bBottom = parseFloat(getStyle(el, 'borderBottomWidth')) || 0;
var mTop = parseFloat(getStyle(el, 'marginTop')) || 0;
var mBottom = parseFloat(getStyle(el, 'marginBottom')) || 0;
return height + bTop + bBottom + pTop + pBottom + mTop + mBottom;
}
//# sourceMappingURL=get-outer-height.js.map