import { defineComponent, ref, resolveComponent, createBlock, openBlock, mergeProps, toHandlers, unref } from 'vue';
import '../../../../utils/index.mjs';
import { rateEmits } from 'element-plus';
import { rateEmits as rateEmits$1, rateProps } from './rate.mjs';
import { getGmEvent } from '../../../../utils/src/elementPlus/event.mjs';
import { getGmExports } from '../../../../utils/src/elementPlus/exports.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmRate"
  },
  __name: "Rate",
  props: rateProps,
  emits: rateEmits$1,
  setup(__props, { expose: __expose, emit: __emit }) {
    const props = __props;
    const emit = __emit;
    const elEvents = getGmEvent(rateEmits, emit);
    const elRef = ref();
    const exposeNames = ["setCurrentValue", "resetCurrentValue"];
    const { exposeFns } = getGmExports(elRef, exposeNames);
    __expose({
      ...exposeFns
    });
    return (_ctx, _cache) => {
      const _component_el_rate = resolveComponent("el-rate");
      return openBlock(), createBlock(
        _component_el_rate,
        mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props, toHandlers(unref(elEvents))),
        null,
        16
        /* FULL_PROPS */
      );
    };
  }
});

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