Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🙏S2表格values能否增加可以设置的下划线标识,以便于客户识别下钻? #2722

Closed
Zhaohanqi12 opened this issue May 13, 2024 · 1 comment
Labels
🙏feature request 新需求支持 next 2.0-next 版本的问题

Comments

@Zhaohanqi12
Copy link

🏷 Version

Package Version
@antv/s2 next
@antv/s2-react next
@antv/s2-vue

Sheet Type

  • [√ ] PivotSheet
  • [√ ] TableSheet

🖋 Description

🏞 What problem does this feature solve

image

@Zhaohanqi12 Zhaohanqi12 added the 🙏feature request 新需求支持 label May 13, 2024
@github-actions github-actions bot added the next 2.0-next 版本的问题 label May 13, 2024
@lijinke666
Copy link
Member

是指链接跳转s2DataConfig.fields.values 生效?, 如果是的话, 目前是支持的 https://s2.antv.antgroup.com/zh/examples/interaction/advanced/#table-link-jump

还是只是想在文本下面增加一个下划线? 如果是的话, 自定义单元格 自行绘制一个下划线 (Line) 即可

if (textStyle.textAlign === 'center') {
startX -= actualTextWidth / 2;
} else if (textStyle.textAlign === 'right') {
startX -= actualTextWidth;
}
const { bottom: maxY } = this.textShape.getBBox();
this.linkFieldShape = renderLine(this, {
x1: startX,
y1: maxY + 1,
// 不用 bbox 的 maxX,因为 g-base 文字宽度预估偏差较大
x2: startX + actualTextWidth,
y2: maxY + 1,
stroke: linkFillColor,
lineWidth: 1,
});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙏feature request 新需求支持 next 2.0-next 版本的问题
Projects
None yet
Development

No branches or pull requests

2 participants