docs: fix field value #7817

This commit is contained in:
chenjiahan
2020-12-27 16:57:17 +08:00
parent a524b5284f
commit 4d49183230
7 changed files with 29 additions and 17 deletions

View File

@@ -1,9 +1,21 @@
<template>
<demo-block :title="t('basicUsage')">
<van-row>
<van-image width="100" height="100" :src="image" />
</van-row>
</demo-block>
<img
v-if="lazyLoad"
v-lazy="src"
ref="imageRef"
:alt="alt"
:class="bem('image')"
:style="{ objectFit: fit }"
/>;
<img
v-else
:src="src"
:alt="alt"
:class="bem('image')"
:style="{ objectFit: fit }"
@load="onLoad"
@error="onError"
/>
<demo-block :title="t('fitMode')">
<van-row gutter="20">