退出时保存光标位置

This commit is contained in:
fofolee
2022-04-13 16:49:47 +08:00
parent 8f479fa545
commit d659fdcc88
10 changed files with 27 additions and 23 deletions

View File

@@ -19,7 +19,6 @@ export default {
};
},
mounted() {
window.commandPage = this;
this.runCurrentCommand();
},
computed: {

View File

@@ -181,6 +181,7 @@
>
<q-card>
<CommandEditor
ref="commandEditor"
:action="commandEditorAction"
@editorEvent="editorEvent"
></CommandEditor>
@@ -303,7 +304,6 @@ export default {
methods: {
// 初始化
initPage() {
window.configuration = this;
// 已启用的 features
let activatedFeatures = this.getActivatedFeatures();
// 已启用的命令的 featureCode

View File

@@ -1,6 +1,6 @@
<template>
<div>
<CommandEditor :action="action"></CommandEditor>
<CommandEditor ref="commandEditor" :action="action"></CommandEditor>
</div>
</template>