service-flow-designer 2.1.59 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/_virtual/_plugin-vue_export-helper.js +6 -7
- package/dist/es/assets/icon/aggregateQuery.svg.js +2 -2
- package/dist/es/assets/icon/base.png.js +2 -2
- package/dist/es/assets/icon/clean.svg.js +2 -2
- package/dist/es/assets/icon/condition.png.js +2 -2
- package/dist/es/assets/icon/connect.svg.js +2 -2
- package/dist/es/assets/icon/dynamicSql.svg.js +2 -2
- package/dist/es/assets/icon/end.png.js +2 -2
- package/dist/es/assets/icon/end.svg.js +2 -2
- package/dist/es/assets/icon/function.png.js +2 -2
- package/dist/es/assets/icon/http-service.svg.js +2 -2
- package/dist/es/assets/icon/loop.svg.js +2 -2
- package/dist/es/assets/icon/notification.svg.js +2 -2
- package/dist/es/assets/icon/regularQuery.svg.js +2 -2
- package/dist/es/assets/icon/sort.svg.js +2 -2
- package/dist/es/assets/icon/split-joint.svg.js +2 -2
- package/dist/es/assets/icon/start.png.js +2 -2
- package/dist/es/assets/icon/statistics.svg.js +2 -2
- package/dist/es/assets/icon/vardef-v.png.js +2 -2
- package/dist/es/designer/common/components/database-select.vue.js +4 -4
- package/dist/es/designer/common/components/database-select.vue2.js +29 -205
- package/dist/es/designer/common/components/datatable-select.vue.js +4 -4
- package/dist/es/designer/common/components/datatable-select.vue2.js +52 -299
- package/dist/es/designer/common/components/file-upload.vue.js +4 -4
- package/dist/es/designer/common/components/file-upload.vue2.js +27 -98
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue.js +18 -60
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue2.js +2 -2
- package/dist/es/designer/common/components/json-view/json-view.vue.js +51 -137
- package/dist/es/designer/common/components/json-view/json-view.vue2.js +2 -2
- package/dist/es/designer/common/components/node-base-config.vue.js +7 -63
- package/dist/es/designer/common/components/node-base-config.vue2.js +2 -2
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.js +17 -62
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue2.js +2 -2
- package/dist/es/designer/common/components/sql-view/sql-view.vue.js +2 -2
- package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +30 -100
- package/dist/es/designer/common/components/value-set-input/index.js +2 -2
- package/dist/es/designer/common/components/value-set-input/option.js +6 -59
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue.js +4 -4
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +122 -557
- package/dist/es/designer/common/util/node-util.js +32 -42
- package/dist/es/designer/desginer-index.vue.js +4 -4
- package/dist/es/designer/desginer-index.vue2.js +31 -106
- package/dist/es/designer/flow/base/AbLogicNode.js +9 -10
- package/dist/es/designer/flow/base/AbLogicNodeModel.js +21 -49
- package/dist/es/designer/flow/base/AbLogicResizeNode.js +9 -10
- package/dist/es/designer/flow/base/AbLogicResizeNodeModel.js +10 -26
- package/dist/es/designer/flow/edge/CustomLine.js +15 -42
- package/dist/es/designer/service-components/base/custom-function/config.vue.js +4 -4
- package/dist/es/designer/service-components/base/custom-function/config.vue2.js +55 -302
- package/dist/es/designer/service-components/base/custom-function/index.js +12 -34
- package/dist/es/designer/service-components/base/custom-function/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/custom-function/index.vue2.js +8 -40
- package/dist/es/designer/service-components/base/end-node/index.js +25 -64
- package/dist/es/designer/service-components/base/end-node/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/end-node/index.vue2.js +4 -29
- package/dist/es/designer/service-components/base/judge-condition/config.vue.js +2 -2
- package/dist/es/designer/service-components/base/judge-condition/config.vue2.js +61 -570
- package/dist/es/designer/service-components/base/judge-condition/index.js +13 -35
- package/dist/es/designer/service-components/base/judge-condition/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/judge-condition/index.vue2.js +12 -63
- package/dist/es/designer/service-components/base/loop-node/config.vue.js +4 -4
- package/dist/es/designer/service-components/base/loop-node/config.vue2.js +9 -73
- package/dist/es/designer/service-components/base/loop-node/index.js +37 -145
- package/dist/es/designer/service-components/base/notification/config.vue.js +2 -2
- package/dist/es/designer/service-components/base/notification/config.vue2.js +35 -320
- package/dist/es/designer/service-components/base/notification/index.js +12 -34
- package/dist/es/designer/service-components/base/notification/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/notification/index.vue2.js +8 -40
- package/dist/es/designer/service-components/base/notification/recipients-select.vue.js +4 -4
- package/dist/es/designer/service-components/base/notification/recipients-select.vue2.js +23 -146
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue.js +17 -103
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue2.js +2 -2
- package/dist/es/designer/service-components/base/start-node/index.js +25 -65
- package/dist/es/designer/service-components/base/start-node/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/start-node/index.vue2.js +4 -29
- package/dist/es/designer/service-components/components-icons.js +17 -33
- package/dist/es/designer/service-components/computation/clean/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/clean/config.vue2.js +40 -419
- package/dist/es/designer/service-components/computation/clean/index.js +12 -34
- package/dist/es/designer/service-components/computation/clean/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/clean/index.vue2.js +8 -40
- package/dist/es/designer/service-components/computation/connect/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/connect/config.vue2.js +38 -506
- package/dist/es/designer/service-components/computation/connect/index.js +12 -34
- package/dist/es/designer/service-components/computation/connect/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/connect/index.vue2.js +8 -40
- package/dist/es/designer/service-components/computation/sort/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/sort/config.vue2.js +41 -297
- package/dist/es/designer/service-components/computation/sort/index.js +12 -34
- package/dist/es/designer/service-components/computation/sort/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/sort/index.vue2.js +8 -40
- package/dist/es/designer/service-components/computation/split-joint/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/split-joint/config.vue2.js +27 -327
- package/dist/es/designer/service-components/computation/split-joint/index.js +12 -34
- package/dist/es/designer/service-components/computation/split-joint/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/split-joint/index.vue2.js +8 -40
- package/dist/es/designer/service-components/computation/statistics/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/statistics/config.vue2.js +41 -436
- package/dist/es/designer/service-components/computation/statistics/index.js +12 -34
- package/dist/es/designer/service-components/computation/statistics/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/statistics/index.vue2.js +8 -40
- package/dist/es/designer/service-components/database/aggregate-query/config.vue.js +4 -4
- package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +75 -375
- package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.js +22 -217
- package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue2.js +2 -2
- package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js +30 -439
- package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue2.js +2 -2
- package/dist/es/designer/service-components/database/aggregate-query/index.js +13 -35
- package/dist/es/designer/service-components/database/aggregate-query/index.vue.js +4 -4
- package/dist/es/designer/service-components/database/aggregate-query/index.vue2.js +22 -90
- package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue.js +15 -177
- package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue2.js +2 -2
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.js +16 -185
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue2.js +2 -2
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue.js +4 -4
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +66 -474
- package/dist/es/designer/service-components/database/dynamic-sql/index.js +12 -34
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue.js +4 -4
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue2.js +8 -40
- package/dist/es/designer/service-components/database/regular-query/config.vue.js +4 -4
- package/dist/es/designer/service-components/database/regular-query/config.vue2.js +52 -749
- package/dist/es/designer/service-components/database/regular-query/index.js +13 -35
- package/dist/es/designer/service-components/database/regular-query/index.vue.js +4 -4
- package/dist/es/designer/service-components/database/regular-query/index.vue2.js +22 -85
- package/dist/es/designer/service-components/index.js +33 -224
- package/dist/es/designer/service-components/service/common/cookie-data.vue.js +18 -125
- package/dist/es/designer/service-components/service/common/cookie-data.vue2.js +2 -2
- package/dist/es/designer/service-components/service/common/form-data.vue.js +18 -153
- package/dist/es/designer/service-components/service/common/form-data.vue2.js +2 -2
- package/dist/es/designer/service-components/service/common/header-data.vue.js +18 -126
- package/dist/es/designer/service-components/service/common/header-data.vue2.js +2 -2
- package/dist/es/designer/service-components/service/common/json-data.vue.js +4 -4
- package/dist/es/designer/service-components/service/common/json-data.vue2.js +18 -127
- package/dist/es/designer/service-components/service/common/param-config.vue.js +4 -4
- package/dist/es/designer/service-components/service/common/param-config.vue2.js +19 -211
- package/dist/es/designer/service-components/service/common/query-params.vue.js +18 -126
- package/dist/es/designer/service-components/service/common/query-params.vue2.js +2 -2
- package/dist/es/designer/service-components/service/common/raw-data.vue.js +27 -93
- package/dist/es/designer/service-components/service/common/raw-data.vue2.js +2 -2
- package/dist/es/designer/service-components/service/custom-bean/config.vue.js +2 -2
- package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +9 -74
- package/dist/es/designer/service-components/service/custom-bean/index.js +12 -34
- package/dist/es/designer/service-components/service/custom-bean/index.vue.js +4 -4
- package/dist/es/designer/service-components/service/custom-bean/index.vue2.js +8 -40
- package/dist/es/designer/service-components/service/http-service/config.vue.js +4 -4
- package/dist/es/designer/service-components/service/http-service/config.vue2.js +23 -296
- package/dist/es/designer/service-components/service/http-service/index.js +12 -34
- package/dist/es/designer/service-components/service/http-service/index.vue.js +4 -4
- package/dist/es/designer/service-components/service/http-service/index.vue2.js +8 -40
- package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +44 -262
- package/dist/es/designer/service-components/service/http-service/response-json-setting.vue2.js +2 -2
- package/dist/es/designer/service-components/service/http-service/response-text-setting.vue.js +15 -63
- package/dist/es/designer/service-components/service/http-service/response-text-setting.vue2.js +2 -2
- package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +44 -262
- package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue2.js +2 -2
- package/dist/es/designer/service-components/util/common-options.js +15 -129
- package/dist/es/designer/service-flow-view/flow-tool-util.js +14 -24
- package/dist/es/designer/service-flow-view/flow-util.js +52 -129
- package/dist/es/designer/service-flow-view/service-flow-tool.vue.js +4 -4
- package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +29 -188
- package/dist/es/designer/service-flow-view/service-node-config.vue.js +4 -4
- package/dist/es/designer/service-flow-view/service-node-config.vue2.js +28 -153
- package/dist/es/designer/service-flow-view/service-params.vue.js +53 -421
- package/dist/es/designer/service-flow-view/service-params.vue2.js +2 -2
- package/dist/es/designer/service-flow-view/service-result.vue.js +56 -310
- package/dist/es/designer/service-flow-view/service-result.vue2.js +2 -2
- package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +40 -307
- package/dist/es/designer/service-flow-view/service-test/request-params.vue2.js +2 -2
- package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +65 -326
- package/dist/es/designer/service-flow-view/service-test/service-test.vue2.js +2 -2
- package/dist/es/designer/service-flow-view/service-update-log.vue.js +4 -4
- package/dist/es/designer/service-flow-view/service-update-log.vue2.js +35 -234
- package/dist/es/designer/service-flow-view/view-index.vue.js +4 -4
- package/dist/es/designer/service-flow-view/view-index.vue2.js +92 -353
- package/dist/es/designer/service-panel/component-panel.vue.js +4 -4
- package/dist/es/designer/service-panel/component-panel.vue2.js +13 -81
- package/dist/es/designer/service-panel/service-list.vue.js +4 -4
- package/dist/es/designer/service-panel/service-list.vue2.js +76 -497
- package/dist/es/designer/service-panel/service-panel.vue.js +4 -4
- package/dist/es/designer/service-panel/service-panel.vue2.js +18 -78
- package/dist/es/index.js +2 -2
- package/dist/es/stores/page-store.js +26 -73
- package/dist/es/style.css +253 -253
- package/dist/es/utils/common-util.js +103 -211
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElDivider, ElCheckbox, ElInput, ElButton, ElFormItem, ElOption, ElSelect, ElTooltip, ElIcon, ElTableColumn, ElTable, ElTabPane, ElTabs, ElAlert, ElRadio, ElRadioGroup, ElForm } from "element-plus/es";
|
|
1
|
+
import { ElDivider as e, ElCheckbox as t, ElInput as l, ElButton as a, ElFormItem as o, ElOption as s, ElSelect as n, ElTooltip as r, ElIcon as u, ElTableColumn as p, ElTable as i, ElTabPane as m, ElTabs as c, ElAlert as d, ElRadio as f, ElRadioGroup as v, ElForm as b } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/form/style/css";
|
|
4
4
|
import "element-plus/es/components/radio-group/style/css";
|
|
@@ -17,489 +17,81 @@ import "element-plus/es/components/button/style/css";
|
|
|
17
17
|
import "element-plus/es/components/input/style/css";
|
|
18
18
|
import "element-plus/es/components/checkbox/style/css";
|
|
19
19
|
import "element-plus/es/components/divider/style/css";
|
|
20
|
-
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createVNode, withCtx, unref, createElementVNode, withDirectives, Fragment, renderList, createBlock, vShow, createTextVNode, pushScopeId, popScopeId } from "vue";
|
|
21
|
-
import { useLocalStorage } from "@vueuse/core";
|
|
22
|
-
import
|
|
23
|
-
import { Search, FullScreen, CaretRight } from "@element-plus/icons-vue";
|
|
24
|
-
import { EditorView, basicSetup } from "codemirror";
|
|
25
|
-
import { StandardSQL, keywordCompletionSource, sql } from "@codemirror/lang-sql";
|
|
26
|
-
import { EditorState } from "@codemirror/state";
|
|
27
|
-
import { openSearchPanel } from "@codemirror/search";
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import { useServiceFlowStore } from "../../../../stores/page-store.js";
|
|
31
|
-
import { eclipse, githubDark, githubLight, dracula, vscodeDark
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
color: "#333",
|
|
46
|
-
outline: "1px dotted #212121"
|
|
47
|
-
},
|
|
48
|
-
id: "cf-codemirror"
|
|
49
|
-
}, null, -1));
|
|
50
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
51
|
-
__name: "config",
|
|
52
|
-
props: {
|
|
53
|
-
properties: {
|
|
54
|
-
type: Object,
|
|
55
|
-
default: () => {
|
|
56
|
-
return {};
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
emits: ["fullScreen"],
|
|
61
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
62
|
-
useServiceFlowStore();
|
|
63
|
-
const emits = __emit;
|
|
64
|
-
const props = __props;
|
|
65
|
-
const sqlResult = ref([]);
|
|
66
|
-
const activeName = ref("index0");
|
|
67
|
-
const showSelectDatabase = ref(false);
|
|
68
|
-
const fullScreenDrawer = ref(false);
|
|
69
|
-
const editorStyle = ref({ theme: "default", fontSize: 14, searchOpen: false });
|
|
70
|
-
if (!props.properties.result) {
|
|
71
|
-
props.properties.result = {};
|
|
72
|
-
}
|
|
73
|
-
const editor = ref({});
|
|
74
|
-
onMounted(() => {
|
|
75
|
-
let cacheEditorStyleStr = useLocalStorage("editorStyle", "").value;
|
|
76
|
-
if (cacheEditorStyleStr) {
|
|
77
|
-
const cacheEditorStyle = JSON.parse(cacheEditorStyleStr);
|
|
78
|
-
editorStyle.value.theme = cacheEditorStyle.theme || "default";
|
|
79
|
-
editorStyle.value.fontSize = cacheEditorStyle.fontSize || 14;
|
|
80
|
-
}
|
|
81
|
-
loadEditor();
|
|
82
|
-
});
|
|
83
|
-
function showFullScreen() {
|
|
84
|
-
if (fullScreenDrawer.value === true) {
|
|
85
|
-
fullScreenDrawer.value = false;
|
|
86
|
-
emits("fullScreen", { withHeader: true, drawerWidth: "50%" });
|
|
87
|
-
} else {
|
|
88
|
-
fullScreenDrawer.value = true;
|
|
89
|
-
emits("fullScreen", { withHeader: false, drawerWidth: "100%" });
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
const sqlDocCompletions = StandardSQL.language.data.of({
|
|
93
|
-
autocomplete: keywordCompletionSource
|
|
94
|
-
});
|
|
95
|
-
function changeEditorState() {
|
|
96
|
-
useLocalStorage("editorStyle", editorStyle.value).value = editorStyle.value;
|
|
97
|
-
if (editor.value) {
|
|
98
|
-
if (editor.value) {
|
|
99
|
-
editor.value.destroy();
|
|
100
|
-
}
|
|
101
|
-
loadEditor();
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
function getEditorState() {
|
|
105
|
-
const mytheme = getTheme();
|
|
106
|
-
const baseTheme = EditorView.theme({
|
|
107
|
-
".cm-content, .cm-gutter": { minHeight: "200px" },
|
|
108
|
-
"&": {
|
|
109
|
-
height: "400px",
|
|
110
|
-
maxHeight: "400px",
|
|
111
|
-
fontSize: editorStyle.value.fontSize + "px"
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
return EditorState.create({
|
|
115
|
-
doc: props.properties.function,
|
|
116
|
-
extensions: [
|
|
117
|
-
EditorState.tabSize.of(16),
|
|
118
|
-
basicSetup,
|
|
119
|
-
sql(),
|
|
120
|
-
sqlDocCompletions,
|
|
121
|
-
mytheme,
|
|
122
|
-
baseTheme,
|
|
123
|
-
EditorView.updateListener.of(function(value) {
|
|
124
|
-
props.properties.function = value.state.doc.toString();
|
|
125
|
-
})
|
|
126
|
-
]
|
|
127
|
-
});
|
|
20
|
+
import { defineComponent as h, ref as y, onMounted as g, openBlock as x, createElementBlock as V, createVNode as S, withCtx as _, unref as k, createElementVNode as w, withDirectives as z, Fragment as D, renderList as U, createBlock as L, vShow as C, createTextVNode as H, pushScopeId as O, popScopeId as T } from "vue";
|
|
21
|
+
import { useLocalStorage as j } from "@vueuse/core";
|
|
22
|
+
import E from "../../../common/components/node-base-config.vue.js";
|
|
23
|
+
import { Search as G, FullScreen as W, CaretRight as X } from "@element-plus/icons-vue";
|
|
24
|
+
import { EditorView as q, basicSetup as B } from "codemirror";
|
|
25
|
+
import { StandardSQL as I, keywordCompletionSource as J, sql as N } from "@codemirror/lang-sql";
|
|
26
|
+
import { EditorState as Q } from "@codemirror/state";
|
|
27
|
+
import { openSearchPanel as A } from "@codemirror/search";
|
|
28
|
+
import F from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
29
|
+
import K from "../../../common/components/database-select.vue.js";
|
|
30
|
+
import { useServiceFlowStore as M } from "../../../../stores/page-store.js";
|
|
31
|
+
import { eclipse as P, githubDark as R, githubLight as Y, dracula as Z, vscodeDark as $, xcodeDark as ee, xcodeLight as te } from "@uiw/codemirror-themes-all";
|
|
32
|
+
const le = (e2) => (O("data-v-684c1f08"), e2 = e2(), T(), e2), ae = { style: {} }, oe = { style: { padding: "8px 16px", margin: "10px 0px", "background-color": "#f4f4f5" }, class: "pppp" }, se = le(() => w("span", { style: { color: "#909399", "font-size": "14px" } }, "SQL窗口", -1)), ne = { class: "editorTool" }, re = le(() => w("div", { style: { minHeight: "400px", maxHeight: "400px", backgroundColor: "#fff", color: "#333", outline: "1px dotted #212121" }, id: "cf-codemirror" }, null, -1)), ue = h({ __name: "config", props: { properties: { type: Object, default: () => ({}) } }, emits: ["fullScreen"], setup(h2, { expose: O2, emit: T2 }) {
|
|
33
|
+
M();
|
|
34
|
+
const le2 = T2, ue2 = h2, pe = y([]), ie = y("index0"), me = y(false), ce = y(false), de = y({ theme: "default", fontSize: 14, searchOpen: false });
|
|
35
|
+
ue2.properties.result || (ue2.properties.result = {});
|
|
36
|
+
const fe = y({});
|
|
37
|
+
function ve() {
|
|
38
|
+
true === ce.value ? (ce.value = false, le2("fullScreen", { withHeader: true, drawerWidth: "50%" })) : (ce.value = true, le2("fullScreen", { withHeader: false, drawerWidth: "100%" }));
|
|
39
|
+
}
|
|
40
|
+
g(() => {
|
|
41
|
+
let e2 = j("editorStyle", "").value;
|
|
42
|
+
if (e2) {
|
|
43
|
+
const t2 = JSON.parse(e2);
|
|
44
|
+
de.value.theme = t2.theme || "default", de.value.fontSize = t2.fontSize || 14;
|
|
128
45
|
}
|
|
129
|
-
|
|
130
|
-
|
|
46
|
+
ge();
|
|
47
|
+
});
|
|
48
|
+
const be = I.language.data.of({ autocomplete: J });
|
|
49
|
+
function he() {
|
|
50
|
+
j("editorStyle", de.value).value = de.value, fe.value && (fe.value && fe.value.destroy(), ge());
|
|
51
|
+
}
|
|
52
|
+
function ye() {
|
|
53
|
+
const e2 = function() {
|
|
54
|
+
switch (de.value.theme) {
|
|
131
55
|
case "xcodeLight":
|
|
132
|
-
return
|
|
56
|
+
return te;
|
|
133
57
|
case "xcodeDark":
|
|
134
|
-
return
|
|
58
|
+
return ee;
|
|
135
59
|
case "vscodeDark":
|
|
136
|
-
return
|
|
60
|
+
return $;
|
|
137
61
|
case "dracula":
|
|
138
|
-
return
|
|
62
|
+
return Z;
|
|
139
63
|
case "githubLight":
|
|
140
|
-
return
|
|
64
|
+
return Y;
|
|
141
65
|
case "githubDark":
|
|
142
|
-
return
|
|
66
|
+
return R;
|
|
143
67
|
case "eclipse":
|
|
144
|
-
return
|
|
145
|
-
}
|
|
146
|
-
return EditorView.theme({});
|
|
147
|
-
}
|
|
148
|
-
function loadEditor() {
|
|
149
|
-
const state = getEditorState();
|
|
150
|
-
editor.value = new EditorView({
|
|
151
|
-
state,
|
|
152
|
-
parent: document.getElementById("cf-codemirror")
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
function openSearch() {
|
|
156
|
-
if (editor.value) {
|
|
157
|
-
editor.value.focus();
|
|
158
|
-
let newState = openSearchPanel(editor.value);
|
|
159
|
-
if (newState) {
|
|
160
|
-
editor.value.update([]);
|
|
161
|
-
}
|
|
68
|
+
return P;
|
|
162
69
|
}
|
|
70
|
+
return q.theme({});
|
|
71
|
+
}(), t2 = q.theme({ ".cm-content, .cm-gutter": { minHeight: "200px" }, "&": { height: "400px", maxHeight: "400px", fontSize: de.value.fontSize + "px" } });
|
|
72
|
+
return Q.create({ doc: ue2.properties.function, extensions: [Q.tabSize.of(16), B, N(), be, e2, t2, q.updateListener.of(function(e3) {
|
|
73
|
+
ue2.properties.function = e3.state.doc.toString();
|
|
74
|
+
})] });
|
|
75
|
+
}
|
|
76
|
+
function ge() {
|
|
77
|
+
const e2 = ye();
|
|
78
|
+
fe.value = new q({ state: e2, parent: document.getElementById("cf-codemirror") });
|
|
79
|
+
}
|
|
80
|
+
function xe() {
|
|
81
|
+
if (fe.value) {
|
|
82
|
+
fe.value.focus(), A(fe.value) && fe.value.update([]);
|
|
163
83
|
}
|
|
164
|
-
const executeSql = () => {
|
|
165
|
-
editor.value.state.doc.toString();
|
|
166
|
-
sqlResult.value = [
|
|
167
|
-
[
|
|
168
|
-
{ id: "1", name: "name1" },
|
|
169
|
-
{ id: "2", name: "name2" }
|
|
170
|
-
],
|
|
171
|
-
[
|
|
172
|
-
{ id: "结果2-1", name: "name1" },
|
|
173
|
-
{ id: "结果2-2", name: "name2" }
|
|
174
|
-
],
|
|
175
|
-
[
|
|
176
|
-
{ id: "结果3-1", name: "name1" },
|
|
177
|
-
{ id: "结果3-2", name: "name2" }
|
|
178
|
-
]
|
|
179
|
-
];
|
|
180
|
-
};
|
|
181
|
-
const selectChange = (result) => {
|
|
182
|
-
props.properties.database = result.database.name;
|
|
183
|
-
};
|
|
184
|
-
__expose({});
|
|
185
|
-
return (_ctx, _cache) => {
|
|
186
|
-
const _component_el_divider = ElDivider;
|
|
187
|
-
const _component_el_checkbox = ElCheckbox;
|
|
188
|
-
const _component_el_input = ElInput;
|
|
189
|
-
const _component_el_button = ElButton;
|
|
190
|
-
const _component_el_form_item = ElFormItem;
|
|
191
|
-
const _component_el_option = ElOption;
|
|
192
|
-
const _component_el_select = ElSelect;
|
|
193
|
-
const _component_el_tooltip = ElTooltip;
|
|
194
|
-
const _component_el_icon = ElIcon;
|
|
195
|
-
const _component_el_table_column = ElTableColumn;
|
|
196
|
-
const _component_el_table = ElTable;
|
|
197
|
-
const _component_el_tab_pane = ElTabPane;
|
|
198
|
-
const _component_el_tabs = ElTabs;
|
|
199
|
-
const _component_el_alert = ElAlert;
|
|
200
|
-
const _component_el_radio = ElRadio;
|
|
201
|
-
const _component_el_radio_group = ElRadioGroup;
|
|
202
|
-
const _component_el_form = ElForm;
|
|
203
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
204
|
-
createVNode(_component_el_form, {
|
|
205
|
-
"label-width": "auto",
|
|
206
|
-
"label-position": "left"
|
|
207
|
-
}, {
|
|
208
|
-
default: withCtx(() => [
|
|
209
|
-
createVNode(_sfc_main$1, { properties: __props.properties }, null, 8, ["properties"]),
|
|
210
|
-
createVNode(_component_el_divider),
|
|
211
|
-
createVNode(_component_el_form_item, null, {
|
|
212
|
-
label: withCtx((scope) => [
|
|
213
|
-
createVNode(_component_el_checkbox, {
|
|
214
|
-
modelValue: __props.properties.specifyDatabase,
|
|
215
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.properties.specifyDatabase = $event),
|
|
216
|
-
label: "指定数据库"
|
|
217
|
-
}, null, 8, ["modelValue"])
|
|
218
|
-
]),
|
|
219
|
-
default: withCtx(() => [
|
|
220
|
-
createVNode(_component_el_input, {
|
|
221
|
-
modelValue: __props.properties.database,
|
|
222
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.properties.database = $event),
|
|
223
|
-
readonly: "",
|
|
224
|
-
style: { "width": "85%" }
|
|
225
|
-
}, null, 8, ["modelValue"]),
|
|
226
|
-
createVNode(_component_el_button, {
|
|
227
|
-
type: "primary",
|
|
228
|
-
icon: unref(Search),
|
|
229
|
-
onClick: _cache[2] || (_cache[2] = ($event) => showSelectDatabase.value = !showSelectDatabase.value),
|
|
230
|
-
circle: "",
|
|
231
|
-
disabled: !__props.properties.specifyDatabase,
|
|
232
|
-
style: { "position": "absolute", "right": "0" }
|
|
233
|
-
}, null, 8, ["icon", "disabled"]),
|
|
234
|
-
createVNode(DatabaseSelect, {
|
|
235
|
-
visible: showSelectDatabase.value,
|
|
236
|
-
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => showSelectDatabase.value = $event),
|
|
237
|
-
modelValue: __props.properties.dataTable,
|
|
238
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.properties.dataTable = $event),
|
|
239
|
-
onSelect: selectChange
|
|
240
|
-
}, null, 8, ["visible", "modelValue"])
|
|
241
|
-
]),
|
|
242
|
-
_: 1
|
|
243
|
-
}),
|
|
244
|
-
createElementVNode("div", _hoisted_2, [
|
|
245
|
-
_hoisted_3,
|
|
246
|
-
createElementVNode("span", _hoisted_4, [
|
|
247
|
-
createVNode(_component_el_tooltip, {
|
|
248
|
-
effect: "dark",
|
|
249
|
-
content: "切换主题",
|
|
250
|
-
placement: "top"
|
|
251
|
-
}, {
|
|
252
|
-
default: withCtx(() => [
|
|
253
|
-
createVNode(_component_el_select, {
|
|
254
|
-
class: "editorOption",
|
|
255
|
-
onChange: changeEditorState,
|
|
256
|
-
modelValue: editorStyle.value.theme,
|
|
257
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => editorStyle.value.theme = $event),
|
|
258
|
-
placeholder: "",
|
|
259
|
-
size: "small",
|
|
260
|
-
style: { "width": "120px" }
|
|
261
|
-
}, {
|
|
262
|
-
default: withCtx(() => [
|
|
263
|
-
createVNode(_component_el_option, {
|
|
264
|
-
label: "默认",
|
|
265
|
-
value: "default"
|
|
266
|
-
}),
|
|
267
|
-
createVNode(_component_el_option, {
|
|
268
|
-
label: "VScodeDark",
|
|
269
|
-
value: "vscodeDark"
|
|
270
|
-
}),
|
|
271
|
-
createVNode(_component_el_option, {
|
|
272
|
-
label: "Dracula",
|
|
273
|
-
value: "dracula"
|
|
274
|
-
}),
|
|
275
|
-
createVNode(_component_el_option, {
|
|
276
|
-
label: "GithubLight",
|
|
277
|
-
value: "githubLight"
|
|
278
|
-
}),
|
|
279
|
-
createVNode(_component_el_option, {
|
|
280
|
-
label: "GithubDark",
|
|
281
|
-
value: "githubDark"
|
|
282
|
-
}),
|
|
283
|
-
createVNode(_component_el_option, {
|
|
284
|
-
label: "Eclipse",
|
|
285
|
-
value: "eclipse"
|
|
286
|
-
}),
|
|
287
|
-
createVNode(_component_el_option, {
|
|
288
|
-
label: "XcodeLight",
|
|
289
|
-
value: "xcodeLight"
|
|
290
|
-
}),
|
|
291
|
-
createVNode(_component_el_option, {
|
|
292
|
-
label: "XcodeDark",
|
|
293
|
-
value: "xcodeDark"
|
|
294
|
-
})
|
|
295
|
-
]),
|
|
296
|
-
_: 1
|
|
297
|
-
}, 8, ["modelValue"])
|
|
298
|
-
]),
|
|
299
|
-
_: 1
|
|
300
|
-
}),
|
|
301
|
-
createVNode(_component_el_tooltip, {
|
|
302
|
-
effect: "dark",
|
|
303
|
-
content: "切换字体大小",
|
|
304
|
-
placement: "top"
|
|
305
|
-
}, {
|
|
306
|
-
default: withCtx(() => [
|
|
307
|
-
createVNode(_component_el_select, {
|
|
308
|
-
class: "editorOption",
|
|
309
|
-
modelValue: editorStyle.value.fontSize,
|
|
310
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => editorStyle.value.fontSize = $event),
|
|
311
|
-
placeholder: "",
|
|
312
|
-
onChange: changeEditorState,
|
|
313
|
-
size: "small",
|
|
314
|
-
style: { "width": "80px" }
|
|
315
|
-
}, {
|
|
316
|
-
default: withCtx(() => [
|
|
317
|
-
createVNode(_component_el_option, {
|
|
318
|
-
label: "12",
|
|
319
|
-
value: 12
|
|
320
|
-
}),
|
|
321
|
-
createVNode(_component_el_option, {
|
|
322
|
-
label: "14",
|
|
323
|
-
value: 14
|
|
324
|
-
}),
|
|
325
|
-
createVNode(_component_el_option, {
|
|
326
|
-
label: "16",
|
|
327
|
-
value: 16
|
|
328
|
-
}),
|
|
329
|
-
createVNode(_component_el_option, {
|
|
330
|
-
label: "18",
|
|
331
|
-
value: 18
|
|
332
|
-
}),
|
|
333
|
-
createVNode(_component_el_option, {
|
|
334
|
-
label: "20",
|
|
335
|
-
value: 20
|
|
336
|
-
}),
|
|
337
|
-
createVNode(_component_el_option, {
|
|
338
|
-
label: "22",
|
|
339
|
-
value: 22
|
|
340
|
-
}),
|
|
341
|
-
createVNode(_component_el_option, {
|
|
342
|
-
label: "24",
|
|
343
|
-
value: 24
|
|
344
|
-
}),
|
|
345
|
-
createVNode(_component_el_option, {
|
|
346
|
-
label: "26",
|
|
347
|
-
value: 26
|
|
348
|
-
}),
|
|
349
|
-
createVNode(_component_el_option, {
|
|
350
|
-
label: "28",
|
|
351
|
-
value: 28
|
|
352
|
-
})
|
|
353
|
-
]),
|
|
354
|
-
_: 1
|
|
355
|
-
}, 8, ["modelValue"])
|
|
356
|
-
]),
|
|
357
|
-
_: 1
|
|
358
|
-
})
|
|
359
|
-
]),
|
|
360
|
-
createVNode(_component_el_tooltip, {
|
|
361
|
-
effect: "dark",
|
|
362
|
-
content: "打开搜索",
|
|
363
|
-
placement: "top"
|
|
364
|
-
}, {
|
|
365
|
-
default: withCtx(() => [
|
|
366
|
-
createVNode(_component_el_icon, {
|
|
367
|
-
class: "editorOption",
|
|
368
|
-
onClick: openSearch
|
|
369
|
-
}, {
|
|
370
|
-
default: withCtx(() => [
|
|
371
|
-
createVNode(unref(Search))
|
|
372
|
-
]),
|
|
373
|
-
_: 1
|
|
374
|
-
})
|
|
375
|
-
]),
|
|
376
|
-
_: 1
|
|
377
|
-
}),
|
|
378
|
-
createVNode(_component_el_tooltip, {
|
|
379
|
-
effect: "dark",
|
|
380
|
-
content: fullScreenDrawer.value ? "退出全屏" : "全屏",
|
|
381
|
-
placement: "top"
|
|
382
|
-
}, {
|
|
383
|
-
default: withCtx(() => [
|
|
384
|
-
createVNode(_component_el_icon, {
|
|
385
|
-
style: { "cursor": "pointer" },
|
|
386
|
-
onClick: showFullScreen
|
|
387
|
-
}, {
|
|
388
|
-
default: withCtx(() => [
|
|
389
|
-
createVNode(unref(FullScreen))
|
|
390
|
-
]),
|
|
391
|
-
_: 1
|
|
392
|
-
})
|
|
393
|
-
]),
|
|
394
|
-
_: 1
|
|
395
|
-
}, 8, ["content"]),
|
|
396
|
-
createVNode(_component_el_icon, {
|
|
397
|
-
style: { "cursor": "pointer" },
|
|
398
|
-
onClick: executeSql,
|
|
399
|
-
size: 25
|
|
400
|
-
}, {
|
|
401
|
-
default: withCtx(() => [
|
|
402
|
-
createVNode(unref(CaretRight))
|
|
403
|
-
]),
|
|
404
|
-
_: 1
|
|
405
|
-
})
|
|
406
|
-
]),
|
|
407
|
-
_hoisted_5,
|
|
408
|
-
withDirectives(createVNode(_component_el_tabs, {
|
|
409
|
-
modelValue: activeName.value,
|
|
410
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => activeName.value = $event),
|
|
411
|
-
type: "border-card",
|
|
412
|
-
style: { "margin-top": "10px" }
|
|
413
|
-
}, {
|
|
414
|
-
default: withCtx(() => [
|
|
415
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(sqlResult.value, (item, index) => {
|
|
416
|
-
return openBlock(), createBlock(_component_el_tab_pane, {
|
|
417
|
-
label: "结果" + (index + 1),
|
|
418
|
-
name: "index" + index
|
|
419
|
-
}, {
|
|
420
|
-
default: withCtx(() => [
|
|
421
|
-
createVNode(_component_el_table, {
|
|
422
|
-
data: item,
|
|
423
|
-
style: { "width": "100%" }
|
|
424
|
-
}, {
|
|
425
|
-
default: withCtx(() => [
|
|
426
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item[0], (value, key) => {
|
|
427
|
-
return openBlock(), createBlock(_component_el_table_column, {
|
|
428
|
-
prop: key + "",
|
|
429
|
-
label: key
|
|
430
|
-
}, null, 8, ["prop", "label"]);
|
|
431
|
-
}), 256))
|
|
432
|
-
]),
|
|
433
|
-
_: 2
|
|
434
|
-
}, 1032, ["data"])
|
|
435
|
-
]),
|
|
436
|
-
_: 2
|
|
437
|
-
}, 1032, ["label", "name"]);
|
|
438
|
-
}), 256))
|
|
439
|
-
]),
|
|
440
|
-
_: 1
|
|
441
|
-
}, 8, ["modelValue"]), [
|
|
442
|
-
[vShow, sqlResult.value && sqlResult.value.lenght > 0]
|
|
443
|
-
]),
|
|
444
|
-
createVNode(_component_el_alert, {
|
|
445
|
-
title: "结果设置",
|
|
446
|
-
type: "info",
|
|
447
|
-
size: "small",
|
|
448
|
-
closable: false,
|
|
449
|
-
style: { "margin": "20px 0" }
|
|
450
|
-
}),
|
|
451
|
-
createVNode(_component_el_form_item, {
|
|
452
|
-
label: "",
|
|
453
|
-
"label-width": "0",
|
|
454
|
-
style: { "width": "100%" }
|
|
455
|
-
}, {
|
|
456
|
-
default: withCtx(() => [
|
|
457
|
-
createVNode(_component_el_radio_group, {
|
|
458
|
-
modelValue: __props.properties.result.valueSetScope,
|
|
459
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => __props.properties.result.valueSetScope = $event),
|
|
460
|
-
class: "ml-4"
|
|
461
|
-
}, {
|
|
462
|
-
default: withCtx(() => [
|
|
463
|
-
createVNode(_component_el_radio, { value: "first" }, {
|
|
464
|
-
default: withCtx(() => [
|
|
465
|
-
createTextVNode("仅第一条")
|
|
466
|
-
]),
|
|
467
|
-
_: 1
|
|
468
|
-
}),
|
|
469
|
-
createVNode(_component_el_radio, { value: "all" }, {
|
|
470
|
-
default: withCtx(() => [
|
|
471
|
-
createTextVNode(" 全部 ")
|
|
472
|
-
]),
|
|
473
|
-
_: 1
|
|
474
|
-
})
|
|
475
|
-
]),
|
|
476
|
-
_: 1
|
|
477
|
-
}, 8, ["modelValue"])
|
|
478
|
-
]),
|
|
479
|
-
_: 1
|
|
480
|
-
}),
|
|
481
|
-
createVNode(_component_el_form_item, {
|
|
482
|
-
label: "设置到:",
|
|
483
|
-
style: { "width": "100%" }
|
|
484
|
-
}, {
|
|
485
|
-
default: withCtx(() => [
|
|
486
|
-
createVNode(unref(ValueSetInput), {
|
|
487
|
-
inputSize: "default",
|
|
488
|
-
paramTypes: ["service"],
|
|
489
|
-
size: "small",
|
|
490
|
-
modelValue: __props.properties.result.setTo,
|
|
491
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => __props.properties.result.setTo = $event)
|
|
492
|
-
}, null, 8, ["modelValue"])
|
|
493
|
-
]),
|
|
494
|
-
_: 1
|
|
495
|
-
})
|
|
496
|
-
]),
|
|
497
|
-
_: 1
|
|
498
|
-
})
|
|
499
|
-
]);
|
|
500
|
-
};
|
|
501
84
|
}
|
|
502
|
-
|
|
85
|
+
const Ve = () => {
|
|
86
|
+
fe.value.state.doc.toString(), pe.value = [[{ id: "1", name: "name1" }, { id: "2", name: "name2" }], [{ id: "结果2-1", name: "name1" }, { id: "结果2-2", name: "name2" }], [{ id: "结果3-1", name: "name1" }, { id: "结果3-2", name: "name2" }]];
|
|
87
|
+
}, Se = (e2) => {
|
|
88
|
+
ue2.properties.database = e2.database.name;
|
|
89
|
+
};
|
|
90
|
+
return O2({}), (y2, g2) => {
|
|
91
|
+
const O3 = e, T3 = t, j2 = l, q2 = a, B2 = o, I2 = s, J2 = n, N2 = r, Q2 = u, A2 = p, M2 = i, P2 = m, R2 = c, Y2 = d, Z2 = f, $2 = v, ee2 = b;
|
|
92
|
+
return x(), V("div", ae, [S(ee2, { "label-width": "auto", "label-position": "left" }, { default: _(() => [S(E, { properties: h2.properties }, null, 8, ["properties"]), S(O3), S(B2, null, { label: _((e2) => [S(T3, { modelValue: h2.properties.specifyDatabase, "onUpdate:modelValue": g2[0] || (g2[0] = (e3) => h2.properties.specifyDatabase = e3), label: "指定数据库" }, null, 8, ["modelValue"])]), default: _(() => [S(j2, { modelValue: h2.properties.database, "onUpdate:modelValue": g2[1] || (g2[1] = (e2) => h2.properties.database = e2), readonly: "", style: { width: "85%" } }, null, 8, ["modelValue"]), S(q2, { type: "primary", icon: k(G), onClick: g2[2] || (g2[2] = (e2) => me.value = !me.value), circle: "", disabled: !h2.properties.specifyDatabase, style: { position: "absolute", right: "0" } }, null, 8, ["icon", "disabled"]), S(K, { visible: me.value, "onUpdate:visible": g2[3] || (g2[3] = (e2) => me.value = e2), modelValue: h2.properties.dataTable, "onUpdate:modelValue": g2[4] || (g2[4] = (e2) => h2.properties.dataTable = e2), onSelect: Se }, null, 8, ["visible", "modelValue"])]), _: 1 }), w("div", oe, [se, w("span", ne, [S(N2, { effect: "dark", content: "切换主题", placement: "top" }, { default: _(() => [S(J2, { class: "editorOption", onChange: he, modelValue: de.value.theme, "onUpdate:modelValue": g2[5] || (g2[5] = (e2) => de.value.theme = e2), placeholder: "", size: "small", style: { width: "120px" } }, { default: _(() => [S(I2, { label: "默认", value: "default" }), S(I2, { label: "VScodeDark", value: "vscodeDark" }), S(I2, { label: "Dracula", value: "dracula" }), S(I2, { label: "GithubLight", value: "githubLight" }), S(I2, { label: "GithubDark", value: "githubDark" }), S(I2, { label: "Eclipse", value: "eclipse" }), S(I2, { label: "XcodeLight", value: "xcodeLight" }), S(I2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), S(N2, { effect: "dark", content: "切换字体大小", placement: "top" }, { default: _(() => [S(J2, { class: "editorOption", modelValue: de.value.fontSize, "onUpdate:modelValue": g2[6] || (g2[6] = (e2) => de.value.fontSize = e2), placeholder: "", onChange: he, size: "small", style: { width: "80px" } }, { default: _(() => [S(I2, { label: "12", value: 12 }), S(I2, { label: "14", value: 14 }), S(I2, { label: "16", value: 16 }), S(I2, { label: "18", value: 18 }), S(I2, { label: "20", value: 20 }), S(I2, { label: "22", value: 22 }), S(I2, { label: "24", value: 24 }), S(I2, { label: "26", value: 26 }), S(I2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), S(N2, { effect: "dark", content: "打开搜索", placement: "top" }, { default: _(() => [S(Q2, { class: "editorOption", onClick: xe }, { default: _(() => [S(k(G))]), _: 1 })]), _: 1 }), S(N2, { effect: "dark", content: ce.value ? "退出全屏" : "全屏", placement: "top" }, { default: _(() => [S(Q2, { style: { cursor: "pointer" }, onClick: ve }, { default: _(() => [S(k(W))]), _: 1 })]), _: 1 }, 8, ["content"]), S(Q2, { style: { cursor: "pointer" }, onClick: Ve, size: 25 }, { default: _(() => [S(k(X))]), _: 1 })]), re, z(S(R2, { modelValue: ie.value, "onUpdate:modelValue": g2[7] || (g2[7] = (e2) => ie.value = e2), type: "border-card", style: { "margin-top": "10px" } }, { default: _(() => [(x(true), V(D, null, U(pe.value, (e2, t2) => (x(), L(P2, { label: "结果" + (t2 + 1), name: "index" + t2 }, { default: _(() => [S(M2, { data: e2, style: { width: "100%" } }, { default: _(() => [(x(true), V(D, null, U(e2[0], (e3, t3) => (x(), L(A2, { prop: t3 + "", label: t3 }, null, 8, ["prop", "label"]))), 256))]), _: 2 }, 1032, ["data"])]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue"]), [[C, pe.value && pe.value.lenght > 0]]), S(Y2, { title: "结果设置", type: "info", size: "small", closable: false, style: { margin: "20px 0" } }), S(B2, { label: "", "label-width": "0", style: { width: "100%" } }, { default: _(() => [S($2, { modelValue: h2.properties.result.valueSetScope, "onUpdate:modelValue": g2[8] || (g2[8] = (e2) => h2.properties.result.valueSetScope = e2), class: "ml-4" }, { default: _(() => [S(Z2, { value: "first" }, { default: _(() => [H("仅第一条")]), _: 1 }), S(Z2, { value: "all" }, { default: _(() => [H(" 全部 ")]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), S(B2, { label: "设置到:", style: { width: "100%" } }, { default: _(() => [S(k(F), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: h2.properties.result.setTo, "onUpdate:modelValue": g2[9] || (g2[9] = (e2) => h2.properties.result.setTo = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]);
|
|
93
|
+
};
|
|
94
|
+
} });
|
|
503
95
|
export {
|
|
504
|
-
|
|
96
|
+
ue as default
|
|
505
97
|
};
|
|
@@ -1,39 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import e from "../../../flow/base/AbLogicNode.js";
|
|
2
|
+
import o from "../../../flow/base/AbLogicNodeModel.js";
|
|
3
3
|
import "../../../flow/base/AbLogicResizeNodeModel.js";
|
|
4
4
|
import "../../../flow/base/AbLogicResizeNode.js";
|
|
5
|
-
import { h, createApp } from "vue";
|
|
6
|
-
import
|
|
7
|
-
class
|
|
8
|
-
constructor(
|
|
9
|
-
super(
|
|
10
|
-
|
|
11
|
-
this.
|
|
12
|
-
model: props.model,
|
|
13
|
-
graphModel: props.graphModel,
|
|
14
|
-
disabled: props.graphModel.editConfigModel.isSilentMode,
|
|
15
|
-
isSelected: props.model.isSelected,
|
|
16
|
-
isHovered: props.model.isHovered,
|
|
17
|
-
properties: props.model.getProperties(),
|
|
18
|
-
onBtnClick: (i) => {
|
|
19
|
-
this.props.graphModel.eventCenter.emit(`node:select-click`, {
|
|
20
|
-
props
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
this.app = createApp({
|
|
25
|
-
render: () => this.r
|
|
26
|
-
});
|
|
5
|
+
import { h as s, createApp as i } from "vue";
|
|
6
|
+
import d from "./index.vue.js";
|
|
7
|
+
const t = { type: "dynamicSql", view: class extends e {
|
|
8
|
+
constructor(e2) {
|
|
9
|
+
super(e2), this.isMounted = false, this.r = s(d, { model: e2.model, graphModel: e2.graphModel, disabled: e2.graphModel.editConfigModel.isSilentMode, isSelected: e2.model.isSelected, isHovered: e2.model.isHovered, properties: e2.model.getProperties(), onBtnClick: (o2) => {
|
|
10
|
+
this.props.graphModel.eventCenter.emit("node:select-click", { props: e2 });
|
|
11
|
+
} }), this.app = i({ render: () => this.r });
|
|
27
12
|
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
const dynamicSql = {
|
|
32
|
-
type: "dynamicSql",
|
|
33
|
-
view: DynamicSqlNode,
|
|
34
|
-
model: DynamicSqlNodeModel,
|
|
35
|
-
options: {}
|
|
36
|
-
};
|
|
13
|
+
}, model: class extends o {
|
|
14
|
+
}, options: {} };
|
|
37
15
|
export {
|
|
38
|
-
|
|
16
|
+
t as default
|
|
39
17
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./index.vue2.js";
|
|
2
2
|
import "./index.vue3.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = o(e, [["__scopeId", "data-v-9770119b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|