Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/table/src/table-column.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ export default {
}
});

// Deprecation warning for renderHeader property
if (this.renderHeader) {
console.warn('[Element Warn][Table Column]\'render-header\' property will be deprecated in next major version. please use scoped-slot \'header\' instead.');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find render-header is widely used. Maybe we can't deprecate this attribute in next major version. We should give users enough time to upgrade.
A potential warning info is like this:

Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header.

}

this.columnConfig = column;

let renderCell = column.renderCell;
Expand Down