소스 검색

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