Skip to content

Commit 81470c2

Browse files
author
Elie Prudhomme
committed
Package dist
1 parent f955e8a commit 81470c2

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

dist/Avatar.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export default {
1212
type: String,
1313
required: true
1414
},
15+
initials: {
16+
type: String
17+
},
1518
backgroundColor: {
1619
type: String
1720
},
@@ -45,6 +48,10 @@ export default {
4548
}
4649
},
4750
51+
compiled () {
52+
this.$emit('avatar-initials', this.username, this.userInitial)
53+
},
54+
4855
computed: {
4956
background () {
5057
return this.backgroundColor ||
@@ -92,7 +99,8 @@ export default {
9299
},
93100
94101
userInitial () {
95-
return this.initial(this.username)
102+
const initials = this.initials || this.initial(this.username)
103+
return initials
96104
}
97105
},
98106

dist/vue-avatar.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)