import { defineComponent } from 'vue'; import { ITreeNode } from '../types'; import { useBlockTree } from '../use-block-tree'; import { useActivation } from '../use-activation'; import { SbContextMenu } from './ContextMenu'; import { SbButton } from './Button'; import './TreeBlockSelect.scss'; export const SbTreeBlockSelect = defineComponent({ name: 'sb-main-menu', setup() { const { blockTree } = useBlockTree(); const { activate, activeBlockId, } = useActivation(); const treeToHtml = (tree: ITreeNode, close: Function) =>
  • {tree.children?.length ? : null }
  • ; return () => ( console.log(blockTree.value) || blockTree.value ? Tree, default: ({ close }: { close: Function }) => , }} /> : '' ); }, });