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): dataSource item add remarks close #4644 #4864

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YunMeng99
Copy link
Contributor

No description provided.

@@ -313,6 +313,7 @@ export interface TreeProps<
/**
* 数据源,该属性优先级高于 children
* @en Data source of the tree component
* @remarks item中多余的属性会传递给 tree node 内的 <li></li> 节点,并被渲染
Copy link
Contributor

Choose a reason for hiding this comment

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

中英文之间要空格,如 item 和中之间。另外需要有英文的部分,用 - 隔开

Copy link
Contributor

Choose a reason for hiding this comment

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

另外这个描述还可以再优化一下。并被渲染不用提,传给 li,自然是会要渲染的。

Copy link
Contributor

Choose a reason for hiding this comment

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

types 改了之后要运行一下 npm run api tree,更新一下 readme

@@ -313,6 +313,7 @@ export interface TreeProps<
/**
* 数据源,该属性优先级高于 children
* @en Data source of the tree component
* @remarks item中多余的属性会传递给 tree node 内的 <li></li> 节点,并被渲染
Copy link
Contributor

Choose a reason for hiding this comment

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

types 改了之后要运行一下 npm run api tree,更新一下 readme

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.

[Tree]Tree的dataSource如果有type字段,就会有样式问题
2 participants