本文介绍: elradio动态渲染时,因为label原因,在标签中不加任何字符时,都会默认label绑定的值显示出来

问题 elradio动态渲染时,因为label原因,在标签中不加任何字符时,都会默认label绑定的值显示出来,如图
在这里插入图片描述

解决方法elradio标签对中用空格字符   显示

代码

<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"
              >&amp;nbsp;</el-radio
            >
    </template>
</el-table-column>

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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注