refactor: return mode from slot

This commit is contained in:
Net 2024-08-28 13:42:28 +07:00 committed by Methapon Metanipat
parent 7400f9f611
commit 218a2f39d4
2 changed files with 9 additions and 5 deletions

View file

@ -208,8 +208,9 @@ defineProps<{
"
@save="(group: any, file: any) => {}"
>
<template #form>
<template #form="{ mode }">
<FormCitizen
v-if="mode === 'citizenId'"
orc
v-model:citizen-id="item.citizenId"
v-model:birth-date="customer.birthDate"