From 7065ea1a5dd69e182e85074576584e016daebd5c Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Thu, 21 Dec 2023 11:29:18 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=AA=E0=B8=A3=E0=B9=89=E0=B8=B2=E0=B8=87?= =?UTF-8?q?=20component=20=E0=B8=95=E0=B8=A3=E0=B8=A7=E0=B8=88=E0=B8=AA?= =?UTF-8?q?=E0=B8=AD=E0=B8=9A=E0=B8=84=E0=B8=B8=E0=B8=93=E0=B8=AA=E0=B8=A1?= =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=95=E0=B8=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PopupCheckFeatures.vue | 183 ++++++++++++++++++-------- 1 file changed, 129 insertions(+), 54 deletions(-) diff --git a/src/components/PopupCheckFeatures.vue b/src/components/PopupCheckFeatures.vue index 8ed0d1684..d936249b5 100644 --- a/src/components/PopupCheckFeatures.vue +++ b/src/components/PopupCheckFeatures.vue @@ -18,6 +18,7 @@ const props = defineProps({ }, clickClose: { type: Function, + default: () => {}, }, type: { type: String, @@ -46,7 +47,7 @@ const rows = ref([]); const columns = ref([ { name: "degree", - align: "center", + align: "left", label: "คุณวุฒิ", sortable: false, field: "degree", @@ -55,7 +56,7 @@ const columns = ref([ }, { name: "level", - align: "left", + align: "center", label: "ระดับ", sortable: true, field: "level", @@ -76,63 +77,137 @@ const columns = ref([ ]); const visibleColumns = ref(["degree", "level", "Expert"]); +const columnsSpecial = ref([ + { + name: "degree", + align: "left", + label: "คุณวุฒิ", + sortable: false, + field: "degree", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, + { + name: "level", + align: "center", + label: "ระดับ", + sortable: true, + field: "level", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + sort: (a: string, b: string) => + a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + }, + { + name: "Special", + align: "center", + label: "ชำนาญการพิเศษ", + sortable: false, + field: "Special", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, +]); +const visibleColumnsSpecial = ref(["degree", "level", "Special"]);