File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,7 @@ export declare class CSidebarNavDropdown extends Vue {
491491 icon : [ string , object ]
492492 fontIcon : string
493493 show : boolean
494+ items : Array < object >
494495}
495496
496497export declare class CSidebarNavItem extends CLink {
Original file line number Diff line number Diff line change 66 {{name}}
77 </a >
88 <ul class =" c-sidebar-nav-dropdown-items" @click =" itemClicked" >
9- <slot ></slot >
9+ <slot >
10+ <template v-for =" (item , key ) in items " >
11+ <CSidebarNavItem v-bind =" item" :key =" key" />
12+ </template >
13+ </slot >
1014 </ul >
1115 </li >
1216</template >
1317
1418<script >
1519import CIcon from ' @coreui/icons-vue/CIcon.vue'
20+ import CSidebarNavItem from ' ./CSidebarNavItem'
1621
1722export default {
1823 name: ' CSidebarNavDropdown' ,
1924 components: {
20- CIcon
25+ CIcon,
26+ CSidebarNavItem
2127 },
2228 props: {
2329 name: String ,
@@ -27,7 +33,8 @@ export default {
2733 },
2834 icon: [String , Object ],
2935 fontIcon: String ,
30- show: Boolean
36+ show: Boolean ,
37+ items: Array
3138 },
3239 data () {
3340 return {
You can’t perform that action at this time.
0 commit comments