File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,21 @@ yarn dev
19
19
Install the package:
20
20
21
21
```
22
- npm install vue-image-lightbox
23
- yarn add vue-image-lightbox
22
+ npm install vue-image-lightbox vue-lazyload
23
+ yarn add vue-image-lightbox vue-lazyload
24
24
```
25
25
26
26
Then import it in your project
27
+ At your entry point (` main.js ` normally)
28
+ ``` javascript
29
+ import Vue from ' vue'
30
+ import VueLazyload from ' vue-lazyload'
31
+ ...
32
+ Vue .use (VueLazyLoad)
33
+ ```
27
34
28
- ``` js
35
+ and use the lightbox:
36
+ ``` javascript
29
37
import Lightbox from ' vue-image-lightbox'
30
38
31
39
export default {
@@ -172,4 +180,4 @@ How to use:
172
180
173
181
## CREDITS
174
182
175
- Most of the CSS belongs to [ react-images] ( https://github.com/jossmac/react-images )
183
+ Most of the CSS belongs to [ react-images] ( https://github.com/jossmac/react-images )
You can’t perform that action at this time.
0 commit comments