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

9 lines
278 B
JavaScript

import getStyle from './get-style';
export default function getHeight(el, defaultValue) {
var width = getStyle(el, 'width', defaultValue);
if (width === 'auto') {
width = el.offsetWidth;
}
return parseFloat(width);
}
//# sourceMappingURL=get-width.js.map