import { defineComponent, useSlots, resolveComponent, createElementBlock, openBlock, createVNode, normalizeProps, guardReactiveProps, createSlots, withCtx, unref, renderSlot } from 'vue';
import { optionProps } from './option.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmOption"
  },
  __name: "Option",
  props: optionProps,
  setup(__props) {
    const slots = useSlots();
    const props = __props;
    return (_ctx, _cache) => {
      const _component_el_option = resolveComponent("el-option");
      return openBlock(), createElementBlock("div", null, [
        createVNode(
          _component_el_option,
          normalizeProps(guardReactiveProps(props)),
          createSlots({
            _: 2
            /* DYNAMIC */
          }, [
            unref(slots).default ? {
              name: "default",
              fn: withCtx((slotValue) => [
                renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotValue)))
              ]),
              key: "0"
            } : void 0
          ]),
          1040
          /* FULL_PROPS, DYNAMIC_SLOTS */
        )
      ]);
    };
  }
});

export { _sfc_main as default };
//# sourceMappingURL=Option.vue2.mjs.map
