vue2-client 1.8.114 → 1.8.115
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-model="item"
|
|
4
4
|
:options="cmOption"
|
|
5
5
|
class="code-mirror"
|
|
6
|
-
:style="
|
|
6
|
+
:style="styleObj"
|
|
7
7
|
@ready="onCmReady"
|
|
8
8
|
@focus="onCmFocus"
|
|
9
9
|
@input="onCmCodeChange"
|
|
@@ -32,9 +32,9 @@ export default {
|
|
|
32
32
|
type: String,
|
|
33
33
|
default: 'sql' // 目前只有 sql/go 如果需要配置其他语言,需要在 setting.js 中配置 更多看官方文档
|
|
34
34
|
},
|
|
35
|
-
|
|
36
|
-
type:
|
|
37
|
-
default: '16px'
|
|
35
|
+
styleObj: {
|
|
36
|
+
type: Object,
|
|
37
|
+
default: () => { return { fontSize: '16px' } }
|
|
38
38
|
},
|
|
39
39
|
theme: {
|
|
40
40
|
type: String,
|
|
@@ -68,7 +68,6 @@ export default {
|
|
|
68
68
|
},
|
|
69
69
|
methods: {
|
|
70
70
|
onCmReady () {
|
|
71
|
-
this.$refs.myCmGenerate.codemirror.setSize('400px', '400px')
|
|
72
71
|
},
|
|
73
72
|
onCmFocus (instance, event) {
|
|
74
73
|
// console.log(instance)
|