ソースを参照

dialog增加内部限高滚动条,以及全局滚动条样式

刘洋 2 年 前
コミット
d0989d8b47
2 ファイル変更21 行追加0 行削除
  1. 5 0
      src/styles/elementuiCustomize.css
  2. 16 0
      src/styles/global.css

+ 5 - 0
src/styles/elementuiCustomize.css

@@ -16,3 +16,8 @@
 /* .el-form--inline .el-form-item__content {
   line-height: inherit !important;
 } */
+
+.el-dialog .el-dialog__body{
+  max-height:calc(85vh - 105px);
+  overflow:auto;
+}

+ 16 - 0
src/styles/global.css

@@ -146,4 +146,20 @@ body {
   display: inline-block;
   fill: currentColor;
   overflow: visible;
+}
+
+::-webkit-scrollbar {
+  width: 8px;
+  height: 8px;
+}
+::-webkit-scrollbar-thumb {
+  background-color:rgba(0, 0, 0, 0.2);
+  border-radius: 4px
+}
+::-webkit-scrollbar-thumb:hover{
+  background-color:rgba(0, 0, 0, 0.3);
+
+}
+::-webkit-scrollbar-track-piece {
+  border-radius:4px;
 }