el table redio怎么默认勾选

el table redio怎么默认勾选,select可以用toggleRowSelection()redis怎么搞呢,感谢

阅读 2.5k
2 个回答
<el-table-column width="55" align="center">
        <template scope="scope">
            <el-radio class="radio" v-model="radioData"  :label="scope.row.userPhone" @change="changeUserPhone"></el-radio>
        </template>
    </el-table-column>


data(){
    return{
      
        radioData:''
    }
},

给redio绑定个值不就好了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题