Skip to content

Commit

Permalink
feat: 新增链接跳转配置
Browse files Browse the repository at this point in the history
  • Loading branch information
GaoFuhong committed Dec 8, 2022
1 parent d532613 commit 5e08055
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/s2-core/src/cell/row-cell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 5e08055

Please sign in to comment.