'use strict';

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

var vue = require('vue');
require('../../../../utils/index.js');
var treeV2 = require('./treeV2.js');
var event = require('../../../../utils/src/elementPlus/event.js');
var exports$1 = require('../../../../utils/src/elementPlus/exports.js');

var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{
    name: "GmTreeV2"
  },
  __name: "TreeV2",
  props: treeV2.treeV2Props,
  emits: treeV2.treeV2Emits,
  setup(__props, { expose: __expose, emit: __emit }) {
    const slots = vue.useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = event.getGmEvent(treeV2.elTreeV2Emits, emit);
    const elRef = vue.ref();
    const exposeEvents = [
      "filter",
      "getCheckedNodes",
      "getCheckedKeys",
      "setCheckedKeys",
      "setChecked",
      "setExpandedKeys",
      "getHalfCheckedNodes",
      "getHalfCheckedKeys",
      "getCurrentKey",
      "getCurrentNode",
      "setCurrentKey",
      "getNode",
      "expandNode",
      "collapseNode",
      "setData"
    ];
    const { exposeFns } = exports$1.getGmExports(elRef, exposeEvents);
    __expose({
      elRef,
      ...exposeFns
    });
    return (_ctx, _cache) => {
      const _component_el_tree_v2 = vue.resolveComponent("el-tree-v2");
      return vue.openBlock(), vue.createBlock(
        _component_el_tree_v2,
        vue.mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props, vue.toHandlers(vue.unref(elEvents))),
        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
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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