text: "use strict";
  
  exports.__esModule = true;
  exports.default = exports.RADIO_KEY = void 0;
  
  var _vue = require("vue");
  
  var _utils = require("../utils");
  
  var _use = require("@vant/use");
  
  var _useLinkField = require("../composables/use-link-field");
  
  var [name, bem] = (0, _utils.createNamespace)('radio-group');
  var RADIO_KEY = Symbol(name);
  exports.RADIO_KEY = RADIO_KEY;
  var props = {
    disabled: Boolean,
    iconSize: [Number, String],
    direction: String,
    modelValue: _utils.unknownProp,
    checkedColor: String
  };
  
  var _default = (0, _vue.defineComponent)({
    name,
    props,
    emits: ['change', 'update:modelValue'],
  
    setup(props, {
      emit,
      slots
    }) {
      var {
        linkChildren
      } = (0, _use.useChildren)(RADIO_KEY);
  
      var updateValue = value => emit('update:modelValue', value);
  
      (0, _vue.watch)(() => props.modelValue, value => emit('change', value));
      linkChildren({
        props,
        updateValue
      });
      (0, _useLinkField.useLinkField)(() => props.modelValue);
      return () => (0, _vue.createVNode)("div", {
        "class": bem([props.direction]),
        "role": "radiogroup"
      }, [slots.default == null ? void 0 : slots.default()]);
    }
  
  });
  
  exports.default = _default;