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

[List]dataSource的属性无法透传到renderItem #4816

Closed
owenchen1004 opened this issue Apr 8, 2024 · 2 comments
Closed

[List]dataSource的属性无法透传到renderItem #4816

owenchen1004 opened this issue Apr 8, 2024 · 2 comments
Labels
💬 Discussion Stale not active for a lone time

Comments

@owenchen1004
Copy link
Contributor

Component

List

Steps to reproduce

使用官方demo中的代码,

image image image

item无法获取到data的type,始终是unknown,所以item.list的获取会报错

@owenchen1004 owenchen1004 changed the title [List][List]dataSource的属性无法透传到renderItem [List]dataSource的属性无法透传到renderItem Apr 8, 2024
@eternalsky
Copy link
Contributor

eternalsky commented Apr 11, 2024

item 确实是 unknown 的,因为 dataSource 是用户传入进来的,List 并没有限制 ListItem 具体有哪些 key。实际是什么样的类型,只有用户自己知道,因此这里也是只能是用户自己指定类型。

Copy link

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

@github-actions github-actions bot added the Stale not active for a lone time label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 Discussion Stale not active for a lone time
Projects
None yet
Development

No branches or pull requests

2 participants