💄 优化Layouts样式

This commit is contained in:
7836246
2024-03-02 18:06:08 +08:00
parent f31a7e6544
commit 39f1774a2b
4 changed files with 32 additions and 33 deletions
+24
View File
@@ -0,0 +1,24 @@
<script setup lang="ts">
defineProps({
text: String
})
</script>
<template>
<!-- 公告部分 -->
<div class="bg-gray-200 p-3 rounded-md mb-5 dark:bg-[#5b77af]">
<div class="flex items-center">
<i aria-hidden="true" class="icon fas fa-bullhorn mr-3"></i>
</div>
<div class="flex-grow">
<div class="text-sm text-gray-800 dark:text-white">
{{ text }}
<slot name="text" />
</div>
</div>
</div>
</template>
<style scoped>
</style>