elementui[When vue uses the v-for loop to render the combination of el-checkbox-group and el-checkbox, it cannot render the case where the label is 0

Phenomenon problem:

Here, 0-59 is rendered through v-for, so the label selects i-1 to make the content appear 0:
insert image description here
However, the reality is: the case of lebel = 0 cannot be rendered. The reason may be that elementui has dealt with the case of label=0.

insert image description here

problem solved:

insert image description here
Directly place the content to be displayed between the tags, and then display it through { {}}
Result: it is rendered.

insert image description here

Guess you like

Origin blog.csdn.net/Selina_lxh/article/details/129008231