Files
simrsx-fe/app/components/content/user/entry.vue
Munawwirul Jamal 2da4e616ba dev: hotfix refactor
+ merged pub/custom-ui and pub/base into my-ui
- droped pub/custom-ui
2025-10-05 09:45:17 +07:00

35 lines
805 B
Vue

<script setup lang="ts">
import Action from '~/components/pub/my-ui/nav-footer/ba-dr-su.vue'
const data = ref({
name: '',
password: '',
status: '',
type: '',
})
function onClick(type: string) {
if (type === 'cancel') {
navigateTo('/human-src/user')
} else if (type === 'draft') {
// do something
} else if (type === 'submit') {
// do something
}
}
</script>
<template>
<div class="mb-5 border-b border-b-slate-300 pb-3 text-lg xl:text-xl">
<Icon name="i-lucide-user" class="me-2" />
<span class="font-semibold">Tambah</span> Dokter
</div>
<div>
<AppDoctorEntryForm v-if="data.type === 'doctor'" v-model="data" />
</div>
<AppUserEntryForm v-model="data" />
<div class="my-2 flex justify-end py-2">
<Action @click="onClick" />
</div>
</template>