We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e394906 commit eaa1deeCopy full SHA for eaa1dee
README.md
@@ -1,11 +1,36 @@
1
# vue-imagefill
2
->vue图片填充指令,支持vue2.0以上
+>A Vue.js 2.0 images fill directives
3
4
->现在还是测试版,请勿使用,有空再修
5
-## 安装
6
-
7
-**npm:**
+## Install
8
9
```shell
10
$ npm install vue-imagefill
11
```
+
+## Usage
+```html
12
+<template>
13
+ <div>
14
+ <div class="image-wrap" v-flex="1">
15
+ <img v-center="img">
16
+ </div>
17
18
+</template>
19
+```
20
21
+```javascript
22
+import Vue from 'vue'
23
+import vueImagefill from 'vue-imagefill'
24
+Vue.use(vueImagefill)
25
26
27
+```style
28
+.image-wrap {
29
+ width: 200px;
30
+ overflow: hidden;
31
+ margin: 150px auto;
32
+}
33
+img {
34
+ width: 100%;
35
36
0 commit comments