'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
require('../../../../utils/index.js');
var VNodeRenderer = require('../../common/VNodeRenderer.js');
var upload = require('./upload.js');
var exports$1 = require('../../../../utils/src/elementPlus/exports.js');

var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{
    name: "GmUpload"
  },
  __name: "Upload",
  props: upload.uploadProps,
  emits: upload.uploadEmits,
  setup(__props, { expose: __expose, emit: __emit }) {
    const slots = vue.useSlots();
    const props = __props;
    const emit = __emit;
    const elRef = vue.ref();
    const exposeEvents = ["abort", "submit", "clearFiles", "handleStart", "handleRemove"];
    const { exposeFns } = exports$1.getGmExports(elRef, exposeEvents);
    __expose({
      ...exposeFns
    });
    return (_ctx, _cache) => {
      const _component_el_upload = vue.resolveComponent("el-upload");
      return vue.openBlock(), vue.createBlock(
        _component_el_upload,
        vue.mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props, {
          "onUpdate:fileList": _cache[0] || (_cache[0] = ($event) => emit("update:fileList", $event))
        }),
        vue.createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          vue.unref(slots).default ? {
            name: "default",
            fn: vue.withCtx((slotValue) => [
              vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(slotValue)))
            ]),
            key: "0"
          } : void 0,
          vue.unref(slots).trigger ? {
            name: "trigger",
            fn: vue.withCtx(() => [
              vue.createVNode(vue.unref(VNodeRenderer.default), {
                vnode: vue.unref(slots).trigger()
              }, null, 8, ["vnode"])
            ]),
            key: "1"
          } : void 0,
          vue.unref(slots).tip ? {
            name: "tip",
            fn: vue.withCtx(() => [
              vue.createVNode(vue.unref(VNodeRenderer.default), {
                vnode: vue.unref(slots).tip()
              }, null, 8, ["vnode"])
            ]),
            key: "2"
          } : void 0,
          vue.unref(slots).file ? {
            name: "file",
            fn: vue.withCtx((slotValue) => [
              vue.renderSlot(_ctx.$slots, "file", vue.normalizeProps(vue.guardReactiveProps(slotValue)))
            ]),
            key: "3"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

exports.default = _sfc_main;
//# sourceMappingURL=Upload.vue2.js.map
