17 lines
332 B
JavaScript
17 lines
332 B
JavaScript
Component({
|
|
properties: {
|
|
types: Array
|
|
},
|
|
data: {
|
|
id: 0
|
|
},
|
|
methods: {
|
|
select(a) {
|
|
// console.log(this.data.a.target.dataset.id)
|
|
// console.log(a.target.dataset.id)
|
|
this.setData({
|
|
id: a.target.dataset.id
|
|
})
|
|
}
|
|
}
|
|
}) |