use key prop instead of dataset to identify active tab
This commit is contained in:
parent
cd14566a34
commit
df3e80b7c3
5 changed files with 11 additions and 17 deletions
|
|
@ -13,8 +13,8 @@ const Interactions = {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
onModeSwitch (dataset) {
|
||||
this.filterMode = tabModeDict[dataset.filter]
|
||||
onModeSwitch (key) {
|
||||
this.filterMode = tabModeDict[key]
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue