File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 4949 role =" tab"
5050 @click.prevent =" setActive(tab.id)" >
5151 <span class =" app-sidebar-tabs__tab-icon" >
52- <NcVNodes :vnodes =" tab.renderIcon()" />
52+ <NcVNodes :vnodes =" tab.renderIcon()" >
53+ <span :class =" tab.icon" />
54+ </NcVNodes >
5355 </span >
5456 {{ tab.name }}
5557 </a >
Original file line number Diff line number Diff line change @@ -126,12 +126,12 @@ export default {
126126 },
127127
128128 /**
129- * Render tab's icon from slot or icon prop
129+ * Render tab's icon slot if any
130130 *
131- * @return {import('vue').VNode|import('vue').VNode []}
131+ * @return {import('vue').VNode[]}
132132 */
133133 renderIcon () {
134- return this .$slots . icon || this . $ scopedSlots .icon ? .() || h ( ' span ' , { staticClass : this . icon } )
134+ return this .$scopedSlots .icon ? .()
135135 },
136136 },
137137}
You can’t perform that action at this time.
0 commit comments