File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,7 @@ export declare class CNav extends Vue {
414
414
variant ?: string
415
415
vertical ?: boolean
416
416
inCard ?: boolean
417
+ tag ?: boolean
417
418
}
418
419
419
420
export declare class CNavItem extends CLink { }
Original file line number Diff line number Diff line change 1
1
<template >
2
- <ul :class =" navClasses" @click =" onClick" >
2
+ <component :is = " tag || 'ul' " :class =" navClasses" @click =" onClick" >
3
3
<slot ></slot >
4
- </ul >
4
+ </component >
5
5
</template >
6
6
7
7
<script >
@@ -14,8 +14,9 @@ export default {
14
14
},
15
15
fill: Boolean ,
16
16
justified: Boolean ,
17
- vertical: Boolean ,
18
- inCard: Boolean
17
+ vertical: [Boolean , String ],
18
+ inCard: Boolean ,
19
+ tag: String
19
20
},
20
21
provide () {
21
22
const nav = {}
@@ -31,10 +32,11 @@ export default {
31
32
},
32
33
computed: {
33
34
navClasses () {
35
+ const verticalSuffix = this .vertical === true ? ' ' : ' -' + this .vertical
34
36
return {
35
37
' nav' : true ,
36
38
[` nav-${ this .variant } ` ]: this .variant ,
37
- ' flex-column' : this .vertical ,
39
+ [ ` flex${ verticalSuffix } -column` ] : this .vertical ,
38
40
' nav-fill' : this .fill ,
39
41
' nav-justified' : this .justified ,
40
42
[` card-header-${ this .variant } ` ]: this .inCard && this .variant
You can’t perform that action at this time.
0 commit comments