30 lines
561 B
TypeScript
30 lines
561 B
TypeScript
import {
|
|
defineComponent,
|
|
PropType,
|
|
} from 'vue';
|
|
import { BlockData } from '../types';
|
|
import { SbTreeBlockSelect } from './TreeBlockSelect';
|
|
import { SbGlobalInsert } from './GlobalInsert';
|
|
|
|
import './MainMenu.scss';
|
|
|
|
export const SbMainMenu = defineComponent({
|
|
name: 'sb-main-menu',
|
|
|
|
props: {
|
|
block: {
|
|
type: (null as unknown) as PropType<BlockData<any>>,
|
|
required: true,
|
|
},
|
|
},
|
|
|
|
setup() {
|
|
return () => (
|
|
<div class="sb-main-menu">
|
|
<SbTreeBlockSelect />
|
|
<SbGlobalInsert />
|
|
</div>
|
|
);
|
|
},
|
|
});
|