fix(接口测试): 修改CSS单词小驼峰编译不通过

This commit is contained in:
xinxin.wu 2024-05-08 21:57:24 +08:00 committed by Craftsman
parent 1a58e75e4c
commit e8f362fc45

View File

@ -253,12 +253,12 @@
function getEncodingCode() {
return editor.getValue();
}
const innerHeight = ref<string | number>();
// @desc 使 CSS
const codeheight = ref<string | number>();
function handleEditorMount() {
if (!props.isAdaptive) {
innerHeight.value = props.height;
codeheight.value = props.height;
return;
}
const editorElement = editor.getDomNode();
@ -273,9 +273,9 @@
const lineCount = editor.getModel()?.getLineCount() || 10;
// @desc 3 2412px
const height = (lineCount + 3) * lineHeight;
innerHeight.value = height > 300 ? `${height + 24}px` : '300px';
codeheight.value = height > 300 ? `${height + 24}px` : '300px';
if (height > 1000) {
innerHeight.value = `1000px`;
codeheight.value = `1000px`;
}
editor.layout();
}
@ -383,7 +383,7 @@
redo,
format,
getEncodingCode,
innerHeight,
codeheight,
handleEditorMount,
};
},
@ -393,7 +393,7 @@
<style lang="less" scoped>
.ms-code-editor {
width: 100%;
height: v-bind(innerheight);
height: v-bind(codeheight);
@apply z-10;
// height: 100vh;