The treatment of multiple groups of radio by vue

topic description

vue"s treatment of multiple groups of radio
1. Multiple groups of radio are traversed with v-for, how to traverse multiple groups of radio at once
2. How to get all the radio values at once after traversing multiple groups of radio

sources of topics and their own ideas

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Apr.05,2021

radioData: [
                {radioRow:[{text:'',checked:true},{text:'',checked:false},{text:'',checked:false}]},
                {radioRow:[{text:'',checked:true},{text:'',checked:false},{text:'',checked:false}]},
                {radioRow:[{text:'',checked:true},{text:'',checked:false},{text:'',checked:false}]},
            ]

<div v-for="(item,index) in radioData" :key="index">
    <div v-for="(radio,radioIndex) in item.radioRow" :key="radioIndex">{{radio.text}}</div>
</div>

get all the checked? Traverse this object

Menu