Uname: Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 8.0.30 [ PHP INFO ] PHP os: Linux
Server Ip: 145.239.37.162
Your Ip: 216.73.216.190
User: dreampi (1009562) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : AmRadioGroup.vue
<template>
  <div class="am-radio-group-wrapper">
    <el-radio-group
      ref="amRadioGroup"
      v-model="model"
      class="am-radio-group"
      v-bind="$props"
      :text-color="textColor"
      :fill="fill"
      @change="(eventLabel) => $emit('change', eventLabel)"
    >
      <slot />
    </el-radio-group>
  </div>
</template>

<script setup>
import { computed, ref, toRefs } from "vue";

const props = defineProps({
  modelValue: {
    type: [String, Number, Boolean]
  },
  size: {
    type: String,
    default: 'default',
    validator(value) {
      return ['default', 'medium', 'small'].includes(value)
    }
  },
  disabled: {
    type: Boolean,
    default: false
  },
  textColor: {
    type: String
  },
  fill: {
    type: String
  },
  validateEvent: {
    type: Boolean,
    default: true
  },
  ariaLabel: {
    type: String
  },
  id: {
    type: String
  },
})


/**
 * Component Emits
 **/
const emits = defineEmits(['change', 'update:modelValue'])

/**
 * Component model
 */
let { modelValue } = toRefs(props)

let model = computed({
  get: () => modelValue.value,
  set: (val) => {
    emits('update:modelValue', val)
  }
})

/**
 * Component reference
 */
const amRadioGroup = ref()


</script>

<style lang="scss">
.am-radio-group-wrapper {
  .el-radio-group {
    display: flex;
    flex-direction: column;
  }
}
</style>
© 2026 GrazzMean-Shell