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

import { defineComponent, ref } from '@vue/composition-api';
import getConfigReceiverMixins, { getKeepAnimationMixins, getGlobalIconMixins } from '../config-provider/config-receiver.js';
import Ripple from '../utils/ripple.js';
import useTreeItem from './hooks/useTreeItem.js';
import 'vue';
import 'lodash/mergeWith';
import '../config-provider/context.js';
import 'lodash/merge';
import '../_common/js/global-config/default-config.js';
import '../_common/js/global-config/locale/zh_CN.js';
import '@babel/runtime/helpers/typeof';
import '../_chunks/dep-2cb61c79.js';
import 'dayjs';
import '../_common/js/utils/set-style.js';
import '../config.js';
import '@babel/runtime/helpers/defineProperty';
import '../hooks/useConfig.js';
import '../config-provider/useConfig.js';
import '../hooks/useLazyLoad.js';
import '../_common/js/utils/observe.js';
import './hooks/useItemEvents.js';
import './hooks/useRenderIcon.js';
import '@ldesign/icons-vue';
import '../hooks/useGlobalIcon.js';
import '../loading/index.js';
import '../utils/withInstall.js';
import 'lodash/capitalize';
import '../loading/directive.js';
import 'lodash/isObject';
import 'lodash/mapKeys';
import 'lodash/isEqual';
import '../loading/plugin.js';
import '../utils/dom.js';
import 'raf';
import 'lodash/isString';
import '../utils/easing.js';
import '../loading/loading.js';
import '../utils/render-tnode.js';
import 'lodash/camelCase';
import 'lodash/kebabCase';
import '../utils/transfer-dom.js';
import '../utils/mixins.js';
import '../loading/props.js';
import '../loading/icon/gradient.js';
import '../_common/js/loading/circle-adapter.js';
import '../_common/js/utils/helper.js';
import '@babel/runtime/helpers/toConsumableArray';
import '@babel/runtime/helpers/objectWithoutProperties';
import '@babel/runtime/helpers/slicedToArray';
import 'lodash/isNull';
import 'lodash/isUndefined';
import 'lodash/isNumber';
import 'lodash/isArray';
import './util.js';
import './hooks/useRenderLabel.js';
import '../_chunks/dep-b6ac6e96.js';
import 'lodash/isBoolean';
import '../checkbox/index.js';
import '../utils/map-props.js';
import '../checkbox/group.js';
import 'lodash/intersection';
import '../utils/event.js';
import '../utils/helper.js';
import '../checkbox/checkbox.js';
import '../checkbox/props.js';
import '../checkbox/checkbox-group-props.js';
import './hooks/useRenderLine.js';
import './hooks/useRenderOperations.js';
import './hooks/useDraggable.js';
import 'lodash/throttle';

var keepAnimationMixins = getKeepAnimationMixins();
var treeItemProps = {
  node: {
    type: Object
  },
  rowIndex: {
    type: Number
  },
  treeScope: {
    type: Object
  },
  expandOnClickNode: {
    type: Boolean
  }
};
var TreeItem = defineComponent({
  name: "TTreeItem",
  directives: {
    ripple: Ripple
  },
  mixins: [getConfigReceiverMixins("tree"), keepAnimationMixins, getGlobalIconMixins()],
  inject: {
    onDrag: {
      "default": void 0
    }
  },
  props: treeItemProps,
  setup: function setup(props, context) {
    var treeItemRef = ref(null);
    var _useTreeItem = useTreeItem(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;
  }
});

export { TreeItem as default, treeItemProps };
//# sourceMappingURL=tree-item.js.map
