@@ -119,7 +119,12 @@ const beforeHandleCommand = (item: any, param: any) => {
119119 }
120120}
121121const isEditMode = computed (() => props .showPosition === ' canvas' )
122-
122+ const outResizeEnd = () => {
123+ state .tabShow = false
124+ nextTick (() => {
125+ state .tabShow = true
126+ })
127+ }
123128const addTabItem = (item : CanvasItem ) => {
124129 // do addTabItem
125130 const index = configItem .value .propValue .findIndex (
@@ -168,6 +173,7 @@ onMounted(() => {
168173
169174defineExpose ({
170175 addTabItem ,
176+ outResizeEnd ,
171177})
172178 </script >
173179
@@ -224,35 +230,37 @@ defineExpose({
224230 </template >
225231 </el-tab-pane >
226232 </template >
227- <div
228- v-for =" (tabItem, index) in configItem.propValue"
229- :key =" tabItem.name + '-content'"
230- class =" tab-content-custom"
231- :class =" { 'switch-hidden': configItem.activeTabName !== tabItem.name }"
232- >
233- <SQPreview
234- v-if =" showPosition === 'preview'"
235- :ref =" 'tabPreviewRef_' + index"
236- class =" tab-dashboard-preview"
237- :component-data =" tabItem.componentData"
238- :canvas-view-info =" canvasViewInfo"
239- :base-matrix-count =" tabBaseMatrixCount"
240- :canvas-id =" tabItem.name"
241- ></SQPreview >
242- <DashboardEditor
243- v-else
244- :ref =" 'tabEditorRef_' + index"
245- class =" tab-dashboard-editor-main"
246- :canvas-component-data =" tabItem.componentData"
247- :canvas-view-info =" canvasViewInfo"
248- :move-in-active =" configItem.moveInActive"
249- :base-matrix-count =" tabBaseMatrixCount"
250- :canvas-id =" tabItem.name"
251- :parent-config-item =" configItem"
252- @parent-add-item-box =" (item) => emits('parentAddItemBox', item)"
233+ <template v-if =" state .tabShow " >
234+ <div
235+ v-for =" (tabItem, index) in configItem.propValue"
236+ :key =" tabItem.name + '-content'"
237+ class =" tab-content-custom"
238+ :class =" { 'switch-hidden': configItem.activeTabName !== tabItem.name }"
253239 >
254- </DashboardEditor >
255- </div >
240+ <SQPreview
241+ v-if =" showPosition === 'preview'"
242+ :ref =" 'tabPreviewRef_' + index"
243+ class =" tab-dashboard-preview"
244+ :component-data =" tabItem.componentData"
245+ :canvas-view-info =" canvasViewInfo"
246+ :base-matrix-count =" tabBaseMatrixCount"
247+ :canvas-id =" tabItem.name"
248+ ></SQPreview >
249+ <DashboardEditor
250+ v-else
251+ :ref =" 'tabEditorRef_' + index"
252+ class =" tab-dashboard-editor-main"
253+ :canvas-component-data =" tabItem.componentData"
254+ :canvas-view-info =" canvasViewInfo"
255+ :move-in-active =" configItem.moveInActive"
256+ :base-matrix-count =" tabBaseMatrixCount"
257+ :canvas-id =" tabItem.name"
258+ :parent-config-item =" configItem"
259+ @parent-add-item-box =" (item) => emits('parentAddItemBox', item)"
260+ >
261+ </DashboardEditor >
262+ </div >
263+ </template >
256264 </custom-tab >
257265 <el-dialog
258266 v-model =" state.dialogVisible"
0 commit comments