Browse Source

fix: fullscreen-modal width wrong (#3321)

* fix: fullscreen-modal width wrong

* fix: ModalWrapper expose setModalHeight missing
xachary 1 year ago
parent
commit
617b01338c

+ 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;
     }
   }