update: เพิ่มการแสดงรายละเอียด info

This commit is contained in:
net 2024-01-11 10:48:02 +07:00
parent 8ce2b12de8
commit 5bda7d8b1a

View file

@ -35,7 +35,6 @@ const props = defineProps<{
const deleteState = ref<boolean>(false)
const open = ref<boolean>(false)
const deletePath = ref<string>('')
const deleteTarget = ref<'deleteFolder' | 'deleteFile'>()
const deleteMap = { deleteFolder, deleteFile }
@ -348,7 +347,24 @@ const onRowClick = ((_, row) => {
self="center right"
:offset="[5, 1]"
>
{{ getSize(data.row.fileSize) }}
<div class="flex" style="flex-direction: column">
<span> อไฟล {{ data.row.fileName }}</span>
<span
>อเรอง
{{
data.row.metadata.subject ?? data.row.subject.title
}}</span
>
<span
>เจาของผลงาน
{{ data.row.metadata.author ?? data.row.author }}</span
>
<span>ขนาดไฟล {{ getSize(data.row.fileSize) }}</span>
<span
>ประเภทไฟล
{{ getType(data.row.fileType, data.row.fileName) }}</span
>
</div>
</q-tooltip>
</div>
<div v-if="props.mode === 'admin'">
@ -390,11 +406,21 @@ const onRowClick = ((_, row) => {
justify-content: center;
align-items: center;
}
.justify-center {
display: flex;
justify-content: center;
align-items: center;
}
.sort-icon-offset-margin {
margin-right: 18px;
}
.q-item-label {
text-align: left;
}
.underline {
text-decoration: underline;
}
.cursor {
cursor: pointer;
}