style(仪表板): 地图编辑样式调整

This commit is contained in:
wangjiahao 2024-11-03 21:29:12 +08:00
parent 89f16ffca0
commit ba5b72b022
4 changed files with 9 additions and 29 deletions

View File

@ -298,7 +298,6 @@ const showCheck = computed(() => {
})
const updateFromMobile = (e, type) => {
console.log('====updateFromMobile===' + type)
if (type === 'syncPcDesign') {
e.preventDefault()
e.stopPropagation()

View File

@ -283,7 +283,7 @@ onMounted(() => {
</el-tooltip>
</el-form-item>
</el-space>
<el-space>
<el-space style="width: 100%">
<div v-if="chartType === 'map'">
<el-row>
<el-col>

View File

@ -129,7 +129,7 @@ const hanedleMessage = event => {
targetViewInfo = deepCopy(sourceViewInfo)
targetViewInfo.customStyleMobile = null
targetViewInfo.customAttrMobile = null
canvasViewInfoMobile[targetComponent.id] = targetViewInfo
canvasViewInfoMobile.value[targetComponent.id] = targetViewInfo
}
snapshotStore.recordSnapshotCacheToMobile('syncPcDesign', targetComponent, targetViewInfo)
}
@ -154,19 +154,10 @@ const hanedleMessage = event => {
ele.propValue.forEach(tabItem => {
tabItem.componentData.forEach(tabComponent => {
const {
x: tx,
y: ty,
sizeX: tSizeX,
sizeY: tSizeY,
style: tStyle,
propValue: tPropValue,
events: tEvents,
commonBackground: tCommonBackground
} = com.tab[tabComponent.id]
tabComponent.mx = tx
tabComponent.my = ty
tabComponent.mSizeX = tSizeX
tabComponent.mSizeY = tSizeY
tabComponent.mStyle = tStyle
tabComponent.mEvents = tEvents
tabComponent.mCommonBackground = tCommonBackground

View File

@ -39,20 +39,11 @@ const hanedleMessage = event => {
ele.propValue.forEach(tabItem => {
tabItem.componentData.forEach(tabComponent => {
const {
mx: tx,
my: ty,
mSizeX: tSizeX,
mSizeY: tSizeY,
mStyle: tStyle,
mCommonBackground: tCommonBackground,
mEvents: tEvents,
mPropValue: tPropValue
} = tabComponent
if (tSizeX && tSizeY) {
tabComponent.x = tx
tabComponent.y = ty
tabComponent.sizeX = tSizeX
tabComponent.sizeY = tSizeY
tabComponent.style = deepCopy(tStyle || tabComponent.style)
tabComponent.commonBackground = deepCopy(
tCommonBackground || tabComponent.commonBackground
@ -61,7 +52,6 @@ const hanedleMessage = event => {
if (tabComponent.component === 'VQuery') {
tabComponent.propValue = deepCopy(tPropValue || tabComponent.propValue)
}
}
})
})
}