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.
23 lines
435 B
23 lines
435 B
Component({
|
|
properties: {
|
|
tabList: {
|
|
type: Array
|
|
},
|
|
noBg: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
},
|
|
data: {
|
|
cur: 0
|
|
},
|
|
methods: {
|
|
tabChange(e) {
|
|
let index = e.currentTarget.dataset.index
|
|
this.setData({
|
|
cur: index
|
|
})
|
|
this.triggerEvent("tabChange",index)
|
|
}
|
|
}
|
|
});
|
|
|