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
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.8.114 -2024-3-14 @张振宇**
4
+ **1.8.114 - 1.8.115 -2024-3-14 @张振宇**
5
5
  - 增加ql展示组件
6
6
 
7
7
  **1.8.103-1.8.106 -2024-3-14 @张振宇**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.114",
3
+ "version": "1.8.115",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -3,7 +3,7 @@
3
3
  v-model="item"
4
4
  :options="cmOption"
5
5
  class="code-mirror"
6
- :style="{fontSize}"
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
- fontSize: {
36
- type: String,
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)