add notice bar for HomeTab.vue
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user