/* empty css                                               */
/* empty css                                                      */
/* empty css                                                */
/* empty css                                               */
/* empty css                                                   */
/* empty css                                                */
import { createBlock, openBlock, mergeProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
import { RadioGroup } from "../../../../node_modules/vant/es/radio-group/index.mjs";
import { Radio } from "../../../../node_modules/vant/es/radio/index.mjs";
const _sfc_main = {
  __name: "RadioGroup",
  props: {
    options: {
      type: Array,
      default: []
    },
    fieldNames: {
      type: Object,
      default: {
        text: "label",
        value: "value",
        disabled: "disabled"
      }
    }
  },
  setup(__props) {
    return (_ctx, _cache) => {
      const _component_van_radio = Radio;
      const _component_van_radio_group = RadioGroup;
      return openBlock(), createBlock(_component_van_radio_group, mergeProps(_ctx.$attrs, {
        shape: "round",
        class: "fec-m-radio"
      }), {
        default: withCtx(() => [
          (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item) => {
            return openBlock(), createBlock(_component_van_radio, {
              name: item[__props.fieldNames.value],
              disabled: item[__props.fieldNames.disabled]
            }, {
              default: withCtx(() => [
                createTextVNode(toDisplayString(item[__props.fieldNames.text]), 1)
              ]),
              _: 2
            }, 1032, ["name", "disabled"]);
          }), 256))
        ]),
        _: 1
      }, 16);
    };
  }
};
export {
  _sfc_main as default
};
