From e62175a4d7e03df8961f10e6f0e28ea5b550b2ae Mon Sep 17 00:00:00 2001 From: waruneeta Date: Wed, 27 Dec 2023 10:03:36 +0700 Subject: [PATCH] =?UTF-8?q?popup=20=E0=B8=82=E0=B8=B1=E0=B9=89=E0=B8=99?= =?UTF-8?q?=E0=B8=95=E0=B8=AD=E0=B8=99=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B9=80=E0=B8=A1=E0=B8=B4=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../06_evaluate/components/DialogMain.vue | 201 +++++++++++++++++- 1 file changed, 195 insertions(+), 6 deletions(-) diff --git a/src/modules/06_evaluate/components/DialogMain.vue b/src/modules/06_evaluate/components/DialogMain.vue index 6393079..1cd9500 100644 --- a/src/modules/06_evaluate/components/DialogMain.vue +++ b/src/modules/06_evaluate/components/DialogMain.vue @@ -5,6 +5,7 @@ import { useQuasar } from "quasar"; import DialogHeader from "@/components/DialogHeader.vue"; import { useCounterMixin } from "@/stores/mixin"; +import { onMounted, ref, watch } from "vue"; const router = useRouter(); const $q = useQuasar(); @@ -25,6 +26,15 @@ const props = defineProps({ }, }); +const step = ref(1); +function nextStep() { + step.value++; +} + +function prevStep() { + step.value--; +} + function onCklicNext() { dialogConfirm( $q, @@ -36,25 +46,204 @@ function onCklicNext() { "ต้องการยืนยันการดำเนินการต่อใช่หรือไม่?" ); } + +const thumbStyle = ref({ + right: "4px", + borderRadius: "5px", + backgroundColor: "var(--q-primary)", + width: "5px", + opacity: 0.75, +}); + +const barStyle = ref({ + right: "2px", + borderRadius: "9px", + backgroundColor: "var(--q-primary)", + width: "9px", + opacity: 0.2, +}); + +watch(props, () => { + step.value = 1; +}); +