You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
356 B
19 lines
356 B
Component({
|
|
properties: {
|
|
tabList: {
|
|
type: Array
|
|
}
|
|
},
|
|
data: {
|
|
cur: 0
|
|
},
|
|
methods: {
|
|
tabChange(e) {
|
|
let index = e.currentTarget.dataset.index
|
|
this.setData({
|
|
cur: index
|
|
})
|
|
this.triggerEvent("tabChange",{index})
|
|
}
|
|
}
|
|
});
|
|
|