Robert Schäfer 5978adff68 Sketch a test for a custom image component
@tansaku @aonomike I hope this clarifies the task.

When you're done, feel free to use this component wherever we use
`<img>` in `/webapp/`.
2019-04-23 19:35:41 +02:00

24 lines
319 B
Vue

<template>
<img
v-bind="imageProps"
:src="imageSrc"
>
</template>
<script>
export default {
props: {
imageProps: {
type: Object,
required: true
}
},
computed: {
imageSrc() {
// TODO implement
return 'this should be an image source attribute'
}
}
}
</script>