/**
 * ldesign v0.4.6
 * (c) 2023 ldesign
 * @license MIT
 */

'use strict';

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

var VueCompositionAPI = require('@vue/composition-api');
var configProvider_configReceiver = require('../config-provider/config-receiver.js');
var utils_ripple = require('../utils/ripple.js');
var tree_hooks_useTreeItem = require('./hooks/useTreeItem.js');
require('vue');
require('lodash/mergeWith');
require('../config-provider/context.js');
require('lodash/merge');
require('../_common/js/global-config/default-config.js');
require('../_common/js/global-config/locale/zh_CN.js');
require('@babel/runtime/helpers/typeof');
require('../_chunks/dep-7c884501.js');
require('dayjs');
require('../_common/js/utils/set-style.js');
require('../config.js');
require('@babel/runtime/helpers/defineProperty');
require('../hooks/useConfig.js');
require('../config-provider/useConfig.js');
require('../hooks/useLazyLoad.js');
require('../_common/js/utils/observe.js');
require('./hooks/useItemEvents.js');
require('./hooks/useRenderIcon.js');
require('@ldesign/icons-vue');
require('../hooks/useGlobalIcon.js');
require('../loading/index.js');
require('../utils/withInstall.js');
require('lodash/capitalize');
require('../loading/directive.js');
require('lodash/isObject');
require('lodash/mapKeys');
require('lodash/isEqual');
require('../loading/plugin.js');
require('../utils/dom.js');
require('raf');
require('lodash/isString');
require('../utils/easing.js');
require('../loading/loading.js');
require('../utils/render-tnode.js');
require('lodash/camelCase');
require('lodash/kebabCase');
require('../utils/transfer-dom.js');
require('../utils/mixins.js');
require('../loading/props.js');
require('../loading/icon/gradient.js');
require('../_common/js/loading/circle-adapter.js');
require('../_common/js/utils/helper.js');
require('@babel/runtime/helpers/toConsumableArray');
require('@babel/runtime/helpers/objectWithoutProperties');
require('@babel/runtime/helpers/slicedToArray');
require('lodash/isNull');
require('lodash/isUndefined');
require('lodash/isNumber');
require('lodash/isArray');
require('./util.js');
require('./hooks/useRenderLabel.js');
require('../_chunks/dep-c3e1ffac.js');
require('lodash/isBoolean');
require('../checkbox/index.js');
require('../utils/map-props.js');
require('../checkbox/group.js');
require('lodash/intersection');
require('../utils/event.js');
require('../utils/helper.js');
require('../checkbox/checkbox.js');
require('../checkbox/props.js');
require('../checkbox/checkbox-group-props.js');
require('./hooks/useRenderLine.js');
require('./hooks/useRenderOperations.js');
require('./hooks/useDraggable.js');
require('lodash/throttle');

var keepAnimationMixins = configProvider_configReceiver.getKeepAnimationMixins();
var treeItemProps = {
  node: {
    type: Object
  },
  rowIndex: {
    type: Number
  },
  treeScope: {
    type: Object
  },
  expandOnClickNode: {
    type: Boolean
  }
};
var TreeItem = VueCompositionAPI.defineComponent({
  name: "TTreeItem",
  directives: {
    ripple: utils_ripple["default"]
  },
  mixins: [configProvider_configReceiver["default"]("tree"), keepAnimationMixins, configProvider_configReceiver.getGlobalIconMixins()],
  inject: {
    onDrag: {
      "default": void 0
    }
  },
  props: treeItemProps,
  setup: function setup(props, context) {
    var treeItemRef = VueCompositionAPI.ref(null);
    var _useTreeItem = tree_hooks_useTreeItem["default"](props, context, treeItemRef),
      renderItemNode = _useTreeItem.renderItemNode;
    return {
      treeItemRef: treeItemRef,
      renderItemNode: renderItemNode
    };
  },
  render: function render(h) {
    if (typeof this.renderItemNode === "function") return this.renderItemNode(h);
    return null;
  }
});

exports["default"] = TreeItem;
exports.treeItemProps = treeItemProps;
//# sourceMappingURL=tree-item.js.map
