@fecp/designer 5.6.23 → 5.6.26
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/es/designer/package.json.mjs +1 -1
- package/es/designer/src/components/DocumentParam.vue.mjs +1 -1
- package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
- package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
- package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
- package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer/src/packages/importantDataChange/index.vue.mjs +1 -1
- package/es/designer/src/packages/prod/index.vue.mjs +1 -1
- package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
- package/es/designer.css +799 -799
- package/es/node_modules/element-plus/es/components/container/index.mjs +1 -1
- package/es/node_modules/element-plus/es/components/form/index.mjs +1 -1
- package/es/node_modules/element-plus/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +7 -7
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +2 -4
- package/es/packages/vue/src/components/forms/form/Form.vue2.mjs +1370 -0
- package/es/packages/vue/src/components/forms/form/FormAnchorNav.vue2.mjs +113 -0
- package/es/packages/vue/src/components/forms/form/RightAnchorNav.vue2.mjs +128 -0
- package/es/packages/vue/src/components/forms/form/index.mjs +2 -2
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +2 -1
- package/es/packages/vue/src/components/layout/layoutCard/LayoutCard.vue.mjs +4 -4
- package/es/packages/vue/src/components/table/Table.vue.mjs +2 -4
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +0 -2
- package/es/packages/vue/src/components/table/index.mjs +2 -2
- package/es/packages/vue/src/composables/usePageEvents.mjs +0 -2
- package/es/packages/vue/src/utils/eventFlowParser.mjs +9 -6
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/DocumentParam.vue.js +1 -1
- package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
- package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
- package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
- package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
- package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
- package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
- package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer/src/packages/importantDataChange/index.vue.js +1 -1
- package/lib/designer/src/packages/prod/index.vue.js +1 -1
- package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
- package/lib/designer.css +799 -799
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +10 -10
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +2 -4
- package/lib/packages/vue/src/components/forms/form/Form.vue2.js +1370 -0
- package/lib/packages/vue/src/components/forms/form/FormAnchorNav.vue2.js +113 -0
- package/lib/packages/vue/src/components/forms/form/RightAnchorNav.vue2.js +128 -0
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +2 -1
- package/lib/packages/vue/src/components/table/Table.vue.js +2 -4
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +0 -2
- package/lib/packages/vue/src/composables/usePageEvents.js +0 -2
- package/lib/packages/vue/src/utils/eventFlowParser.js +9 -6
- package/package.json +1 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { ref, watch, createElementBlock, createCommentVNode, openBlock, createElementVNode, Fragment, renderList, withModifiers, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const _hoisted_1 = { class: "fec-form-links" };
|
|
5
|
+
const _hoisted_2 = ["href", "onClick"];
|
|
6
|
+
const _hoisted_3 = { class: "fec-form-link-content" };
|
|
7
|
+
const _hoisted_4 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "tab-count"
|
|
10
|
+
};
|
|
11
|
+
const _sfc_main = {
|
|
12
|
+
__name: "FormAnchorNav",
|
|
13
|
+
props: {
|
|
14
|
+
links: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: () => []
|
|
17
|
+
},
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: [String, Number],
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
fecFormRef: {
|
|
23
|
+
type: Object
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["change", "update:modelValue"],
|
|
27
|
+
setup(__props, { emit: __emit }) {
|
|
28
|
+
var _a;
|
|
29
|
+
const props = __props;
|
|
30
|
+
const formAnchorRef = ref();
|
|
31
|
+
const emit = __emit;
|
|
32
|
+
watch(
|
|
33
|
+
() => props.links,
|
|
34
|
+
(newLinks) => {
|
|
35
|
+
if (newLinks.length && !props.modelValue) {
|
|
36
|
+
emit("update:modelValue", newLinks[0].id);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{ immediate: true }
|
|
40
|
+
);
|
|
41
|
+
let isClickScrolling = false;
|
|
42
|
+
function handleClick(e, link) {
|
|
43
|
+
var _a2;
|
|
44
|
+
e.preventDefault();
|
|
45
|
+
emit("update:modelValue", link.id);
|
|
46
|
+
emit("change", link);
|
|
47
|
+
const fecForm = (_a2 = formAnchorRef.value) == null ? void 0 : _a2.closest(".fec-form");
|
|
48
|
+
const element = fecForm == null ? void 0 : fecForm.querySelector(`#comp_${link.id}`);
|
|
49
|
+
if (element) {
|
|
50
|
+
isClickScrolling = true;
|
|
51
|
+
element.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
52
|
+
waitScrollEnd(() => {
|
|
53
|
+
isClickScrolling = false;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const scrollWrap = (_a = props.fecFormRef) == null ? void 0 : _a.$el.querySelector(".el-scrollbar__wrap");
|
|
58
|
+
scrollWrap == null ? void 0 : scrollWrap.addEventListener("scroll", onScroll);
|
|
59
|
+
function waitScrollEnd(callback) {
|
|
60
|
+
let timer = null;
|
|
61
|
+
if (!scrollWrap) return;
|
|
62
|
+
const handler = () => {
|
|
63
|
+
clearTimeout(timer);
|
|
64
|
+
timer = setTimeout(() => {
|
|
65
|
+
scrollWrap.removeEventListener("scroll", handler);
|
|
66
|
+
callback();
|
|
67
|
+
}, 150);
|
|
68
|
+
};
|
|
69
|
+
scrollWrap.addEventListener("scroll", handler);
|
|
70
|
+
}
|
|
71
|
+
function onScroll() {
|
|
72
|
+
if (isClickScrolling) return;
|
|
73
|
+
const top = scrollWrap.scrollTop;
|
|
74
|
+
let current = null;
|
|
75
|
+
for (const item of props.links) {
|
|
76
|
+
const el = document.getElementById(String(item.id));
|
|
77
|
+
if (!el) continue;
|
|
78
|
+
if (el.offsetTop <= top) current = item;
|
|
79
|
+
}
|
|
80
|
+
if (current) {
|
|
81
|
+
emit("update:modelValue", current.id);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return (_ctx, _cache) => {
|
|
85
|
+
return __props.links.length ? (openBlock(), createElementBlock("div", {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "fec-form-nav",
|
|
88
|
+
ref_key: "formAnchorRef",
|
|
89
|
+
ref: formAnchorRef
|
|
90
|
+
}, [
|
|
91
|
+
createElementVNode("div", _hoisted_1, [
|
|
92
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.links, (link) => {
|
|
93
|
+
return openBlock(), createElementBlock("a", {
|
|
94
|
+
key: link.id,
|
|
95
|
+
href: `#${link.id}`,
|
|
96
|
+
class: normalizeClass(["fec-form-link-item", { "is-active": __props.modelValue == link.id }]),
|
|
97
|
+
onClick: withModifiers(($event) => handleClick($event, link), ["prevent"])
|
|
98
|
+
}, [
|
|
99
|
+
createElementVNode("span", _hoisted_3, [
|
|
100
|
+
createTextVNode(toDisplayString(link.title) + " ", 1),
|
|
101
|
+
link.count ? (openBlock(), createElementBlock("span", _hoisted_4, "(" + toDisplayString(link.count) + ")", 1)) : createCommentVNode("", true)
|
|
102
|
+
])
|
|
103
|
+
], 10, _hoisted_2);
|
|
104
|
+
}), 128))
|
|
105
|
+
])
|
|
106
|
+
], 512)) : createCommentVNode("", true);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
const FormAnchorNav = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1a0c9e5c"]]);
|
|
111
|
+
export {
|
|
112
|
+
FormAnchorNav as default
|
|
113
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import "../../../../../../node_modules/element-plus/es/index.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { ref, watch, onMounted, createElementBlock, openBlock, createElementVNode, createVNode, createTextVNode, withCtx, Fragment, renderList, createBlock, withModifiers, createCommentVNode, toDisplayString } from "vue";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
|
+
import { ElAnchor, ElAnchorLink } from "../../../../../../node_modules/element-plus/es/components/anchor/index.mjs";
|
|
9
|
+
const _hoisted_1 = { class: "anchor-nav" };
|
|
10
|
+
const _hoisted_2 = { key: 0 };
|
|
11
|
+
const _sfc_main = {
|
|
12
|
+
__name: "RightAnchorNav",
|
|
13
|
+
props: {
|
|
14
|
+
links: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: () => []
|
|
17
|
+
},
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: [String, Number],
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
fecFormRef: {
|
|
23
|
+
type: Object
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["change", "update:modelValue"],
|
|
27
|
+
setup(__props, { emit: __emit }) {
|
|
28
|
+
var _a;
|
|
29
|
+
const props = __props;
|
|
30
|
+
const anchorRef = ref();
|
|
31
|
+
const emit = __emit;
|
|
32
|
+
watch(
|
|
33
|
+
() => props.links,
|
|
34
|
+
(newLinks) => {
|
|
35
|
+
if (newLinks.length && !props.modelValue) {
|
|
36
|
+
emit("update:modelValue", newLinks[0].id);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{ immediate: true }
|
|
40
|
+
);
|
|
41
|
+
let isClickScrolling = false;
|
|
42
|
+
function handleClick(e, link) {
|
|
43
|
+
var _a2, _b;
|
|
44
|
+
e.preventDefault();
|
|
45
|
+
emit("update:modelValue", link.id);
|
|
46
|
+
emit("change", link);
|
|
47
|
+
const fecForm = (_b = (_a2 = anchorRef.value) == null ? void 0 : _a2.$el) == null ? void 0 : _b.closest(".fec-form");
|
|
48
|
+
const element = fecForm == null ? void 0 : fecForm.querySelector(`#comp_${link.id}`);
|
|
49
|
+
if (element) {
|
|
50
|
+
isClickScrolling = true;
|
|
51
|
+
element.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
52
|
+
waitScrollEnd(() => {
|
|
53
|
+
isClickScrolling = false;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const scrollWrap = (_a = props.fecFormRef) == null ? void 0 : _a.$el.querySelector(".el-scrollbar__wrap");
|
|
58
|
+
scrollWrap == null ? void 0 : scrollWrap.addEventListener("scroll", onScroll);
|
|
59
|
+
function waitScrollEnd(callback) {
|
|
60
|
+
let timer = null;
|
|
61
|
+
if (!scrollWrap) return;
|
|
62
|
+
const handler = () => {
|
|
63
|
+
clearTimeout(timer);
|
|
64
|
+
timer = setTimeout(() => {
|
|
65
|
+
scrollWrap.removeEventListener("scroll", handler);
|
|
66
|
+
callback();
|
|
67
|
+
}, 150);
|
|
68
|
+
};
|
|
69
|
+
scrollWrap.addEventListener("scroll", handler);
|
|
70
|
+
}
|
|
71
|
+
function onScroll() {
|
|
72
|
+
var _a2;
|
|
73
|
+
if (isClickScrolling) return;
|
|
74
|
+
const top = scrollWrap.scrollTop;
|
|
75
|
+
let current = null;
|
|
76
|
+
for (const item of props.links) {
|
|
77
|
+
const el = document.getElementById(String(item.id));
|
|
78
|
+
if (!el) continue;
|
|
79
|
+
if (el.offsetTop - 70 <= top) current = item;
|
|
80
|
+
}
|
|
81
|
+
if (current) {
|
|
82
|
+
emit("update:modelValue", current.id);
|
|
83
|
+
(_a2 = anchorRef.value) == null ? void 0 : _a2.scrollTo(`#${current.id}`);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
onMounted(() => {
|
|
87
|
+
var _a2;
|
|
88
|
+
(_a2 = anchorRef.value) == null ? void 0 : _a2.scrollTo(`#${props.modelValue}`);
|
|
89
|
+
});
|
|
90
|
+
return (_ctx, _cache) => {
|
|
91
|
+
const _component_el_anchor_link = ElAnchorLink;
|
|
92
|
+
const _component_el_anchor = ElAnchor;
|
|
93
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
94
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "anchor-title" }, [
|
|
95
|
+
createElementVNode("div", { class: "label-line" }),
|
|
96
|
+
createTextVNode(" 导航 ")
|
|
97
|
+
], -1)),
|
|
98
|
+
createVNode(_component_el_anchor, {
|
|
99
|
+
type: "underline",
|
|
100
|
+
offset: 70,
|
|
101
|
+
ref_key: "anchorRef",
|
|
102
|
+
ref: anchorRef
|
|
103
|
+
}, {
|
|
104
|
+
default: withCtx(() => [
|
|
105
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.links, (link) => {
|
|
106
|
+
return openBlock(), createBlock(_component_el_anchor_link, {
|
|
107
|
+
key: link.id,
|
|
108
|
+
href: `#${link.id}`,
|
|
109
|
+
onClick: withModifiers(($event) => handleClick($event, link), ["prevent"])
|
|
110
|
+
}, {
|
|
111
|
+
default: withCtx(() => [
|
|
112
|
+
createTextVNode(toDisplayString(link.title) + " ", 1),
|
|
113
|
+
link.count ? (openBlock(), createElementBlock("span", _hoisted_2, "(" + toDisplayString(link.count) + ")", 1)) : createCommentVNode("", true)
|
|
114
|
+
]),
|
|
115
|
+
_: 2
|
|
116
|
+
}, 1032, ["href", "onClick"]);
|
|
117
|
+
}), 128))
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 512)
|
|
121
|
+
]);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
const RightAnchorNav = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-298a5455"]]);
|
|
126
|
+
export {
|
|
127
|
+
RightAnchorNav as default
|
|
128
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _Form from "./Form.vue.mjs";
|
|
2
2
|
import install from "../../../utils/install.mjs";
|
|
3
|
-
const Form = install.withInstall("Form",
|
|
3
|
+
const Form = install.withInstall("Form", _Form);
|
|
4
4
|
export {
|
|
5
5
|
Form,
|
|
6
6
|
Form as default
|
|
@@ -160,6 +160,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
160
160
|
fields: fieldsList,
|
|
161
161
|
instance: {
|
|
162
162
|
instance: {
|
|
163
|
+
...instance,
|
|
163
164
|
proxy: formCtx
|
|
164
165
|
}
|
|
165
166
|
},
|
|
@@ -265,7 +266,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
265
266
|
};
|
|
266
267
|
}
|
|
267
268
|
});
|
|
268
|
-
const _Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
269
|
+
const _Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-632db1b4"]]);
|
|
269
270
|
export {
|
|
270
271
|
_Text as default
|
|
271
272
|
};
|
|
@@ -6,8 +6,8 @@ import { ArrowRight as arrow_right_default } from "../../../../../../node_module
|
|
|
6
6
|
import { customDialog } from "../../dialog/customDialog/index.mjs";
|
|
7
7
|
import api from "../../../api/index.mjs";
|
|
8
8
|
import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import _Form from "../../forms/form/Form.vue.mjs";
|
|
10
|
+
import _Table from "../../table/Table.vue.mjs";
|
|
11
11
|
import { cloneDeep, loadComponentByPath } from "../../../utils/common.mjs";
|
|
12
12
|
/* empty css */
|
|
13
13
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
@@ -78,10 +78,10 @@ const _sfc_main = {
|
|
|
78
78
|
}).then((res) => {
|
|
79
79
|
const data = JSON.parse(res);
|
|
80
80
|
if (data.formMode) {
|
|
81
|
-
currentComponent.value =
|
|
81
|
+
currentComponent.value = _Form;
|
|
82
82
|
currentParams.value.modelValue = cloneDeep(props.morePageParams);
|
|
83
83
|
} else {
|
|
84
|
-
currentComponent.value =
|
|
84
|
+
currentComponent.value = _Table;
|
|
85
85
|
currentParams.value.initHiddenData = cloneDeep(props.morePageParams);
|
|
86
86
|
currentParams.value.hasPagination = true;
|
|
87
87
|
}
|
|
@@ -23,8 +23,6 @@ import { isEqual } from "../../utils/common.mjs";
|
|
|
23
23
|
/* empty css */
|
|
24
24
|
import "../../utils/formulajs/functionCore.mjs";
|
|
25
25
|
import { useEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
|
|
26
|
-
import "./index.mjs";
|
|
27
|
-
import "../forms/form/index.mjs";
|
|
28
26
|
/* empty css */
|
|
29
27
|
/* empty css */
|
|
30
28
|
/* empty css */
|
|
@@ -1028,7 +1026,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1028
1026
|
};
|
|
1029
1027
|
}
|
|
1030
1028
|
});
|
|
1031
|
-
const
|
|
1029
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-28ff595c"]]);
|
|
1032
1030
|
export {
|
|
1033
|
-
|
|
1031
|
+
_Table as default
|
|
1034
1032
|
};
|
|
@@ -13,8 +13,6 @@ import { removeEmptyValues } from "../../utils/common.mjs";
|
|
|
13
13
|
/* empty css */
|
|
14
14
|
import "../../utils/formulajs/functionCore.mjs";
|
|
15
15
|
import { useEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
|
|
16
|
-
import "./index.mjs";
|
|
17
|
-
import "../forms/form/index.mjs";
|
|
18
16
|
/* empty css */
|
|
19
17
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
20
18
|
/* empty css */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _Table from "./Table.vue.mjs";
|
|
2
2
|
import install from "../../utils/install.mjs";
|
|
3
|
-
const Table = install.withInstall("Table",
|
|
3
|
+
const Table = install.withInstall("Table", _Table);
|
|
4
4
|
export {
|
|
5
5
|
Table,
|
|
6
6
|
Table as default
|
|
@@ -7,8 +7,6 @@ import { onUnmounted, onBeforeUnmount, onMounted } from "vue";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
import "../utils/formulajs/functionCore.mjs";
|
|
9
9
|
import { useEventFlow } from "../utils/eventFlow/eventFlowHandler.mjs";
|
|
10
|
-
import "../components/table/index.mjs";
|
|
11
|
-
import "../components/forms/form/index.mjs";
|
|
12
10
|
/* empty css */
|
|
13
11
|
/* empty css */
|
|
14
12
|
/* empty css */
|
|
@@ -291,19 +291,22 @@ class EventFlowParser {
|
|
|
291
291
|
* 执行动作
|
|
292
292
|
*/
|
|
293
293
|
async executeAction(node) {
|
|
294
|
-
var _a, _b, _c, _d
|
|
294
|
+
var _a, _b, _c, _d;
|
|
295
295
|
const handler = this.actionHandlers[node.actionType];
|
|
296
296
|
if (!handler) {
|
|
297
297
|
throw new Error(`未找到动作处理器: ${node.actionType}`);
|
|
298
298
|
}
|
|
299
|
+
const rawInstance = (_a = this.options) == null ? void 0 : _a.instance;
|
|
300
|
+
const isWrapped = rawInstance && !rawInstance.appContext && rawInstance.instance;
|
|
301
|
+
const instance = isWrapped ? rawInstance.instance : rawInstance;
|
|
299
302
|
const context = {
|
|
300
303
|
parser: this,
|
|
301
|
-
instance
|
|
302
|
-
ctx: (
|
|
303
|
-
customActions: (
|
|
304
|
-
localConfig: (
|
|
304
|
+
instance,
|
|
305
|
+
ctx: (rawInstance == null ? void 0 : rawInstance.proxy) ?? (instance == null ? void 0 : instance.proxy),
|
|
306
|
+
customActions: (_b = this.options) == null ? void 0 : _b.customActions,
|
|
307
|
+
localConfig: (_c = this.options) == null ? void 0 : _c.localConfig,
|
|
305
308
|
components: this.components,
|
|
306
|
-
metadata: (
|
|
309
|
+
metadata: (_d = this.options) == null ? void 0 : _d.metadata
|
|
307
310
|
};
|
|
308
311
|
return await handler(node, this.data, this.fields, context);
|
|
309
312
|
}
|
|
@@ -11,7 +11,7 @@ require("../../../node_modules/element-plus/es/index.js");
|
|
|
11
11
|
;/* empty css */
|
|
12
12
|
const Vue = require("vue");
|
|
13
13
|
const index$2 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
14
|
-
const ValueSelector = require("./ValueSelector.
|
|
14
|
+
const ValueSelector = require("./ValueSelector.vue2.js");
|
|
15
15
|
const index = require("../api/index.js");
|
|
16
16
|
;/* empty css */
|
|
17
17
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
@@ -6,7 +6,7 @@ require("../../../node_modules/element-plus/es/index.js");
|
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const Vue = require("vue");
|
|
8
8
|
const index$1 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
9
|
-
const ValueSelector = require("./ValueSelector.
|
|
9
|
+
const ValueSelector = require("./ValueSelector.vue2.js");
|
|
10
10
|
;/* empty css */
|
|
11
11
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
12
12
|
const index = require("../../../node_modules/element-plus/es/components/button/index.js");
|
|
@@ -18,7 +18,7 @@ const index$2 = require("../../../../node_modules/@element-plus/icons-vue/dist/i
|
|
|
18
18
|
const common = require("../../packages/utils/common.js");
|
|
19
19
|
const index$5 = require("../../packages/form/aside/index.js");
|
|
20
20
|
const index$6 = require("../../packages/table/aside/index.js");
|
|
21
|
-
const ValueSelector = require("../../components/ValueSelector.
|
|
21
|
+
const ValueSelector = require("../../components/ValueSelector.vue2.js");
|
|
22
22
|
;/* empty css */
|
|
23
23
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
24
24
|
const index = require("../../../../node_modules/element-plus/es/components/dialog/index.js");
|
|
@@ -16,7 +16,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js");
|
|
|
16
16
|
require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
|
|
17
17
|
const Vue = require("vue");
|
|
18
18
|
const index = require("../../../../node_modules/@vueuse/core/dist/index.js");
|
|
19
|
-
const ValueSelector = require("../../components/ValueSelector.
|
|
19
|
+
const ValueSelector = require("../../components/ValueSelector.vue2.js");
|
|
20
20
|
const index$1 = require("../../api/index.js");
|
|
21
21
|
const common = require("../utils/common.js");
|
|
22
22
|
const datasource = require("../utils/datasource.js");
|
|
@@ -32,7 +32,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js
|
|
|
32
32
|
;/* empty css */
|
|
33
33
|
;/* empty css */
|
|
34
34
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
35
|
-
;/* empty css
|
|
35
|
+
;/* empty css */
|
|
36
36
|
const index$8 = require("../../api/index.js");
|
|
37
37
|
;/* empty css */
|
|
38
38
|
;/* empty css */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index.
|
|
3
|
+
const index = require("./index.vue.js");
|
|
4
4
|
const Vue = require("vue");
|
|
5
5
|
function useDialogDialog() {
|
|
6
6
|
const dialogDialogVisible = Vue.ref(false);
|
|
@@ -87,7 +87,7 @@ const widgets = require("../table/property/widgets.vue.js");
|
|
|
87
87
|
require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
|
|
88
88
|
;/* empty css */
|
|
89
89
|
;/* empty css */
|
|
90
|
-
;/* empty css
|
|
90
|
+
;/* empty css */
|
|
91
91
|
;/* empty css */
|
|
92
92
|
;/* empty css */
|
|
93
93
|
;/* empty css */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index.
|
|
3
|
+
const index = require("./index.vue.js");
|
|
4
4
|
const Vue = require("vue");
|
|
5
5
|
function useDialogGlobalDialog() {
|
|
6
6
|
const dialogGlobalDialogVisible = Vue.ref(false);
|
|
@@ -6,7 +6,7 @@ require("../../../../../../node_modules/element-plus/es/index.js");
|
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const Vue = require("vue");
|
|
8
8
|
const RiskSchemeSelector = require("../../../../components/RiskSchemeSelector.vue2.js");
|
|
9
|
-
const ValueSelector = require("../../../../components/ValueSelector.
|
|
9
|
+
const ValueSelector = require("../../../../components/ValueSelector.vue2.js");
|
|
10
10
|
const ParamsConfig = require("../../../../components/ParamsConfig.vue2.js");
|
|
11
11
|
const index = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
|
|
12
12
|
const index$1 = require("../../../../../../node_modules/element-plus/es/components/switch/index.js");
|
|
@@ -13,7 +13,7 @@ require("../../../../../node_modules/element-plus/es/index.js");
|
|
|
13
13
|
const Vue = require("vue");
|
|
14
14
|
const common = require("../../utils/common.js");
|
|
15
15
|
const eventBus = require("../../utils/eventBus.js");
|
|
16
|
-
const ValueSelector = require("../../../components/ValueSelector.
|
|
16
|
+
const ValueSelector = require("../../../components/ValueSelector.vue2.js");
|
|
17
17
|
const index = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
|
|
18
18
|
const index$1 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
|
|
19
19
|
const index$2 = require("../../../../../node_modules/element-plus/es/components/input/index.js");
|
|
@@ -20,7 +20,7 @@ const EventConfigButton = require("../../../components/EventConfigButton.vue.js"
|
|
|
20
20
|
const Vue = require("vue");
|
|
21
21
|
const common = require("../../utils/common.js");
|
|
22
22
|
require("../../utils/eventBus.js");
|
|
23
|
-
const ValueSelector = require("../../../components/ValueSelector.
|
|
23
|
+
const ValueSelector = require("../../../components/ValueSelector.vue2.js");
|
|
24
24
|
const index = require("../../../api/index.js");
|
|
25
25
|
const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
|
|
26
26
|
;/* empty css */
|
|
@@ -14,7 +14,7 @@ const Vue = require("vue");
|
|
|
14
14
|
const common = require("../../utils/common.js");
|
|
15
15
|
const TemplateSelector = require("../../../components/TemplateSelector.vue2.js");
|
|
16
16
|
const eventBus = require("../../utils/eventBus.js");
|
|
17
|
-
const ValueSelector = require("../../../components/ValueSelector.
|
|
17
|
+
const ValueSelector = require("../../../components/ValueSelector.vue2.js");
|
|
18
18
|
const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
|
|
19
19
|
const index = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
|
|
20
20
|
const index$1 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
|
|
@@ -54,8 +54,8 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
|
|
|
54
54
|
require("../../../components/TemplateSelector.vue.js");
|
|
55
55
|
require("../../table/default.js");
|
|
56
56
|
;/* empty css */
|
|
57
|
-
;/* empty css
|
|
58
|
-
;/* empty css
|
|
57
|
+
;/* empty css */
|
|
58
|
+
;/* empty css */
|
|
59
59
|
require("../../../store/index.js");
|
|
60
60
|
;/* empty css */
|
|
61
61
|
const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
|
|
@@ -7,7 +7,7 @@ require("../../../../node_modules/element-plus/es/index.js");
|
|
|
7
7
|
;/* empty css */
|
|
8
8
|
;/* empty css */
|
|
9
9
|
const Vue = require("vue");
|
|
10
|
-
const ValueSelector = require("../../components/ValueSelector.
|
|
10
|
+
const ValueSelector = require("../../components/ValueSelector.vue2.js");
|
|
11
11
|
const common = require("../utils/common.js");
|
|
12
12
|
;/* empty css */
|
|
13
13
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
@@ -16,7 +16,7 @@ require("../../../../node_modules/element-plus/es/index.js");
|
|
|
16
16
|
const Vue = require("vue");
|
|
17
17
|
const index$6 = require("../../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
18
18
|
const common = require("../utils/common.js");
|
|
19
|
-
const ValueSelector = require("../../components/ValueSelector.
|
|
19
|
+
const ValueSelector = require("../../components/ValueSelector.vue2.js");
|
|
20
20
|
const index = require("../../api/index.js");
|
|
21
21
|
;/* empty css */
|
|
22
22
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|