mirror of https://github.com/wg-easy/wg-easy
15 changed files with 73 additions and 84 deletions
@ -0,0 +1,21 @@ |
|||||
|
<template> |
||||
|
<AvatarRoot |
||||
|
class="mr-2 inline-flex select-none items-center justify-center overflow-hidden rounded-full align-middle" |
||||
|
> |
||||
|
<AvatarImage |
||||
|
v-if="img" |
||||
|
class="h-full w-full rounded-[inherit] object-cover" |
||||
|
:src="img" |
||||
|
/> |
||||
|
<AvatarFallback |
||||
|
class="leading-1 flex h-full w-full items-center justify-center bg-white text-sm font-medium" |
||||
|
:delay-ms="600" |
||||
|
> |
||||
|
<slot /> |
||||
|
</AvatarFallback> |
||||
|
</AvatarRoot> |
||||
|
</template> |
||||
|
|
||||
|
<script lang="ts" setup> |
||||
|
defineProps<{ img?: string }>(); |
||||
|
</script> |
@ -1,17 +0,0 @@ |
|||||
<script setup lang="ts"> |
|
||||
const { title, message, duration } = defineProps<{ |
|
||||
title: string; |
|
||||
message: string; |
|
||||
duration?: number; |
|
||||
}>(); |
|
||||
</script> |
|
||||
|
|
||||
<template> |
|
||||
<ToastRoot |
|
||||
:duration="duration" |
|
||||
class="rounded-md bg-red-800 p-2 text-neutral-200" |
|
||||
> |
|
||||
<ToastTitle class="mb-4 text-lg font-medium">{{ title }} </ToastTitle> |
|
||||
<ToastDescription as-child>{{ message }}</ToastDescription> |
|
||||
</ToastRoot> |
|
||||
</template> |
|
@ -0,0 +1,3 @@ |
|||||
|
<template><div></div></template> |
||||
|
|
||||
|
<script setup lang="ts"></script> |
Loading…
Reference in new issue