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

🐛selectedCellHighlight不生效 #2203

Closed
AALiujiajun opened this issue May 11, 2023 · 2 comments · Fixed by #2211
Closed

🐛selectedCellHighlight不生效 #2203

AALiujiajun opened this issue May 11, 2023 · 2 comments · Fixed by #2211
Labels

Comments

@AALiujiajun
Copy link

🏷 Version

@antv/s2 1.44.0

-->

Sheet Type

PivotSheet
TableSheet

🖋 Description

interaction.selectedCellHighlight:true 不生效

⌨️ Code Snapshots

import { PivotSheet, S2Options } from '@antv/s2';

fetch(
'https://gw.alipayobjects.com/os/bmw-prod/2a5dbbc8-d0a7-4d02-b7c9-34f6ca63cff6.json',
)
.then((res) => res.json())
.then((dataCfg) => {
const container = document.getElementById('container');

const s2Options: S2Options = {
  width: 600,
  height: 480,
  interaction: {
    // 悬停高亮
    hoverHighlight: true,
    selectedCellHighlight: true // 这一行
  },
  tooltip: {
    showTooltip: true,
  },
};
const s2 = new PivotSheet(container, dataCfg, s2Options);

s2.render();

});

🔗 Reproduce Link

1683797115662

🤔 Steps to Reproduce

行列联动高亮 官方实例上添加selectedCellHighlight: true 点击后未出现整行整列高亮

😊 Expected Behavior

所在单元格行列应高亮

😅 Current Behavior

没有执行高亮

💻 System information

Environment Info
System
Browser
@d2FuZ3h1ZG9uZw
Copy link
Contributor

selectedCellHighlight: true

// 等价于

selectedCellHighlight: {
  rowHeader: true, // 高亮行头
  colHeader: true, // 高亮列头
  currentRow: false, // 高亮选中单元格所在行
  currentCol: false, // 高亮选中单元格所在列
}

//如果想要高亮行列,应当手动设置下一级的属性

selectedCellHighlight: {
  rowHeader: false, // 高亮行头
  colHeader: false, // 高亮列头
  currentRow: true, // 高亮选中单元格所在行
  currentCol: true, // 高亮选中单元格所在列
}

文档 中的属性不对

同时目前是无法高亮行列头,确实存在其它问题

@lijinke666
Copy link
Member

🎉 This issue has been resolved in version @antv/s2-v1.48.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants