vue2-client 1.8.115 → 1.8.116
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 +1 -1
- package/package.json +1 -1
- package/src/components/CodeMirror/inedx.vue +12 -6
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -34,7 +34,9 @@ export default {
|
|
|
34
34
|
},
|
|
35
35
|
styleObj: {
|
|
36
36
|
type: Object,
|
|
37
|
-
default: () => {
|
|
37
|
+
default: () => {
|
|
38
|
+
return { fontSize: '16px' }
|
|
39
|
+
}
|
|
38
40
|
},
|
|
39
41
|
theme: {
|
|
40
42
|
type: String,
|
|
@@ -95,18 +97,22 @@ export default {
|
|
|
95
97
|
|
|
96
98
|
@font-face {
|
|
97
99
|
font-family: 'JetBrains Mono';
|
|
98
|
-
src: url('@vue2-client/assets/ttf/JetBrainsMono-Light.woff2') format('woff2'), /* 字体文件路径和格式 */
|
|
99
|
-
|
|
100
|
+
src: url('@vue2-client/assets/ttf/JetBrainsMono-Light.woff2') format('woff2'), /* 字体文件路径和格式 */ url('@vue2-client/assets/ttf/JetBrainsMono-Light.woff2') format('woff');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:deep(.CodeMirror) {
|
|
104
|
+
height: 100%;
|
|
100
105
|
}
|
|
101
106
|
|
|
102
107
|
.code-mirror {
|
|
108
|
+
height: 100%;
|
|
103
109
|
line-height: 150%;
|
|
104
110
|
text-align: left;
|
|
105
|
-
font-family: "JetBrains Mono",serif !important;
|
|
111
|
+
font-family: "JetBrains Mono", serif !important;
|
|
106
112
|
}
|
|
107
113
|
|
|
108
|
-
:deep(.CodeMirror-line)
|
|
109
|
-
font-family: "JetBrains Mono",serif !important;
|
|
114
|
+
:deep(.CodeMirror-line), :deep(.CodeMirror-line-like) {
|
|
115
|
+
font-family: "JetBrains Mono", serif !important;
|
|
110
116
|
}
|
|
111
117
|
|
|
112
118
|
</style>
|