feat: add prefix and middlename field
This commit is contained in:
parent
2479d5facf
commit
4d14dd22c3
3 changed files with 22 additions and 5 deletions
|
|
@ -10,11 +10,12 @@ import {
|
|||
} from 'src/utils/datetime';
|
||||
import { ref, onMounted, watch } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { capitalize } from 'vue';
|
||||
|
||||
const { locale } = useI18n();
|
||||
const optionStore = useOptionStore();
|
||||
const prefixName = defineModel<string>('prefixName');
|
||||
const prefixNameEN = defineModel<string>('prefixNameEn');
|
||||
const prefixName = defineModel<string | null>('prefixName');
|
||||
const prefixNameEN = defineModel<string | null>('prefixNameEn');
|
||||
const firstName = defineModel<string>('firstName');
|
||||
const lastName = defineModel<string>('lastName');
|
||||
const firstNameEN = defineModel<string>('firstNameEn');
|
||||
|
|
@ -24,8 +25,8 @@ const email = defineModel<string>('email');
|
|||
const gender = defineModel<string>('gender');
|
||||
const birthDate = defineModel<Date | string | null>('birthDate');
|
||||
const nationality = defineModel<string>('nationality');
|
||||
const midName = defineModel<string>('midName');
|
||||
const midNameEn = defineModel<string>('midNameEn');
|
||||
const midName = defineModel<string | null>('midName');
|
||||
const midNameEn = defineModel<string | null>('midNameEn');
|
||||
|
||||
defineProps<{
|
||||
dense?: boolean;
|
||||
|
|
@ -195,7 +196,7 @@ watch(
|
|||
:disable="!readonly"
|
||||
class="col-1"
|
||||
:label="$t('formDialogInputPrefixName')"
|
||||
v-model="prefixNameEN"
|
||||
:model-value="capitalize(prefixNameEn || '')"
|
||||
/>
|
||||
|
||||
<q-input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue