diff --git a/packages/taro-components/types/Image.d.ts b/packages/taro-components/types/Image.d.ts index 7b4fbd3d818e..c1d3a781c71f 100644 --- a/packages/taro-components/types/Image.d.ts +++ b/packages/taro-components/types/Image.d.ts @@ -8,6 +8,11 @@ export interface ImageProps extends StandardProps { */ src: string, + /** + * 默认不解析 webP 格式,只支持网络资源 + */ + webp?: boolean, + /** * 图片裁剪、缩放的模式 * diff --git a/packages/taro/types/taro.component.d.ts b/packages/taro/types/taro.component.d.ts index 2f8779eccbc3..d6c94758b6f9 100644 --- a/packages/taro/types/taro.component.d.ts +++ b/packages/taro/types/taro.component.d.ts @@ -139,6 +139,7 @@ declare namespace Taro { defaultProps?: Partial

config?: Config options?: ComponentOptions + externalClasses?: string[] } type FC

= FunctionComponent