May 18, 2021 WeChat Mini Program Development Document
Base library 1.4.0 starts to support, and low versions need to be compatible.
A picture view over a native component. The native components that can be overridden are the same as the cover-view and support nesting in the cover-view.
Property | Type | The default | Required | Description | The lowest version |
---|---|---|---|---|---|
Src | string | Whether | Icon path, support for temporary paths, network addresses (1.6.0 support), cloud file IDs (2.2.3 support). | 1.4.0 | |
bindload | eventhandle | Whether | Triggered when the picture is loaded successfully | 2.1.0 | |
binderror | eventhandle | Whether | Triggered when the picture fails to load | 2.1.0 |
Format | Ios | Android |
---|---|---|
Jpg | √ | √ |
Png | √ | √ |
Svg | Ⅹ | Ⅹ |
WEBP | √ | √ |
Gif | √ | √ |
BASE64 | Ⅹ | Ⅹ |