Skip to content

Commit d90f638

Browse files
committed
fix: 修复json编辑器高度不断增加的问题
1 parent 02449bf commit d90f638

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/views/index/JsonDrawer.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
关闭
1212
</span>
1313
</div>
14-
<div id="editorJson" :style="{height: '100%'}" />
14+
<div id="editorJson" class="json-editor" />
1515
</el-drawer>
1616
</div>
1717
</template>
@@ -82,4 +82,8 @@ export default {
8282
display: none;
8383
}
8484
@include action-bar;
85+
86+
.json-editor{
87+
height: calc(100vh - 33px);
88+
}
8589
</style>

0 commit comments

Comments
 (0)