Merge pull request #6498 from nwind/fix-dom-build

chore: 修复 office-viewer 里导致的编译报错
This commit is contained in:
hsm-lv 2023-03-29 21:57:38 +08:00 committed by GitHub
commit 6a51ca3c5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));
}
}
}