forked from github/dataease
Merge pull request #3281 from dataease/pr@dev@fix_tab-copy
fix(仪表板): 修复部分仪表板复用tab组件时,复制的颜色边框值显示不正确问题
This commit is contained in:
commit
7cac048585
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user