import { defineComponent, useSlots, ref, resolveComponent, createBlock, openBlock, mergeProps, toHandlers, unref, createSlots, withCtx, renderSlot } from 'vue';
import '../../../../utils/index.mjs';
import { inputNumberEmits } from 'element-plus';
import { inputNumberEmits as inputNumberEmits$1, inputNumberProps } from './inputNumber.mjs';
import { getGmEvent } from '../../../../utils/src/elementPlus/event.mjs';
import { getGmExports } from '../../../../utils/src/elementPlus/exports.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmInputNumber"
  },
  __name: "InputNumber",
  props: inputNumberProps,
  emits: inputNumberEmits$1,
  setup(__props, { expose: __expose, emit: __emit }) {
    const slots = useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = getGmEvent(inputNumberEmits, emit);
    const elRef = ref();
    const exposeNames = ["focus", "blur"];
    const { exposeFns } = getGmExports(elRef, exposeNames);
    __expose({
      ...exposeFns
    });
    return (_ctx, _cache) => {
      const _component_el_input_number = resolveComponent("el-input-number");
      return openBlock(), createBlock(
        _component_el_input_number,
        mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props, toHandlers(unref(elEvents))),
        createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          unref(slots)["decrease-icon"] ? {
            name: "decrease-icon",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "decrease-icon")
            ]),
            key: "0"
          } : void 0,
          unref(slots)["increase-icon"] ? {
            name: "increase-icon",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "increase-icon")
            ]),
            key: "1"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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