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

[Feature] ListTable 需要显示空状态 #1782

Closed
Yang-yibu opened this issue May 23, 2024 · 2 comments · Fixed by #1805
Closed

[Feature] ListTable 需要显示空状态 #1782

Yang-yibu opened this issue May 23, 2024 · 2 comments · Fixed by #1805
Assignees

Comments

@Yang-yibu
Copy link

What problem does this feature solve?

请求数据为空时,可以配置显示空状态
image

What does the proposed API look like?

tableInstance 支持 empty 参数,支持自定义布局(会设置图片和提示文字);支持单独修改图片 empty.image;支持单独修改文字 empty.description
当有长列时(出现滚动条),滚动式空状态可以始终位于容器中央

@KiddoV
Copy link

KiddoV commented May 23, 2024

Interested on this too. When table don't have records yet. We should display something. This will be similar to: https://apexcharts.com/docs/options/nodata/ ("The text to display when no-data is available. Defaults to undefined which displays nothing.")

@fangsmile fangsmile self-assigned this May 24, 2024
@nikoohp
Copy link
Contributor

nikoohp commented May 24, 2024

#629 #1103

fangsmile added a commit that referenced this issue May 28, 2024
fangsmile added a commit that referenced this issue May 28, 2024
fangsmile added a commit that referenced this issue May 28, 2024
@fangsmile fangsmile linked a pull request May 28, 2024 that will close this issue
21 tasks
fangsmile added a commit that referenced this issue May 28, 2024
fangsmile added a commit that referenced this issue May 28, 2024
fangsmile added a commit that referenced this issue May 28, 2024
fangsmile added a commit that referenced this issue May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants