Skip to content

ImgBox-DEMO


vue
<fv-ImgBox url="https://rescreator.blob.core.windows.net/slider/1444a25f-3e33-44a2-878f-a628342ad88f.jpg" style="width: 350px; height: 350px;"></fv-ImgBox>

ImgBox-Background Image


vue
<fv-ImgBox url="https://rescreator.blob.core.windows.net/slider/1444a25f-3e33-44a2-878f-a628342ad88f.jpg" :onbackground="true" style="width: 350px; height: 350px; background-size: cover;"></fv-ImgBox>

ImgBox-Lazy Load


vue
<fv-ImgBox url="https://rescreator.blob.core.windows.net/slider/f2fcea9e-e31b-4a1e-87be-9241531c7dc6.jpg" :onlazy="true" style="width: 350px; height: 350px; background-size: cover;"></fv-ImgBox>

Propoties


属性(attr)类型(type)必填(required)默认值(default)说明(statement)
urlStringYesN/AImage url, be careful don't use cross-domain url
onlazyBooleanNofalseLazy load image
loadingColor[string(color)] Norgba(0, 90, 158, 1)The foreground of the progress-ring or progress-bar.
onbackgroundBooleanNofalseShow as background

Events


事件名(Name)参数类型(args)说明(statement)
errorobjectImage load failed will call back error function with error message.

MIT Licensed