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: Tree support titleRender #25624

Merged
merged 1 commit into from
Jul 15, 2020
Merged

feat: Tree support titleRender #25624

merged 1 commit into from
Jul 15, 2020

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Jul 14, 2020

[中文版模板 / Chinese template]

🤔 This is a ...

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

🔗 Related issue link

resolve #25615

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English Tree support titleRender to customize tree node title with unique function.
🇨🇳 Chinese Tree 添加 titleRender 以支持全局设置 tree node 节点。

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • 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

@zombieJ
Copy link
Member Author

zombieJ commented Jul 14, 2020

Pls help to check naming standard @afc163 @xrkffgg

@ant-design-bot
Copy link
Contributor

ant-design-bot commented Jul 14, 2020

Prepare preview

@ant-design-bot
Copy link
Contributor

ant-design-bot commented Jul 14, 2020

@codesandbox-ci
Copy link

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 53ab6a4:

Sandbox Source
antd reproduction template Configuration

@codecov
Copy link

codecov bot commented Jul 14, 2020

Codecov Report

Merging #25624 into feature will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           feature   #25624   +/-   ##
========================================
  Coverage    99.51%   99.51%           
========================================
  Files          372      372           
  Lines         7240     7240           
  Branches      2027     2029    +2     
========================================
  Hits          7205     7205           
  Misses          35       35           

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 4ec1b8a...53ab6a4. Read the comment docs.

@nurgasemetey
Copy link

Hello,
how to use it? any sample code?

@YHS2017
Copy link

YHS2017 commented May 28, 2021

[中文版模板 / Chinese template]

🤔 This is a ...

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

🔗 Related issue link

resolve #25615

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English Tree support titleRender to customize tree node title with unique function.
🇨🇳 Chinese Tree 添加 titleRender 以支持全局设置 tree node 节点。

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • 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

However, NodeData will lose part of the customer data, and there is no way to get the customer data of the current node during rendering customized tree nodes。

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

7 participants