ทะเบียนประวัติ ==> sort
This commit is contained in:
parent
ec57059dc3
commit
0e5e7ac5be
22 changed files with 194 additions and 72 deletions
|
|
@ -17,6 +17,9 @@ const rows = defineModel<any>("rows");
|
|||
const rowsData = defineModel<any>("rowsData");
|
||||
const columns = defineModel<QTableProps["columns"]>("columns");
|
||||
const visibleColumns = defineModel<string[]>("visibleColumns");
|
||||
const pagination = ref({
|
||||
sortBy: "lastUpdatedAt",
|
||||
});
|
||||
|
||||
const props = defineProps({
|
||||
getData: Function,
|
||||
|
|
@ -24,7 +27,7 @@ const props = defineProps({
|
|||
});
|
||||
function close() {
|
||||
modal.value = false;
|
||||
filter.value = ''
|
||||
filter.value = "";
|
||||
}
|
||||
|
||||
function dateThaiRange(val: [Date, Date]) {
|
||||
|
|
@ -119,6 +122,7 @@ watch(
|
|||
:rows-per-page-options="[10, 25, 50, 100]"
|
||||
:visible-columns="visibleColumns"
|
||||
:virtual-scroll-sticky-size-start="48"
|
||||
v-model:pagination="pagination"
|
||||
>
|
||||
<template v-slot:header="props">
|
||||
<q-tr :props="props">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue