i click 1, root , component in v-for show 1. when click 2, root show 2 component show 1 yet.
how change value in v-for when click another. such as
click/1 -> doora_1 click/2 -> doora_2
thanks. here link: jsfiddle
remove v-once
of my-table
<div :class = "[tableindex % 2 == 0 ? \'doora\' : \'doorb\']" v-once>
should be
<div :class = "[tableindex % 2 == 0 ? \'doora\' : \'doorb\']">
Comments
Post a Comment