From c2296f54de31451d3ed72b7ee750dfa1052f178a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Fri, 29 Apr 2022 19:52:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AFelement-ui=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/element-ui.scss | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/assets/styles/element-ui.scss b/src/assets/styles/element-ui.scss index b156db7..be9141c 100644 --- a/src/assets/styles/element-ui.scss +++ b/src/assets/styles/element-ui.scss @@ -91,7 +91,6 @@ // color: var(--el-color-primary) !important; // } - // element ui 移动端组件适配 .el-icon { vertical-align: middle; @@ -118,16 +117,20 @@ } // dialog -@media screen and (max-width: 500px) { - .el-dialog { - --el-dialog-width: 100% !important +@media screen and (max-width: 700px) { + .el-dialog { + --el-dialog-width: 100% !important; + --el-dialog-margin-top: 0 !important; + } + .el-dialog:not(.is-fullscreen){ + margin-top: 0 !important; } } /** 表格更多操作下拉样式 */ .el-table .el-dropdown-link { cursor: pointer; - color: #409EFF; + color: #409eff; margin-left: 5px; } @@ -141,4 +144,4 @@ // 隐藏picture-card 上传按钮 .hide .el-upload--picture-card { display: none; -} \ No newline at end of file +}