File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
layout/components/UserInfo/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" user-info-head" @click =" open()" >
3
- <img v-if =" sourceValue" :src =" sourceValue" alt =" avatar" class =" img-circle img-lg" />
4
- <img v-if =" !sourceValue" :src =" avatar" alt =" avatar" class =" img-circle img-lg" />
3
+ <el-avatar v-if =" sourceValue" :src =" sourceValue" alt =" avatar" class =" img-circle img-lg" />
4
+ <el-avatar v-if =" !sourceValue" :src =" avatar" alt =" avatar" class =" img-circle img-lg" />
5
5
<el-button v-if =" showBtn" :class =" `${prefixCls}-upload-btn`" @click =" open()" >
6
6
{{ btnText ? btnText : t('cropper.selectImage') }}
7
7
</el-button >
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ const toDocument = () => {
53
53
<template >
54
54
<ElDropdown class =" custom-hover" :class =" prefixCls" trigger =" click" >
55
55
<div class =" flex items-center" >
56
- <img :src =" avatar" alt =" " class =" w-[calc(var(--logo-height)-25px)] rounded-[50%]" />
56
+ <ElAvatar :src =" avatar" alt =" " class =" w-[calc(var(--logo-height)-25px)] rounded-[50%]" />
57
57
<span class =" <lg:hidden text-14px pl-[5px] text-[var(--top-header-text-color)]" >
58
58
{{ userName }}
59
59
</span >
You can’t perform that action at this time.
0 commit comments