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

mipShellEvents 事件中能不能把 pageMeta 带过来 #68

Closed
ShawnTu opened this issue Jul 20, 2018 · 2 comments
Closed

mipShellEvents 事件中能不能把 pageMeta 带过来 #68

ShawnTu opened this issue Jul 20, 2018 · 2 comments
Assignees

Comments

@ShawnTu
Copy link
Contributor

ShawnTu commented Jul 20, 2018

现在这个需求是,mip-shell扩展,页面切换时现在有

// togglePageMask 
// slide   // 页面上下滑动
// toggleTransition ----  toggle:false ( 页面开始切换 )
// toggleTransition ----  toggle:true(页面已切换)
// updateShell --- 开始更新shell  (目前含有pageMeta)

现在想要在 toggleTransition、toggleTransition 中事件数据中加入 current以及 next的 pageMeta

有这些数据中就可以 获取到目标页面数据,然后进行切换场景动画等

@easonyq
Copy link
Contributor

easonyq commented Jul 23, 2018

我理解你们应该是需要切换页面时暴露出来一些钩子,然后你们可以进行相关操作。

现在切换页面和动画这块随着逻辑的逐渐复杂越来越难懂,我和宇琪打算明天把这个重构一下,届时可以提供钩子,就会清晰很多。

@easonyq
Copy link
Contributor

easonyq commented Jul 26, 2018

#51 的评论说明。
参数中的 options.targetPageMetaoptions.sourcePageMeta 能满足你的需求。

@easonyq easonyq closed this as completed Jul 26, 2018
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

No branches or pull requests

4 participants