Component({ properties: { exercise: { type: Object, value: {} }, score: { type: Number, value: 0 }, reason: { type: String, value: '' }, compact: { type: Boolean, value: false } }, methods: { onTap() { const ex = this.data.exercise || {}; this.triggerEvent('tap', { id: ex.id, exercise: ex }); } } });