Skip to content

Commit 2768286

Browse files
committed
fix: bug fix
1 parent 3102633 commit 2768286

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

frontend/src/views/ds/DataTable.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,11 @@ const btnSelectClick = (val: any) => {
335335
</el-button>
336336
</div>
337337

338-
<div v-if="!loading" class="preview-or-schema">
338+
<div
339+
v-if="!loading"
340+
class="preview-or-schema"
341+
:class="btnSelect === 'q' && 'overflow-preview'"
342+
>
339343
<div v-if="btnSelect === 'd'" class="table-content_preview">
340344
<el-table :data="fieldListComputed" style="width: 100%">
341345
<el-table-column
@@ -642,6 +646,10 @@ const btnSelectClick = (val: any) => {
642646
margin-top: 16px;
643647
height: calc(100% - 50px);
644648
649+
&.overflow-preview {
650+
overflow-y: auto;
651+
}
652+
645653
.table-content_preview {
646654
max-height: calc(100% - 50px);
647655
overflow-y: auto;

0 commit comments

Comments
 (0)