0.4 cn


image tag is used to render a specified picture, and it shouldn't contain any child component. You can use img as alias.

Notes: the styles of width and height should be specified, otherwise it won't work.

alias: <img>

Child Components

This component supports no child components.


  • src: <string> image source url
  • resize: 0.5 <string> the 'ScaleType' of the component. The default value is stretch, if this attribute is not specified. Possible values are cover, contain, each of which has the same meaning with w3c standard.

Other attributes please check out the common attributes.


  • width: <length> the width of the component. This style should be specified.
  • height: <length> the height of the component. This style should be specifed.

common styles: check out the common styles

  • support flexbox related styles
  • support box model related styles
  • support position related styles
  • support opacity, background-color etc.


common events: check out the common events


  <image src="..." ></image>

results matching ""

    No results matching ""