A
Size: a a a
A
EU
<div
v-for="(v, i) in block.variants"
:key="v"
>
<radiobutton
:checked="()=>checked(i)"
v-on:select="select"
/>
</div>
checked: function(i) {
return this.mask[i] === 1;
},
data: () => {
return {
mask: null,
}
}
select
, изменяется состояние mask
. Как мне сделать так, чтобы checked
у radiobutton
изменялся runtime, а не только при отрисовке?A
<div
v-for="(v, i) in block.variants"
:key="v"
>
<radiobutton
:checked="()=>checked(i)"
v-on:select="select"
/>
</div>
checked: function(i) {
return this.mask[i] === 1;
},
data: () => {
return {
mask: null,
}
}
select
, изменяется состояние mask
. Как мне сделать так, чтобы checked
у radiobutton
изменялся runtime, а не только при отрисовке?A
EU
A
EU
select: function (index) {
this.mask[this.selected] = 0;
this.mask[index] = 1;
this.setBlockStore(index);
},
setBlockStore: function (index) {
if (this.disabled) {
return
}
this.$store.dispatch('setBlock', {answer: index});
},
A
A
EU
EU
A
A
checked
у radiobutton
изменялся runtime, а не только при отрисовке?"A
EU
A
A
A
EU