瀏覽代碼

fix: fullscreen-modal width wrong (#3321)

* fix: fullscreen-modal width wrong

* fix: ModalWrapper expose setModalHeight missing
xachary 1 年之前
父節點
當前提交
617b01338c
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      src/components/Modal/src/components/ModalWrapper.vue
  2. 2 0
      src/components/Modal/src/index.less

+ 1 - 1
src/components/Modal/src/components/ModalWrapper.vue

@@ -150,5 +150,5 @@
     }
   }
 
-  defineExpose({ scrollTop });
+  defineExpose({ scrollTop, setModalHeight });
 </script>

+ 2 - 0
src/components/Modal/src/index.less

@@ -4,10 +4,12 @@
   .ant-modal {
     inset: 0 !important;
     width: 100% !important;
+    max-width: 100%;
     height: 100%;
 
     &-content {
       height: 100%;
+      overflow: hidden;
     }
   }