mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:29:24 +08:00
Merge pull request #6498 from nwind/fix-dom-build
chore: 修复 office-viewer 里导致的编译报错
This commit is contained in:
commit
6a51ca3c5a
@ -28,7 +28,7 @@ export function applyStyle(el: HTMLElement, style?: CSSStyle): void {
|
||||
for (const key in style) {
|
||||
const value = style[key];
|
||||
if (value != null && value !== '') {
|
||||
el.style.setProperty(key, style[key]);
|
||||
el.style.setProperty(key, String(value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user