edit-wrapper 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
package/src/components/Main.vue
CHANGED
@@ -10,7 +10,7 @@ module.exports = {
|
|
10
10
|
props: {
|
11
11
|
width: { type: [String, Number], default: '100%' },
|
12
12
|
height: { type: [String, Number], default: '100%' },
|
13
|
-
code: { type: String, default: '
|
13
|
+
code: { type: String, default: '' },
|
14
14
|
srcPath: { type: String },
|
15
15
|
language: { type: String, default: 'javascript' },
|
16
16
|
theme: { type: String, default: 'vs-dark' }, // vs, hc-black
|
@@ -22,7 +22,9 @@ module.exports = {
|
|
22
22
|
changeThrottle: { type: Number, default: 0 }
|
23
23
|
},
|
24
24
|
mounted() {
|
25
|
-
|
25
|
+
setTimeout(() => {
|
26
|
+
this.fetchEditor();
|
27
|
+
}, 0)
|
26
28
|
},
|
27
29
|
destroyed() {
|
28
30
|
this.destroyMonaco();
|