fix: python dialog fullscreen

This commit is contained in:
wangdan-fit2cloud 2024-12-27 14:14:27 +08:00
parent 17616205b9
commit 116ceefd0a
3 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@
:style="codemirrorStyle"
:tab-size="4"
:autofocus="true"
style="height: 300px !important; border: 1px solid #bbbfc4; border-radius: 4px"
style="height: calc(100vh - 160px) !important; border: 1px solid #bbbfc4; border-radius: 4px"
/>
<template #footer>
<div class="dialog-footer mt-24">

View File

@ -138,10 +138,10 @@
</template>
<!-- Codemirror 弹出层 -->
<el-dialog v-model="dialogVisible" title="Python 代码" append-to-body>
<el-dialog v-model="dialogVisible" title="Python 代码" append-to-body fullscreen>
<CodemirrorEditor
v-model="cloneContent"
style="height: 300px !important; border: 1px solid #bbbfc4; border-radius: 4px"
style="height: calc(100vh - 160px) !important; border: 1px solid #bbbfc4; border-radius: 4px"
/>
<template #footer>
<div class="dialog-footer mt-24">

View File

@ -100,10 +100,10 @@
</el-form>
<FieldFormDialog ref="FieldFormDialogRef" @refresh="refreshFieldList" />
<!-- Codemirror 弹出层 -->
<el-dialog v-model="dialogVisible" title="Python 代码" append-to-body>
<el-dialog v-model="dialogVisible" title="Python 代码" append-to-body fullscreen>
<CodemirrorEditor
v-model="cloneContent"
style="height: 300px !important; border: 1px solid #bbbfc4; border-radius: 4px"
style="height: calc(100vh - 160px) !important; border: 1px solid #bbbfc4; border-radius: 4px"
/>
<template #footer>
<div class="dialog-footer mt-24">