PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.8
Booking for Appointments and Events Calendar – Amelia v2.4.8
2.4.8 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 / _components / radio / AmRadioGroup.vue
ameliabooking / v3 / src / views / _components / radio Last commit date
AmRadio.vue 1 month ago AmRadioGroup.vue 1 month ago
AmRadioGroup.vue
84 lines
1 <template>
2 <div class="am-radio-group-wrapper">
3 <el-radio-group
4 ref="amRadioGroup"
5 v-model="model"
6 class="am-radio-group"
7 v-bind="$props"
8 :text-color="textColor"
9 :fill="fill"
10 @change="(eventLabel) => $emit('change', eventLabel)"
11 >
12 <slot />
13 </el-radio-group>
14 </div>
15 </template>
16
17 <script setup>
18 import { computed, ref, toRefs } from 'vue'
19
20 const props = defineProps({
21 modelValue: {
22 type: [String, Number, Boolean],
23 },
24 size: {
25 type: String,
26 default: 'default',
27 validator(value) {
28 return ['default', 'medium', 'small'].includes(value)
29 },
30 },
31 disabled: {
32 type: Boolean,
33 default: false,
34 },
35 textColor: {
36 type: String,
37 },
38 fill: {
39 type: String,
40 },
41 validateEvent: {
42 type: Boolean,
43 default: true,
44 },
45 ariaLabel: {
46 type: String,
47 },
48 id: {
49 type: String,
50 },
51 })
52
53 /**
54 * Component Emits
55 **/
56 const emits = defineEmits(['change', 'update:modelValue'])
57
58 /**
59 * Component model
60 */
61 let { modelValue } = toRefs(props)
62
63 let model = computed({
64 get: () => modelValue.value,
65 set: (val) => {
66 emits('update:modelValue', val)
67 },
68 })
69
70 /**
71 * Component reference
72 */
73 const amRadioGroup = ref()
74 </script>
75
76 <style lang="scss">
77 .am-radio-group-wrapper {
78 .el-radio-group {
79 display: flex;
80 flex-direction: column;
81 }
82 }
83 </style>
84