/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 built by swimly
 * @license MIT
 */

'use strict';

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

var VueCompositionAPI = require('@vue/composition-api');
var components_configProvider_configReceiver = require('../config-provider/config-receiver.js');
var utils_ripple = require('../../utils/ripple.js');
var components_tree_hooks_useTreeItem = require('./hooks/useTreeItem.js');
require('vue');
require('lodash/mergeWith');
require('../config-provider/context.js');
require('lodash/merge');
require('../../chunks/zh_CN.js');
require('../../chunks/set-style.js');
require('../../config.js');
require('../../hooks/useConfig.js');
require('../config-provider/useConfig.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/loading.js');
require('../../utils/dom.js');
require('raf');
require('lodash/isString');
require('../../chunks/log.js');
require('../../chunks/_commonjsHelpers-fe796db6.js');
require('../../utils/easing.js');
require('../../utils/render-node.js');
require('lodash');
require('../../utils/transfer-dom.js');
require('../../utils/mixins.js');
require('../loading/props.js');
require('../loading/icon/gradient.js');
require('../../chunks/defineProperty-19da3d4c.js');
require('../../chunks/helper2.js');
require('../loading/plugin.js');
require('./utils.js');
require('lodash/camelCase');
require('./hooks/useRenderLabel.js');
require('../checkbox/index.js');
require('../../utils/map-props.js');
require('../checkbox/group.js');
require('../../chunks/helper.js');
require('lodash/intersection');
require('../../utils/event.js');
require('../../utils/helper.js');
require('../checkbox/checkbox.js');
require('../checkbox/props.js');
require('./hooks/useRenderLine.js');
require('./hooks/useRenderOperations.js');
require('./hooks/useDraggable.js');
require('lodash/throttle');

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

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