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

GaiaXAndroidDemo ScrollView 如何设置点击事件? #86

Closed
Wusssy opened this issue Jun 8, 2022 · 6 comments
Closed

GaiaXAndroidDemo ScrollView 如何设置点击事件? #86

Wusssy opened this issue Jun 8, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Wusssy
Copy link

Wusssy commented Jun 8, 2022

demo中设置了eventListener.
模板gx-content-uper-scroll-item的databinding如下
{ "data": { "cover-img": { "value": "$data.img" }, "title": { "value": "$data.title" } }, "event":{ "gx-content-uper-scroll-item":{ "type":"'tap'", "params": { "value": "'我是event'" } } } }
点击单个item无法回调onGestureEvent. 打断点可以看到gxTemplateContext.templateData?.eventListener为空。请问这个问题如何解决?

@biezhihua biezhihua self-assigned this Jun 8, 2022
@biezhihua
Copy link
Collaborator

@Wusssy 我看下,稍后给您回复

@biezhihua
Copy link
Collaborator

@Wusssy 你好,我看下是内部存在逻辑漏洞,需要补齐,我预计明天上午提交修复代码。

@biezhihua biezhihua added the bug Something isn't working label Jun 8, 2022
@Wusssy Wusssy closed this as completed Jun 8, 2022
@Wusssy
Copy link
Author

Wusssy commented Jun 8, 2022

好的,多谢。另外问一下,Scroll View支持翻页吗?

@biezhihua
Copy link
Collaborator

@Wusssy 我们有计划支持加载更多和事件回调的逻辑。 如果你有类似的诉求,可以提issue来增加优先级。

@biezhihua
Copy link
Collaborator

@Wusssy 代码已更新,可以更新main分支代码

@Wusssy
Copy link
Author

Wusssy commented Jun 9, 2022

@Wusssy 代码已更新,可以更新main分支代码

好的,多谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants