PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 1.2.31
Booking for Appointments and Events Calendar – Amelia v1.2.31
2.4.9 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 year ago AmRadioGroup.vue 1 year ago
AmRadioGroup.vue
86 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 /**
55 * Component Emits
56 **/
57 const emits = defineEmits(['change', 'update:modelValue'])
58
59 /**
60 * Component model
61 */
62 let { modelValue } = toRefs(props)
63
64 let model = computed({
65 get: () => modelValue.value,
66 set: (val) => {
67 emits('update:modelValue', val)
68 }
69 })
70
71 /**
72 * Component reference
73 */
74 const amRadioGroup = ref()
75
76
77 </script>
78
79 <style lang="scss">
80 .am-radio-group-wrapper {
81 .el-radio-group {
82 display: flex;
83 flex-direction: column;
84 }
85 }
86 </style>