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

feat: add skeleton avatar #19898

Merged
merged 9 commits into from
Dec 3, 2019
Merged

feat: add skeleton avatar #19898

merged 9 commits into from
Dec 3, 2019

Conversation

Rustin170506
Copy link
Contributor

@Rustin170506 Rustin170506 commented Nov 22, 2019

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / document update
  • Component style update
  • TypeScript definition update
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

#18237

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English add skeleton avatar
🇨🇳 Chinese 添加骨架头像

☑️ Self Check before Merge

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

View rendered components/skeleton/demo/avatar.md
View rendered components/skeleton/index.en-US.md
View rendered components/skeleton/index.zh-CN.md

Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add tests to make sure this change works as expected?

@netlify
Copy link

netlify bot commented Nov 22, 2019

Deploy preview for ant-design ready!

Built with commit d842563

https://deploy-preview-19898--ant-design.netlify.com

@Rustin170506 Rustin170506 changed the title Skeleton feat: add skeleton avatar Nov 22, 2019
@codecov
Copy link

codecov bot commented Nov 22, 2019

Codecov Report

Merging #19898 into 4.0-prepare will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@               Coverage Diff               @@
##           4.0-prepare   #19898      +/-   ##
===============================================
+ Coverage        97.56%   97.56%   +<.01%     
===============================================
  Files              294      294              
  Lines             7227     7234       +7     
  Branches          2001     2001              
===============================================
+ Hits              7051     7058       +7     
  Misses             176      176
Impacted Files Coverage Δ
components/skeleton/Button.tsx 100% <ø> (ø) ⬆️
components/skeleton/Element.tsx 100% <ø> (ø)
components/skeleton/Skeleton.tsx 100% <100%> (ø) ⬆️
components/skeleton/index.tsx 100% <100%> (ø) ⬆️
components/skeleton/Avatar.tsx 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d76283f...d842563. Read the comment docs.

@Rustin170506
Copy link
Contributor Author

rebased.

@Rustin170506
Copy link
Contributor Author

ping~

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 26, 2019

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d842563:

Sandbox Source
antd reproduction template Configuration

@Rustin170506
Copy link
Contributor Author

@afc163 @zombieJ PTAL~

@Rustin170506
Copy link
Contributor Author

rebased.

@Rustin170506
Copy link
Contributor Author

CI test failed because calendar component.

@Rustin170506
Copy link
Contributor Author

rebased.

@Rustin170506
Copy link
Contributor Author

@zombieJ PTAL~

@afc163
Copy link
Member

afc163 commented Dec 3, 2019

Could you help to add a complete real world example of usage, include Skeleton, Skeleton.Button and Skeleton.Avatar.

@Rustin170506
Copy link
Contributor Author

Could you help to add a complete real world example of usage, include Skeleton, Skeleton.Button and Skeleton.Avatar.

I think I can do it, how about after I finished input and progress.

@spencer741
Copy link

@Rustin-Liu The Skeleton component has the loading prop which can toggle visibility, but the loading prop doesn't work with Skeleton.Avatar.
<Skeleton.Avatar shape="square" size={125} loading={false}>
<Avatar shape="square" size={125} icon={<UserOutlined />} />
</Skeleton.Avatar>
Is this a misinterpretation of usage or a lack of functionality?

@Rustin170506
Copy link
Contributor Author

Is this a misinterpretation of usage or a lack of functionality?

Yes, this is a misinterpretation of usage. Because I think include a avatar into a skeleton avatar is weird. You can toggle it by yourself.

@Rustin170506 Rustin170506 deleted the skeleton branch May 25, 2020 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants