el-radio动态渲染时 label的显示问题

问题: el-radio在动态渲染时,因为label的原因,在标签中不加任何字符时,都会默认把label绑定的值显示出来,如图:
el-radio动态渲染时 label的显示问题_第1张图片

解决方法: 在el-radio的标签对中用空格字符   显示;

代码:

<el-table-column label="" width="40">
	<template slot-scope="scope">
            <el-radio
              :label="scope.row.userinfoOcode"
              v-model="radio"
              name="radio"
              @change.native="getCurrentRow(scope.row)"
              style="color: #fff; padding-left: 10px; margin-right: -25px"
              >&nbsp;</el-radio
            >
    </template>
</el-table-column>

参考连接: https://blog.csdn.net/qq_40639028/article/details/120946456

你可能感兴趣的:(前端,elementui,el-radio)