Comments (6)
https://codesandbox.io/p/sandbox/flamboyant-greider-z9zhfg?file=%2Fsrc%2Findex.ts%3A52%2C30
from s2.
你的 meta 只有数值的格式化, 又没有配置列头的格式化, 自定义列头的情况下, 列头都是按维值处理, 即导出默认是以 title
为准, 符合预期.
你的期望是 formatHeader: false
的情况下, 希望是用 field
而不是 title
?
from s2.
from s2.
formatHeader
是控制使用 field
还是 name
, 对于自定义场景, 是控制使用 field
还是 title
当然希望用title了
所以你应该使用 formatHeader: true
, 而 meta 中的 formatter 只会对数值生效, 不应该作用于列头, 这个是 bug
from s2.
希望能修复一下,谢谢
from s2.
🎉 This issue has been resolved in version @antv/s2-v2.0.0-next.19 🎉
The release is available on:
Your semantic-release bot 📦🚀
from s2.
Related Issues (20)
- 合计行如何能不参与排序?🤔 HOT 3
- 🐛自定义表头样式,样式不生效 HOT 1
- 🐛 HOT 2
- 🐛 MacOS Chrome/100 以下版本,主题配置包含BlinkMacSystemFont字体时导致 页面崩溃 HOT 7
- 🐛 透视表,列小计的信息是自定义展示数据的,排序的时候没有正常排序 HOT 4
- 🐛重写表格事件遇到扩展问题 HOT 3
- 🤔有准备加上拖拽排序吗 HOT 1
- S2在加载了新的row和colums后如何渲染到页面,更新页面数据 HOT 2
- 🐛小计总计功能 自定义总计函数(calcFunc)中无小计汇总信息 HOT 6
- 🐛 表格区域双击时会选择表格外的文本 HOT 5
- 明细表模式单元格 添加对齐方式 align 属性 可以实现左对齐 右对齐 居中 HOT 1
- 🐛Node.belongsCell不能同步获取,需使用异步方式才可以获取 HOT 1
- 透视表树模式根节点没有后代也展示展开/收起图标 HOT 8
- 透视表列头是否可以禁止拖拽行为 HOT 3
- 🐛使用 asyncGetAllPlainData 导出的数据与表格渲染结果不一致 HOT 1
- 有什么方式可以拿到当前表格的 scrollTop 和 scrollLeft (scrollX, scrollY)值吗?🤔 HOT 2
- 请问s2DataConfig中,rows数组的长度可以设置吗?🤔 HOT 5
- 🤔s2中如何实现右键点击,获取当前行数据 HOT 8
- 多行头列头数据渲染卡顿的问题🤔 HOT 1
- S2中明细表或者透视表设置背景柱状图最小值不生效?🐛 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s2.