Skip to content

Commit

Permalink
fix(weapp): 添加微信小程序 webp 属性和修复函数式组件缺少的 externalClasses 类型 (#5273)
Browse files Browse the repository at this point in the history
* fix: 添加微信小程序webp属性

* fix: 修复函数式组件缺少的externalClasses类型
  • Loading branch information
spencer17x authored and Garfield550 committed Jan 8, 2020
1 parent 0c5bfe7 commit c82380e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/taro-components/types/Image.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export interface ImageProps extends StandardProps {
*/
src: string,

/**
* 默认不解析 webP 格式,只支持网络资源
*/
webp?: boolean,

/**
* 图片裁剪、缩放的模式
*
Expand Down
1 change: 1 addition & 0 deletions packages/taro/types/taro.component.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ declare namespace Taro {
defaultProps?: Partial<P>
config?: Config
options?: ComponentOptions
externalClasses?: string[]
}

type FC<P = {}> = FunctionComponent<P>
Expand Down

0 comments on commit c82380e

Please sign in to comment.