14 lines
353 B
JavaScript
14 lines
353 B
JavaScript
Component({
|
|
properties: {
|
|
item: { type: Object, value: {} },
|
|
done: { type: Boolean, value: false },
|
|
streak: { type: Number, value: undefined },
|
|
categoryLabel: { type: String, value: '' },
|
|
cycleLabel: { type: String, value: '' },
|
|
},
|
|
methods: {
|
|
onTap() {
|
|
this.triggerEvent('tap', { id: this.data.item.id })
|
|
}
|
|
}
|
|
}) |