fix(仪表板): 修复部分仪表板复用tab组件时,复制的颜色边框值显示不正确问题

This commit is contained in:
wangjiahao 2022-09-30 16:09:36 +08:00
parent d3f90ca1d8
commit c57861c602

View File

@ -380,7 +380,11 @@ export function adaptCurThemeCommonStyle(component) {
} else if (isTabComponent(component.component)) {
const tabStyle = store.state.canvasStyleData.chartInfo.tabStyle
for (const styleKey in tabStyle) {
Vue.set(component.style, styleKey, tabStyle[styleKey])
if(typeof tabStyle[styleKey] === 'string'){
Vue.set(component.style, styleKey, tabStyle[styleKey])
}else{
Vue.set(component.style, styleKey, null)
}
}
} else {
if (component.style.color) {