Skip to content

Commit 30ae677

Browse files
committed
fix: CSidebarNavDropdown: allow adding 'size' prop in 'icon' object #76
1 parent d5c600b commit 30ae677

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/template/CSidebarNavDropdown.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ export default {
7676
},
7777
computedIcon () {
7878
if (typeof this.icon === 'object') {
79+
const key = this.icon.size ? 'class' : 'customClasses'
7980
return Object.assign(
80-
{ customClasses: 'c-sidebar-nav-icon' },
81+
{ [`${key}`]: 'c-sidebar-nav-icon' },
8182
this.icon
8283
)
8384
} else {

0 commit comments

Comments
 (0)