Files
JayuCloud/WeChatProgram/components/product-card/product-card.js
T

23 lines
314 B
JavaScript

Component({
properties: {
item: {
type: Object,
value: {}
},
showMeta: {
type: Boolean,
value: true
},
showStats: {
type: Boolean,
value: false
}
},
methods: {
handleTap() {
this.triggerEvent('select', this.properties.item)
}
}
})