add top for announcement

This commit is contained in:
xuyue committed 2024-06-23 12:27:51 +00:00
1 parent c8b30b50dc
commit a0b006c936
4 files changed
+27 -1

No files matched your search

@@ -0,0 +1,14 @@
<template>
<n-flex align="center">
<n-tag type="error" v-if="top">置顶</n-tag>
<span>{{ title }}</span>
</n-flex>
</template>
<script setup lang="ts">
interface Props {
top: boolean
title: string
}
defineProps<Props>()
</script>