forked from github/dataease
style(仪表板): 地图编辑样式调整
This commit is contained in:
parent
89f16ffca0
commit
ba5b72b022
@ -298,7 +298,6 @@ const showCheck = computed(() => {
|
||||
})
|
||||
|
||||
const updateFromMobile = (e, type) => {
|
||||
console.log('====updateFromMobile===' + type)
|
||||
if (type === 'syncPcDesign') {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user