Skip to content

Commit afe177f

Browse files
committed
feat: make glass-easel chaining api triggerEvent param optional
1 parent e199521 commit afe177f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2026-05-14 v5.2.1
2+
- glass-easel Chaining API 中的 `triggerEvent` 中的 `detail``options` 改为可选
3+
14
## 2026-05-06 v5.2.0
25
- 支持 [glass-easel 组件框架](https://github.com/wechat-miniprogram/glass-easel) 中的 [Chaining API](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/glass-easel/chaining-api.html)。与经典形式的 Definition API 一样,Chaining API 也可以和 [glass-easel-analyzer](https://github.com/wechat-miniprogram/glass-easel-analyzer) 组合使用
36

types/wx/lib.wx.glass-easel.component.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ declare namespace WechatMiniprogram.GlassEasel.Component {
215215
/** Trigger an event */
216216
triggerEvent(
217217
name: string,
218-
detail: any,
219-
options: {
218+
detail?: any,
219+
options?: {
220220
bubbles?: boolean
221221
composed?: boolean
222222
capturePhase?: boolean

0 commit comments

Comments
 (0)