/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 built by swimly
 * @license MIT
 */

import { h as helper } from '../../_chunks/dep-b0f1ed22.js';
import Vue from 'vue';
import { renderContent } from '../../utils/render-node.js';
import { RadioProps } from './props.js';
import _Radio from './radio.js';
import 'lodash';
import '../../utils/helper.js';
import 'lodash/camelCase';
import '../../utils/event.js';
import '../config-provider/config-receiver.js';
import 'lodash/mergeWith';
import '../config-provider/context.js';
import 'lodash/merge';
import '../../_chunks/dep-b4fd1955.js';
import '../../utils/mixins.js';

var _RadioButton = Vue.extend({
  name: "LRadioButton",
  components: {
    Radio: _Radio
  },
  provide() {
    return {
      radioButton: this
    };
  },
  inject: {
    radioGroup: {
      default: void 0
    }
  },
  inheritAttrs: false,
  props: {
    ...RadioProps
  },
  render() {
    const h = arguments[0];
    const {
      $props,
      $listeners,
      radioGroup
    } = this;
    const radioProps = {
      props: {
        ...$props
      },
      on: $listeners
    };
    if (radioGroup) {
      radioProps.props.checked = $props.value === radioGroup.value;
      radioProps.props.disabled = $props.disabled === void 0 ? radioGroup.disabled : $props.disabled;
      radioProps.props.name = radioGroup.name;
    }
    return h(_Radio, helper([{}, radioProps]), [renderContent(this, "default", "label")]);
  }
});

export { _RadioButton as default };
//# sourceMappingURL=radio-button.js.map
