Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules1/@antv/dom-util/lib/get-width.js
T

12 lines
391 B
JavaScript
Raw Normal View History

2026-09-10 15:40:10 +08:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var get_style_1 = require("./get-style");
function getHeight(el, defaultValue) {
var width = (0, get_style_1.default)(el, 'width', defaultValue);
if (width === 'auto') {
width = el.offsetWidth;
}
return parseFloat(width);
}
exports.default = getHeight;
//# sourceMappingURL=get-width.js.map