橘猫敲代码 2023-08-08 11:19 采纳率: 66.9%
浏览 28
已结题

elementui table 数据左对齐无效

数据不左对齐

  <el-table-column label="备注" prop="notes" width="120"  align="left">
          <template slot-scope="scope">
            <span style="white-space: pre-wrap;">
              {{ scope.row.notes }}
            </span>
          </template>
        </el-table-column>


img


LTL 飞神 60105569589 420 usd

img

  • 写回答

2条回答 默认 最新

  • 崽崽的谷雨 2023-08-08 11:30
    关注

    因为你加了 slot所以不生效需要自己写样式比如:

     <span style="white-space: pre-wrap; text-align: left;">
          {{ scope.row.notes }}
        </span>
    
    
    
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 8月8日
  • 修改了问题 8月8日
  • 创建了问题 8月8日

悬赏问题

  • ¥15 单纯型python实现编译报错
  • ¥15 c++2013读写oracle
  • ¥15 c++ gmssl sm2验签demo
  • ¥15 关于模的完全剩余系(关键词-数学方法)
  • ¥15 有没有人懂这个博图程序怎么写,还要跟SFB连接,真的不会,求帮助
  • ¥15 PVE8.2.7无法成功使用a5000的vGPU,什么原因
  • ¥15 is not in the mmseg::model registry。报错,模型注册表找不到自定义模块。
  • ¥15 安装quartus II18.1时弹出此error,怎么解决?
  • ¥15 keil官网下载psn序列号在哪
  • ¥15 想用adb命令做一个通话软件,播放录音