2022-09-02 21:09:56 +08:00
|
|
|
<template>
|
|
|
|
<div class="attachment-container asset" :data-asset-id="attachment.id">
|
|
|
|
<div
|
|
|
|
class="file-name"
|
|
|
|
:id="`modal_link${attachment.id}`"
|
|
|
|
data-no-turbolink="true"
|
|
|
|
:data-id="attachment.id"
|
|
|
|
>
|
|
|
|
<div class="attachment-preview processing" :class= "attachment.attributes.asset_type"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2024-01-04 23:34:36 +08:00
|
|
|
export default {
|
|
|
|
name: 'emptyAttachment',
|
|
|
|
props: {
|
|
|
|
attachment: {
|
|
|
|
type: Object,
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
parentId: {
|
|
|
|
type: Number,
|
|
|
|
required: true
|
2022-09-02 21:09:56 +08:00
|
|
|
}
|
|
|
|
}
|
2024-01-04 23:34:36 +08:00
|
|
|
};
|
2022-09-02 21:09:56 +08:00
|
|
|
</script>
|