mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-20 19:20:37 +08:00
调整AI助手样式为边栏
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user