Skip to content

在使用vue3版本的antvs2尝试获取单元格位置时,位置获取不带行头和列头偏移量的问题 #2229

Closed Answered by lijinke666
Xugen-Ma asked this question in Q&A
Discussion options

You must be logged in to vote

dateCell 内部的坐标基准点是基于箭头所指位置, getMeta() 取到的 x, y 是相对位置

如果你是想获取鼠标点击的坐标, 即原始 Event 的坐标, 你可以取 clientXclientY

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Xugen-Ma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants