Skip to content

Commit

Permalink
fix Error with prop editorId #13
Browse files Browse the repository at this point in the history
  • Loading branch information
lilitsimonyan98 committed Nov 20, 2020
1 parent 97890fe commit b2940e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Then you'll be able to use Editor component.

You must give your editor component ```ref```,which will help you to call the functions to set editor mode,clean objects or undo/redo your changes.
```vue
<Editor :canvasWidth="canvasWidth" :canvasHeight="canvasHeight" ref="editor" :editorId="1"/>
<Editor :canvasWidth="canvasWidth" :canvasHeight="canvasHeight" ref="editor" editorId="canvasId"/>
mounted() {
$this.$refs.editor.set(this.editor.mode,this.editor.options);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-image-markup",
"version": "3.1.10",
"version": "3.2.0",
"description": "vue-image-markup will provide you to edit uploaded image easily and save it.",
"main": "src/Editor.vue",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
required: true
},
editorId: {
type: [String,Number],
type: String,
default: 'c',
required: false
}
Expand Down

0 comments on commit b2940e3

Please sign in to comment.