El-radio-group el-radio cannot be selected with v-for

The

code is as follows:
< el-radio-group VMI model = "afsapplyForm.customerExpect" @ change= "changeCustomerExpect" >

      <el-radio :label="key" value="key" v-for="(value, key) in afsapplyForm.customerExpectMap" >
           {{value}}
      </el-radio>

< / el-radio-group >

data binding
data () {

  return {
    afsapplyForm: {
      customerExpect: ""
      }}

radio cannot be selected when clicked. What is the matter?

Mar.16,2021

just solved the same problem, converting label bound key to string format

< el-radio-group VMI model = "editForm.proTypesId" >

                  <el-radio v-for="(item,i) in firstLevelTypeList" :key="i" :label="''+item.id">{{item.name}}</el-radio>
                </el-radio-group>

amount. V-for is supposed to loop an array, but your afsapplyForm.customerExpectMap is a string


see if it listens for click events and prevents bubbling


data () {

return {
  afsapplyForm: {
      customerExpect:''//map
      customerExpectMap:[]//v-for
 }

}


just solved the same problem, converting label bound key to string format

< el-radio-group VMI model = "editForm.proTypesId" >

                  <el-radio v-for="(item,i) in firstLevelTypeList" :key="i" :label="''+item.id">{{item.name}}</el-radio>
                </el-radio-group>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaeb12-47fba.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaeb12-47fba.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?