fix(图表): 修复移动端明细表表头排序失效 (#15284)

This commit is contained in:
wisonic-s
2025-03-11 17:27:12 +08:00
committed by GitHub
parent d281f067ed
commit 353d28792e

View File

@@ -144,8 +144,8 @@ export abstract class S2ChartView<P extends SpreadSheet> extends AntVAbstractCha
touchPosition[1] - canvasPosition.y
]
const shape = s2Instance.container.getShape(relativePosition[0], relativePosition[1])
// 图片单元格点击放大图片
if (shape.cfg?.parent.constructor.name === 'ImageCell') {
// 图片单元格,表头排序图标点击放大图片
if (['GuiIcon2', 'ImageCell'].includes(shape.cfg?.parent.constructor.name)) {
return
}
e.preventDefault()