Skip to content

Image 图片

基本使用

html
<be-image class="image1" src="/static/xxx/xxx.jpg" mode="widthFix"></be-image>
scss
.image1 {
  width: 100%;
}

WARNING

必须给 Image 组件设置宽高,否则无法正常显示。

API

Props

属性名说明类型默认值
rootClass根节点 classstring-
rootStyle根节点 stylestring-

Props extend uni-app image

属性名说明默认值
src属性说明-
mode属性说明scaleToFill

Slots

插槽名说明slot props默认值
loading自定义加载视图-