แก้ไข type

This commit is contained in:
Thanit Konmek 2023-07-07 15:53:30 +07:00
parent e72f86e1d4
commit a3905a84b6
5 changed files with 32 additions and 12 deletions

View file

@ -70,7 +70,7 @@
</template>
<template v-slot:body-selection="scope">
<q-checkbox
<!-- <q-checkbox
keep-color
color="primary"
dense
@ -83,6 +83,12 @@
);
}
"
/> -->
<q-checkbox
keep-color
color="primary"
dense
v-model="scope.selected"
/>
</template>
@ -175,6 +181,7 @@ import { ref } from "vue";
import { useQuasar } from "quasar";
import type { QInput } from "quasar";
import { useCounterMixin } from "@/stores/mixin";
import type { QTableProps } from "quasar";
const props = defineProps({
next: {
@ -197,7 +204,7 @@ const $q = useQuasar();
const filterRef = ref<QInput>();
const filter = ref<string>("");
const visibleColumns = ref<String[]>(["no", "idcard", "name", "educate"]);
const columns = [
const columns = ref<QTableProps["columns"]>([
{ name: "no", align: "left", label: "ลำดับ", field: "no", sortable: true },
{
name: "idcard",
@ -220,7 +227,7 @@ const columns = [
field: "educate",
sortable: true,
},
];
]);
const rows = [
{