refactor(仪表板): 移动端设计界面,返回PC设计端优化

This commit is contained in:
wangjiahao 2024-11-01 17:37:53 +08:00
parent 9042fa365f
commit 60ed878638
4 changed files with 5 additions and 1 deletions

View File

@ -16,6 +16,8 @@
import dvDragTips from '@/assets/svg/dv-drag-tips.svg'
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
import { storeToRefs } from 'pinia'
import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()
const dvMainStore = dvMainStoreWithOut()
const { dvInfo, mobileInPc } = storeToRefs(dvMainStore)

View File

@ -251,6 +251,7 @@ const handleBack = () => {
mobileStatusChange('mobilePatch', undefined)
return
}
dvMainStore.setCurComponent({ component: null, index: null })
ElMessageBox.confirm('当前的更改尚未保存,确定退出吗?', {
confirmButtonType: 'primary',
type: 'warning',

View File

@ -122,6 +122,7 @@ const onMobileConfig = () => {
dvMainStore.setCanvasStyle(canvasStyleDataCopy)
nextTick(() => {
mobileConfig.value = true
dvMainStore.setCurComponent({ component: null, index: null })
})
}

View File

@ -28,7 +28,7 @@ const hanedleMessage = event => {
ele.y = my
ele.sizeX = mSizeX
ele.sizeY = mSizeY
ele.style = mStyle || ele.style
ele.style = deepCopy(mStyle || ele.style)
ele.commonBackground = deepCopy(mCommonBackground || ele.commonBackground)
ele.events = deepCopy(mEvents || ele.events)
ele.propValue = deepCopy(mPropValue || ele.propValue)