forked from github/dataease
refactor: 优化Tab页渲染,修复tab页切换可能导致的变形问题
This commit is contained in:
parent
295eb6b64e
commit
b27d67dd57
@ -16,6 +16,7 @@ import router from '@/router'
|
|||||||
import { XpackComponent } from '@/components/plugin'
|
import { XpackComponent } from '@/components/plugin'
|
||||||
import PopArea from '@/custom-component/pop-area/Component.vue'
|
import PopArea from '@/custom-component/pop-area/Component.vue'
|
||||||
import CanvasFilterBtn from '@/custom-component/canvas-filter-btn/Component.vue'
|
import CanvasFilterBtn from '@/custom-component/canvas-filter-btn/Component.vue'
|
||||||
|
import { useEmitt } from '@/hooks/web/useEmitt'
|
||||||
const dvMainStore = dvMainStoreWithOut()
|
const dvMainStore = dvMainStoreWithOut()
|
||||||
const { pcMatrixCount, curComponent, mobileInPc, canvasState } = storeToRefs(dvMainStore)
|
const { pcMatrixCount, curComponent, mobileInPc, canvasState } = storeToRefs(dvMainStore)
|
||||||
const openHandler = ref(null)
|
const openHandler = ref(null)
|
||||||
@ -153,6 +154,14 @@ watch(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
useEmitt({
|
||||||
|
name: 'tabCanvasChange-' + canvasId.value,
|
||||||
|
callback: function () {
|
||||||
|
console.log('tabCanvasChange--' + canvasId.value)
|
||||||
|
restore()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
const resetLayout = () => {
|
const resetLayout = () => {
|
||||||
if (downloadStatus.value) {
|
if (downloadStatus.value) {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user