├── .babelrc ├── .gitignore ├── README.md ├── dist ├── vue-img-loader.common.js └── vue-img-loader.min.js ├── docs ├── assets │ └── images │ │ ├── img_00.jpg │ │ ├── img_00_preview.jpg │ │ ├── img_01.jpg │ │ ├── img_01_preview.jpg │ │ ├── img_02.jpg │ │ ├── img_02_preview.jpg │ │ ├── img_03.jpg │ │ └── img_03_preview.jpg ├── index.html └── vue-img-loader.min.js ├── package.json ├── src ├── VueImgLoader.vue ├── config.js ├── index.js └── lazy.js ├── webpack.as.umd.js └── webpack.config.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015"] 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .idea -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## description 2 | 3 | this is a image loader UI component for Vue 2.X. The image will be center positioned after loaded 4 | 5 | ## demo 6 | 7 | [live demo][1] 8 | 9 | ## requirement 10 | 11 | Vue 2.0 12 | 13 | ## install 14 | 15 | by npm 16 | 17 | ```bash 18 | npm i vue-img-loader --save 19 | ``` 20 | 21 | or, directly include dist/vue-img-loader.min.js in your page, VueImgLoader exposed as global variable 22 | 23 | ```html 24 | 7 | 8 | 31 | 32 |
33 |This is vue-img-loader demo. Please set Network as Good 3G in devTools and refresh the page.
35 |preview (cover center)
36 | 37 |preview (contain center)
41 | 42 |blur preview
47 | 48 |transition
51 | 52 |background color
56 | 57 |customize preview content
60 | 61 |