Image 图片查看器

用于显示及缩放查看的图片组件。

基本用法

预览
<template>
  <i-image src="https://picsum.photos/180/120" />
</template>
显示代码

自定义大小

通过 width 属性控制图片大小。

预览
预览
<template>
  <div className="idesign-demo-block-row">
    <i-image :width="260" src="https://picsum.photos/180/120" />
    <i-image width="260px" src="https://picsum.photos/180/120" />
  </div>
</template>
显示代码

Image Attributes

属性说明类型默认值
src图片地址string--
width图片宽度string〡number200
Last Updated:
Contributors: Leophen