<template>
    <ie-form-picker :label="rule.label" :remark="rule.description">
        <uv-radio-group v-model="formModel[rule.fieldName]" @change="clearValidate">
            <uv-radio v-for="item in columns" :key="getValue(item)" :label="getLabel(item)" :name="getValue(item)"/>
        </uv-radio-group>
    </ie-form-picker>
</template>

<script>
import AiFormFieldPicker from "@/pagesOther/pages/ie/components/ai-form/items/templates/ai-form-field-picker.vue";

export default {
    name: "ai-form-field-radio",
    extends: AiFormFieldPicker // 选项与picker一致，但呈现是radio-group
}
</script>

<style scoped>
::v-deep .uv-radio-group--row {
    flex-wrap: wrap;
    gap: 10px;
}
</style>