fix: 完成: 诊所设置中心,消息中心

This commit is contained in:
2025-04-10 17:08:23 +08:00
parent 22f91e294b
commit ed6b1bb36d
12 changed files with 1429 additions and 86 deletions

View File

@@ -103,11 +103,19 @@ function handleClick(item: NotificationItem) {
<span
class="relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full"
>
<img
:src="item.avatar"
<component
:is="item.icon"
v-if="item.icon"
:class="item.status === 1 ? 'text-gray-400 group-hover:text-gray-600': item.color"
class="aspect-square h-full w-full object-cover"
role="img"
/>
<!-- <img-->
<!-- :src="item.avatar"-->
<!-- class="aspect-square h-full w-full object-cover"-->
<!-- role="img"-->
<!-- />-->
</span>
<div class="flex flex-col gap-1 leading-none">
<p class="font-semibold">{{ item.title }}</p>

View File

@@ -1,5 +1,8 @@
interface NotificationItem {
avatar: string;
// avatar: string;
id: number;
icon: string;
color: string;
date: string;
isRead?: boolean;
message: string;