mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 04:08:44 +08:00 
			
		
		
		
	fix: avatar
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="user-info-head" @click="open()">
 | 
			
		||||
    <img v-if="sourceValue" :src="sourceValue" alt="avatar" class="img-circle img-lg" />
 | 
			
		||||
    <img v-if="!sourceValue" :src="avatar" alt="avatar" class="img-circle img-lg" />
 | 
			
		||||
    <el-avatar v-if="sourceValue" :src="sourceValue" alt="avatar" class="img-circle img-lg" />
 | 
			
		||||
    <el-avatar v-if="!sourceValue" :src="avatar" alt="avatar" class="img-circle img-lg" />
 | 
			
		||||
    <el-button v-if="showBtn" :class="`${prefixCls}-upload-btn`" @click="open()">
 | 
			
		||||
      {{ btnText ? btnText : t('cropper.selectImage') }}
 | 
			
		||||
    </el-button>
 | 
			
		||||
 
 | 
			
		||||
@@ -53,7 +53,7 @@ const toDocument = () => {
 | 
			
		||||
<template>
 | 
			
		||||
  <ElDropdown class="custom-hover" :class="prefixCls" trigger="click">
 | 
			
		||||
    <div class="flex items-center">
 | 
			
		||||
      <img :src="avatar" alt="" class="w-[calc(var(--logo-height)-25px)] rounded-[50%]" />
 | 
			
		||||
      <ElAvatar :src="avatar" alt="" class="w-[calc(var(--logo-height)-25px)] rounded-[50%]" />
 | 
			
		||||
      <span class="<lg:hidden text-14px pl-[5px] text-[var(--top-header-text-color)]">
 | 
			
		||||
        {{ userName }}
 | 
			
		||||
      </span>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user