forgeplus-react/node_modules/@antv/util/lib/dom/modify-css.js

11 lines
195 B
JavaScript

module.exports = function modifyCSS(dom, css) {
if (dom) {
for (var key in css) {
if (css.hasOwnProperty(key)) {
dom.style[key] = css[key];
}
}
}
return dom;
};