Skip to content

Commit f971662

Browse files
authored
Merge pull request #339 from yangmingshan/missing
feat: add missing instance methods
2 parents 14df520 + 11b17b4 commit f971662

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

types/wx/lib.wx.component.d.ts

+12
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,18 @@ declare namespace WechatMiniprogram.Component {
368368
* 最低基础库版本:[`2.25.1`](https://developers.weixin.qq.com/miniprogram/dev/framework/compatibility.html)
369369
*/
370370
setPassiveEvent(config: PassiveConfig): void
371+
/**
372+
* 设置初始渲染缓存的动态数据
373+
*
374+
* 最低基础库版本:[`2.11.1`](https://developers.weixin.qq.com/miniprogram/dev/framework/compatibility.html)
375+
*/
376+
setInitialRenderingCache(dynamicData: IAnyObject | null): void
377+
/**
378+
* 返回当前页面的 appBar 组件实例
379+
*
380+
* 最低基础库版本:[`3.3.1`](https://developers.weixin.qq.com/miniprogram/dev/framework/compatibility.html)
381+
*/
382+
getAppBar(): TrivialInstance
371383
}
372384

373385
interface ComponentOptions {

0 commit comments

Comments
 (0)