diff --git a/src/components/MonacoEditor/index.vue b/src/components/MonacoEditor/index.vue index 9af9c3b1..4ec0f91d 100644 --- a/src/components/MonacoEditor/index.vue +++ b/src/components/MonacoEditor/index.vue @@ -32,6 +32,7 @@ self.MonacoEnvironment = { const props = defineProps({ modelValue: [String, Number], + theme: { type: String, default: 'vs-dark' }, }); const emit = defineEmits(['update:modelValue']); @@ -48,7 +49,7 @@ onMounted(() => { tabSize: 2, automaticLayout: true, scrollBeyondLastLine: false, - theme: 'vs-dark', // 主题色: vs(默认高亮), vs-dark(黑色), hc-black(高亮黑色) + theme: props.theme, // 主题色: vs(默认高亮), vs-dark(黑色), hc-black(高亮黑色) }); instance.onDidChangeModelContent(() => { diff --git a/src/components/ValueItem/index.vue b/src/components/ValueItem/index.vue index f5387595..7a01b89e 100644 --- a/src/components/ValueItem/index.vue +++ b/src/components/ValueItem/index.vue @@ -45,7 +45,7 @@