add renderless MenuBar

This commit is contained in:
Philipp Kühn
2018-11-04 22:43:26 +01:00
parent d4f6708daa
commit 32c62b85ca
7 changed files with 115 additions and 113 deletions

View File

@@ -1,8 +1,8 @@
<template>
<div>
<div class="editor">
<menu-bar class="menubar" :editor="editor">
<template slot-scope="{ commands, isActive }">
<menu-bar :editor="editor">
<div class="menubar" slot-scope="{ commands, isActive }">
<button
class="menubar__button"
@@ -84,7 +84,7 @@
<icon name="code" />
</button>
</template>
</div>
</menu-bar>
<editor-content class="editor__content" :editor="editor" />