# 图片 Image

图片组件。

# 基础用法

IDE整体

{
  "type": "IvImage",
  "props": {
    "width": "160",
    "height": "90",
    "fit": "cover",
    "round": "4"
  }
}

# API

# Props

属性 说明 类型 默认值
src 图片地址 String -
width 宽度 String | Number 160
height 高度 String | Number 90
auto-width 自动宽度 Boolean false
auto-height 自动高度 Boolean false
alt 图像无法显示时的替代文本 String -
fit 摆放方式
可选值: cover contain fill
String cover
round 圆角 String | Number 4
顶部