This commit is contained in:
njdaoyehu 2024-11-21 17:15:37 +08:00
parent e052f9aee6
commit 3465897824
2 changed files with 26 additions and 1 deletions

View File

@ -525,3 +525,27 @@
border: 1px solid rgba(45, 119, 243, 0.3) !important; border: 1px solid rgba(45, 119, 243, 0.3) !important;
background-color: #13265a !important; background-color: #13265a !important;
} }
:deep(.CodeMirror) {
border-radius: 6px;
border: 1px solid rgba(45, 119, 243, 0.3) !important;
background-color: #13265a !important;
}
:deep(.CodeMirror-lines) {
font-family: "Noto Sans SC", serif;
font-size: 14px;
color: white !important;
}
:deep(.CodeMirror-gutters) {
border-right: 1px solid rgba(45, 119, 243, 0.3) !important;
}
:deep(.CodeMirror-cursor) {
border-left: 1px solid white;
}
:deep(.cm-string) {
color: darkorange !important;
}

View File

@ -3,7 +3,8 @@
<BasicForm @register="registerForm"> <BasicForm @register="registerForm">
<template #paramJson="{ model }"> <template #paramJson="{ model }">
<CodeEditor <CodeEditor
style="min-height: 200px" style="height: 500px"
:auto-height="false"
v-model:value="model.paramJson" v-model:value="model.paramJson"
@change="model.paramJson = $event;" @change="model.paramJson = $event;"
/> />