Skip to content
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

🐛明细表的自定义序号标题属性无效 #2520

Closed
1 of 5 tasks
wisonic-s opened this issue Jan 18, 2024 · 2 comments
Closed
1 of 5 tasks

🐛明细表的自定义序号标题属性无效 #2520

wisonic-s opened this issue Jan 18, 2024 · 2 comments
Labels
✨ supported or fixed in 2.x 在 2.x 版本中,已支持该需求,或 bug 已修复

Comments

@wisonic-s
Copy link

🏷 Version

Package Version
@antv/s2 1.54.2
@antv/s2-react
@antv/s2-vue

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

明细表的自定义序号标题属性无效。

⌨️ Code Snapshots

import { TableSheet } from '@antv/s2';

fetch('https://assets.antv.antgroup.com/s2/basic-table-mode.json')
  .then((res) => res.json())
  .then((data) => {
    const container = document.getElementById('container');
    const s2DataConfig = {
      fields: {
        columns: ['province', 'city', 'type', 'price', 'cost'],
      },
      meta: [
        {
          field: 'province',
          name: '省份',
        },
        {
          field: 'city',
          name: '城市',
        },
        {
          field: 'type',
          name: '商品类别',
        },
        {
          field: 'price',
          name: '价格',
        },
        {
          field: 'cost',
          name: '成本',
        },
      ],
      data,
    };

  const s2Options = {
    width: 600,
    height: 480,
    showSeriesNumber: true,
    seriesNumberText: '自定义序号标题',
  };

  const s2 = new TableSheet(container, s2DataConfig, s2Options);

  s2.render();
});

🔗 Reproduce Link

https://s2.antv.vision/zh/examples/basic/table/#table

🤔 Steps to Reproduce

😊 Expected Behavior

😅 Current Behavior

💻 System information

Environment Info
System Win11
Browser Chrome 120.0.6099.224
@lijinke666
Copy link
Member

抱歉, 是文档有误, seriesNumberText 是 2.0 版本新增的特性, 误更新到 1.x 的文档了, 目前 1.x 版本不支持该能力

@lijinke666 lijinke666 added the ✨ supported or fixed in 2.x 在 2.x 版本中,已支持该需求,或 bug 已修复 label Jan 19, 2024
Copy link
Contributor

你好 @wisonic-s,该功能或缺陷已经在 2.0 next 版本 中支持或修复,next 版本目前处于内测中, 感谢你的支持与理解。

如有任何 2.0 版本 问题,请前往讨论区,正式版预计年底发布 (文档施工中 🚧), 抢先试用:

yarn add @antv/s2@next
yarn add @antv/s2-react@next
yarn add @antv/s2-vue@next

Hello, @wisonic-s, This feature or flaw has been supported or fixed in 2.0 next version, next version is currently in private beta, thank you for your support and understanding.

Any 2.0 version issues, please go to discussion, which released the official version is expected to the end (document 🚧) during construction, the first trial:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ supported or fixed in 2.x 在 2.x 版本中,已支持该需求,或 bug 已修复
Projects
None yet
Development

No branches or pull requests

2 participants