新增EVAL代码

This commit is contained in:
fofolee
2025-02-22 11:03:26 +08:00
parent 1fe478f373
commit d9bc4b4f34
2 changed files with 27 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="code-editor" :style="{ height: height }">
<div class="code-editor" :style="{ height: height + 'px' }">
<div
class="editor-container"
:style="{
@@ -90,8 +90,8 @@ export default defineComponent({
},
// 编辑器高度
height: {
type: String,
default: "300px",
type: Number,
default: 300,
},
// 编辑器主题
theme: {