style: 脚本组件折叠样式调整

This commit is contained in:
fit2-zhao 2024-03-14 10:27:21 +08:00 committed by Craftsman
parent 27d6f8124c
commit 41d9106040
1 changed files with 25 additions and 23 deletions

View File

@ -19,29 +19,31 @@
</MsTag>
</div>
</div>
<div v-if="props.showType === 'commonScript'" class="relative flex w-full">
<MsCodeEditor
ref="codeEditorRef"
v-model:model-value="innerCodeValue"
title=""
:width="expandMenu ? '100%' : '68%'"
height="460px"
theme="vs"
:language="innerLanguagesType"
:read-only="false"
:show-full-screen="false"
:show-theme-change="false"
>
<template #rightBox>
<MsScriptMenu
v-model:expand="expandMenu"
v-model:languagesType="innerLanguagesType"
@insert="insertHandler"
@form-api-import="formApiImport"
@insert-common-script="insertCommonScript"
/>
</template>
</MsCodeEditor>
<div v-if="props.showType === 'commonScript'" class="flex bg-[var(--color-bg-3)]">
<div class="relative w-full">
<MsCodeEditor
ref="codeEditorRef"
v-model:model-value="innerCodeValue"
title=""
:width="expandMenu ? '100%' : '68%'"
height="460px"
theme="vs"
:language="innerLanguagesType"
:read-only="false"
:show-full-screen="false"
:show-theme-change="false"
>
<template #rightBox>
<MsScriptMenu
v-model:expand="expandMenu"
v-model:languagesType="innerLanguagesType"
@insert="insertHandler"
@form-api-import="formApiImport"
@insert-common-script="insertCommonScript"
/>
</template>
</MsCodeEditor>
</div>
</div>
<MsCodeEditor
v-else