add top for announcement

This commit is contained in:
2024-06-23 12:27:51 +00:00
parent c8b30b50dc
commit a0b006c936
4 changed files with 27 additions and 1 deletions

View File

@@ -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>