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

🙏透视表 没数据显示一行空数据,希望支持加入图标么比如像antd table 的暂无数据 #2742

Closed
1 task
donglegend opened this issue May 25, 2024 · 3 comments
Assignees
Labels
🙏feature request 新需求支持 next 2.0-next 版本的问题

Comments

@donglegend
Copy link

🏷 Version

"@antv/s2": "2.0.0-next.21",

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

Sheet Type

  • PivotSheet

🖋 Description

透视表 没数据显示一行空数据,希望支持加入图标么比如像antd table 的暂无数据

🏞 What problem does this feature solve

image

透视表不支持 全部都是空数据时候的 empty-placeholder

🧐 Suggest the API

name type default description
- - - -
@donglegend donglegend added the 🙏feature request 新需求支持 label May 25, 2024
Copy link
Contributor

@github-actions github-actions bot added the next 2.0-next 版本的问题 label May 25, 2024
@lijinke666
Copy link
Member

透视表不支持, 明细表是支持像 antd 那样展示的: https://s2.antv.antgroup.com/examples/custom/custom-cell/#empty-placeholder

透视表有可能是行头有维值, 但是数值为空, 也有可能是行头维值和数值都为空, 不太适用于明细表的空数据占位符展示逻辑, 建议根据自己的业务场景, 在表格上面绝对定位一个 div, 自行展示占位符.

@lijinke666 lijinke666 self-assigned this May 27, 2024
@donglegend
Copy link
Author

透视表不支持, 明细表是支持像 antd 那样展示的: https://s2.antv.antgroup.com/examples/custom/custom-cell/#empty-placeholder

透视表有可能是行头有维值, 但是数值为空, 也有可能是行头维值和数值都为空, 不太适用于明细表的空数据占位符展示逻辑, 建议根据自己的业务场景, 在表格上面绝对定位一个 div, 自行展示占位符.

好吧,业务需求催,那我先自己实现吧;主要表格都是一套的,得保持风格一直,透视表不行,明细表也就没用的意义了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙏feature request 新需求支持 next 2.0-next 版本的问题
Projects
None yet
Development

No branches or pull requests

2 participants