.el-dialog{ display: flex; flex-direction: column; margin:0 !important; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); /*height:600px;*/ max-height:calc(100% - 30px); max-calc(100% - 30px); } .el-dialog .el-dialog__body{ flex:1; overflow: auto; }