mirror of
https://github.com/youzan/vant.git
synced 2025-12-18 02:06:02 +08:00
tabs add click event
This commit is contained in:
@@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user