2019-07-12 11:02:37 +00:00
|
|
|
<template>
|
2019-07-19 11:21:20 +00:00
|
|
|
<masonry>
|
|
|
|
<div v-for="(item,idx) in attachments" :key="idx">
|
|
|
|
<img :src="OC.generateUrl('/apps/social/document/get/resized?id=' + item.id)" />
|
|
|
|
</div>
|
|
|
|
</masonry>
|
2019-07-12 11:02:37 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2019-07-15 15:31:38 +00:00
|
|
|
|
2019-07-12 11:02:37 +00:00
|
|
|
export default {
|
|
|
|
name: 'PostAttachment',
|
|
|
|
components: {
|
|
|
|
},
|
|
|
|
mixins: [],
|
2019-07-15 13:13:35 +00:00
|
|
|
props: {
|
2019-07-15 15:31:38 +00:00
|
|
|
attachments: Array,
|
2019-07-15 13:13:35 +00:00
|
|
|
},
|
2019-07-12 11:02:37 +00:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
},
|
2019-07-15 12:38:21 +00:00
|
|
|
mounted() {
|
|
|
|
},
|
2019-07-12 11:02:37 +00:00
|
|
|
methods: {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2019-07-19 11:21:20 +00:00
|
|
|
.post-attachment {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2019-07-12 11:02:37 +00:00
|
|
|
</style>
|
2019-07-19 11:21:20 +00:00
|
|
|
|