-
Notifications
You must be signed in to change notification settings - Fork 197
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禁用选中高亮不生效🤔 #2468
Labels
❔question
疑问/使用问题
Comments
你要找的是不是 (You may look for issues):
|
正如文档所说, 目前没有相关配置项, 后面会改进这块, 确实容易造成疑惑, 如果你期望的是禁用数值单元格的选中高亮, 以及对应的行列多选, 可以参考这个示例 const stateTheme = {
cell: {
interactionState: {
selected: {
backgroundColor: 'transparent',
borderColor: 'transparent',
},
},
},
};
const s2ThemeConfig = {
theme: {
rowCell: stateTheme,
colCell: stateTheme,
dataCell: stateTheme,
},
};
<SheetComponent themeCfg={s2ThemeConfig}/> |
ref #2439 |
解决了,非常感谢👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🏷 Version
Sheet Type
🖋 Description
interaction: {
selectedCellHighlight: {
rowHeader: false,
colHeader: false,
currentRow: false,
currentCol: false,
},
selectedCellsSpotlight: false,
},
这样配置后,点击单元格时该单元格会高亮;点击行头时该行会高亮
🔗 Reproduce Link
😊 Expected Behavior
😅 Current Behavior
The text was updated successfully, but these errors were encountered: