diff --git a/packages/s2-core/src/cell/row-cell.ts b/packages/s2-core/src/cell/row-cell.ts index e5c87ad76f..87eb548b7d 100644 --- a/packages/s2-core/src/cell/row-cell.ts +++ b/packages/s2-core/src/cell/row-cell.ts @@ -229,8 +229,10 @@ export class RowCell extends HeaderCell { protected drawLinkFieldShape() { const { linkFields = [] } = this.headerConfig; const { linkTextFill } = this.getTextStyle(); - - super.drawLinkFieldShape(linkFields.includes(this.meta.key), linkTextFill); + const isLinkField = linkFields.some( + (field) => field === this.meta.key || this.meta.id, + ); + super.drawLinkFieldShape(isLinkField, linkTextFill); } protected drawRectBorder() {