@kp-ui/lowcode 2.15.0-alpha.16 → 2.15.0-alpha.17
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/package.json +1 -1
- package/src/components/FormRender/useFormContext.js +97 -86
- package/src/components/form-designer/form-widget/field-widget/button-list-widget.vue.js +2 -2
- package/src/components/form-designer/form-widget/field-widget/button-list-widget.vue2.js +21 -20
- package/src/components/form-designer/form-widget/field-widget/button-widget.vue.js +2 -2
- package/src/components/form-designer/form-widget/field-widget/button-widget.vue2.js +11 -11
- package/src/components/form-designer/form-widget/field-widget/useField.js +12 -11
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +3 -3
- package/src/components/form-render/container-items/grid-sub-form-widget.vue.js +2 -2
- package/src/components/form-render/container-items/grid-sub-form-widget.vue2.js +103 -92
- package/stats.html +1 -1
- package/styles/style.css +1 -1
package/package.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useFormValidation as
|
|
3
|
-
import { useFormDataProcessor as
|
|
4
|
-
import { insertCustomCssToHead as ue, insertGlobalFunctionsToHtml as
|
|
5
|
-
import { set as
|
|
6
|
-
import { message as
|
|
7
|
-
import { useI18n as
|
|
8
|
-
import { getUuidKey as
|
|
9
|
-
import { useComRef as
|
|
10
|
-
import
|
|
1
|
+
import { ref as i, provide as f, computed as m, watchEffect as le, onMounted as fe, nextTick as ce } from "vue";
|
|
2
|
+
import { useFormValidation as W } from "./formValidation.js";
|
|
3
|
+
import { useFormDataProcessor as me } from "./useFormDataProcessor.js";
|
|
4
|
+
import { insertCustomCssToHead as ue, insertGlobalFunctionsToHtml as de, getContainerWidgetByName as H, cloneFormConfigWithoutEventHandler as ve, generateId as ge } from "../../utils/util.js";
|
|
5
|
+
import { set as Fe, cloneDeep as pe } from "lodash-es";
|
|
6
|
+
import { message as I } from "ant-design-vue";
|
|
7
|
+
import { useI18n as Ce } from "../../utils/i18n.js";
|
|
8
|
+
import { getUuidKey as he } from "@kp-ui/tool";
|
|
9
|
+
import { useComRef as De, useRef as Re, useExecFunction as we } from "tmgc2-share";
|
|
10
|
+
import xe from "../form-render/dynamic-dialog.vue.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { useEmitter as be } from "../../utils/useEmitter.js";
|
|
13
|
-
import { useAppRef as
|
|
14
|
-
const $e = ({ renderForm: p, props:
|
|
15
|
-
const { formJson: C, formData:
|
|
16
|
-
f("refList", F), f("getFormConfig", () =>
|
|
17
|
-
const
|
|
13
|
+
import { useAppRef as Le } from "../form-designer/useAppRef.js";
|
|
14
|
+
const $e = ({ renderForm: p, props: a }) => {
|
|
15
|
+
const { formJson: C, formData: J } = a, v = De(xe), { i18nt: h } = Ce(), [D, T] = Re(!1), g = be(), c = i(), s = i({}), R = i(!1), F = i(/* @__PURE__ */ new Map()), w = i({}), j = i();
|
|
16
|
+
f("refList", F), f("getFormConfig", () => o.value), f("formData", s), f("getReadMode", () => D.value), f("designState", !1);
|
|
17
|
+
const x = i(), { executeFunction: U, context: b, execHttpFunction: L } = we(), { getFormRef: M, getWidgetRef: $, registerToRefList: B } = Le(F, !0), o = m(() => {
|
|
18
18
|
var e;
|
|
19
19
|
return ((e = c.value) == null ? void 0 : e.formConfig) || {};
|
|
20
20
|
});
|
|
21
|
-
f("formConfig",
|
|
22
|
-
const
|
|
21
|
+
f("formConfig", o);
|
|
22
|
+
const u = m(() => {
|
|
23
23
|
var e;
|
|
24
24
|
return ((e = c.value) == null ? void 0 : e.widgetList) || [];
|
|
25
|
-
}), _ =
|
|
25
|
+
}), _ = m(() => {
|
|
26
26
|
var e;
|
|
27
|
-
return ((e =
|
|
27
|
+
return ((e = o.value) == null ? void 0 : e.labelPosition) || "horizontal";
|
|
28
28
|
}), z = (e) => {
|
|
29
|
-
|
|
30
|
-
}, A =
|
|
29
|
+
j.value = e;
|
|
30
|
+
}, A = m(() => {
|
|
31
31
|
var e;
|
|
32
|
-
return (e =
|
|
33
|
-
}), G =
|
|
32
|
+
return (e = o.value) != null && e.labelWidth ? `${o.value.labelWidth}px` : "80px";
|
|
33
|
+
}), G = m(() => {
|
|
34
34
|
var e;
|
|
35
|
-
return ((e =
|
|
36
|
-
}),
|
|
37
|
-
let d =
|
|
38
|
-
|
|
39
|
-
d =
|
|
35
|
+
return ((e = o.value) == null ? void 0 : e.customClass) || "";
|
|
36
|
+
}), y = me();
|
|
37
|
+
let d = W(p, u.value || []);
|
|
38
|
+
le(() => {
|
|
39
|
+
d = W(p, u.value || []);
|
|
40
40
|
});
|
|
41
|
-
const
|
|
42
|
-
var
|
|
43
|
-
c.value = e || { widgetList: [], formConfig: {} },
|
|
41
|
+
const O = async (e) => {
|
|
42
|
+
var t;
|
|
43
|
+
c.value = e || { widgetList: [], formConfig: {} }, s.value = {}, K(((t = c.value) == null ? void 0 : t.widgetList) || []), await ce(), ne();
|
|
44
44
|
}, K = (e) => {
|
|
45
45
|
if ((e == null ? void 0 : e.length) > 0) {
|
|
46
|
-
const
|
|
47
|
-
Object.assign(
|
|
46
|
+
const t = y.buildFormModel(e, J);
|
|
47
|
+
Object.assign(s.value, t);
|
|
48
48
|
}
|
|
49
|
-
},
|
|
50
|
-
e && Object.keys(e).forEach((
|
|
51
|
-
|
|
49
|
+
}, P = () => s.value || {}, S = (e) => {
|
|
50
|
+
e && Object.keys(e).forEach((t) => {
|
|
51
|
+
s.value.hasOwnProperty(t) && (s.value[t] = e[t]);
|
|
52
52
|
});
|
|
53
53
|
}, k = (e) => {
|
|
54
54
|
R.value = e;
|
|
@@ -57,103 +57,114 @@ const $e = ({ renderForm: p, props: i }) => {
|
|
|
57
57
|
}, Q = () => {
|
|
58
58
|
d.clearValidate();
|
|
59
59
|
}, X = (e) => {
|
|
60
|
-
|
|
60
|
+
x.value = e;
|
|
61
61
|
}, Y = () => {
|
|
62
|
-
if (!
|
|
62
|
+
if (!a.parentForm)
|
|
63
63
|
return M();
|
|
64
|
-
let e =
|
|
64
|
+
let e = a.parentForm;
|
|
65
65
|
for (; e.parentForm; )
|
|
66
66
|
e = e.parentForm;
|
|
67
67
|
return e;
|
|
68
|
-
}, Z = (e,
|
|
69
|
-
var
|
|
70
|
-
const r = Y(), l =
|
|
68
|
+
}, Z = (e, t = {}, n = {}) => {
|
|
69
|
+
var E, V;
|
|
70
|
+
const r = Y(), l = H((r == null ? void 0 : r.widgetList) || [], e) || H(u.value || [], e);
|
|
71
71
|
if (l === null) {
|
|
72
|
-
|
|
72
|
+
I.error(h("render.hint.refNotFound") + e);
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
75
|
if (!e || l.type !== "vf-dialog") {
|
|
76
|
-
|
|
76
|
+
I.error(h("render.hint.refNotFound") + e);
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
const
|
|
80
|
-
widgetList:
|
|
81
|
-
formConfig:
|
|
82
|
-
},
|
|
79
|
+
const ae = {
|
|
80
|
+
widgetList: pe((l == null ? void 0 : l.widgetList) || []),
|
|
81
|
+
formConfig: ve(((E = r == null ? void 0 : r.formConfig) == null ? void 0 : E.value) || {})
|
|
82
|
+
}, ie = he();
|
|
83
83
|
w.value = {
|
|
84
84
|
options: l.options,
|
|
85
|
-
formJson:
|
|
86
|
-
formData: { ...
|
|
85
|
+
formJson: ae,
|
|
86
|
+
formData: { ...t },
|
|
87
87
|
optionData: r.optionData,
|
|
88
88
|
globalDsv: r.globalDsv,
|
|
89
|
-
parentFormRef:
|
|
90
|
-
extraData:
|
|
91
|
-
wrapperId:
|
|
92
|
-
vfCtx: { ...
|
|
93
|
-
}, (
|
|
94
|
-
}, N = () =>
|
|
89
|
+
parentFormRef: b.value,
|
|
90
|
+
extraData: n,
|
|
91
|
+
wrapperId: ie,
|
|
92
|
+
vfCtx: { ...t }
|
|
93
|
+
}, (V = v.value) == null || V.show();
|
|
94
|
+
}, N = () => a.parentForm, ee = () => {
|
|
95
95
|
var e;
|
|
96
96
|
return (e = v.value) == null ? void 0 : e.getFormRef();
|
|
97
|
-
},
|
|
98
|
-
g.off$("fieldChange"), g.on$("fieldChange", ({ fieldName: e, value:
|
|
99
|
-
|
|
97
|
+
}, te = () => {
|
|
98
|
+
g.off$("fieldChange"), g.on$("fieldChange", ({ fieldName: e, value: t }) => {
|
|
99
|
+
Fe(s.value, e, t);
|
|
100
100
|
});
|
|
101
|
-
},
|
|
102
|
-
var
|
|
103
|
-
const e =
|
|
104
|
-
if ((
|
|
105
|
-
const
|
|
101
|
+
}, oe = async () => {
|
|
102
|
+
var t;
|
|
103
|
+
const e = o.value.serveList;
|
|
104
|
+
if ((t = e.vformDetail.http) != null && t.url) {
|
|
105
|
+
const n = await L(
|
|
106
106
|
{
|
|
107
107
|
...e.vformDetail
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
...
|
|
110
|
+
...a.vfCtx
|
|
111
111
|
}
|
|
112
112
|
);
|
|
113
|
-
return console.log("res: ",
|
|
113
|
+
return console.log("res: ", n), n;
|
|
114
|
+
}
|
|
115
|
+
}, re = async () => {
|
|
116
|
+
var n;
|
|
117
|
+
const e = await P(), t = o.value.serveList;
|
|
118
|
+
if ((n = t.vformDetail.http) != null && n.url) {
|
|
119
|
+
const r = await L(t.vformUpdate, {
|
|
120
|
+
data: e,
|
|
121
|
+
vfCtx: a.vfCtx
|
|
122
|
+
});
|
|
123
|
+
return console.log("res: ", r), r;
|
|
114
124
|
}
|
|
115
125
|
}, ne = () => {
|
|
116
|
-
var e,
|
|
117
|
-
(e =
|
|
118
|
-
functionBody: (
|
|
126
|
+
var e, t;
|
|
127
|
+
(e = o.value) != null && e.onFormMounted && U({
|
|
128
|
+
functionBody: (t = o.value) == null ? void 0 : t.onFormMounted
|
|
119
129
|
});
|
|
120
|
-
},
|
|
121
|
-
const e = "vfRender" +
|
|
122
|
-
|
|
130
|
+
}, se = () => {
|
|
131
|
+
const e = "vfRender" + ge(), { cssCode: t, functions: n } = o.value;
|
|
132
|
+
t && ue(t, e || ""), n && de(n, e || "");
|
|
123
133
|
};
|
|
124
|
-
return
|
|
125
|
-
C &&
|
|
134
|
+
return fe(() => {
|
|
135
|
+
C && O(C), te(), se();
|
|
126
136
|
}), {
|
|
127
|
-
vfCtx:
|
|
137
|
+
vfCtx: a.vfCtx,
|
|
128
138
|
getParentFormRef: N,
|
|
129
139
|
getFormRef: M,
|
|
130
140
|
getWidgetRef: $,
|
|
131
141
|
registerToRefList: B,
|
|
132
|
-
dialogOrDrawerRef:
|
|
142
|
+
dialogOrDrawerRef: x,
|
|
133
143
|
setDialogOrDrawerRef: X,
|
|
134
144
|
showDialog: Z,
|
|
135
|
-
setFormData:
|
|
136
|
-
setReadMode:
|
|
137
|
-
setFormJson:
|
|
145
|
+
setFormData: S,
|
|
146
|
+
setReadMode: T,
|
|
147
|
+
setFormJson: O,
|
|
138
148
|
setLoading: k,
|
|
139
|
-
onFormDetail:
|
|
149
|
+
onFormDetail: oe,
|
|
150
|
+
onFormUpdate: re,
|
|
140
151
|
emitter: g,
|
|
141
|
-
context:
|
|
142
|
-
getFormData:
|
|
152
|
+
context: b,
|
|
153
|
+
getFormData: P,
|
|
143
154
|
getChildFormRef: ee,
|
|
144
155
|
// 状态
|
|
145
156
|
formJsonObj: c,
|
|
146
|
-
formDataModel:
|
|
157
|
+
formDataModel: s,
|
|
147
158
|
isLoading: R,
|
|
148
159
|
readModeFlag: D,
|
|
149
160
|
// 引用
|
|
150
161
|
widgetRefList: F,
|
|
151
162
|
// 处理器
|
|
152
|
-
formDataProcessor:
|
|
163
|
+
formDataProcessor: y,
|
|
153
164
|
formValidator: d,
|
|
154
165
|
// 计算属性
|
|
155
|
-
formConfig:
|
|
156
|
-
widgetList:
|
|
166
|
+
formConfig: o,
|
|
167
|
+
widgetList: u,
|
|
157
168
|
labelPosition: _,
|
|
158
169
|
labelWidth: A,
|
|
159
170
|
customClass: G,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./button-list-widget.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-cf651b67"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ComponentNameEnum as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useField as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { defineComponent as c, computed as a, createBlock as f, createCommentVNode as l, unref as t, openBlock as x, normalizeProps as b, mergeProps as g, withCtx as C, createVNode as L } from "vue";
|
|
2
|
+
import { ComponentNameEnum as _, WidgetTypeEnum as E } from "../../../../constants/WidgetTypeEnum.js";
|
|
3
|
+
import F from "./static-content-wrapper.vue.js";
|
|
4
|
+
import w from "../../../public/ActionButtonListRender.vue.js";
|
|
5
|
+
import { useField as k } from "./useField.js";
|
|
6
|
+
import { useExecFunction as N } from "tmgc2-share";
|
|
7
|
+
const V = /* @__PURE__ */ c({
|
|
8
|
+
name: E.buttonList,
|
|
9
|
+
componentName: _.FieldWidget,
|
|
9
10
|
__name: "button-list-widget",
|
|
10
11
|
props: {
|
|
11
12
|
widget: {},
|
|
@@ -18,22 +19,22 @@ const I = /* @__PURE__ */ u({
|
|
|
18
19
|
subFormRowId: {},
|
|
19
20
|
subFormColIndex: {}
|
|
20
21
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const o =
|
|
23
|
-
return
|
|
24
|
-
buttonList:
|
|
25
|
-
...
|
|
26
|
-
}), (
|
|
27
|
-
default:
|
|
28
|
-
|
|
22
|
+
setup(n, { expose: i }) {
|
|
23
|
+
const o = n, s = a(() => e.options.buttonList || []), { fieldEditor: r, field: e, designState: d, handleHidden: m, defineExposed: p } = k(o), { context: u } = N();
|
|
24
|
+
return i({
|
|
25
|
+
buttonList: s,
|
|
26
|
+
...p
|
|
27
|
+
}), (S, W) => t(m) ? l("", !0) : (x(), f(F, b(g({ key: 0 }, o)), {
|
|
28
|
+
default: C(() => [
|
|
29
|
+
L(w, {
|
|
29
30
|
ref_key: "fieldEditor",
|
|
30
|
-
ref:
|
|
31
|
+
ref: r,
|
|
31
32
|
options: t(e).options,
|
|
32
|
-
designState: t(
|
|
33
|
+
designState: t(d),
|
|
33
34
|
buttonList: t(e).options.buttonList || [],
|
|
34
35
|
customClass: t(e).options.customClass || [],
|
|
35
36
|
flex: t(e).options.flex,
|
|
36
|
-
ctx: t(
|
|
37
|
+
ctx: t(u)
|
|
37
38
|
}, null, 8, ["options", "designState", "buttonList", "customClass", "flex", "ctx"])
|
|
38
39
|
]),
|
|
39
40
|
_: 1
|
|
@@ -41,5 +42,5 @@ const I = /* @__PURE__ */ u({
|
|
|
41
42
|
}
|
|
42
43
|
});
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
V as default
|
|
45
46
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./button-widget.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const _ = /* @__PURE__ */ o(t, [["__scopeId", "data-v-06b0b085"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, resolveComponent as x, createBlock as i, createCommentVNode as s, unref as e, openBlock as
|
|
1
|
+
import { defineComponent as _, resolveComponent as x, createBlock as i, createCommentVNode as s, unref as e, openBlock as a, normalizeProps as y, mergeProps as k, withCtx as r, createVNode as w, normalizeClass as E, createTextVNode as F, toDisplayString as z } from "vue";
|
|
2
2
|
import N from "./static-content-wrapper.vue.js";
|
|
3
3
|
import { SvgIcon as W } from "tmgc2-share";
|
|
4
4
|
import { ComponentNameEnum as B, WidgetTypeEnum as I } from "../../../../constants/WidgetTypeEnum.js";
|
|
@@ -21,7 +21,7 @@ const H = /* @__PURE__ */ _({
|
|
|
21
21
|
setup(d, { expose: p }) {
|
|
22
22
|
const t = d, {
|
|
23
23
|
loading: l,
|
|
24
|
-
|
|
24
|
+
asyncExecuteFunction: c,
|
|
25
25
|
fieldEditor: m,
|
|
26
26
|
field: o,
|
|
27
27
|
size: u,
|
|
@@ -29,8 +29,8 @@ const H = /* @__PURE__ */ _({
|
|
|
29
29
|
handleHidden: g,
|
|
30
30
|
handleDisabled: b,
|
|
31
31
|
defineExposed: h
|
|
32
|
-
} = S(t), n = () => {
|
|
33
|
-
f || o.options.onClick && c({
|
|
32
|
+
} = S(t), n = async () => {
|
|
33
|
+
f || o.options.onClick && await c({
|
|
34
34
|
functionBody: o.options.onClick || ""
|
|
35
35
|
});
|
|
36
36
|
};
|
|
@@ -39,14 +39,14 @@ const H = /* @__PURE__ */ _({
|
|
|
39
39
|
handleButtonWidgetClick: n
|
|
40
40
|
}), (P, V) => {
|
|
41
41
|
const C = x("a-button");
|
|
42
|
-
return e(g) ? s("", !0) : (
|
|
43
|
-
default:
|
|
44
|
-
|
|
42
|
+
return e(g) ? s("", !0) : (a(), i(N, y(k({ key: 0 }, t)), {
|
|
43
|
+
default: r(() => [
|
|
44
|
+
w(C, {
|
|
45
45
|
ref_key: "fieldEditor",
|
|
46
46
|
ref: m,
|
|
47
47
|
type: e(o).options.type,
|
|
48
48
|
size: e(u),
|
|
49
|
-
class:
|
|
49
|
+
class: E([e(o).options.label === "" ? "hide-text-span" : "", "tpf-button"]),
|
|
50
50
|
shape: e(o).options.shape,
|
|
51
51
|
danger: e(o).options.danger,
|
|
52
52
|
ghost: e(o).options.ghost,
|
|
@@ -54,12 +54,12 @@ const H = /* @__PURE__ */ _({
|
|
|
54
54
|
loading: e(l),
|
|
55
55
|
onClick: n
|
|
56
56
|
}, {
|
|
57
|
-
default:
|
|
58
|
-
e(o).options.icon ? (
|
|
57
|
+
default: r(() => [
|
|
58
|
+
e(o).options.icon ? (a(), i(e(W), {
|
|
59
59
|
key: 0,
|
|
60
60
|
"icon-class": e(o).options.icon
|
|
61
61
|
}, null, 8, ["icon-class"])) : s("", !0),
|
|
62
|
-
|
|
62
|
+
F(" " + z(e(o).options.label), 1)
|
|
63
63
|
]),
|
|
64
64
|
_: 1
|
|
65
65
|
}, 8, ["type", "size", "class", "shape", "danger", "ghost", "disabled", "loading"])
|
|
@@ -7,12 +7,12 @@ import { useEmitter as $e } from "../../../../utils/useEmitter.js";
|
|
|
7
7
|
import { useAppRef as je } from "../../useAppRef.js";
|
|
8
8
|
import { useExecFunction as Ge } from "tmgc2-share";
|
|
9
9
|
function et(t) {
|
|
10
|
-
const K = c("getFormConfig", () => ({})), y = c("formData", f({})), Q = c("getReadMode", () => !1), k = c("isSubFormField", !1), D = c("getSubFormName", () => ""), o = c("designState", !1), { registerToRefList: X, getWidgetRef: Y, getFormRef: B, unregisterFromRefList: Z } = je(), { executeFunction: u, asyncExecuteFunction:
|
|
10
|
+
const K = c("getFormConfig", () => ({})), y = c("formData", f({})), Q = c("getReadMode", () => !1), k = c("isSubFormField", !1), D = c("getSubFormName", () => ""), o = c("designState", !1), { registerToRefList: X, getWidgetRef: Y, getFormRef: B, unregisterFromRefList: Z } = je(), { executeFunction: u, asyncExecuteFunction: g } = Ge(), { i18nt: M, i18n2t: _ } = Je(), { field: d } = t, v = f(null), A = f(null), R = f(!1), w = f(!1), l = f([]), O = f({}), H = f({}), p = f(null), h = ze(), { dispatch: E } = $e(), q = s(() => K()), ee = s(() => {
|
|
11
11
|
var e;
|
|
12
12
|
return (e = d == null ? void 0 : d.options) != null && e.size ? d.options.size : q.value.size || "middle";
|
|
13
13
|
}), b = s(() => D ? D() : ""), a = s({
|
|
14
14
|
get() {
|
|
15
|
-
return Le(y.value,
|
|
15
|
+
return Le(y.value, m.value);
|
|
16
16
|
},
|
|
17
17
|
set(e) {
|
|
18
18
|
x(e);
|
|
@@ -54,17 +54,17 @@ function et(t) {
|
|
|
54
54
|
return e.forEach((r, Ne) => {
|
|
55
55
|
r === n && (i = Ne);
|
|
56
56
|
}), i;
|
|
57
|
-
},
|
|
57
|
+
}, m = s(() => k && !o ? b.value + "." + t.subFormRowIndex + "." + t.field.options.name : t.field.options.name);
|
|
58
58
|
function oe() {
|
|
59
59
|
o || t.field.options.onCreated && j(async () => {
|
|
60
|
-
await
|
|
60
|
+
await g({
|
|
61
61
|
functionBody: t.field.options.onCreated
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
function le() {
|
|
66
66
|
o || t.field.options.onMounted && j(async () => {
|
|
67
|
-
await
|
|
67
|
+
await g({
|
|
68
68
|
functionBody: t.field.options.onMounted
|
|
69
69
|
});
|
|
70
70
|
});
|
|
@@ -135,8 +135,8 @@ function et(t) {
|
|
|
135
135
|
t.subFormRowIndex
|
|
136
136
|
]);
|
|
137
137
|
}, x = (e) => {
|
|
138
|
-
o || (E("VFormRender", "fieldValidation", [
|
|
139
|
-
fieldName:
|
|
138
|
+
o || (E("VFormRender", "fieldValidation", [m.value]), E("VFormRender", "fieldChange", {
|
|
139
|
+
fieldName: m.value,
|
|
140
140
|
value: e,
|
|
141
141
|
oldValue: $(a.value),
|
|
142
142
|
field: d
|
|
@@ -170,11 +170,11 @@ function et(t) {
|
|
|
170
170
|
});
|
|
171
171
|
}, me = async () => {
|
|
172
172
|
if (!o && t.field.options.onClick)
|
|
173
|
-
return await
|
|
173
|
+
return await g({
|
|
174
174
|
functionBody: t.field.options.onClick
|
|
175
175
|
});
|
|
176
176
|
}, ve = async () => {
|
|
177
|
-
o || V.value || d.options.onClickIcon && await
|
|
177
|
+
o || V.value || d.options.onClickIcon && await g({
|
|
178
178
|
functionBody: d.options.onClickIcon
|
|
179
179
|
});
|
|
180
180
|
}, F = () => v.value, T = (e) => (typeof e == "string" && (e = JSON.parse(e)), We(e) ? e.map((i, r) => ({
|
|
@@ -209,7 +209,7 @@ function et(t) {
|
|
|
209
209
|
}, xe = (e) => {
|
|
210
210
|
t.field.options.required = e, C(), !o && !e && P();
|
|
211
211
|
}, P = () => {
|
|
212
|
-
o || B().clearValidate(
|
|
212
|
+
o || B().clearValidate(m.value);
|
|
213
213
|
}, Ie = () => B().vfCtx, ke = (e) => {
|
|
214
214
|
t.field.options.label = e;
|
|
215
215
|
}, W = () => {
|
|
@@ -275,6 +275,7 @@ function et(t) {
|
|
|
275
275
|
focus: W
|
|
276
276
|
};
|
|
277
277
|
return {
|
|
278
|
+
asyncExecuteFunction: g,
|
|
278
279
|
executeFunction: u,
|
|
279
280
|
options: J,
|
|
280
281
|
customClass: He,
|
|
@@ -302,7 +303,7 @@ function et(t) {
|
|
|
302
303
|
handleHidden: ne,
|
|
303
304
|
handleDisabled: V,
|
|
304
305
|
findInArray: ie,
|
|
305
|
-
getPropName:
|
|
306
|
+
getPropName: m,
|
|
306
307
|
refreshDefaultValue: ae,
|
|
307
308
|
clearFieldRules: N,
|
|
308
309
|
buildFieldRules: C,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./data-table-tableColumns-editor.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ff49f09d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./grid-sub-form-widget.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4483eccd"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|