Skip to content

Commit ec76d1b

Browse files
committed
fix: Notcie fixed layout pined #275
1 parent 521b645 commit ec76d1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/NoticeIcon/NoticeIcon.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
trigger="click"
55
placement="bottomRight"
66
overlayClassName="header-notice-wrapper"
7+
:getPopupContainer="() => $refs.noticeRef.parentElement"
78
:autoAdjustOverflow="true"
89
:arrowPointAtCenter="true"
910
:overlayStyle="{ width: '300px', top: '50px' }"
@@ -39,7 +40,7 @@
3940
</a-tabs>
4041
</a-spin>
4142
</template>
42-
<span @click="fetchNotice" class="header-notice">
43+
<span @click="fetchNotice" class="header-notice" ref="noticeRef">
4344
<a-badge count="12">
4445
<a-icon style="font-size: 16px; padding: 4px" type="bell" />
4546
</a-badge>

0 commit comments

Comments
 (0)