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

docs: add onMouseEnter and onMouseLeave event TypeScript definition for Tree #18796

Conversation

MrHeer
Copy link
Contributor

@MrHeer MrHeer commented Sep 13, 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

close #18786

📝 Changelog

Language Changelog
🇺🇸 English Add onMouseEnter and onMouseLeave event TypeScript definition
🇨🇳 Chinese 为 Tree 新增 onMouseEnter 和 onMouseLeave 事件的 TypeScript 类型

☑️ 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/tree/index.en-US.md
View rendered components/tree/index.zh-CN.md


View rendered components/tree/index.en-US.md
View rendered components/tree/index.zh-CN.md

@netlify
Copy link

netlify bot commented Sep 13, 2019

Deploy preview for ant-design ready!

Built with commit a8e8b5e

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

@codecov
Copy link

codecov bot commented Sep 13, 2019

Codecov Report

Merging #18796 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #18796   +/-   ##
=======================================
  Coverage    96.9%    96.9%           
=======================================
  Files         281      281           
  Lines        7540     7540           
  Branches     2100     2103    +3     
=======================================
  Hits         7307     7307           
  Misses        231      231           
  Partials        2        2
Impacted Files Coverage Δ
components/tree/Tree.tsx 96.87% <ø> (ø) ⬆️

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 98dfd2a...6ac28b8. Read the comment docs.

@codecov
Copy link

codecov bot commented Sep 13, 2019

Codecov Report

Merging #18796 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #18796   +/-   ##
=======================================
  Coverage    96.9%    96.9%           
=======================================
  Files         281      281           
  Lines        7540     7540           
  Branches     2100     2058   -42     
=======================================
  Hits         7307     7307           
  Misses        231      231           
  Partials        2        2
Impacted Files Coverage Δ
components/tree/Tree.tsx 96.87% <ø> (ø) ⬆️

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 98dfd2a...a8e8b5e. Read the comment docs.

@MrHeer MrHeer changed the title docs(Tree): Add onMouseEnter and onMouseLeave event typeScript definition docs: Add onMouseEnter and onMouseLeave event typeScript definition for Tree Sep 13, 2019
@@ -48,6 +48,8 @@ subtitle: 树形控件
| onDrop | drop 触发时调用 | function({event, node, dragNode, dragNodesKeys}) | - | |
| onExpand | 展开/收起节点时触发 | function(expandedKeys, {expanded: bool, node}) | - | |
| onLoad | 节点加载完毕时触发 | function(loadedKeys, {event, node}) | - | 3.7.0 |
| onMouseEnter | 进入 TreeNode 时调用 | function({event, node}) | - | |
| onMouseLeave | 离开 TreeNode 时调用 | function({event, node}) | - | |
Copy link
Member

@afc163 afc163 Sep 13, 2019

Choose a reason for hiding this comment

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

No need document for all onXxx events.

@afc163 afc163 changed the title docs: Add onMouseEnter and onMouseLeave event typeScript definition for Tree docs: add onMouseEnter and onMouseLeave event typeScript definition for Tree Sep 13, 2019
@afc163 afc163 changed the title docs: add onMouseEnter and onMouseLeave event typeScript definition for Tree docs: add onMouseEnter and onMouseLeave event TypeScript definition for Tree Sep 13, 2019
@afc163 afc163 merged commit 56abebf into ant-design:master Sep 13, 2019
21 of 23 checks passed
@MrHeer MrHeer deleted the add-onMouseEnter-and-onMouseLeave-for-Tree-master branch Sep 13, 2019
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.

2 participants