1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 16:29:17 +08:00

feat: 调整文件编辑弹框的高度

This commit is contained in:
zhengkunwang223 2023-02-28 16:40:29 +08:00 committed by zhengkunwang223
parent 9b14ddb177
commit 895e6ce181

View File

@ -5,14 +5,12 @@
:before-close="handleClose" :before-close="handleClose"
destroy-on-close destroy-on-close
width="70%" width="70%"
draggable
@opened="onOpen" @opened="onOpen"
class="coder-dialog"
> >
<div>
<div v-loading="loading"> <div v-loading="loading">
<div id="codeBox" style="height: 60vh"></div> <div id="codeBox" style="height: 60vh"></div>
</div> </div>
</div>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="handleClose">{{ $t('commons.button.cancel') }}</el-button> <el-button @click="handleClose">{{ $t('commons.button.cancel') }}</el-button>
@ -106,3 +104,9 @@ const onOpen = () => {
defineExpose({ acceptParams }); defineExpose({ acceptParams });
</script> </script>
<style lang="scss">
.coder-dialog {
--el-dialog-margin-top: 10vh;
}
</style>