Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
fashion-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tangfh
fashion-ui
Commits
07a2342b
Commit
07a2342b
authored
Jun 18, 2024
by
tangfh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+
parent
98727182
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
8 deletions
+19
-8
changelog.md
uni_modules/f-avatar-edit/changelog.md
+2
-0
f-avatar-edit.vue
.../f-avatar-edit/components/f-avatar-edit/f-avatar-edit.vue
+16
-7
package.json
uni_modules/f-avatar-edit/package.json
+1
-1
No files found.
uni_modules/f-avatar-edit/changelog.md
View file @
07a2342b
## 1.0.1(2024-06-18)
1.
0.1
## 1.0.0(2024-06-07)
## 1.0.0(2024-06-07)
1.
0.0
1.
0.0
## 1.0.4(2024-06-04)
## 1.0.4(2024-06-04)
...
...
uni_modules/f-avatar-edit/components/f-avatar-edit/f-avatar-edit.vue
View file @
07a2342b
<
template
>
<
template
>
<view
class=
"flex-row v-avatar"
:style=
"[style]"
@
click=
"onClick"
>
<view
class=
"flex-row v-avatar"
style=
"padding-right: 10rpx"
:style=
"[style]"
@
click=
"onClick"
>
<f-image-01
:avatar=
"avatar"
:style=
"avatarStyle"
></f-image-01>
<f-image-01
:avatar=
"avatar"
:style=
"avatarStyle"
@
tap=
"onAvatarClick"
></f-image-01>
<image
class=
"image-avatar-right"
src=
"/static/f/com-camera-small.png"
mode=
"aspectFill"
<image
v-if=
"isEdit"
class=
"image-avatar-right"
src=
"/static/f/com-camera-small.png"
mode=
"aspectFill"
@
click
.
stop=
"onSelectBtnClick"
></image>
@
click
.
stop=
"onSelectBtnClick"
></image>
</view>
</view>
</
template
>
</
template
>
...
@@ -20,14 +20,15 @@
...
@@ -20,14 +20,15 @@
avatarStyle
:
{
avatarStyle
:
{
type
:
Object
,
type
:
Object
,
default
:
{}
default
:
{}
},
isEdit
:
{
type
:
Boolean
,
default
:
true
}
}
},
},
methods
:
{
methods
:
{
onClick
()
{
onClick
()
{
this
.
$emit
(
"click"
)
this
.
$emit
(
"click"
)
uni
.
previewImage
({
urls
:
[
this
.
avatar
]
})
},
},
onSelectBtnClick
()
{
onSelectBtnClick
()
{
let
_this
=
this
;
let
_this
=
this
;
...
@@ -39,6 +40,14 @@
...
@@ -39,6 +40,14 @@
}
}
})
})
},
},
onAvatarClick
()
{
uni
.
previewImage
({
current
:
0
,
urls
:
[
this
.
avatar
],
indicator
:
"number"
,
loop
:
true
,
})
},
}
}
}
}
</
script
>
</
script
>
...
@@ -62,7 +71,7 @@
...
@@ -62,7 +71,7 @@
width
:
48rpx
;
width
:
48rpx
;
height
:
48rpx
;
height
:
48rpx
;
bottom
:
0rpx
;
bottom
:
0rpx
;
right
:
1
0
rpx
;
right
:
1
4
rpx
;
flex-shrink
:
0
;
flex-shrink
:
0
;
position
:
absolute
;
position
:
absolute
;
}
}
...
...
uni_modules/f-avatar-edit/package.json
View file @
07a2342b
{
{
"id"
:
"f-avatar-edit"
,
"id"
:
"f-avatar-edit"
,
"displayName"
:
"f-avatar-edit"
,
"displayName"
:
"f-avatar-edit"
,
"version"
:
"1.0.
0
"
,
"version"
:
"1.0.
1
"
,
"description"
:
"头像编辑"
,
"description"
:
"头像编辑"
,
"keywords"
:
[
"keywords"
:
[
"f-avatar-edit"
"f-avatar-edit"
...
...
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