8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d934c3 commit 7b2c553Copy full SHA for 7b2c553
src/components/tabs/CTabs.vue
@@ -4,7 +4,7 @@
4
<ul :class="navClasses">
5
<CTabNav
6
v-for="(tab, key) in ctabInstances"
7
- @click.native="tabClick(tab)"
+ @click.native="tabClick(tab, key)"
8
v-bind="tab.$attrs"
9
:title="tab.title"
10
:custom-title-slot="tab.$scopedSlots.title"
@@ -130,9 +130,10 @@ export default {
130
this.defaultSlotNodes = this.$slots.default
131
},
132
methods: {
133
- tabClick (tab) {
+ tabClick (tab, key) {
134
if (!tab.disabled) {
135
this.activatedTab = tab
136
+ this.$emit('update:show', key)
137
}
138
139
0 commit comments