Component({ properties: { item: Object, isComplete: { type: Boolean, value: false } }, data: {}, methods: { toHandleScore(e) { this.triggerEvent("score", {item: this.data.item}) }, toClickCard(e) { if (this.data.isComplete) { this.triggerEvent("card", {item: this.data.item}) } } } })