format date2thai
This commit is contained in:
parent
3ad5b119bb
commit
ab095716b1
3 changed files with 14 additions and 6 deletions
|
|
@ -116,7 +116,10 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "วันที่ยื่น",
|
label: "วันที่ยื่น",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: (row) => date2Thai(new Date(row.createdAt)),
|
field: "createdAt",
|
||||||
|
format(val, row) {
|
||||||
|
return date2Thai(new Date(val));
|
||||||
|
},
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
sortOrder: "da",
|
sortOrder: "da",
|
||||||
|
|
@ -214,7 +217,6 @@ watchEffect(() => {
|
||||||
map-options
|
map-options
|
||||||
:options="columns"
|
:options="columns"
|
||||||
option-value="name"
|
option-value="name"
|
||||||
|
|
||||||
style="min-width: 140px"
|
style="min-width: 140px"
|
||||||
class="gt-xs q-ml-sm"
|
class="gt-xs q-ml-sm"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,10 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "วันที่ยื่น",
|
label: "วันที่ยื่น",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: (row) => date2Thai(new Date(row.createdAt)),
|
field: "createdAt",
|
||||||
|
format(val, row) {
|
||||||
|
return date2Thai(new Date(val));
|
||||||
|
},
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
sortOrder: "da",
|
sortOrder: "da",
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,10 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "วันที่ยื่น",
|
label: "วันที่ยื่น",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: (row) => date2Thai(new Date(row.createdAt)),
|
field: "createdAt",
|
||||||
|
format(val, row) {
|
||||||
|
return date2Thai(new Date(val));
|
||||||
|
},
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
sortOrder: "da",
|
sortOrder: "da",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue