Code Monkey home page Code Monkey logo

Comments (6)

Zhaohanqi12 avatar Zhaohanqi12 commented on July 17, 2024

https://codesandbox.io/p/sandbox/flamboyant-greider-z9zhfg?file=%2Fsrc%2Findex.ts%3A52%2C30

from s2.

lijinke666 avatar lijinke666 commented on July 17, 2024

image

你的 meta 只有数值的格式化, 又没有配置列头的格式化, 自定义列头的情况下, 列头都是按维值处理, 即导出默认是以 title 为准, 符合预期.

你的期望是 formatHeader: false 的情况下, 希望是用 field 而不是 title ?

from s2.

Zhaohanqi12 avatar Zhaohanqi12 commented on July 17, 2024

from s2.

lijinke666 avatar lijinke666 commented on July 17, 2024

formatHeader 是控制使用 field 还是 name, 对于自定义场景, 是控制使用 field 还是 title

当然希望用title了

所以你应该使用 formatHeader: true, 而 meta 中的 formatter 只会对数值生效, 不应该作用于列头, 这个是 bug

from s2.

Zhaohanqi12 avatar Zhaohanqi12 commented on July 17, 2024

希望能修复一下,谢谢

from s2.

lijinke666 avatar lijinke666 commented on July 17, 2024

🎉 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.