更新快捷动作的声明

This commit is contained in:
fofolee
2024-12-22 11:55:10 +08:00
parent 2194b1cdfb
commit dece5dbd11
4 changed files with 107 additions and 30 deletions

View File

@@ -127,10 +127,7 @@ export default {
type: Object,
required: true,
},
allQuickCommandTags: {
type: Array,
required: true,
},
allQuickCommandTags: Array,
isLeaving: {
type: Boolean,
default: false,

View File

@@ -251,12 +251,9 @@ export default {
}
);
// F11 全屏
this.rawEditor().addCommand(
monaco.KeyCode.F11,
() => {
this.$emit("keyStroke", "fullscreen");
}
);
this.rawEditor().addCommand(monaco.KeyCode.F11, () => {
this.$emit("keyStroke", "fullscreen");
});
},
getSelectionOrLineContent() {
let selection = this.rawEditor().getSelection();