6
6
v-for =" (tab, key) in ctabInstances"
7
7
@click.native =" tabClick(tab)"
8
8
v-bind =" tab.$attrs"
9
- :customTitleSlot =" tab.$scopedSlots.title"
9
+ :title-html =" tab.titleHtml"
10
+ :custom-title-slot =" tab.$scopedSlots.title"
10
11
:active =" tab === activeTab"
11
12
:disabled =" tab.disabled"
12
13
:key =" key"
29
30
</transition >
30
31
</div >
31
32
</div >
32
- <!-- needed to instantiate CTab components, do nothing -->
33
+ <!-- needed to instantiate CTab components, shouldn't render anything -->
33
34
<slot ></slot >
34
35
</div >
35
36
</template >
@@ -53,7 +54,7 @@ export default {
53
54
default: true
54
55
},
55
56
noFade: Boolean ,
56
- vertical: [Boolean , Number , String ],
57
+ vertical: [Boolean , Object ],
57
58
addNavWrapperClasses: [String , Array ],
58
59
addNavClasses: [String , Array ],
59
60
addTabsWrapperClasses: [String , Array ],
@@ -91,8 +92,13 @@ export default {
91
92
return this .activatedTab || this .ctabInstances .filter (el => el .active )[0 ]
92
93
},
93
94
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 {}
96
102
},
97
103
ctabInstances () {
98
104
if (this .defaultSlotNodes ) {
0 commit comments