居中,动态高度,有滚轮
<style scoped>
/deep/ .el-dialog {
height: 80vh;
overflow: auto;
}
/deep/ .el-dialog {
overflow: auto;
display: flex;
flex-direction: column;
margin: 0 !important;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-height: calc(100% - 30px);
max-width: calc(100% - 30px);
}
</style>