fix: 过滤组件样式兼容清空条件

This commit is contained in:
dataeaseShu 2022-08-03 17:18:09 +08:00
parent f2c0d5082f
commit 3b0db41b7e

View File

@ -53,6 +53,8 @@ export default {
this.styleAttrs.forEach((ele, index) => { this.styleAttrs.forEach((ele, index) => {
if (newValue[ele]) { if (newValue[ele]) {
document.documentElement.style.setProperty(cssVar[index], !isPanelDe ? '' : newValue[ele]) document.documentElement.style.setProperty(cssVar[index], !isPanelDe ? '' : newValue[ele])
} else {
document.documentElement.style.removeProperty(cssVar[index])
} }
}) })
}, },