update: เพิ่มการแสดงรายละเอียด info
This commit is contained in:
parent
8ce2b12de8
commit
5bda7d8b1a
1 changed files with 29 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue