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, 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',