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: Anchor onClick #11898

Merged
merged 10 commits into from Aug 28, 2018
Merged

feat: Anchor onClick #11898

merged 10 commits into from Aug 28, 2018

Conversation

mushan0x0
Copy link
Contributor

  • Make sure that you propose PR to right branch: bugfix for master, feature for latest active branch feature-x.x.
  • Make sure that you follow antd's code convention.
  • Run npm run lint and fix those errors before submitting in order to keep consistent code style.
  • Rebase before creating a PR to keep commit history clear.
  • Add some descriptions and refer relative issues for you PR.

Extra checklist:

  • Update API docs for the component.
  • Update/Add demo to demonstrate new feature.
  • Update TypeScript definition for the component.
  • Add unit tests for the feature.

@ant-design-bot
Copy link
Contributor

ant-design-bot commented Aug 27, 2018

Deploy preview for ant-design ready!

Built with commit 5b26077

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

@afc163
Copy link
Member

afc163 commented Aug 28, 2018

ci broken

unregisterLink: (link: string) => void;
activeLink: string | null;
scrollTo: (link: string) => void;
propClick?: (e: React.MouseEvent<HTMLElement>, link: { title: React.ReactNode, href: string }) => void;
Copy link
Member

Choose a reason for hiding this comment

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

How about onClick?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

我觉得可以

@codecov
Copy link

codecov bot commented Aug 28, 2018

Codecov Report

Merging #11898 into feature-3.9.0 will increase coverage by 0.65%.
The diff coverage is 100%.

Impacted file tree graph

@@                Coverage Diff                @@
##           feature-3.9.0   #11898      +/-   ##
=================================================
+ Coverage          92.19%   92.85%   +0.65%     
=================================================
  Files                206      207       +1     
  Lines               5395     5863     +468     
  Branches            1512     1694     +182     
=================================================
+ Hits                4974     5444     +470     
+ Misses               417      416       -1     
+ Partials               4        3       -1
Impacted Files Coverage Δ
components/anchor/AnchorLink.tsx 100% <100%> (ø) ⬆️
components/anchor/Anchor.tsx 90.83% <100%> (-0.08%) ⬇️
components/drawer/index.tsx 97.19% <0%> (-1.38%) ⬇️
components/modal/confirm.tsx 91.83% <0%> (-1.03%) ⬇️
components/pagination/Pagination.tsx 100% <0%> (ø) ⬆️
components/input-number/index.tsx 100% <0%> (ø) ⬆️
components/switch/index.tsx 100% <0%> (ø) ⬆️
components/icon/index.tsx 100% <0%> (ø) ⬆️
components/input/Input.tsx 100% <0%> (ø) ⬆️
components/steps/index.tsx 100% <0%> (ø) ⬆️
... and 14 more

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 5e31067...5b26077. Read the comment docs.

@mushan0x0
Copy link
Contributor Author

ci又失败了,我觉得不是代码的问题

@afc163 afc163 merged commit dd37457 into ant-design:feature-3.9.0 Aug 28, 2018
@afc163
Copy link
Member

afc163 commented Aug 28, 2018

ref #10577

@mushan0x0 mushan0x0 deleted the anchor-onClick branch August 28, 2018 13:25
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.

None yet

3 participants