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; +}); +