Skip to content

Commit 651b969

Browse files
author
陈华狄
committed
readme
1 parent eaa1dee commit 651b969

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ $ npm install vue-imagefill
2222
import Vue from 'vue'
2323
import vueImagefill from 'vue-imagefill'
2424
Vue.use(vueImagefill)
25+
26+
export default {
27+
data () {
28+
return {
29+
img: require('~/assets/images/text.jpg')
30+
}
31+
}
32+
}
2533
```
2634

2735
```style
@@ -33,4 +41,9 @@ Vue.use(vueImagefill)
3341
img {
3442
width: 100%;
3543
}
36-
```
44+
```
45+
## Options
46+
|directives|description|default|options|
47+
|:---|---|---|---|
48+
| `v-flex`|image scaling|`1`|`Number`|
49+
| `v-center`|image src or none| | |

0 commit comments

Comments
 (0)