<template>
    <el-radio-group
            v-bind="$attrs"
            v-on="$listeners"
    >
        <el-radio v-for="item in options" :key="item[valueKey]" :label="item[valueKey]">{{ item[labelKey] }}</el-radio>
    </el-radio-group>
</template>

<script>
export default {
    props: {
        options: {
            type: Array,
            default: () => []
        },
        filter: Function,
        labelKey: {
            type: String,
            default() {
                return this.$ELEMENT.dictSelect?.labelKey || 'dictLabel'
            }
        },
        valueKey: {
            type: String,
            default() {
                return this.$ELEMENT.dictSelect?.valueKey || 'dictValue'
            }
        },
    }
}
</script>

<style scoped>

</style>