-
Notifications
You must be signed in to change notification settings - Fork 195
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
🐛链接跳转自定义标记无法同步获取到node的belogsCell
#2914
Labels
Comments
S2/packages/s2-core/src/facet/header/col.ts Lines 80 to 91 in c35bc03
belogsCell 是在节点生成后才写入的, 也就是
你可以换种方式, linkFields 这个 hook 会对所有单元格调用, 但是: 数值单元格的数据结构和其他不同, 对应 ViewMeta , 其他单元格对应 Node, 你如果只想对数值生效, 可以根据两者结构差异来判断, 例如: import { Node } from '@antv/s2'
if(meta instanceof Node) {
// 表头
} else {
// 数值
} if(!meta.valueField) {
// 表头
} else {
// 数值
} |
lijinke666
added a commit
that referenced
this issue
Sep 30, 2024
9 tasks
wjgogogo
pushed a commit
that referenced
this issue
Oct 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🏷 Version
Sheet Type
🖋 Description
按照官网demo代码,自定义标记无法同步获取到node的
belogsCell
去实现标记只对数值生效🔗 Reproduce Link
将下列代码粘贴覆盖到官网自定义标记demo代码框里
😊 Expected Behavior
😅 Current Behavior
The text was updated successfully, but these errors were encountered: