From 5228a259ff7e0ddf430c58294749f3afcfaa246f Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期一, 08 十一月 2021 16:03:03 +0800
Subject: [PATCH] fixed: 1. 開啟popup html仍可滾動 2. 開啟el-dialog body增加 padding-right 的問題

---
 PAMapp/components/Ui/UiDialog.vue |    1 +
 PAMapp/assets/scss/_common.scss   |   10 ++++++++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/PAMapp/assets/scss/_common.scss b/PAMapp/assets/scss/_common.scss
index 5aba84b..2c706e0 100644
--- a/PAMapp/assets/scss/_common.scss
+++ b/PAMapp/assets/scss/_common.scss
@@ -8,6 +8,16 @@
     scroll-behavior: smooth;
 }
 
+html {
+    overflow: hidden;
+    height: 100%;
+}
+
+body {
+    overflow-y: auto;
+    height: 100%;
+}
+
 // btn
 .btn {
     padding: 10px 20px;
diff --git a/PAMapp/components/Ui/UiDialog.vue b/PAMapp/components/Ui/UiDialog.vue
index 259a51e..be737dc 100644
--- a/PAMapp/components/Ui/UiDialog.vue
+++ b/PAMapp/components/Ui/UiDialog.vue
@@ -5,6 +5,7 @@
             :visible.sync="dialogVisible"
             :width="width"
             @close="closeDialog"
+            :lock-scroll="false"
         >
             <slot></slot>
         </el-dialog>

--
Gitblit v1.8.0