PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.6
Booking for Appointments and Events Calendar – Amelia v2.4.6
2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / v3 / src / views / common / FormFields / AmAddressFormField.vue
ameliabooking / v3 / src / views / common / FormFields Last commit date
AmAddressFormField.vue 1 month ago AmAttachmentFormField.vue 1 month ago AmCheckboxFormField.vue 1 month ago AmContentFormField.vue 1 month ago AmDatePickerFormField.vue 1 month ago AmInputFormField.vue 1 month ago AmPhoneFormField.vue 1 month ago AmRadioFormField.vue 1 month ago AmSelectFormField.vue 1 month ago AmSocialButton.vue 1 month ago
AmAddressFormField.vue
85 lines
1 <template>
2 <el-form-item
3 :id="props.id"
4 ref="formFieldRef"
5 class="am-ff__item"
6 :prop="props.itemName"
7 :label-position="props.labelPosition"
8 >
9 <template #label>
10 <span class="am-ff__item-label" v-html="props.label" />
11 </template>
12 <!-- Address Field -->
13 <AmAddressInput
14 :id="props.itemName"
15 v-model="model"
16 @address-selected="(address) => emits('address-selected', address)"
17 />
18 <!-- /Address Field -->
19 </el-form-item>
20 </template>
21
22 <script setup>
23 // * Components
24 import AmAddressInput from '../../_components/address-input/AmAddressInput.vue'
25
26 // * Import from Vue
27 import { computed, ref, toRefs } from 'vue'
28
29 // * Form Item Props
30 let props = defineProps({
31 modelValue: {
32 type: [String, Array, Object, Number],
33 required: true,
34 },
35 id: {
36 type: [String, Number],
37 },
38 itemName: {
39 type: String,
40 required: true,
41 },
42 label: {
43 type: String,
44 },
45 labelPosition: {
46 type: String,
47 default: 'top',
48 },
49 options: {
50 type: Array,
51 },
52 })
53
54 // * Define Emits
55 const emits = defineEmits(['update:modelValue', 'address-selected'])
56
57 // * Component model
58 let { modelValue } = toRefs(props)
59 let model = computed({
60 get: () => modelValue.value,
61 set: (val) => {
62 emits('update:modelValue', val)
63 },
64 })
65
66 // * Form Item Reference
67 let formFieldRef = ref(null)
68
69 defineExpose({
70 formFieldRef,
71 })
72 </script>
73
74 <script>
75 export default {
76 name: 'AddressFormField',
77 }
78 </script>
79
80 <style lang="scss">
81 .pac-container {
82 z-index: 9999999999 !important;
83 }
84 </style>
85