File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
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 4141</template >
4242
4343<script >
44- import { h } from ' vue'
45-
4644export default {
4745 name: ' NcAppSidebarTab' ,
4846
@@ -126,12 +124,12 @@ export default {
126124 },
127125
128126 /**
129- * Render tab's icon from slot or icon prop
127+ * Render tab's icon slot if any
130128 *
131- * @return {import('vue').VNode|import('vue').VNode []}
129+ * @return {import('vue').VNode[]}
132130 */
133131 renderIcon () {
134- return this .$slots . icon || this . $ scopedSlots .icon ? .() || h ( ' span ' , { staticClass : this . icon } )
132+ return this .$scopedSlots .icon ? .()
135133 },
136134 },
137135}
You can’t perform that action at this time.
0 commit comments