-
-
Notifications
You must be signed in to change notification settings - Fork 47k
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 Tree Icon prop #25080
docs: add Tree Icon prop #25080
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,Thanks!
新增的,发 feature 吧 |
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 9288cdb971ac7da5adf5e7c1d0042d9c50b8124c:
|
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 0326f86:
|
Codecov Report
@@ Coverage Diff @@
## master #25080 +/- ##
=======================================
Coverage 99.38% 99.38%
=======================================
Files 365 365
Lines 7296 7296
Branches 2041 1990 -51
=======================================
Hits 7251 7251
Misses 45 45 Continue to review full report at Codecov.
|
不是新增的,本来就有这个api,加个文档说明 |
components/tree/index.en-US.md
Outdated
@@ -52,6 +52,7 @@ Almost anything can be represented in a tree structure. Examples include directo | |||
| onLoad | Callback function for when a treeNode is loaded | function(loadedKeys, {event, node}) | - | | | |||
| onRightClick | Callback function for when the user right clicks a treeNode | function({event, node}) | - | | | |||
| onSelect | Callback function for when the user clicks a treeNode | function(selectedKeys, e:{selected: bool, selectedNodes, node, event}) | - | | | |||
| icon | customize treeNode icon. | ReactNode/Function(props):ReactNode | - | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| icon | customize treeNode icon. | ReactNode/Function(props):ReactNode | - | | | |
| icon | customize treeNode icon. | ReactNode \| (props) => ReactNode | - | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok了
https://ant.design/components/tree-cn/#TreeNode-props 这个中 不是有 icon 嘛? |
这是节点的,不是tree的。 |
顺手把这个里面的文档也调整了一下 |
components/tree/index.en-US.md
Outdated
@@ -60,7 +61,7 @@ Almost anything can be represented in a tree structure. Examples include directo | |||
| checkable | When Tree is checkable, set TreeNode display Checkbox or not | boolean | - | | |||
| disableCheckbox | Disables the checkbox of the treeNode | boolean | false | | | |||
| disabled | Disables the treeNode | boolean | false | | | |||
| icon | customize icon. When you pass component, whose render will receive full TreeNode props as component props | ReactNode/Function(props):ReactNode | - | | | |||
| icon | customize icon. When you pass component, whose render will receive full TreeNode props as component props | ReactNode\| (props) => ReactNode | - | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| icon | customize icon. When you pass component, whose render will receive full TreeNode props as component props | ReactNode\| (props) => ReactNode | - | | | |
| icon | customize icon. When you pass component, whose render will receive full TreeNode props as component props | ReactNode \| (props) => ReactNode | - | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
😅 我指出哪个,你就只改哪个啊,你好歹看看其他的呢、、、、 |
我错了😭 QuQ |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
closes #25070
💡 Background and solution
📝 Changelog
☑️ Self Check before Merge
View rendered components/tree/index.en-US.md
View rendered components/tree/index.zh-CN.md