forked from github/dataease
refactor(仪表板): 移动端设计界面,返回PC设计端优化
This commit is contained in:
parent
9042fa365f
commit
60ed878638
@ -16,6 +16,8 @@
|
|||||||
import dvDragTips from '@/assets/svg/dv-drag-tips.svg'
|
import dvDragTips from '@/assets/svg/dv-drag-tips.svg'
|
||||||
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
|
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
|
import { useI18n } from '@/hooks/web/useI18n'
|
||||||
|
const { t } = useI18n()
|
||||||
|
|
||||||
const dvMainStore = dvMainStoreWithOut()
|
const dvMainStore = dvMainStoreWithOut()
|
||||||
const { dvInfo, mobileInPc } = storeToRefs(dvMainStore)
|
const { dvInfo, mobileInPc } = storeToRefs(dvMainStore)
|
||||||
|
@ -251,6 +251,7 @@ const handleBack = () => {
|
|||||||
mobileStatusChange('mobilePatch', undefined)
|
mobileStatusChange('mobilePatch', undefined)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
dvMainStore.setCurComponent({ component: null, index: null })
|
||||||
ElMessageBox.confirm('当前的更改尚未保存,确定退出吗?', {
|
ElMessageBox.confirm('当前的更改尚未保存,确定退出吗?', {
|
||||||
confirmButtonType: 'primary',
|
confirmButtonType: 'primary',
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
|
@ -122,6 +122,7 @@ const onMobileConfig = () => {
|
|||||||
dvMainStore.setCanvasStyle(canvasStyleDataCopy)
|
dvMainStore.setCanvasStyle(canvasStyleDataCopy)
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
mobileConfig.value = true
|
mobileConfig.value = true
|
||||||
|
dvMainStore.setCurComponent({ component: null, index: null })
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ const hanedleMessage = event => {
|
|||||||
ele.y = my
|
ele.y = my
|
||||||
ele.sizeX = mSizeX
|
ele.sizeX = mSizeX
|
||||||
ele.sizeY = mSizeY
|
ele.sizeY = mSizeY
|
||||||
ele.style = mStyle || ele.style
|
ele.style = deepCopy(mStyle || ele.style)
|
||||||
ele.commonBackground = deepCopy(mCommonBackground || ele.commonBackground)
|
ele.commonBackground = deepCopy(mCommonBackground || ele.commonBackground)
|
||||||
ele.events = deepCopy(mEvents || ele.events)
|
ele.events = deepCopy(mEvents || ele.events)
|
||||||
ele.propValue = deepCopy(mPropValue || ele.propValue)
|
ele.propValue = deepCopy(mPropValue || ele.propValue)
|
||||||
|
Loading…
Reference in New Issue
Block a user