service-flow-designer 2.1.58 → 2.1.96
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 +288 -288
- package/dist/es/utils/common-util.js +103 -211
- package/package.json +3 -2
|
@@ -1,321 +1,74 @@
|
|
|
1
|
-
import { ElOption, ElSelect, ElTooltip, ElIcon, ElForm } from "element-plus/es";
|
|
1
|
+
import { ElOption as e, ElSelect as t, ElTooltip as l, ElIcon as o, ElForm as a } 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/icon/style/css";
|
|
5
5
|
import "element-plus/es/components/tooltip/style/css";
|
|
6
6
|
import "element-plus/es/components/select/style/css";
|
|
7
7
|
import "element-plus/es/components/option/style/css";
|
|
8
|
-
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, unref, normalizeStyle, pushScopeId, popScopeId } from "vue";
|
|
9
|
-
import { useLocalStorage } from "@vueuse/core";
|
|
10
|
-
import
|
|
11
|
-
import { Search, FullScreen } from "@element-plus/icons-vue";
|
|
12
|
-
import { EditorView, basicSetup } from "codemirror";
|
|
13
|
-
import { javaLanguage, java } from "@codemirror/lang-java";
|
|
14
|
-
import { EditorState } from "@codemirror/state";
|
|
15
|
-
import { openSearchPanel } from "@codemirror/search";
|
|
16
|
-
import { eclipse, githubDark, githubLight, dracula, vscodeDark, xcodeDark, xcodeLight } from "@uiw/codemirror-themes-all";
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
|
-
__name: "config",
|
|
28
|
-
props: {
|
|
29
|
-
properties: {
|
|
30
|
-
type: Object,
|
|
31
|
-
default: () => {
|
|
32
|
-
return {};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
emits: ["fullScreen"],
|
|
37
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
38
|
-
const props = __props;
|
|
39
|
-
const emits = __emit;
|
|
40
|
-
const fullScreenDrawer = ref(false);
|
|
41
|
-
const editorStyle = ref({ theme: "default", fontSize: 14, searchOpen: false });
|
|
42
|
-
const cfCodemirrorRef = ref();
|
|
43
|
-
const editor = ref(null);
|
|
44
|
-
const codemirrorHeight = ref("400px");
|
|
45
|
-
onMounted(() => {
|
|
46
|
-
if (cfCodemirrorRef.value) {
|
|
47
|
-
const rect = cfCodemirrorRef.value.getBoundingClientRect();
|
|
48
|
-
if (rect.y || rect.y === 0) {
|
|
49
|
-
codemirrorHeight.value = window.innerHeight - rect.y - 100 + "px";
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
let cacheEditorStyleStr = useLocalStorage("editorStyle", { theme: "default", fontSize: 14 }).value;
|
|
53
|
-
if (cacheEditorStyleStr) {
|
|
54
|
-
editorStyle.value.theme = cacheEditorStyleStr.theme;
|
|
55
|
-
editorStyle.value.fontSize = cacheEditorStyleStr.fontSize;
|
|
56
|
-
}
|
|
57
|
-
loadEditor();
|
|
58
|
-
});
|
|
59
|
-
function showFullScreen() {
|
|
60
|
-
if (fullScreenDrawer.value === true) {
|
|
61
|
-
fullScreenDrawer.value = false;
|
|
62
|
-
emits("fullScreen", { withHeader: true, drawerWidth: "50%" });
|
|
63
|
-
} else {
|
|
64
|
-
fullScreenDrawer.value = true;
|
|
65
|
-
emits("fullScreen", { withHeader: false, drawerWidth: "100%" });
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
const jsDocCompletions = javaLanguage.data.of({});
|
|
69
|
-
function changeEditorState() {
|
|
70
|
-
useLocalStorage("editorStyle", editorStyle.value).value = editorStyle.value;
|
|
71
|
-
if (editor.value) {
|
|
72
|
-
if (editor.value) {
|
|
73
|
-
editor.value.destroy();
|
|
74
|
-
}
|
|
75
|
-
loadEditor();
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
function getEditorState() {
|
|
79
|
-
const mytheme = getTheme();
|
|
80
|
-
const baseTheme = EditorView.theme({
|
|
81
|
-
".cm-content, .cm-gutter": { minHeight: "200px" },
|
|
82
|
-
"&": {
|
|
83
|
-
height: codemirrorHeight.value,
|
|
84
|
-
maxHeight: codemirrorHeight.value,
|
|
85
|
-
fontSize: editorStyle.value.fontSize + "px"
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
return EditorState.create({
|
|
89
|
-
doc: props.properties.function,
|
|
90
|
-
extensions: [
|
|
91
|
-
EditorState.tabSize.of(16),
|
|
92
|
-
basicSetup,
|
|
93
|
-
java(),
|
|
94
|
-
jsDocCompletions,
|
|
95
|
-
mytheme,
|
|
96
|
-
baseTheme,
|
|
97
|
-
EditorView.updateListener.of(function(value) {
|
|
98
|
-
props.properties.function = value.state.doc.toString();
|
|
99
|
-
})
|
|
100
|
-
]
|
|
101
|
-
});
|
|
8
|
+
import { defineComponent as r, ref as n, onMounted as u, openBlock as i, createElementBlock as c, createVNode as s, withCtx as p, createElementVNode as d, unref as m, normalizeStyle as f, pushScopeId as v, popScopeId as h } from "vue";
|
|
9
|
+
import { useLocalStorage as b } from "@vueuse/core";
|
|
10
|
+
import g from "../../../common/components/node-base-config.vue.js";
|
|
11
|
+
import { Search as y, FullScreen as x } from "@element-plus/icons-vue";
|
|
12
|
+
import { EditorView as k, basicSetup as S } from "codemirror";
|
|
13
|
+
import { javaLanguage as w, java as z } from "@codemirror/lang-java";
|
|
14
|
+
import { EditorState as _ } from "@codemirror/state";
|
|
15
|
+
import { openSearchPanel as D } from "@codemirror/search";
|
|
16
|
+
import { eclipse as C, githubDark as L, githubLight as V, dracula as H, vscodeDark as O, xcodeDark as j, xcodeLight as B } from "@uiw/codemirror-themes-all";
|
|
17
|
+
const E = (e2) => (v("data-v-d55ab098"), e2 = e2(), h(), e2), G = { style: { height: "400px" } }, R = { style: { padding: "8px 16px", margin: "10px 0px", "background-color": "#f4f4f5" }, class: "pppp" }, U = E(() => d("span", { style: { color: "#909399", "font-size": "14px" } }, " public void execute(serviceContext,serviceNode){", -1)), W = { class: "editorTool" }, X = E(() => d("span", { style: { color: "gray" } }, " }", -1)), I = r({ __name: "config", props: { properties: { type: Object, default: () => ({}) } }, emits: ["fullScreen"], setup(r2, { expose: v2, emit: h2 }) {
|
|
18
|
+
const E2 = r2, I2 = h2, N = n(false), T = n({ theme: "default", fontSize: 14, searchOpen: false }), q = n(), A = n(null), F = n("400px");
|
|
19
|
+
function J() {
|
|
20
|
+
true === N.value ? (N.value = false, I2("fullScreen", { withHeader: true, drawerWidth: "50%" })) : (N.value = true, I2("fullScreen", { withHeader: false, drawerWidth: "100%" }));
|
|
21
|
+
}
|
|
22
|
+
u(() => {
|
|
23
|
+
if (q.value) {
|
|
24
|
+
const e3 = q.value.getBoundingClientRect();
|
|
25
|
+
(e3.y || 0 === e3.y) && (F.value = window.innerHeight - e3.y - 100 + "px");
|
|
102
26
|
}
|
|
103
|
-
|
|
104
|
-
|
|
27
|
+
let e2 = b("editorStyle", { theme: "default", fontSize: 14 }).value;
|
|
28
|
+
e2 && (T.value.theme = e2.theme, T.value.fontSize = e2.fontSize), Q();
|
|
29
|
+
});
|
|
30
|
+
const K = w.data.of({});
|
|
31
|
+
function M() {
|
|
32
|
+
b("editorStyle", T.value).value = T.value, A.value && (A.value && A.value.destroy(), Q());
|
|
33
|
+
}
|
|
34
|
+
function P() {
|
|
35
|
+
const e2 = function() {
|
|
36
|
+
switch (T.value.theme) {
|
|
105
37
|
case "xcodeLight":
|
|
106
|
-
return
|
|
38
|
+
return B;
|
|
107
39
|
case "xcodeDark":
|
|
108
|
-
return
|
|
40
|
+
return j;
|
|
109
41
|
case "vscodeDark":
|
|
110
|
-
return
|
|
42
|
+
return O;
|
|
111
43
|
case "dracula":
|
|
112
|
-
return
|
|
44
|
+
return H;
|
|
113
45
|
case "githubLight":
|
|
114
|
-
return
|
|
46
|
+
return V;
|
|
115
47
|
case "githubDark":
|
|
116
|
-
return
|
|
48
|
+
return L;
|
|
117
49
|
case "eclipse":
|
|
118
|
-
return
|
|
119
|
-
}
|
|
120
|
-
return EditorView.theme({});
|
|
121
|
-
}
|
|
122
|
-
function loadEditor() {
|
|
123
|
-
const state = getEditorState();
|
|
124
|
-
editor.value = new EditorView({
|
|
125
|
-
state,
|
|
126
|
-
parent: document.getElementById("cf-codemirror")
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
function openSearch() {
|
|
130
|
-
if (editor.value) {
|
|
131
|
-
editor.value.focus();
|
|
132
|
-
let newState = openSearchPanel(editor.value);
|
|
133
|
-
if (newState) {
|
|
134
|
-
editor.value.update([]);
|
|
135
|
-
}
|
|
50
|
+
return C;
|
|
136
51
|
}
|
|
52
|
+
return k.theme({});
|
|
53
|
+
}(), t2 = k.theme({ ".cm-content, .cm-gutter": { minHeight: "200px" }, "&": { height: F.value, maxHeight: F.value, fontSize: T.value.fontSize + "px" } });
|
|
54
|
+
return _.create({ doc: E2.properties.function, extensions: [_.tabSize.of(16), S, z(), K, e2, t2, k.updateListener.of(function(e3) {
|
|
55
|
+
E2.properties.function = e3.state.doc.toString();
|
|
56
|
+
})] });
|
|
57
|
+
}
|
|
58
|
+
function Q() {
|
|
59
|
+
const e2 = P();
|
|
60
|
+
A.value = new k({ state: e2, parent: document.getElementById("cf-codemirror") });
|
|
61
|
+
}
|
|
62
|
+
function Y() {
|
|
63
|
+
if (A.value) {
|
|
64
|
+
A.value.focus(), D(A.value) && A.value.update([]);
|
|
137
65
|
}
|
|
138
|
-
__expose({});
|
|
139
|
-
return (_ctx, _cache) => {
|
|
140
|
-
const _component_el_option = ElOption;
|
|
141
|
-
const _component_el_select = ElSelect;
|
|
142
|
-
const _component_el_tooltip = ElTooltip;
|
|
143
|
-
const _component_el_icon = ElIcon;
|
|
144
|
-
const _component_el_form = ElForm;
|
|
145
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
146
|
-
createVNode(_component_el_form, {
|
|
147
|
-
"label-width": "auto",
|
|
148
|
-
"label-position": "left"
|
|
149
|
-
}, {
|
|
150
|
-
default: withCtx(() => [
|
|
151
|
-
createVNode(_sfc_main$1, { properties: __props.properties }, null, 8, ["properties"]),
|
|
152
|
-
createElementVNode("div", _hoisted_2, [
|
|
153
|
-
_hoisted_3,
|
|
154
|
-
createElementVNode("span", _hoisted_4, [
|
|
155
|
-
createVNode(_component_el_tooltip, {
|
|
156
|
-
effect: "dark",
|
|
157
|
-
content: "切换主题",
|
|
158
|
-
placement: "top"
|
|
159
|
-
}, {
|
|
160
|
-
default: withCtx(() => [
|
|
161
|
-
createVNode(_component_el_select, {
|
|
162
|
-
class: "editorOption",
|
|
163
|
-
onChange: changeEditorState,
|
|
164
|
-
modelValue: editorStyle.value.theme,
|
|
165
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => editorStyle.value.theme = $event),
|
|
166
|
-
placeholder: "",
|
|
167
|
-
size: "small",
|
|
168
|
-
style: { "width": "120px" }
|
|
169
|
-
}, {
|
|
170
|
-
default: withCtx(() => [
|
|
171
|
-
createVNode(_component_el_option, {
|
|
172
|
-
label: "默认",
|
|
173
|
-
value: "default"
|
|
174
|
-
}),
|
|
175
|
-
createVNode(_component_el_option, {
|
|
176
|
-
label: "VScodeDark",
|
|
177
|
-
value: "vscodeDark"
|
|
178
|
-
}),
|
|
179
|
-
createVNode(_component_el_option, {
|
|
180
|
-
label: "Dracula",
|
|
181
|
-
value: "dracula"
|
|
182
|
-
}),
|
|
183
|
-
createVNode(_component_el_option, {
|
|
184
|
-
label: "GithubLight",
|
|
185
|
-
value: "githubLight"
|
|
186
|
-
}),
|
|
187
|
-
createVNode(_component_el_option, {
|
|
188
|
-
label: "GithubDark",
|
|
189
|
-
value: "githubDark"
|
|
190
|
-
}),
|
|
191
|
-
createVNode(_component_el_option, {
|
|
192
|
-
label: "Eclipse",
|
|
193
|
-
value: "eclipse"
|
|
194
|
-
}),
|
|
195
|
-
createVNode(_component_el_option, {
|
|
196
|
-
label: "XcodeLight",
|
|
197
|
-
value: "xcodeLight"
|
|
198
|
-
}),
|
|
199
|
-
createVNode(_component_el_option, {
|
|
200
|
-
label: "XcodeDark",
|
|
201
|
-
value: "xcodeDark"
|
|
202
|
-
})
|
|
203
|
-
]),
|
|
204
|
-
_: 1
|
|
205
|
-
}, 8, ["modelValue"])
|
|
206
|
-
]),
|
|
207
|
-
_: 1
|
|
208
|
-
}),
|
|
209
|
-
createVNode(_component_el_tooltip, {
|
|
210
|
-
effect: "dark",
|
|
211
|
-
content: "切换字体大小",
|
|
212
|
-
placement: "top"
|
|
213
|
-
}, {
|
|
214
|
-
default: withCtx(() => [
|
|
215
|
-
createVNode(_component_el_select, {
|
|
216
|
-
class: "editorOption",
|
|
217
|
-
modelValue: editorStyle.value.fontSize,
|
|
218
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => editorStyle.value.fontSize = $event),
|
|
219
|
-
placeholder: "",
|
|
220
|
-
onChange: changeEditorState,
|
|
221
|
-
size: "small",
|
|
222
|
-
style: { "width": "80px" }
|
|
223
|
-
}, {
|
|
224
|
-
default: withCtx(() => [
|
|
225
|
-
createVNode(_component_el_option, {
|
|
226
|
-
label: "12",
|
|
227
|
-
value: 12
|
|
228
|
-
}),
|
|
229
|
-
createVNode(_component_el_option, {
|
|
230
|
-
label: "14",
|
|
231
|
-
value: 14
|
|
232
|
-
}),
|
|
233
|
-
createVNode(_component_el_option, {
|
|
234
|
-
label: "16",
|
|
235
|
-
value: 16
|
|
236
|
-
}),
|
|
237
|
-
createVNode(_component_el_option, {
|
|
238
|
-
label: "18",
|
|
239
|
-
value: 18
|
|
240
|
-
}),
|
|
241
|
-
createVNode(_component_el_option, {
|
|
242
|
-
label: "20",
|
|
243
|
-
value: 20
|
|
244
|
-
}),
|
|
245
|
-
createVNode(_component_el_option, {
|
|
246
|
-
label: "22",
|
|
247
|
-
value: 22
|
|
248
|
-
}),
|
|
249
|
-
createVNode(_component_el_option, {
|
|
250
|
-
label: "24",
|
|
251
|
-
value: 24
|
|
252
|
-
}),
|
|
253
|
-
createVNode(_component_el_option, {
|
|
254
|
-
label: "26",
|
|
255
|
-
value: 26
|
|
256
|
-
}),
|
|
257
|
-
createVNode(_component_el_option, {
|
|
258
|
-
label: "28",
|
|
259
|
-
value: 28
|
|
260
|
-
})
|
|
261
|
-
]),
|
|
262
|
-
_: 1
|
|
263
|
-
}, 8, ["modelValue"])
|
|
264
|
-
]),
|
|
265
|
-
_: 1
|
|
266
|
-
})
|
|
267
|
-
]),
|
|
268
|
-
createVNode(_component_el_tooltip, {
|
|
269
|
-
effect: "dark",
|
|
270
|
-
content: "打开搜索",
|
|
271
|
-
placement: "top"
|
|
272
|
-
}, {
|
|
273
|
-
default: withCtx(() => [
|
|
274
|
-
createVNode(_component_el_icon, {
|
|
275
|
-
class: "editorOption",
|
|
276
|
-
onClick: openSearch
|
|
277
|
-
}, {
|
|
278
|
-
default: withCtx(() => [
|
|
279
|
-
createVNode(unref(Search))
|
|
280
|
-
]),
|
|
281
|
-
_: 1
|
|
282
|
-
})
|
|
283
|
-
]),
|
|
284
|
-
_: 1
|
|
285
|
-
}),
|
|
286
|
-
createVNode(_component_el_tooltip, {
|
|
287
|
-
effect: "dark",
|
|
288
|
-
content: fullScreenDrawer.value ? "退出全屏" : "全屏",
|
|
289
|
-
placement: "top"
|
|
290
|
-
}, {
|
|
291
|
-
default: withCtx(() => [
|
|
292
|
-
createVNode(_component_el_icon, {
|
|
293
|
-
style: { "cursor": "pointer" },
|
|
294
|
-
onClick: showFullScreen
|
|
295
|
-
}, {
|
|
296
|
-
default: withCtx(() => [
|
|
297
|
-
createVNode(unref(FullScreen))
|
|
298
|
-
]),
|
|
299
|
-
_: 1
|
|
300
|
-
})
|
|
301
|
-
]),
|
|
302
|
-
_: 1
|
|
303
|
-
}, 8, ["content"])
|
|
304
|
-
]),
|
|
305
|
-
createElementVNode("div", {
|
|
306
|
-
style: normalizeStyle([{ height: codemirrorHeight.value }, { "background-color": "'#fff'", "color": "'#333'", "outline": "'1px dotted #212121'" }]),
|
|
307
|
-
id: "cf-codemirror",
|
|
308
|
-
ref_key: "cfCodemirrorRef",
|
|
309
|
-
ref: cfCodemirrorRef
|
|
310
|
-
}, null, 4),
|
|
311
|
-
_hoisted_5
|
|
312
|
-
]),
|
|
313
|
-
_: 1
|
|
314
|
-
})
|
|
315
|
-
]);
|
|
316
|
-
};
|
|
317
66
|
}
|
|
318
|
-
})
|
|
67
|
+
return v2({}), (n2, u2) => {
|
|
68
|
+
const v3 = e, h3 = t, b2 = l, k2 = o, S2 = a;
|
|
69
|
+
return i(), c("div", G, [s(S2, { "label-width": "auto", "label-position": "left" }, { default: p(() => [s(g, { properties: r2.properties }, null, 8, ["properties"]), d("div", R, [U, d("span", W, [s(b2, { effect: "dark", content: "切换主题", placement: "top" }, { default: p(() => [s(h3, { class: "editorOption", onChange: M, modelValue: T.value.theme, "onUpdate:modelValue": u2[0] || (u2[0] = (e2) => T.value.theme = e2), placeholder: "", size: "small", style: { width: "120px" } }, { default: p(() => [s(v3, { label: "默认", value: "default" }), s(v3, { label: "VScodeDark", value: "vscodeDark" }), s(v3, { label: "Dracula", value: "dracula" }), s(v3, { label: "GithubLight", value: "githubLight" }), s(v3, { label: "GithubDark", value: "githubDark" }), s(v3, { label: "Eclipse", value: "eclipse" }), s(v3, { label: "XcodeLight", value: "xcodeLight" }), s(v3, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(b2, { effect: "dark", content: "切换字体大小", placement: "top" }, { default: p(() => [s(h3, { class: "editorOption", modelValue: T.value.fontSize, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => T.value.fontSize = e2), placeholder: "", onChange: M, size: "small", style: { width: "80px" } }, { default: p(() => [s(v3, { label: "12", value: 12 }), s(v3, { label: "14", value: 14 }), s(v3, { label: "16", value: 16 }), s(v3, { label: "18", value: 18 }), s(v3, { label: "20", value: 20 }), s(v3, { label: "22", value: 22 }), s(v3, { label: "24", value: 24 }), s(v3, { label: "26", value: 26 }), s(v3, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), s(b2, { effect: "dark", content: "打开搜索", placement: "top" }, { default: p(() => [s(k2, { class: "editorOption", onClick: Y }, { default: p(() => [s(m(y))]), _: 1 })]), _: 1 }), s(b2, { effect: "dark", content: N.value ? "退出全屏" : "全屏", placement: "top" }, { default: p(() => [s(k2, { style: { cursor: "pointer" }, onClick: J }, { default: p(() => [s(m(x))]), _: 1 })]), _: 1 }, 8, ["content"])]), d("div", { style: f([{ height: F.value }, { "background-color": "'#fff'", color: "'#333'", outline: "'1px dotted #212121'" }]), id: "cf-codemirror", ref_key: "cfCodemirrorRef", ref: q }, null, 4), X]), _: 1 })]);
|
|
70
|
+
};
|
|
71
|
+
} });
|
|
319
72
|
export {
|
|
320
|
-
|
|
73
|
+
I as default
|
|
321
74
|
};
|
|
@@ -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 t from "./index.vue.js";
|
|
7
|
+
const d = { type: "customFunction", view: class extends e {
|
|
8
|
+
constructor(e2) {
|
|
9
|
+
super(e2), this.isMounted = false, this.r = s(t, { 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 customFunction = {
|
|
32
|
-
type: "customFunction",
|
|
33
|
-
view: CustomFunctionNode,
|
|
34
|
-
model: CustomFunctionNodeModel,
|
|
35
|
-
options: {}
|
|
36
|
-
};
|
|
13
|
+
}, model: class extends o {
|
|
14
|
+
}, options: {} };
|
|
37
15
|
export {
|
|
38
|
-
|
|
16
|
+
d 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-4d28d77b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,44 +1,12 @@
|
|
|
1
|
-
import { ElDivider } from "element-plus/es";
|
|
1
|
+
import { ElDivider as e } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/divider/style/css";
|
|
4
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, normalizeStyle, createVNode, toDisplayString, pushScopeId, popScopeId } from "vue";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, null, -1));
|
|
11
|
-
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "serviceflow-nodeTitle" }, "自定义函数", -1));
|
|
12
|
-
const _hoisted_3 = { class: "serviceflow-nodeContent" };
|
|
13
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
-
__name: "index",
|
|
15
|
-
props: {
|
|
16
|
-
graphModel: Object,
|
|
17
|
-
properties: {
|
|
18
|
-
type: Object,
|
|
19
|
-
default: () => {
|
|
20
|
-
return {};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
emits: ["btnClick"],
|
|
25
|
-
setup(__props, { emit: __emit }) {
|
|
26
|
-
return (_ctx, _cache) => {
|
|
27
|
-
const _component_el_divider = ElDivider;
|
|
28
|
-
return openBlock(), createElementBlock("div", null, [
|
|
29
|
-
_hoisted_1,
|
|
30
|
-
createElementVNode("div", {
|
|
31
|
-
class: "serviceflow-nodeView",
|
|
32
|
-
style: normalizeStyle({ backgroundColor: __props.properties.backgroundColor })
|
|
33
|
-
}, [
|
|
34
|
-
_hoisted_2,
|
|
35
|
-
createVNode(_component_el_divider),
|
|
36
|
-
createElementVNode("div", _hoisted_3, toDisplayString(__props.properties.name), 1)
|
|
37
|
-
], 4)
|
|
38
|
-
]);
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
});
|
|
4
|
+
import { defineComponent as s, openBlock as t, createElementBlock as o, createElementVNode as i, normalizeStyle as r, createVNode as l, toDisplayString as p, pushScopeId as n, popScopeId as d } from "vue";
|
|
5
|
+
import c from "../../../../assets/icon/vardef-v.png.js";
|
|
6
|
+
const m = (e2) => (n("data-v-4d28d77b"), e2 = e2(), d(), e2), a = m(() => i("img", { src: c, style: { height: "32px", position: "fixed", left: "0px", top: "0px" } }, null, -1)), u = m(() => i("div", { class: "serviceflow-nodeTitle" }, "自定义函数", -1)), v = { class: "serviceflow-nodeContent" }, f = s({ __name: "index", props: { graphModel: Object, properties: { type: Object, default: () => ({}) } }, emits: ["btnClick"], setup: (s2, { emit: n2 }) => (n3, d2) => {
|
|
7
|
+
const c2 = e;
|
|
8
|
+
return t(), o("div", null, [a, i("div", { class: "serviceflow-nodeView", style: r({ backgroundColor: s2.properties.backgroundColor }) }, [u, l(c2), i("div", v, p(s2.properties.name), 1)], 4)]);
|
|
9
|
+
} });
|
|
42
10
|
export {
|
|
43
|
-
|
|
11
|
+
f as default
|
|
44
12
|
};
|
|
@@ -4,81 +4,42 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import e from "../../../flow/base/AbLogicNode.js";
|
|
8
|
+
import t from "../../../flow/base/AbLogicNodeModel.js";
|
|
9
9
|
import "../../../flow/base/AbLogicResizeNodeModel.js";
|
|
10
10
|
import "../../../flow/base/AbLogicResizeNode.js";
|
|
11
|
-
import { h, createApp } from "vue";
|
|
12
|
-
import
|
|
13
|
-
class
|
|
14
|
-
constructor(
|
|
15
|
-
super(
|
|
11
|
+
import { h as s, createApp as o } from "vue";
|
|
12
|
+
import i from "./index.vue.js";
|
|
13
|
+
const r = { type: "end", view: class extends e {
|
|
14
|
+
constructor(e2) {
|
|
15
|
+
super(e2);
|
|
16
16
|
__publicField(this, "customP1");
|
|
17
|
-
this.isMounted = false
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
text: props.model.inputData,
|
|
21
|
-
props: {
|
|
22
|
-
model: props.model,
|
|
23
|
-
graphModel: props.graphModel,
|
|
24
|
-
disabled: props.graphModel.editConfigModel.isSilentMode,
|
|
25
|
-
isSelected: props.model.isSelected,
|
|
26
|
-
isHovered: props.model.isHovered,
|
|
27
|
-
properties: props.model.getProperties()
|
|
28
|
-
},
|
|
29
|
-
onBtnClick: (i) => {
|
|
30
|
-
this.props.graphModel.eventCenter.emit(`node:select-click`, {
|
|
31
|
-
props
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
this.app = createApp({
|
|
36
|
-
render: () => this.r
|
|
37
|
-
});
|
|
17
|
+
this.isMounted = false, this.r = s(i, { properties: {}, text: e2.model.inputData, props: { model: e2.model, graphModel: e2.graphModel, disabled: e2.graphModel.editConfigModel.isSilentMode, isSelected: e2.model.isSelected, isHovered: e2.model.isHovered, properties: e2.model.getProperties() }, onBtnClick: (t2) => {
|
|
18
|
+
this.props.graphModel.eventCenter.emit("node:select-click", { props: e2 });
|
|
19
|
+
} }), this.app = o({ render: () => this.r });
|
|
38
20
|
}
|
|
39
|
-
setHtml(
|
|
40
|
-
if (
|
|
41
|
-
this.isMounted = true;
|
|
42
|
-
const node = document.createElement("div");
|
|
43
|
-
rootEl.appendChild(node);
|
|
44
|
-
this.app.mount(node);
|
|
45
|
-
} else {
|
|
21
|
+
setHtml(e2) {
|
|
22
|
+
if (this.isMounted)
|
|
46
23
|
this.r.component.props.properties = this.props.model.getProperties();
|
|
24
|
+
else {
|
|
25
|
+
this.isMounted = true;
|
|
26
|
+
const t2 = document.createElement("div");
|
|
27
|
+
e2.appendChild(t2), this.app.mount(t2);
|
|
47
28
|
}
|
|
48
29
|
}
|
|
49
|
-
}
|
|
50
|
-
class EndNodeModel extends AbLogicNodeModel {
|
|
30
|
+
}, model: class extends t {
|
|
51
31
|
setAttributes() {
|
|
52
|
-
super.setAttributes();
|
|
53
|
-
this.width = 140;
|
|
54
|
-
this.height = 64;
|
|
55
|
-
this.text.editable = false;
|
|
56
|
-
this.inputData = this.text.value;
|
|
32
|
+
super.setAttributes(), this.width = 140, this.height = 64, this.text.editable = false, this.inputData = this.text.value;
|
|
57
33
|
}
|
|
58
34
|
getOutlineStyle() {
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
style.height = 64;
|
|
62
|
-
return style;
|
|
35
|
+
const e2 = super.getOutlineStyle();
|
|
36
|
+
return e2.width = 140, e2.height = 64, e2;
|
|
63
37
|
}
|
|
64
|
-
initNodeData(
|
|
65
|
-
super.initNodeData(
|
|
66
|
-
|
|
67
|
-
message: "结束节点不能主动链接别的节点",
|
|
68
|
-
validate: () => {
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
this.targetRules = [];
|
|
73
|
-
this.sourceRules.push(EndNodeAsSource);
|
|
38
|
+
initNodeData(e2) {
|
|
39
|
+
super.initNodeData(e2);
|
|
40
|
+
this.targetRules = [], this.sourceRules.push({ message: "结束节点不能主动链接别的节点", validate: () => false });
|
|
74
41
|
}
|
|
75
|
-
}
|
|
76
|
-
const endNode = {
|
|
77
|
-
type: "end",
|
|
78
|
-
view: EndNode,
|
|
79
|
-
model: EndNodeModel,
|
|
80
|
-
options: {}
|
|
81
|
-
};
|
|
42
|
+
}, options: {} };
|
|
82
43
|
export {
|
|
83
|
-
|
|
44
|
+
r as default
|
|
84
45
|
};
|
|
@@ -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-669b618f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,31 +1,6 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, pushScopeId, popScopeId, createElementVNode } from "vue";
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const _hoisted_1 = { style: { "padding": "10px" } };
|
|
5
|
-
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "node-content" }, [
|
|
6
|
-
/* @__PURE__ */ createElementVNode("div", { style: { "padding": "8px 27px", "display": "flex", "align-items": "center" } }, [
|
|
7
|
-
/* @__PURE__ */ createElementVNode("img", {
|
|
8
|
-
src: _imports_0,
|
|
9
|
-
style: { "height": "28px" }
|
|
10
|
-
}),
|
|
11
|
-
/* @__PURE__ */ createElementVNode("span", { class: "content" }, "结束")
|
|
12
|
-
])
|
|
13
|
-
], -1));
|
|
14
|
-
const _hoisted_3 = [
|
|
15
|
-
_hoisted_2
|
|
16
|
-
];
|
|
17
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
-
__name: "index",
|
|
19
|
-
props: {
|
|
20
|
-
graphModel: Object,
|
|
21
|
-
properties: Object
|
|
22
|
-
},
|
|
23
|
-
setup(__props) {
|
|
24
|
-
return (_ctx, _cache) => {
|
|
25
|
-
return openBlock(), createElementBlock("div", _hoisted_1, _hoisted_3);
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
});
|
|
1
|
+
import { defineComponent as e, openBlock as s, createElementBlock as t, pushScopeId as p, popScopeId as i, createElementVNode as n } from "vue";
|
|
2
|
+
import a from "../../../../assets/icon/end.svg.js";
|
|
3
|
+
const d = { style: { padding: "10px" } }, o = [((e2) => (p("data-v-669b618f"), e2 = e2(), i(), e2))(() => n("div", { class: "node-content" }, [n("div", { style: { padding: "8px 27px", display: "flex", "align-items": "center" } }, [n("img", { src: a, style: { height: "28px" } }), n("span", { class: "content" }, "结束")])], -1))], r = e({ __name: "index", props: { graphModel: Object, properties: Object }, setup: (e2) => (e3, p2) => (s(), t("div", d, o)) });
|
|
29
4
|
export {
|
|
30
|
-
|
|
5
|
+
r as default
|
|
31
6
|
};
|