add notice bar for HomeTab.vue

This commit is contained in:
Timi
2026-10-28 11:44:15 +08:00
parent e71c0e8a4e
commit bf901f4031
8 changed files with 213 additions and 96 deletions
@@ -0,0 +1,25 @@
<template>
<t-notice-bar
v-if="noticeContent"
:key="noticeContent"
class="pending-notice"
theme="warning"
:visible="true"
direction="horizontal"
marquee
:content="noticeContent"
/>
</template>
<script setup lang="ts">
import { usePendingNoticeStore } from "@/store/pendingNoticeStore";
const pendingNoticeStore = usePendingNoticeStore();
const noticeContent = computed(() => pendingNoticeStore.pendingNoticeList.join(","));
</script>
<style scoped lang="less">
.pending-notice {
margin-top: -1rem;
}
</style>