vue-monaco
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -18,3 +18,4 @@ 'use strict'; | ||
language: String, | ||
options: Object | ||
options: Object, | ||
placeholder: null | ||
}, | ||
@@ -26,2 +27,8 @@ | ||
data: function data() { | ||
return { | ||
editorLoaded: false | ||
} | ||
}, | ||
watch: { | ||
@@ -67,2 +74,3 @@ options: { | ||
window.require(['vs/editor/editor.main'], function () { | ||
this$1.editorLoaded = true; | ||
this$1.editor = window.monaco.editor.create(this$1.$el, options); | ||
@@ -121,3 +129,3 @@ this$1.$emit('editorMount', this$1.editor); | ||
render: function render(h) { | ||
return h('div') | ||
return h('div', null, this.editorLoaded ? null : this.placeholder) | ||
} | ||
@@ -124,0 +132,0 @@ }; |
@@ -35,3 +35,4 @@ (function (global, factory) { | ||
language: String, | ||
options: Object | ||
options: Object, | ||
placeholder: null | ||
}, | ||
@@ -43,2 +44,8 @@ | ||
data: function data() { | ||
return { | ||
editorLoaded: false | ||
} | ||
}, | ||
watch: { | ||
@@ -84,2 +91,3 @@ options: { | ||
window.require(['vs/editor/editor.main'], function () { | ||
this$1.editorLoaded = true; | ||
this$1.editor = window.monaco.editor.create(this$1.$el, options); | ||
@@ -138,3 +146,3 @@ this$1.$emit('editorMount', this$1.editor); | ||
render: function render(h) { | ||
return h('div') | ||
return h('div', null, this.editorLoaded ? null : this.placeholder) | ||
} | ||
@@ -141,0 +149,0 @@ }; |
{ | ||
"name": "vue-monaco", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "MonacoEditor component for Vue.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -71,2 +71,3 @@ # vue-monaco | ||
- `options` | ||
- `placeholder`: Display a placeholder until the monaco editor is loaded. Could a string or vNode. | ||
@@ -73,0 +74,0 @@ ### Events |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16830
247
123