antvis / antvis/S2

🐛 交叉表 在某些特殊数据下,cv复制出的数据不对

Open
#2,023 1 comment 0 reactions 1 assignee Claimed by @stone-lyl View on GitHub
⭐️ Welcom PR 💤 inactive
Dominant language
TypeScript
Stars
1.7k
Forks
220
PR merge metrics
No merged PRs in 30d

Description

### 🏷 Version

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

### Sheet Type

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

### 🖋 Description

交叉表开启复制功能,同时开启了copyWithHeader,发现:
1. 在rows 存在时间类型时,时间会被截取
2. 在columns存在数字类型时,copyWithHeader 失效
3. 其他正常

### ⌨️ Code Snapshots

https://codesandbox.io/s/charming-volhard-8gxrp1?file=/index.ts

### 🔗 Reproduce Link

### 🤔 Steps to Reproduce

### 😊 Expected Behavior

![image](https://user-images.githubusercontent.com/46083022/209656031-b95f559c-b646-4f0d-8d75-720eb1b046fb.png)
行列数据跟表格数据展示一致

### 😅 Current Behavior

```
8 2021 127 0
8 2021 82 0
8 2021 67 0
8 2021 135 0
8 2021 61 0
8 2021 27 0
0 2021 0 0
0 2021 144 0
(null) 2021 10 0
14 2021 49 0
```
当前复制出来的数据,行时间相关的数据被截去了,而且我开启了copyWithHeader, 但是并没有复制出来

### 💻 System information

| Environment | Info |
| ------- | ------- |
| System | Intel Mac OS X 10_15_7 |
| Browser | Google 108.0.5359.124 |

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.