File tree 2 files changed +10
-8
lines changed
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -77,10 +77,11 @@ export default {
77
77
computedIcon () {
78
78
if (typeof this .icon === ' object' ) {
79
79
const key = this .icon .size ? ' class' : ' customClasses'
80
- return Object .assign (
81
- { [` ${ key} ` ]: ' c-sidebar-nav-icon' },
82
- this .icon
83
- )
80
+ return {
81
+ ... this .icon ,
82
+ [` ${ key} ` ]: this .icon .customClasses ||
83
+ [' c-sidebar-nav-icon' , this .icon .className ]
84
+ }
84
85
} else {
85
86
return { customClasses: ' c-sidebar-nav-icon' , name: this .icon }
86
87
}
Original file line number Diff line number Diff line change @@ -73,10 +73,11 @@ export default {
73
73
computedIcon () {
74
74
if (typeof this .icon === ' object' ) {
75
75
const key = this .icon .size ? ' class' : ' customClasses'
76
- return Object .assign (
77
- { [` ${ key} ` ]: ' c-sidebar-nav-icon' },
78
- this .icon
79
- )
76
+ return {
77
+ ... this .icon ,
78
+ [` ${ key} ` ]: this .icon .customClasses ||
79
+ [' c-sidebar-nav-icon' , this .icon .className ]
80
+ }
80
81
} else {
81
82
return { customClasses: ' c-sidebar-nav-icon' , name: this .icon }
82
83
}
You can’t perform that action at this time.
0 commit comments