数据预览支持修改查询的sql并执行,优化回车事件

This commit is contained in:
暮光:城中城
2020-05-11 22:37:30 +08:00
parent 713582bebf
commit aeb48e0144
11 changed files with 109 additions and 34 deletions

View File

@@ -115,8 +115,9 @@
this.loadDatasourceList();
// 下面两行先后顺序不能改
this.addEditorCompleter();
app.sqlExecutorEditor = app.initAceEditor("sqlExecutorEditor", 15);
app.sqlExecutorEditor.commands.addCommand({
this.sqlExecutorEditor = this.initAceEditor("sqlExecutorEditor", 15);
this.sqlExecutorEditor.setFontSize(18);
this.sqlExecutorEditor.commands.addCommand({
name: "execute-sql",
bindKey: {win: "Ctrl-R|Ctrl-Shift-R|Ctrl-Enter", mac: "Command-R|Command-Shift-R|Command-Enter"},
exec: function (editor) {