21 lines
387 B
Vue
21 lines
387 B
Vue
<script setup lang="ts">
|
|
function onEvent(type: string) {
|
|
if (type === 'cancel') {
|
|
navigateTo('/doctor')
|
|
} else if (type === 'draft') {
|
|
// do something
|
|
} else if (type === 'submit') {
|
|
// do something
|
|
}
|
|
}
|
|
const data = ref({
|
|
name: '',
|
|
specialization: '',
|
|
hospital: '',
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<AppDoctorEntryForm v-model="data" @event="onEvent" />
|
|
</template>
|