chore: 修复 office-viewer 里导致的编译报错

This commit is contained in:
wuduoyi 2023-03-29 21:33:13 +08:00
parent 3c564e2777
commit df17d9c12b

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