diff --git a/src/styles/element-ui.scss b/src/styles/element-ui.scss index ed78a7db0..57fa8be5e 100644 --- a/src/styles/element-ui.scss +++ b/src/styles/element-ui.scss @@ -458,3 +458,25 @@ a { .el-table-filter__list-item:hover { color: $--color-text-primary; } + + +.el-dialog { + // 居中弹框 + position: absolute; + top: 50%; + left: 50%; + margin: 0 !important; + transform: translate(-50%, -50%); + // 防止超出视窗 + max-height: calc(100% - 30px); + max-width: calc(100% - 30px); + //实现body内部滚动 + display: flex; + flex-direction: column; + + .el-dialog__body { + max-height: 90vh; + overflow: auto; + } +} +