Skip to content

Commit

Permalink
feat(editor): footer slot
Browse files Browse the repository at this point in the history
  • Loading branch information
mekery committed Sep 3, 2020
1 parent e820d3a commit 141920d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/QuasarTiptap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
<q-scroll-area ref="editorScroll" class="editor-scroll-area" :class="`view-${pageView}`" v-if="scrollable">
<q-scroll-observer @scroll="onScroll" />
<editor-content class="editor__content o--note-preview note-step-side-editor" :editor="editor" />
<slot name="footer"></slot>
</q-scroll-area>
<div v-else>
<editor-content class="editor__content o--note-preview note-step-side-editor" :editor="editor" />
<slot name="footer"></slot>
</div>
</section>
</template>
Expand Down
6 changes: 5 additions & 1 deletion src/pages/examples/basic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
</div>
</header>
<section class="row col-10 q-pa-md">
<quasar-tiptap ref="editor" v-bind="options" @update="onUpdate" />
<quasar-tiptap ref="editor" v-bind="options" @update="onUpdate">
<div slot="footer">
This is footer.
</div>
</quasar-tiptap>
</section>
</section>
</q-page>
Expand Down

0 comments on commit 141920d

Please sign in to comment.