Przeglądaj źródła

fix: Notcie fixed layout pined #275

Sendya 5 lat temu
rodzic
commit
ec76d1b121
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/components/NoticeIcon/NoticeIcon.vue

+ 2 - 1
src/components/NoticeIcon/NoticeIcon.vue

@@ -4,6 +4,7 @@
     trigger="click"
     placement="bottomRight"
     overlayClassName="header-notice-wrapper"
+    :getPopupContainer="() => $refs.noticeRef.parentElement"
     :autoAdjustOverflow="true"
     :arrowPointAtCenter="true"
     :overlayStyle="{ width: '300px', top: '50px' }"
@@ -39,7 +40,7 @@
         </a-tabs>
       </a-spin>
     </template>
-    <span @click="fetchNotice" class="header-notice">
+    <span @click="fetchNotice" class="header-notice" ref="noticeRef">
       <a-badge count="12">
         <a-icon style="font-size: 16px; padding: 4px" type="bell" />
       </a-badge>