Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9a6d29b2
authored
Sep 11, 2023
by
xingyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: avatar
parent
1fe950ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/components/Cropper/src/CropperAvatar.vue
+2
-2
src/layout/components/UserInfo/src/UserInfo.vue
+1
-1
No files found.
src/components/Cropper/src/CropperAvatar.vue
View file @
9a6d29b2
<
template
>
<
template
>
<div
class=
"user-info-head"
@
click=
"open()"
>
<div
class=
"user-info-head"
@
click=
"open()"
>
<
img
v-if=
"sourceValue"
:src=
"sourceValue"
alt=
"avatar"
class=
"img-circle img-lg"
/>
<
el-avatar
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=
"avatar"
alt=
"avatar"
class=
"img-circle img-lg"
/>
<el-button
v-if=
"showBtn"
:class=
"`$
{prefixCls}-upload-btn`" @click="open()">
<el-button
v-if=
"showBtn"
:class=
"`$
{prefixCls}-upload-btn`" @click="open()">
{{
btnText
?
btnText
:
t
(
'cropper.selectImage'
)
}}
{{
btnText
?
btnText
:
t
(
'cropper.selectImage'
)
}}
</el-button>
</el-button>
...
...
src/layout/components/UserInfo/src/UserInfo.vue
View file @
9a6d29b2
...
@@ -53,7 +53,7 @@ const toDocument = () => {
...
@@ -53,7 +53,7 @@ const toDocument = () => {
<
template
>
<
template
>
<ElDropdown
class=
"custom-hover"
:class=
"prefixCls"
trigger=
"click"
>
<ElDropdown
class=
"custom-hover"
:class=
"prefixCls"
trigger=
"click"
>
<div
class=
"flex items-center"
>
<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
)]"
>
<span
class=
"
<lg:hidden
text-14px
pl-
[
5px
]
text-
[
var
(
--top-header-text-color
)]"
>
{{
userName
}}
{{
userName
}}
</span>
</span>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment