Skip to content

Commit

Permalink
fix(components): 修复广告组件 Ad 的 typings, fix #6189
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed May 2, 2020
1 parent d024973 commit a926cc5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/taro-components/types/Ad.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ interface AdProps extends StandardProps {
*/
adIntervals?: number

/**
* 广告类型,默认为展示banner,可通过设置该属性为video展示视频广告, grid为格子广告
* @supported weapp
*/
adType?: string

/**
* @supported weapp
*/
adTheme?: string

/** 广告加载成功的回调
* @supported weapp
*/
Expand All @@ -32,9 +43,9 @@ declare namespace AdProps {
interface onErrorEventDetail {
errCode: keyof AdErrCode
}
/**
/**
* 广告错误码
*
*
* 错误码是通过onError获取到的错误信息。调试期间,可以通过异常返回来捕获信息。
* 在小程序发布上线之后,如果遇到异常问题,可以在[“运维中心“](https://mp.weixin.qq.com/)里面搜寻错误日志,还可以针对异常返回加上适当的监控信息。
*/
Expand Down

0 comments on commit a926cc5

Please sign in to comment.