Skip to content

Commit

Permalink
fix(datatable): render incorrectly in template style
Browse files Browse the repository at this point in the history
  • Loading branch information
fudiwei committed May 13, 2024
1 parent aa3a1c8 commit e54db78
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/data-table/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function convertVNodesToColumns<T extends NDataTableRowData>(vnodes: VNode[]): N
logger.warning('Each {0} should have a unique `key` prop.', ComponentDataTableColumn.name);
}

const column: NDataTableColumn<T> = {
let column: NDataTableColumn<T> = {
...normalizeVProps(restProps),
key: vKey ?? `__X_DATATABLE_COLUMN_${index}`,
ellipsis: getVPropAsBoolean(vProps, 'ellipsis'),
Expand All @@ -146,8 +146,7 @@ function convertVNodesToColumns<T extends NDataTableRowData>(vnodes: VNode[]): N
}
}

populateColumnRenders<T>(column, vSlots, true);

column = populateColumnRenders<T>(column, vSlots, true);
temp.push(column);
} else if (__DEV__ && !isEmptyVNode(vnode)) {
logger.warning(
Expand Down

0 comments on commit e54db78

Please sign in to comment.