\n
::v-deep .el-table .cell {
white-space: pre-line;
}
\n转义不好使
.el-table .cell {
white-space: pre-line;
}
还不好使:
.el-table .cell {
white-space: pre-line;
}
<el-table-column align="left" width="400px"
prop="title"
label="标题"
:formatter="wrapText"
>
</el-table-column>
wrapText: function(row, column, cellValue){
return cellValue.replace(",","\n");
}