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

'use strict';

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

var VueCompositionAPI = require('@vue/composition-api');

function useTreeState(props, store) {
  var treeContentRef = VueCompositionAPI.ref();
  var nodes = VueCompositionAPI.ref([]);
  var isScrolling = VueCompositionAPI.ref(false);
  var state = {
    store: store,
    treeContentRef: treeContentRef,
    nodes: nodes,
    isScrolling: isScrolling,
    mouseEvent: null,
    virtualConfig: null,
    scope: {
      treeContentRef: treeContentRef,
      treeProps: props,
      scopedSlots: {},
      virtualConfig: null
    }
  };
  return {
    isScrolling: isScrolling,
    treeContentRef: treeContentRef,
    state: state
  };
}

exports["default"] = useTreeState;
//# sourceMappingURL=useTreeState.js.map
