tabs add click event

This commit is contained in:
cookfront
2017-03-30 14:27:49 +08:00
parent 09650d61ea
commit 969e1f78e1
6 changed files with 90 additions and 11 deletions

View File

@@ -7,7 +7,7 @@
class="zan-tab"
:class="{'zan-tab--active': index == switchActiveTabKey}"
ref="tabkey"
@click="handleTabClick(index,tab)"
@click="handleTabClick(index, tab)"
>
{{ tab.title }}
</div>
@@ -76,6 +76,7 @@
el.$emit('disable');
return;
}
this.$emit('click', index);
this.switchActiveTabKey = index;
}
},