update: แก้ชิดซ้าย

This commit is contained in:
oat 2024-01-10 18:05:16 +07:00
parent 592a6296e9
commit 57ce0fc956

View file

@ -90,14 +90,14 @@ const colFolder = [
{ {
name: 'createdBy', name: 'createdBy',
label: 'สร้างโดย', label: 'สร้างโดย',
align: 'center', align: 'left',
field: 'createdBy', field: 'createdBy',
sortable: true, sortable: true,
}, },
{ {
name: 'createdAt', name: 'createdAt',
label: 'วันที่สร้าง', label: 'วันที่สร้าง',
align: 'center', align: 'left',
field: 'createdAt', field: 'createdAt',
sortable: true, sortable: true,
}, },
@ -120,14 +120,22 @@ const colFile = [
{ {
name: 'title', name: 'title',
label: 'ชื่อเรื่อง', label: 'ชื่อเรื่อง',
align: 'center', align: 'left',
field: 'title', field: 'title',
sortable: true, sortable: true,
}, },
{
name: 'author',
align: 'left',
label: 'เจ้าของผลงาน',
field: 'author',
style: 'width: 200px',
sortable: true,
},
{ {
name: 'fileType', name: 'fileType',
label: 'ประเภทของไฟล์', label: 'ประเภทของไฟล์',
align: 'center', align: 'left',
field: 'fileType', field: 'fileType',
sortable: true, sortable: true,
}, },
@ -197,14 +205,14 @@ const onRowClick = ((_, row) => {
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-createdBy="data"> <template v-slot:body-cell-createdBy="data">
<q-td class="text-center"> <q-td>
<span class="sort-icon-offset-margin"> <span class="sort-icon-offset-margin">
{{ data.row.createdBy }} {{ data.row.createdBy }}
</span> </span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-createdAt="data"> <template v-slot:body-cell-createdAt="data">
<q-td class="text-center"> <q-td>
<span class="sort-icon-offset-margin"> <span class="sort-icon-offset-margin">
{{ getFormatDate(data.row.createdAt) }} {{ getFormatDate(data.row.createdAt) }}
</span> </span>
@ -306,12 +314,13 @@ const onRowClick = ((_, row) => {
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-title="data"> <template v-slot:body-cell-title="data">
<q-td class="text-center"> <q-td>
<span class="sort-icon-offset-margin">{{ data.row.title }}</span> <span class="sort-icon-offset-margin">{{ data.row.title }}</span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-fileType="data"> <template v-slot:body-cell-fileType="data">
<q-td class="text-center"> <q-td>
<span class="sort-icon-offset-margin"> <span class="sort-icon-offset-margin">
{{ getType(data.row.fileType, data.row.fileName) }} {{ getType(data.row.fileType, data.row.fileName) }}
</span> </span>