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

List should better not diaplay "No Data" when loading is true. #8647

Closed
Tarocch1 opened this Issue Dec 18, 2017 · 0 comments

Comments

Projects
None yet
3 participants
@Tarocch1

Tarocch1 commented Dec 18, 2017

What problem does this feature solve?

When “dataSource” of List is an empty array, there should be a "No Data" tip. But if it is loading, we are not sure if there is any data, the "No Data" tip shouldn't be displayed.

What does the proposed API look like?

<List
loading={true}
dataSource={[]}
renderItem={item => (
    //some code
)}
/>

nikogu added a commit that referenced this issue Dec 21, 2017

nikogu added a commit that referenced this issue Dec 21, 2017

nikogu added a commit that referenced this issue Dec 22, 2017

nikogu added a commit that referenced this issue Dec 29, 2017

List not display NoData when loading state & customize Spin indicator.
…#8647 #8659 (#8702)

* List not display NoData when loading state & customize Spin indicator. #8647 #8659

* fixed ci warning

* fix: empty block

@nikogu nikogu closed this Dec 29, 2017

lixiaoyang1992 added a commit to lixiaoyang1992/ant-design that referenced this issue Jan 3, 2018

List not display NoData when loading state & customize Spin indicator.
…ant-design#8647 ant-design#8659 (ant-design#8702)

* List not display NoData when loading state & customize Spin indicator. ant-design#8647 ant-design#8659

* fixed ci warning

* fix: empty block

lixiaoyang1992 added a commit to lixiaoyang1992/ant-design that referenced this issue Jan 3, 2018

List not display NoData when loading state & customize Spin indicator.
…ant-design#8647 ant-design#8659 (ant-design#8702)

* List not display NoData when loading state & customize Spin indicator. ant-design#8647 ant-design#8659

* fixed ci warning

* fix: empty block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment