Antd+vue table column content is too much to achieve line break display

The effect is shown in the figure below:
insert image description here
code implementation, add the following code in the Column column:

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

insert image description here

Guess you like

Origin blog.csdn.net/Hyanl/article/details/127650186