File tree 4 files changed +15
-4
lines changed 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,11 @@ new Vue({
101
101
<td> - </td>
102
102
<td> String </td>
103
103
<td>Path to the avatar image to display.</td></tr>
104
+ <tr ><td >:customStyle</td >
105
+ <td> N </td>
106
+ <td> - </td>
107
+ <td> Object </td>
108
+ <td>A custom style object to override the base styles.</td></tr>
104
109
<tr ><td >backgroundColor</td >
105
110
<td> N </td>
106
111
<td> - </td>
Original file line number Diff line number Diff line change @@ -120,6 +120,12 @@ a(href='https://github.com/eliep/vue-avatar')
120
120
td -
121
121
td String
122
122
td Path to the avatar image to display.
123
+ tr
124
+ td :customStyle
125
+ td N
126
+ td -
127
+ td Object
128
+ td A custom style object to override the base styles.
123
129
tr
124
130
td backgroundColor
125
131
td N
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-avatar" ,
3
- "version" : " 2.1.0 " ,
3
+ "version" : " 2.1.1 " ,
4
4
"description" : " Avatar component for Vue.js" ,
5
5
"author" : " eprudhomme@gmail.com" ,
6
6
"license" : " MIT" ,
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" vue-avatar--wrapper" :class = " customClass " : style =" style" >
2
+ <div class =" vue-avatar--wrapper" :style =" [ style, customStyle] " >
3
3
<span v-if =" !this.src" >{{ userInitial }}</span >
4
4
</div >
5
5
</template >
@@ -21,8 +21,8 @@ export default {
21
21
color: {
22
22
type: String
23
23
},
24
- customClass : {
25
- type: String
24
+ customStyle : {
25
+ type: Object
26
26
},
27
27
size: {
28
28
type: Number ,
You can’t perform that action at this time.
0 commit comments