<el-table-column :show-overflow-tooltip="true" v-for="(item, index) in bgrqs" :label="item" :key="index" align="center" &gt;
    <template slot-scope="scope" &gt;
      <span :style="textColor(scope.row[index])"&gt; {{scope.row[index]}}</span&gt;
    </template&gt;
  </el-table-column&gt;
</el-table>

 只需要加上下列代码可以实现


:showoverflowtooltip=”true

 默认false我们设置true可以


效果如下



 这篇文章并非自己原创,原作者在下面


ElementUI表格列文字超出隐藏_:show-overflow-tooltip=”true”隐藏数据不显示-CSDN博客


 希望可以帮助到各位小伙伴!!!

发表回复

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