瀏覽代碼

style: 取消el-dialog全局最高高度限制

bxy 9 月之前
父節點
當前提交
e311ec42f6
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 0 2
      src/styles/common.scss
  2. 3 1
      src/styles/custom-component.scss

+ 0 - 2
src/styles/common.scss

@@ -52,8 +52,6 @@
 
 .el-dialog {
   min-height: 500px;
-  max-height: 60vh;
-  overflow-y: auto;
   .el-dialog__title {
     color: rgba(0, 0, 0, 0.88);
     font-weight: 600;

+ 3 - 1
src/styles/custom-component.scss

@@ -21,9 +21,11 @@
 }
 
 .basic-dialog--custom {
+  height: 500px;
+  max-height: 60vh;
+  overflow-y: auto;
   display: flex;
   flex-direction: column;
-  height: 500px;
   .el-dialog__body {
     flex: 1;
   }