sql执行器页面易用性优化

一些页面美化
This commit is contained in:
diant
2023-05-16 18:38:42 +08:00
parent aaaa8b4e4d
commit 98aa22f6a6
10 changed files with 72 additions and 25 deletions

View File

@@ -93,6 +93,10 @@ export default {
// console.log('change content' + content);
// editor.execCommand("startAutocomplete");
});
editor.getSession().selection.on('changeSelection', function (e) {
let sqlValue = editor.session.getTextRange(editor.getSelectionRange());
vm.$emit('cursorSelection',sqlValue)
})
editor.commands.addCommand({
name: "start-autocomplete",
bindKey: {win: "Alt-Enter", mac: "Alt-Enter"},