feat: code-morror组件代码使用定宽字体

This commit is contained in:
dhb52 2024-05-05 23:42:52 +08:00
parent f30827f01f
commit daa896d7de

View File

@ -25,7 +25,7 @@ const props = withDefaults(defineProps<Props>(), {
readonly: false,
disabled: false,
height: 'auto',
fontSize: '14px'
fontSize: '13px'
});
interface Emits {
@ -60,7 +60,7 @@ const theme = computed(() => {
'.cm-line': {
height: '21px',
fontSize: props.fontSize,
fontFamily: 'system-ui'
fontFamily: 'monospace'
},
'.cm-lineNumbers': {
fontFamily: 'system-ui',