2018-03-17 18:26:18 +05:30
|
|
|
<script>
|
2018-05-09 12:01:36 +05:30
|
|
|
export default {
|
|
|
|
name: 'NoteAttachment',
|
|
|
|
props: {
|
|
|
|
attachment: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
2018-03-17 18:26:18 +05:30
|
|
|
},
|
2018-05-09 12:01:36 +05:30
|
|
|
},
|
|
|
|
};
|
2018-03-17 18:26:18 +05:30
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="note-attachment">
|
2018-12-23 12:14:25 +05:30
|
|
|
<a v-if="attachment.image" :href="attachment.url" target="_blank" rel="noopener noreferrer">
|
|
|
|
<img :src="attachment.url" class="note-image-attach" />
|
2018-03-17 18:26:18 +05:30
|
|
|
</a>
|
|
|
|
<div class="attachment">
|
2018-12-23 12:14:25 +05:30
|
|
|
<a v-if="attachment.url" :href="attachment.url" target="_blank" rel="noopener noreferrer">
|
|
|
|
<i class="fa fa-paperclip" aria-hidden="true"> </i> {{ attachment.filename }}
|
2018-03-17 18:26:18 +05:30
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|