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
props: { size: { type: Number }, score: { type: Number } }, computed: { starType() { return "star-" + this.size; } }
:class="starType" 改成 v-model="starType"
computed seems to be written in props, so the error is reported
:class="starType" 改成 v-model="starType"
computed seems to be written in props, so the error is reported