Skip to content

Commit 90d435b

Browse files
authored
Merge pull request dataease#4382 from dataease/pr@dev@fix_shortkey
fix(仪表板): 修复仪表板编辑界面点击全屏后返回快捷键冲突
2 parents 0cddec9 + e375526 commit 90d435b

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

frontend/src/views/panel/edit/index.vue

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@
165165
v-show=" show &&showIndex===1"
166166
:canvas-id="canvasId"
167167
/>
168-
<subject-setting v-show=" show &&showIndex===2" />
169-
<assist-component v-show=" show &&showIndex===3" />
168+
<subject-setting v-show=" show &&showIndex===2"/>
169+
<assist-component v-show=" show &&showIndex===3"/>
170170
</div>
171171
</el-drawer>
172172
<!--PC端画布区域-->
173-
<canvas-opt-bar v-if="!previewVisible&&!mobileLayoutStatus" />
173+
<canvas-opt-bar v-if="!previewVisible&&!mobileLayoutStatus"/>
174174
<de-canvas
175175
v-if="!previewVisible&&!mobileLayoutStatus"
176176
ref="canvasMainRef"
@@ -196,7 +196,7 @@
196196
:style="customCanvasMobileStyle"
197197
class="this_mobile_canvas"
198198
>
199-
<el-row class="this_mobile_canvas_top" />
199+
<el-row class="this_mobile_canvas_top"/>
200200
<el-row class="this_mobile_canvas_inner_top">
201201
{{ panelInfo.name }}
202202
</el-row>
@@ -205,7 +205,7 @@
205205
class="this_mobile_canvas_main"
206206
:style="mobileCanvasStyle"
207207
>
208-
<canvas-opt-bar v-if="!previewVisible&&mobileLayoutStatus" />
208+
<canvas-opt-bar v-if="!previewVisible&&mobileLayoutStatus"/>
209209
<de-canvas
210210
v-if="!previewVisible&&mobileLayoutStatus"
211211
ref="canvasMainRef"
@@ -243,14 +243,14 @@
243243
/>
244244
</el-col>
245245
</el-row>
246-
<el-row class="this_mobile_canvas_bottom" />
246+
<el-row class="this_mobile_canvas_bottom"/>
247247
</div>
248248
</el-col>
249249
<el-col
250250
:span="16"
251251
class="this_mobile_canvas_cell this_mobile_canvas_wait_cell"
252252
>
253-
<component-wait />
253+
<component-wait/>
254254
</el-col>
255255
</el-row>
256256
</de-main-container>
@@ -268,7 +268,7 @@
268268
/>
269269
</div>
270270
<div v-if="showBatchViewToolsAside">
271-
<chart-style-batch-set />
271+
<chart-style-batch-set/>
272272
</div>
273273
<div v-if="!showViewToolsAside&&!showBatchViewToolsAside">
274274
<el-row style="height: 40px">
@@ -287,7 +287,7 @@
287287
>{{ $t('panel.position_adjust') }}</span>
288288
</el-row>
289289
<el-row>
290-
<position-adjust v-if="curComponent&&!curComponent.auxiliaryMatrix" />
290+
<position-adjust v-if="curComponent&&!curComponent.auxiliaryMatrix"/>
291291
<div
292292
v-else
293293
class="view-selected-message-class"
@@ -792,6 +792,9 @@ export default {
792792
},
793793
previewVisible(val) {
794794
this.$store.commit('setPreviewVisible', val)
795+
if (!val) {
796+
listenGlobalKeyDown()
797+
}
795798
},
796799
panelInfo: {
797800
handler(newVal, oldVla) {

0 commit comments

Comments
 (0)