remove useless index param of onSwitch
This commit is contained in:
parent
539913673f
commit
cd14566a34
3 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ export default Vue.component('tab-switcher', {
|
|||
activateTab (index, dataset) {
|
||||
return () => {
|
||||
if (typeof this.onSwitch === 'function') {
|
||||
this.onSwitch.call(null, index, this.$slots.default[index].elm.dataset)
|
||||
this.onSwitch.call(null, this.$slots.default[index].elm.dataset)
|
||||
}
|
||||
this.active = index
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue