完成面板视图

This commit is contained in:
fofolee
2022-04-13 00:49:49 +08:00
parent 261aafacce
commit 3cd46df1d7
9 changed files with 121 additions and 42 deletions

View File

@@ -145,10 +145,22 @@
ref="editor"
:style="{
top: languageBarHeight + 'px',
left: this.action.type === 'run' ? '0' : sideBarWidth + 'px',
left: editorLeft,
transition: '0.3s',
}"
/>
<div
class="absolute-bottom flex justify-center content-center"
:style="{
top: languageBarHeight + 'px',
left: editorLeft,
userSelect: 'none',
}"
>
ctrl + s 保存 <br />
ctrl + b 运行 <br />
alt + z 自动换行
</div>
<!-- 运行结果 -->
<CommandRunResult :action="action" ref="result"></CommandRunResult>
</div>
@@ -205,6 +217,9 @@ export default {
"搜索结果"
);
},
editorLeft() {
return this.action.type === "run" ? "0" : this.sideBarWidth + "px";
},
},
created() {},
methods: {