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

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

Open
cwtuan opened this issue Dec 11, 2023 · 6 comments
Open

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

cwtuan opened this issue Dec 11, 2023 · 6 comments
Assignees
Labels
📖 Documentation Require document change Easy to solve Easy to solve problems, PR welcome Next release issues to close in next release PR welcome We need you to help us by sending a pull request :)

Comments

@cwtuan
Copy link
Contributor

cwtuan commented Dec 11, 2023

Component

Tree

Reproduction link

https://codepen.io/cwtuan/pen/MWLRjOL?editors=0010

Steps to reproduce

image

Copy link

你好,该 issue 已 30 天没有活动,因此被标记为 stale,如果之后的 7 天仍然没有活动,该 issue 将被自动关闭

@github-actions github-actions bot added the Stale not active for a lone time label Jan 10, 2024
@YSMJ1994
Copy link
Contributor

YSMJ1994 commented Jan 11, 2024

dataSource item中多余的属性会传递给 tree node 内的 <li></li> 节点,图示的表现正是 <li type="1"></li>的结果,所以是符合预期的行为,建议调整数据

@cwtuan
Copy link
Contributor Author

cwtuan commented Jan 11, 2024

建议文档备注下,这个问题找了很久

@github-actions github-actions bot removed the Stale not active for a lone time label Jan 11, 2024
@YSMJ1994
Copy link
Contributor

欢迎 PR,建议在 dataSouce 类型定义中添加 @remarks 注释说明即可

@YSMJ1994 YSMJ1994 added Easy to solve Easy to solve problems, PR welcome 📖 Documentation Require document change PR welcome We need you to help us by sending a pull request :) labels Jan 12, 2024
Copy link

你好,该 issue 已 30 天没有活动,因此被标记为 stale,如果之后的 7 天仍然没有活动,该 issue 将被自动关闭

@github-actions github-actions bot added the Stale not active for a lone time label Feb 11, 2024
@cwtuan
Copy link
Contributor Author

cwtuan commented Feb 12, 2024

不太明白怎么加?

@github-actions github-actions bot removed the Stale not active for a lone time label Feb 12, 2024
@kyokaxin kyokaxin added the Next release issues to close in next release label Apr 26, 2024
@YunMeng99 YunMeng99 self-assigned this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 Documentation Require document change Easy to solve Easy to solve problems, PR welcome Next release issues to close in next release PR welcome We need you to help us by sending a pull request :)
Projects
Status: 🆕 New
Development

No branches or pull requests

4 participants