Skip to content

When To Use


  • Image is suitable for cross-origin image loading scenarios.
  • It focuses on direct image rendering and does not provide the progress behavior used by ImgBox.
  • Prefer Image when the source is cross-origin or when ImgBox is not suitable for the request mode.

Image-DEMO


vue
<fv-Image src="https://placehold.co/500x300/png?text=VFluent+Sample+1" style="width: 500px; height: 300px;"></fv-Image>
vue
<fv-Image src="https://placehold.co/500x300/png?text=VFluent+Sample+2" style="width: 500px; height: 300px;"></fv-Image>

Image-Lazy Load


vue
<fv-Image src="https://placehold.co/500x300/png?text=VFluent+Sample+3" :onlazy="true" style="width: 500px; height: 300px;"></fv-Image>

Properties


PropertyTypeRequiredDefaultDescription
srcstringNo''See the Image src option.
onlazybooleanNofalseSee the Image onlazy option.
themestringNo'global'See the Image theme option.
disabledbooleanNofalseSee the Image disabled option.
langstringNo"global"See the Image lang option.

Events


EventArgumentsDescription
loadobjectTriggered when the image finishes loading.
errorobjectTriggered when the image fails to load.

MIT Licensed