Merge pull request #13064 from dataease/pr@dev-v2@refactor_mobile

refactor(仪表板): 移动端设计界面,返回PC设计端优化
This commit is contained in:
王嘉豪 2024-11-01 17:38:44 +08:00 committed by GitHub
commit 1c1d57daf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)