Skip to content

Commit

Permalink
Update taro.component.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Apr 26, 2022
1 parent 56d8435 commit 08f5dfb
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions packages/taro/types/taro.component.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,25 +160,13 @@ declare module './index' {
getTabBar?(): ComponentInstance
/** 返回页面标识符(一个字符串),可以用来判断几个自定义组件实例是不是在同一个页面内 */
getPageId?(): string
/**
* 执行关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html)
* 最低基础库版本:`2.9.0`
**/
/** 执行关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
animate?(selector: string, keyFrames: KeyFrame[], duration: number, callback: () => void): void
/**
* 滚动驱动的动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html)
* 最低基础库版本:`2.9.0`
**/
/** 滚动驱动的动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
animate?(selector: string, keyFrames: KeyFrame[], duration: number, scrollTimeline: ScrollTimelineOption): void
/**
* 清除关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html)
* 最低基础库版本:`2.9.0`
**/
/** 清除关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
clearAnimation?(selector: string, callback: () => void): void
/**
* 清除关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html)
* 最低基础库版本:`2.9.0`
**/
/** 清除关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
clearAnimation?(selector: string, options: ClearAnimationOptions, callback: () => void): void
/** 清除关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
setUpdatePerformanceListener?(options: {
Expand Down

0 comments on commit 08f5dfb

Please sign in to comment.