el-dialog居中对齐
/deep/ .el-dialog { 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); .el-dialog__body { padding: 30px 25px; height: 800px; flex: 1; overflow: auto; } }
活到老,学到老。
踏实+激情+坚持