antvis / antvis/S2

🐛图标设置悬浮显示, 在选中单元格后,再悬浮上去,图标不显示

Open
#2,929 4 comments 0 reactions 1 assignee Claimed by @lijinke666 View on GitHub
⚡ enhancement 💤 inactive
Dominant language
TypeScript
Stars
1.7k
Forks
220
PR merge metrics
No merged PRs in 30d

Description

### 🏷 Version

| Package | Version |
| -------------- | ------- |
| @antv/s2 | 1.54.4 |
| @antv/s2-react | |
| @antv/s2-vue | |

### Sheet Type

- [x] PivotSheet
- [ ] TableSheet
- [ ] GridAnalysisSheet
- [ ] StrategySheet
- [ ] EditableSheet

### 🖋 Description

headerActionIcons 设置 defaultHide =true ,如果点击单元格选中后,再悬浮到单元格上,图标不显示
### ⌨️ Code Snapshots

官网案例,修改了defaultHide =true

import { PivotSheet, S2Options } from '@antv/s2';
import '@antv/s2/dist/style.min.css';

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

const s2Options: S2Options = {
width: 600,
height: 480,
customSVGIcons: [
{
name: 'Filter',
src: 'https://gw.alipayobjects.com/zos/antfincdn/gu1Fsz3fw0/filter%26sort_filter.svg',
},
],
showDefaultHeaderActionIcon: false,
headerActionIcons: [
{
icons: ['Filter'],
belongsCell: 'colCell',
defaultHide: true,

onClick: (options) => {

},
},

],
style: {
colCell: {
hideValue: true,
},
},
};

const s2 = new PivotSheet(container, dataCfg, s2Options);

await s2.render();
});

### 🔗 Reproduce Link

### 🤔 Steps to Reproduce

### 😊 Expected Behavior

### 😅 Current Behavior

### 💻 System information

| Environment | Info |
| ------- | ------- |
| System | |
| Browser | |

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.