-
+
@@ -700,6 +700,19 @@ const initMonacoEditor = () => {
},
});
};
+
+const active = () => {
+ const resTab = state.execResTabs[state.activeTab - 1];
+ if (!resTab || !resTab.dbTableRef) {
+ return;
+ }
+
+ resTab.dbTableRef?.active();
+};
+
+defineExpose({
+ active,
+});