Merge pull request #3281 from dataease/pr@dev@fix_tab-copy

fix(仪表板): 修复部分仪表板复用tab组件时,复制的颜色边框值显示不正确问题
This commit is contained in:
xuwei-fit2cloud 2022-09-30 16:23:13 +08:00 committed by GitHub
commit 7cac048585
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {