Merge pull request #13636 from dataease/pr@dev-v2@refactor_style-set
fix: 修复样式设置时可能出现的样式影响其他组件问题 #13299
This commit is contained in:
commit
b5dda58118
@ -1102,13 +1102,19 @@ const onFunctionCfgChange = val => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const onBackgroundChange = val => {
|
const onBackgroundChange = val => {
|
||||||
curComponent.value.commonBackground = val
|
// 修复#13299
|
||||||
if (mobileInPc.value) {
|
if (curComponent.value.id === view.value?.id) {
|
||||||
//移动端设计
|
curComponent.value.commonBackground = val
|
||||||
useEmitt().emitter.emit('onMobileStatusChange', {
|
if (mobileInPc.value) {
|
||||||
type: 'componentStyleChange',
|
//移动端设计
|
||||||
value: { type: 'commonBackground', component: JSON.parse(JSON.stringify(curComponent.value)) }
|
useEmitt().emitter.emit('onMobileStatusChange', {
|
||||||
})
|
type: 'componentStyleChange',
|
||||||
|
value: {
|
||||||
|
type: 'commonBackground',
|
||||||
|
component: JSON.parse(JSON.stringify(curComponent.value))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user