feat: code-morror组件代码使用定宽字体
This commit is contained in:
parent
f30827f01f
commit
daa896d7de
@ -25,7 +25,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|||||||
readonly: false,
|
readonly: false,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
height: 'auto',
|
height: 'auto',
|
||||||
fontSize: '14px'
|
fontSize: '13px'
|
||||||
});
|
});
|
||||||
|
|
||||||
interface Emits {
|
interface Emits {
|
||||||
@ -60,7 +60,7 @@ const theme = computed(() => {
|
|||||||
'.cm-line': {
|
'.cm-line': {
|
||||||
height: '21px',
|
height: '21px',
|
||||||
fontSize: props.fontSize,
|
fontSize: props.fontSize,
|
||||||
fontFamily: 'system-ui'
|
fontFamily: 'monospace'
|
||||||
},
|
},
|
||||||
'.cm-lineNumbers': {
|
'.cm-lineNumbers': {
|
||||||
fontFamily: 'system-ui',
|
fontFamily: 'system-ui',
|
||||||
|
Loading…
Reference in New Issue
Block a user