mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
@tansaku @aonomike I hope this clarifies the task. When you're done, feel free to use this component wherever we use `<img>` in `/webapp/`.
24 lines
319 B
Vue
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>
|