Skip to content

Fix/18716 button createliveactivity - #19469

Open
Adamlyu-hub wants to merge 6 commits into
NervJS:mainfrom
Adamlyu-hub:fix/18716-button-createliveactivity
Open

Fix/18716 button createliveactivity#19469
Adamlyu-hub wants to merge 6 commits into
NervJS:mainfrom
Adamlyu-hub:fix/18716-button-createliveactivity

Conversation

@Adamlyu-hub

@Adamlyu-hub Adamlyu-hub commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

这个 PR 做了什么? (简要描述所做更改)
修复微信小程序端 Button 组件不支持 liveActivitycreateLiveActivity 事件问题。为微信小程序平台的 Button 组件增加 bindCreateLiveActivity 事件配置。同时将 onCreateLiveActivity 的平台支持声明从仅支持 ascf 修改为支持 weapp 和 ascf

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

这个 PR 涉及以下平台:

  • 所有平台
  • Web 端(H5)
  • 移动端(React-Native)
  • 鸿蒙(Harmony)
  • 鸿蒙容器(Harmony Hybrid)
  • ASCF 元服务
  • 快应用(QuickApp)
  • 所有小程序
  • [ ✅] 微信小程序
  • 企业微信小程序
  • 京东小程序
  • 百度小程序
  • 支付宝小程序
  • 支付宝 IOT 小程序
  • 钉钉小程序
  • QQ 小程序
  • 飞书小程序
  • 快手小程序
  • 头条小程序

Summary by CodeRabbit

  • 新功能
    • 微信小程序端按钮新增 bindCreateLiveActivity 回调属性,支持创建实时活动相关交互。
    • 动态授权码回调说明新增微信小程序平台支持,并继续保留原有平台支持。
    • 原有隐私授权回调能力保持不变。

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d71f0023-6998-47b0-91d7-3061558f87ac

📥 Commits

Reviewing files that changed from the base of the PR and between 30ccf42 and 001970f.

📒 Files selected for processing (2)
  • packages/taro-components/types/Button.d.ts
  • packages/taro-platform-weapp/src/components.ts

Walkthrough

本次变更为 Button 增加动态创建 Live Activity 回调支持。类型文档新增 weapp 平台标记,Weapp 组件配置新增 bindCreateLiveActivity 属性,并保留原有隐私授权回调。

Changes

Button 动态授权码支持

Layer / File(s) Summary
Button 回调类型与组件映射
packages/taro-components/types/Button.d.ts, packages/taro-platform-weapp/src/components.ts
onCreateLiveActivity 文档新增 weapp 支持。components.Button 新增默认值为空字符串的 bindCreateLiveActivity 配置。

Estimated code review effort: 1 (简单) | ~5 分钟

Possibly related PRs

  • NervJS/taro#19027:同样修改 ButtonProps 声明和平台 Button 事件回调。
  • NervJS/taro#19274:引入相关 ASCF Button 支持,本变更补充类型文档和 Weapp 映射。

Suggested reviewers: 2extliuweijian32, single-dancer

Poem

我是小兔,带来回调新芽,
bindCreateLiveActivity 轻轻落下。
Weapp 与 ASCF 同步发芽,
Button 的事件路径更加齐整,
胡萝卜庆祝,蹦蹦哒哒!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题明确指出修复 Button 的 createLiveActivity 支持,与本次新增微信小程序事件支持的主要变更一致。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install failed: dependency version conflict. Check your lock file or package.json.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

Button组件不支持createliveactivity事件,微信小程序端

1 participant