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