Skip to content

Commit

Permalink
fix(table): table memory overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Jan 4, 2021
1 parent 17ecaea commit 7a07b70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Table/src/hooks/useColumns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ export function useColumns(
const getViewColumns = computed(() => {
const viewColumns = sortFixedColumn(unref(getColumnsRef));

viewColumns.forEach((column) => {
const columns = cloneDeep(viewColumns);
columns.forEach((column) => {
const { slots, dataIndex, customRender, format, edit, editRow, flag } = column;

if (!slots || !slots?.title) {
Expand Down

0 comments on commit 7a07b70

Please sign in to comment.