renusify 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/codeEditor/index.vue +17 -17
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<div v-show="show !== 'run'" ref="codeView" class="code-wrapper">
|
|
32
32
|
<div v-show="templateShow">
|
|
33
33
|
<span class="color-green"><template></span>
|
|
34
|
-
<highlight-html v-model="
|
|
34
|
+
<highlight-html v-model="temp"></highlight-html>
|
|
35
35
|
<span class="color-green"></template></span>
|
|
36
36
|
<br/>
|
|
37
37
|
</div>
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
<br/>
|
|
42
42
|
export default {</span
|
|
43
43
|
>
|
|
44
|
-
<highlight-script v-model="
|
|
44
|
+
<highlight-script v-model="scr"></highlight-script>
|
|
45
45
|
<span class="color-orange">}<br/><script></span>
|
|
46
46
|
</div>
|
|
47
47
|
<div v-show="styleShow">
|
|
48
48
|
<span class="color-orange"
|
|
49
49
|
><style lang<span class="color-green">="css"</span>></span
|
|
50
50
|
>
|
|
51
|
-
<highlight-css v-model="
|
|
51
|
+
<highlight-css v-model="sty"></highlight-css>
|
|
52
52
|
<span class="color-orange"><style></span>
|
|
53
53
|
</div>
|
|
54
54
|
</div>
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
<script>
|
|
59
59
|
import RCodeEditorRun from "./run";
|
|
60
60
|
import highlightHtml from "./highlightHtml";
|
|
61
|
-
import HighlightScript from "
|
|
62
|
-
import HighlightCss from "
|
|
61
|
+
import HighlightScript from "./highlightJs";
|
|
62
|
+
import HighlightCss from "./highlightCss";
|
|
63
63
|
|
|
64
64
|
export default {
|
|
65
65
|
name: "r-code-editor",
|
|
@@ -69,9 +69,9 @@ export default {
|
|
|
69
69
|
templateShow: {type: Boolean, default: true},
|
|
70
70
|
scriptShow: {type: Boolean, default: true},
|
|
71
71
|
styleShow: {type: Boolean, default: true},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
template: String,
|
|
73
|
+
script: String,
|
|
74
|
+
style: String,
|
|
75
75
|
},
|
|
76
76
|
emits: ["update:template", "update:script", "update:style"],
|
|
77
77
|
data() {
|
|
@@ -79,9 +79,9 @@ export default {
|
|
|
79
79
|
show: "code",
|
|
80
80
|
code: "",
|
|
81
81
|
edited: false,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
temp: this.template,
|
|
83
|
+
scr: this.script,
|
|
84
|
+
sty: this.style,
|
|
85
85
|
id: this.$helper.uniqueId(),
|
|
86
86
|
};
|
|
87
87
|
},
|
|
@@ -99,14 +99,14 @@ export default {
|
|
|
99
99
|
this.get_code("codeSlot");
|
|
100
100
|
},
|
|
101
101
|
watch: {
|
|
102
|
-
|
|
103
|
-
this.$emit("update:template", this.
|
|
102
|
+
temp: function () {
|
|
103
|
+
this.$emit("update:template", this.temp);
|
|
104
104
|
},
|
|
105
|
-
|
|
106
|
-
this.$emit("update:script", this.
|
|
105
|
+
scr: function () {
|
|
106
|
+
this.$emit("update:script", this.scr);
|
|
107
107
|
},
|
|
108
|
-
|
|
109
|
-
this.$emit("update:style", this.
|
|
108
|
+
sty: function () {
|
|
109
|
+
this.$emit("update:style", this.sty);
|
|
110
110
|
},
|
|
111
111
|
},
|
|
112
112
|
methods: {
|