66 v-for =" (tab, key) in ctabInstances"
77 @click.native =" tabClick(tab)"
88 v-bind =" tab.$attrs"
9- :customTitleSlot =" tab.$scopedSlots.title"
9+ :title-html =" tab.titleHtml"
10+ :custom-title-slot =" tab.$scopedSlots.title"
1011 :active =" tab === activeTab"
1112 :disabled =" tab.disabled"
1213 :key =" key"
2930 </transition >
3031 </div >
3132 </div >
32- <!-- needed to instantiate CTab components, do nothing -->
33+ <!-- needed to instantiate CTab components, shouldn't render anything -->
3334 <slot ></slot >
3435 </div >
3536</template >
@@ -53,7 +54,7 @@ export default {
5354 default: true
5455 },
5556 noFade: Boolean ,
56- vertical: [Boolean , Number , String ],
57+ vertical: [Boolean , Object ],
5758 addNavWrapperClasses: [String , Array ],
5859 addNavClasses: [String , Array ],
5960 addTabsWrapperClasses: [String , Array ],
@@ -91,8 +92,13 @@ export default {
9192 return this .activatedTab || this .ctabInstances .filter (el => el .active )[0 ]
9293 },
9394 gridClasses () {
94- const cols = this .vertical === true ? 6 : this .vertical
95- return cols ? { navs: ` c-col-sm-${ cols} ` , content: ` c-col-sm-${ 12 - cols} ` } : {}
95+ const vertical = this .vertical
96+ if (typeof vertical === ' object' && vertical .navs && vertical .tabs ) {
97+ return vertical
98+ } else if (vertical !== false ) {
99+ return { navs: ' c-col-sm-4' , content: ' c-col-sm-8' }
100+ }
101+ return {}
96102 },
97103 ctabInstances () {
98104 if (this .defaultSlotNodes ) {
0 commit comments