<template>
  <div class="q-py-md">
    <q-tree
      no-connectors
      selected-color="primary"
      default-expand-all
      :nodes="LeftDataBus.root"
      v-model:selected="flowNames1"
      node-key="label"
    >
    </q-tree>
  </div>
</template>

<script setup lang="ts">
import {
  LeftDataBus,
  setControlPanelE,
} from 'components/flowEditor/left/DataBus';
import { ref } from 'vue';
import { storeToRefs } from 'pinia';
import { useFlowEditorStore } from 'stores/flowEditor';

// 应该在page中用网络请求获取值并初始化组件
// 然后在page中执行setControlPane设置databus
const store = useFlowEditorStore();
const { flowNames1 } = storeToRefs(store);
setControlPanelE();
</script>
