调整AI助手样式为边栏

This commit is contained in:
fofolee
2025-02-20 19:40:29 +08:00
parent 4f5ef89558
commit 196d54a993
11 changed files with 819 additions and 500 deletions

View File

@@ -18,7 +18,7 @@
<!-- 命令设置栏 -->
<CommandConfig
v-if="!isRunCodePage"
v-if="!isRunCodePage && showCommandConfig"
v-model="commandManager.state.currentCommand"
from="quickcommand"
:expand-on-focus="true"
@@ -32,6 +32,8 @@
commandManager.state.currentCommand.cursorPosition
"
:language="getLanguage()"
@saveHistory="saveToHistory"
@request-full-screen="requestFullScreen"
placeholder="请输入代码"
class="codeEditor"
ref="editor"
@@ -95,6 +97,7 @@ export default {
return {
programLanguages: Object.keys(programs),
showComposer: false,
showCommandConfig: true,
listener: null,
composerInfo: {
program: "quickcomposer",
@@ -236,6 +239,9 @@ export default {
break;
}
},
requestFullScreen(value) {
this.showCommandConfig = !value;
},
},
};
</script>