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

数据为空时Table固定列出现重复提示 #2812

Closed
ericshao opened this issue Aug 23, 2016 · 6 comments
Closed

数据为空时Table固定列出现重复提示 #2812

ericshao opened this issue Aug 23, 2016 · 6 comments
Assignees

Comments

@ericshao
Copy link

ericshao commented Aug 23, 2016

本地环境

  • antd 版本:1.10.0
  • 操作系统及其版本:OS X 10.11.6
  • 浏览器及其版本:Chrome52

你做了什么?

引入了antd Table,并将第一列设置为fixed: 'left'

你期待的结果是:

当没有数据时,固定列中无需显示任何提示

实际上的结果:

没有数据时,固定列中重复显示了“暂无数据”提示
2016-08-23 1 25 22

可重现的在线演示

@ericshao
Copy link
Author

“暂无数据”提示信息横向位置偏移,未居中

@benjycui
Copy link
Contributor

@ddcat1115 其实我觉得暂无数据这个提示可以用 div 实现,而不是用 td。

@ericshao
Copy link
Author

暂无数据的提示信息:图标+文案最好能自定义。某些场景下没有数据是“好事”,一副哭脸不太应景;也有些场景下没有数据的话要给用户更多的指向性提示,比如提示用户应该“新建...”

@afc163
Copy link
Member

afc163 commented Aug 23, 2016

@ericshao 一直可以自定义的。

@ghost
Copy link

ghost commented Aug 25, 2016

@afc163 重复出现的没有数据提示,可以修改?

@lock
Copy link

lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants