From 5e4184d45a40974dfe879725f18ad3973f8c642c Mon Sep 17 00:00:00 2001 From: Abizrh Date: Tue, 19 Aug 2025 17:57:32 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat=20(doctor):=20implement=20doct?= =?UTF-8?q?or=20entry=20form=20and=20navigation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/app/doctor/entry-form.vue | 22 ++++++++++++++++------ app/components/flow/doctor/add.vue | 16 +++++++++++++++- app/components/pub/nav/footer/csd.vue | 6 +++--- 3 files changed, 34 insertions(+), 10 deletions(-) diff --git a/app/components/app/doctor/entry-form.vue b/app/components/app/doctor/entry-form.vue index 52f079ac..bb638f94 100644 --- a/app/components/app/doctor/entry-form.vue +++ b/app/components/app/doctor/entry-form.vue @@ -3,6 +3,18 @@ import Block from '~/components/pub/form/block.vue' import FieldGroup from '~/components/pub/form/field-group.vue' import Field from '~/components/pub/form/field.vue' import Label from '~/components/pub/form/label.vue' + +const props = defineProps<{ modelValue: any }>() +const emit = defineEmits(['update:modelValue', 'event']) + +const data = computed({ + get: () => props.modelValue, + set: (val) => emit('update:modelValue', val), +}) + +function onClick(type: string) { + emit('event', type) +} diff --git a/app/components/flow/doctor/add.vue b/app/components/flow/doctor/add.vue index 0a990f90..98632f5c 100644 --- a/app/components/flow/doctor/add.vue +++ b/app/components/flow/doctor/add.vue @@ -1,6 +1,20 @@ diff --git a/app/components/pub/nav/footer/csd.vue b/app/components/pub/nav/footer/csd.vue index 78874932..497081e3 100644 --- a/app/components/pub/nav/footer/csd.vue +++ b/app/components/pub/nav/footer/csd.vue @@ -12,15 +12,15 @@ function onClick(type: ClickType) {