Skip to content

Commit

Permalink
fix(toolbar): add toolbar type
Browse files Browse the repository at this point in the history
  • Loading branch information
mekery committed Apr 30, 2020
1 parent 0729de1 commit 3ea27cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/menubars/OEditorMenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
:opt="item.options"
:editor="editor"
v-bind="editorContext"
v-else-if="typeof item === 'object' && typeof item.name === 'string'" />
v-else-if="typeof item === 'object' && item.type === 'menu'" />
<component :key="index"
:is="item"
:editor="editor"
Expand All @@ -46,7 +46,7 @@
:opt="item.options"
:editor="editor"
v-bind="editorContext"
v-else-if="typeof item === 'object' && typeof item.name === 'string'" />
v-else-if="typeof item === 'object' && item.type === 'menu'" />
<component :key="index"
:is="item"
:editor="editor"
Expand Down
2 changes: 2 additions & 0 deletions src/pages/examples/basic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default {
toolbar: [
{
name: 'add-more',
type: 'menu',
options: {
embed: {
video: ['youtube', 'bilibili', 'youku'],
Expand All @@ -65,6 +66,7 @@ export default {
}
}
},
OAddMoreBtn,
'separator',
'bold',
'italic',
Expand Down

0 comments on commit 3ea27cc

Please sign in to comment.