As shown in the picture, add the code
Component p.star is bound to the value returned by the calculated attribute method
This is a computed property
Finally a binding exception broke out
淡淡烟草味2017-06-26 10:56:52
props: {
size: {
type: Number
},
score: {
type: Number
}
},
computed: {
starType() {
return "star-" + this.size;
}
}