Antd+vue table列内容过多实现换行显示

效果如下图所示:
在这里插入图片描述
代码实现,在Column列中加入下面代码:

customCell:() => {
    
    
            return {
    
    
              style: {
    
    
                wordWrap:'break-word',
                wordBreak:'break-all',
                whiteSpace:'normal',
                minHeight:'50px',
                width: '50px',
              }
            }
          }

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Hyanl/article/details/127650186