From e32d4e7ee0762f9a79783e35db177e8433d7abf2 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Mon, 27 Sep 2021 14:54:14 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=BC=B9=E7=AA=97=20?= =?UTF-8?q?(#1081)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf: 修改不再存储 .env.devlopement * perf: 优化弹窗 Co-authored-by: ibuler --- src/styles/element-ui.scss | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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; + } +} +