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

修复百度小程序安装 html 插件时不渲染问题,优化其他问题 #15143

Open
wants to merge 2,016 commits into
base: 3.x
Choose a base branch
from

Conversation

qnnp-me
Copy link
Contributor

@qnnp-me qnnp-me commented Jan 21, 2024

build swan 百度小程序的时候出现页面渲染只有 page > template 两个节点
根据 build 后的模板文件可知是因为丢了 tmpl_0_2, tmpl_0_7 两个模板造成的
在 swan 插件源码中发现是被主动删掉了,但是没有处理删掉后造成的影响

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

  • 错误修复(Bugfix) issue: fix #
  • 新增:为生成配置文件方法添加适配器参数, 用于适配插件可以根据需要修改生成配置文件,原来如百度小程序的源码的目录属性 smartProgramRoot 在生成时是不支持自动处理的
  • 优化:优化百度小程序生成配置文件方法,使得配置文件的 smartProgramRoot 属性在生成的 dist 中为正确的 ./

这个 PR 涉及以下平台:

  • 百度小程序

fix #14945

Copy link

taro-bot2 bot commented Jan 21, 2024

欢迎提交 PR~ Taro 非常感谢您对开源事业做出的贡献!🌷🌷🌷

一般 PR 会在一到两周内进行 review,成功合入后会随下一个版本进行发布。

Review 需要耗费大量时间,所以请遵循以下规范,协助我们提高 review 效率🙏🙏🙏

  1. 详细介绍 PR 的背景(非常重要,例如解决了什么问题,该问题如何复现等)
  2. 确保 CI 顺利运行。
  3. 最好能提供对应的测试用例。

为了更好地进行沟通,请加入 Taro 开发者微信群:

@qnnp-me qnnp-me changed the title 修复百度小程序不渲染问题 修复百度小程序安装 html 插件时不渲染问题,优化其他问题 Jan 22, 2024
@qnnp-me
Copy link
Contributor Author

qnnp-me commented Jan 31, 2024

已rebase

@Chen-jj Chen-jj added this to the 3.6.25 milestone Mar 13, 2024
distProjectConfig = Object.assign({}, origProjectConfig, { miniprogramRoot: './' })
distProjectConfig = Object.assign({}, origProjectConfig)
if (distProjectConfig.miniprogramRoot) {
distProjectConfig.miniprogramRoot = './'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不是很理解在这里许改 config 的意义,generateProjectConfig 做的事情好像就是把你原本的 config 放到 dist 目录下而已,直接在原文件加上这个字段的话 是不是也有一样的效果呢?

@@ -57,9 +57,6 @@ export class Template extends RecursiveTemplate {

this.legacyMiniComponents = { ...result }

delete result['pure-view']
delete result['static-view']

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这么改好像会导致出现之前的一个问题 :#6015

Copy link
Contributor

@ZEJIA-LIU ZEJIA-LIU Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#15337 这个 pr 解决了 #14945 的问题,可以帮忙看看是否能够满足

@ZEJIA-LIU ZEJIA-LIU removed this from the 3.6.25 milestone Mar 15, 2024
heiazu and others added 23 commits June 19, 2024 16:02
fix: [harmony-hybrid]修复clearStorageSync报错的问题
fix: [harmony-hybrid]修复dev模式下桥接到原生侧的同步API崩溃问题
BH4HPA and others added 30 commits January 6, 2025 20:29
…p docs (NervJS#17081)

Updated the `decodeAudioData` method in `WebAudioContext` to match the official WeChat Mini Program documentation:
- Modified the return type to `Promise<AudioBuffer>` instead of `AudioBuffer`, because of this method' actual response.
- Adjusted method parameters to accept `audioData`, `successCallback`, and `errorCallback`.

This fixes the TypeScript error and aligns the implementation with the expected API behavior.
Closes NervJS#17080

Co-authored-by: Shijie Yu <yushijiechn@qq.com>
* fix: stylelint version

* fix: lock 文件

* fix: stylelint version

* fix: lock 文件

* fix: 修改pnpm版本重新pnpm i

---------

Co-authored-by: tony chen <329604487@qq.com>
Co-authored-by: Shijie Yu <yushijiechn@qq.com>
Co-authored-by: mayintao3 <mayintao3@jd.com>
Co-authored-by: Shijie Yu <yushijiechn@qq.com>
* fix: extend the judgment logic of isBooleanStringLiteral

* fix(template): updateSnapshot

---------

Co-authored-by: Shijie Yu <yushijiechn@qq.com>
* fix(rn): keyboard height on hide

* fix(rn): 空字符串时,输入中文异常
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.

百度小程序的适配问题