mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
chore: 修复 office-viewer 里导致的编译报错
This commit is contained in:
parent
3c564e2777
commit
df17d9c12b
@ -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