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