File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-wordpress" ,
3
- "version" : " 1.0.5 " ,
3
+ "version" : " 1.0.6 " ,
4
4
"description" : " A collection of Vue components and mixins for use with WordPress and the WP-REST API" ,
5
5
"author" :
" WakeCoder <[email protected] >" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 5
5
</slot >
6
6
<div class =" col-xs-12 width-auto" >
7
7
<slot name =" image" >
8
- <img :src =" post.imgSrcLarge " class =" post-img post-img-float" >
8
+ <img :src =" imageSource " class =" post-img post-img-float" >
9
9
</slot >
10
10
<slot name =" content" >
11
11
<div v-html =" post.content" class =" post-content" >
23
23
<script >
24
24
export default {
25
25
name: ' post' ,
26
- props: [' post' ]
26
+ props: [' post' , ' imgSize' ],
27
+ computed: {
28
+ imageSource () {
29
+ return this .getImageSource (this .post , this .imgSize )
30
+ }
31
+ }
27
32
}
28
33
29
34
</script >
You can’t perform that action at this time.
0 commit comments