schlechtenburg/packages/core/lib/components/MainMenu.tsx

30 lines
561 B
TypeScript
Raw Normal View History

2021-02-22 18:13:37 +00:00
import {
defineComponent,
PropType,
} from 'vue';
2021-03-08 15:29:35 +00:00
import { BlockData } from '../types';
2021-02-22 23:12:06 +00:00
import { SbTreeBlockSelect } from './TreeBlockSelect';
2021-03-22 19:58:25 +00:00
import { SbGlobalInsert } from './GlobalInsert';
2021-02-22 18:13:37 +00:00
import './MainMenu.scss';
export const SbMainMenu = defineComponent({
name: 'sb-main-menu',
props: {
block: {
2021-03-08 15:29:35 +00:00
type: (null as unknown) as PropType<BlockData<any>>,
2021-02-22 18:13:37 +00:00
required: true,
},
},
2021-03-08 15:29:35 +00:00
setup() {
2021-02-22 18:13:37 +00:00
return () => (
<div class="sb-main-menu">
2021-03-08 15:29:35 +00:00
<SbTreeBlockSelect />
2021-03-22 19:58:25 +00:00
<SbGlobalInsert />
2021-02-22 18:13:37 +00:00
</div>
);
},
});