merge master
						commit
						20ee9f6fa5
					
				| 
						 | 
					@ -1,5 +1,6 @@
 | 
				
			||||||
<script lang="ts" setup>
 | 
					<script lang="ts" setup>
 | 
				
			||||||
import { Dropdown, Menu, MenuDivider } from 'ant-design-vue'
 | 
					import { Avatar, Dropdown, Menu, MenuDivider } from 'ant-design-vue'
 | 
				
			||||||
 | 
					import { UserOutlined } from '@ant-design/icons-vue'
 | 
				
			||||||
import type { MenuInfo } from 'ant-design-vue/lib/menu/src/interface'
 | 
					import type { MenuInfo } from 'ant-design-vue/lib/menu/src/interface'
 | 
				
			||||||
import { computed } from 'vue'
 | 
					import { computed } from 'vue'
 | 
				
			||||||
import { DOC_URL } from '@/settings/siteSetting'
 | 
					import { DOC_URL } from '@/settings/siteSetting'
 | 
				
			||||||
| 
						 | 
					@ -78,7 +79,9 @@ function handleMenuClick(e: MenuInfo) {
 | 
				
			||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <Dropdown placement="bottomLeft" :overlay-class-name="`${prefixCls}-dropdown-overlay`">
 | 
					  <Dropdown placement="bottomLeft" :overlay-class-name="`${prefixCls}-dropdown-overlay`">
 | 
				
			||||||
    <span :class="[prefixCls, `${prefixCls}--${theme}`]" class="flex">
 | 
					    <span :class="[prefixCls, `${prefixCls}--${theme}`]" class="flex">
 | 
				
			||||||
      <img :class="`${prefixCls}__header`" :src="getUserInfo.avatar">
 | 
					      <Avatar size="small" :class="`${prefixCls}__avatar`" :src="getUserInfo.avatar">
 | 
				
			||||||
 | 
					        <template #icon><UserOutlined /></template>
 | 
				
			||||||
 | 
					      </Avatar>
 | 
				
			||||||
      <span :class="`${prefixCls}__info hidden md:block`">
 | 
					      <span :class="`${prefixCls}__info hidden md:block`">
 | 
				
			||||||
        <span :class="`${prefixCls}__name  `" class="truncate">
 | 
					        <span :class="`${prefixCls}__name  `" class="truncate">
 | 
				
			||||||
          {{ getUserInfo.nickname }}
 | 
					          {{ getUserInfo.nickname }}
 | 
				
			||||||
| 
						 | 
					@ -111,14 +114,8 @@ function handleMenuClick(e: MenuInfo) {
 | 
				
			||||||
  font-size: 12px;
 | 
					  font-size: 12px;
 | 
				
			||||||
  cursor: pointer;
 | 
					  cursor: pointer;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  img {
 | 
					  &__avatar {
 | 
				
			||||||
    width: 24px;
 | 
					    margin-right: 5px;
 | 
				
			||||||
    height: 24px;
 | 
					 | 
				
			||||||
    margin-right: 12px;
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  &__header {
 | 
					 | 
				
			||||||
    border-radius: 50%;
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  &__name {
 | 
					  &__name {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -130,10 +130,6 @@
 | 
				
			||||||
        right: 2px;
 | 
					        right: 2px;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					 | 
				
			||||||
    span[role="img"] {
 | 
					 | 
				
			||||||
      padding: 0 8px;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  &--light {
 | 
					  &--light {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue