[Metadata] [Editor] Fixed handle line breaks in a table where data is translated into a row

This commit is contained in:
qianmoQ 2023-10-22 20:13:16 +08:00
parent a6c6da2dd2
commit 2be3aa1c2e
2 changed files with 4 additions and 2 deletions

View File

@ -198,7 +198,6 @@ export default defineComponent({
}));
const configure: TableFilter = new TableFilter();
configure.pagination = this.configure.pagination;
console.log(this.configure.pagination)
configure.orders = orders;
TableService.getData(this.id, configure)

View File

@ -14,7 +14,10 @@ const createColumnDefs = (headers: any[], types: any[]): any[] => {
headerName: header,
field: header,
headerTooltip: header + ' [' + types[index] + ']',
unSortIcon: true
unSortIcon: true,
cellRenderer: params => {
return '<div style="white-space: pre-wrap;">' + params.value + '</div>';
}
};
columnDefs.push(columnDef);
})