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 {
414414 variant ?: string
415415 vertical ?: boolean
416416 inCard ?: boolean
417+ tag ?: boolean
417418}
418419
419420export declare class CNavItem extends CLink { }
Original file line number Diff line number Diff line change 11<template >
2- <ul :class =" navClasses" @click =" onClick" >
2+ <component :is = " tag || 'ul' " :class =" navClasses" @click =" onClick" >
33 <slot ></slot >
4- </ul >
4+ </component >
55</template >
66
77<script >
@@ -14,8 +14,9 @@ export default {
1414 },
1515 fill: Boolean ,
1616 justified: Boolean ,
17- vertical: Boolean ,
18- inCard: Boolean
17+ vertical: [Boolean , String ],
18+ inCard: Boolean ,
19+ tag: String
1920 },
2021 provide () {
2122 const nav = {}
@@ -31,10 +32,11 @@ export default {
3132 },
3233 computed: {
3334 navClasses () {
35+ const verticalSuffix = this .vertical === true ? ' ' : ' -' + this .vertical
3436 return {
3537 ' nav' : true ,
3638 [` nav-${ this .variant } ` ]: this .variant ,
37- ' flex-column' : this .vertical ,
39+ [ ` flex${ verticalSuffix } -column` ] : this .vertical ,
3840 ' nav-fill' : this .fill ,
3941 ' nav-justified' : this .justified ,
4042 [` card-header-${ this .variant } ` ]: this .inCard && this .variant
You can’t perform that action at this time.
0 commit comments