<script setup>
import avatar1 from '@/assets/img/dtx.png'
</script>

<template>
  <v-badge dot location="bottom right" offset-x="3" offset-y="3" color="success" bordered>
    <v-avatar class="cursor-pointer" color="primary" variant="tonal">
      <v-img :src="avatar1" />
      <v-menu activator="parent" width="230" location="bottom end" offset="14px">
        <v-list>
          <v-list-item>
            <template #prepend>
              <v-list-item-action start>
                <v-badge dot location="bottom right" offset-x="3" offset-y="3" color="success">
                  <v-avatar color="primary" variant="tonal">
                    <v-img :src="avatar1" />
                  </v-avatar>
                </v-badge>
              </v-list-item-action>
            </template>

            <v-list-item-title class="font-weight-semibold">
              xiong
            </v-list-item-title>
            <v-list-item-subtitle>Admin</v-list-item-subtitle>
          </v-list-item>
          <v-divider class="my-2" />

          <!-- 👉 Profile -->
          <v-list-item link>
            <template #prepend>
              <v-icon icon="mdi-account-outline" size="22" />
            </template>

            <v-list-item-title>个人信息</v-list-item-title>
          </v-list-item>

          <!-- 👉 Settings -->
          <v-list-item link>
            <template #prepend>
              <v-icon icon="mdi-cog-outline" size="22" />
            </template>

            <v-list-item-title>个人设置</v-list-item-title>
          </v-list-item>

          <!-- 👉 Pricing -->

          <!-- 👉 FAQ -->
          <v-list-item link>
            <template #prepend>
              <v-icon icon="mdi-help-circle-outline" size="22" />
            </template>

            <v-list-item-title>说明文档</v-list-item-title>
          </v-list-item>

          <!-- Divider -->
          <v-divider class="my-2" />

          <!-- 👉 Logout -->
          <v-list-item to="/login">
            <template #prepend>
              <v-icon icon="mdi-logout" size="22" />
            </template>

            <v-list-item-title>退出登录</v-list-item-title>
          </v-list-item>
        </v-list>
      </v-menu>
      <!-- !SECTION -->
    </v-avatar>
  </v-badge>
</template>