fix click
This commit is contained in:
parent
ca1af71b19
commit
554ffcccbc
1 changed files with 6 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ const ImageTeaser = {
|
||||||
props: {
|
props: {
|
||||||
image: Object
|
image: Object
|
||||||
},
|
},
|
||||||
template: `<div class="imageteaser" :style="style"></div>`,
|
template: `<div class="imageteaser" :style="style" @click="onClick"></div>`,
|
||||||
computed: {
|
computed: {
|
||||||
style() {
|
style() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -70,6 +70,11 @@ const ImageTeaser = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
onClick() {
|
||||||
|
this.$emit('click')
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue