File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ If there is an error loading the `src` of the avatar or `src` is null / false a
55
55
56
56
#### Icon : u-badge { label =" Edge " class =" ml-2 align-text-bottom !rounded-full " variant =" subtle " }
57
57
58
- You can use the ` icon ` prop to display an icon on top of the background, customizable in ` ui.avatar.icon ` .
58
+ You can use the ` icon ` prop to display an icon on top of the background or globally in ` ui.avatar.default. icon ` . Defaults to ` null ` .
59
59
60
60
:: component-card
61
61
---
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ const avatar = {
113
113
} ,
114
114
default : {
115
115
size : 'sm' ,
116
+ icon : null ,
116
117
chipColor : null ,
117
118
chipPosition : 'top-right'
118
119
}
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export default defineComponent({
52
52
},
53
53
icon: {
54
54
type: String ,
55
- default: null
55
+ default : () => appConfig . ui . avatar . default . icon
56
56
},
57
57
size: {
58
58
type: String ,
You can’t perform that action at this time.
0 commit comments