feat: Phone input

This commit is contained in:
iamsivin
2024-11-12 21:03:56 +05:30
parent d8bc4ae40f
commit cc6ac082b1
4 changed files with 248 additions and 3 deletions
@@ -8,6 +8,7 @@ import countries from 'shared/constants/countries.js';
import Input from 'dashboard/components-next/input/Input.vue';
import ComboBox from 'dashboard/components-next/combobox/ComboBox.vue';
import Icon from 'dashboard/components-next/icon/Icon.vue';
import PhoneNumberInput from 'dashboard/components-next/phonenumberinput/PhoneNumberInput.vue';
const props = defineProps({
contactData: {
@@ -221,6 +222,12 @@ defineExpose({
}"
@update:model-value="emit('update', state)"
/>
<PhoneNumberInput
v-else-if="item.key === 'PHONE_NUMBER'"
v-model="getFormBinding(item.key).value"
:placeholder="item.placeholder"
@update:model-value="emit('update', state)"
/>
<Input
v-else
v-model="getFormBinding(item.key).value"