Skip to content

Commit

Permalink
docs: up readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tolking committed Apr 4, 2020
1 parent 980b8dc commit 71dfeba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ export default {
</template>
```

**If you registered as global components, you can use it directly in the `markdown` file**

``` md
<img-lazy src="/img.jpg" />
```

## Options

### useLoading
Expand All @@ -88,3 +94,5 @@ If you need to use both `Base URL` and `<img/>` labels, refer to
``` md
<img :data-src="$withBase('/img.png')" loading="lazy" class="lazy">
```

2. In order to better supporting image lazy loading, it is better to specify the size of the image (in some themes, you need to set `display` as `inline block` or `block` separately), so as to ensure that the image can occupy the position it should occupy

0 comments on commit 71dfeba

Please sign in to comment.