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(weapp/alipay): 支持使用 PageMeta 和 NavigationBar 组件,fix #6092 #14761

Merged
merged 6 commits into from
Nov 3, 2023

Conversation

Chen-jj
Copy link
Contributor

@Chen-jj Chen-jj commented Nov 2, 2023

这个 PR 做了什么? (简要描述所做更改)

支持使用 PageMetaNavigationBar 组件,fix #6092

这个 PR 是什么类型? (至少选择一个)

  • 错误修复(Bugfix) issue: fix PageMeta 编译问题 #6092
  • 新功能(Feature)
  • 代码重构(Refactor)
  • TypeScript 类型定义修改(Typings)
  • 文档修改(Docs)
  • 代码风格更新(Code style update)
  • 其他,请描述(Other, please describe):

这个 PR 涉及以下平台:

  • 所有小程序
  • 微信小程序
  • 支付宝小程序
  • 百度小程序
  • 字节跳动小程序
  • QQ 轻应用
  • 京东小程序
  • 快应用平台(QuickApp)
  • Web 平台(H5)
  • 移动端(React-Native)
  • 鸿蒙(harmony)

@TheKonka
Copy link
Member

TheKonka commented Nov 3, 2023

image
image
image
image
大佬,我本地正好也实现了一种方案,有空可以帮忙点评下我这个

@Chen-jj
Copy link
Contributor Author

Chen-jj commented Nov 3, 2023

@TheKonka

模板方面:

  • NavigationBar 还是要写死,不能用 template 渲染,否则会渲染不出来;
  • 最好是使用到的页面才增加对应的模板

运行时:

  • 只在 renderChildNodes 作跳过处理感觉会覆盖不全,例如延迟加载时 appendChild、insertBefore 等情况
  • 同样地,setAttribute 也覆盖不全,还有 removeAttribute 的情况等
  • 另外还需要考虑插件化解耦

@TheKonka
Copy link
Member

TheKonka commented Nov 3, 2023

感谢大佬指点,学习了

@Chen-jj
Copy link
Contributor Author

Chen-jj commented Nov 3, 2023

感谢大佬指点,学习了

客气客气看了你的代码发现我还漏了一些处理的地方,感谢感谢

@Chen-jj
Copy link
Contributor Author

Chen-jj commented Nov 3, 2023

感谢大佬指点,学习了

客气客气~ 看了你的代码发现我还漏了一些需要处理的地方,感谢感谢~

@Chen-jj Chen-jj merged commit 84a0ac6 into next Nov 3, 2023
6 of 7 checks passed
@Chen-jj Chen-jj deleted the feat/weapp-meta-components branch November 3, 2023 08:41
@wq0613
Copy link

wq0613 commented Apr 9, 2024

@Chen-jj
3.6.24 使用pageMeta 依然无效,buildPageTemplate方法中无法拿到page对象,页面中的pageMeta 为空字符

@TheKonka
Copy link
Member

TheKonka commented Apr 9, 2024

@Chen-jj 3.6.24 使用pageMeta 依然无效,buildPageTemplate方法中无法拿到page对象,页面中的pageMeta 为空字符

v3.6.26-alpha.1

用这个版本看看

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.

PageMeta 编译问题
4 participants