hlrender 0.0.285 → 0.0.286
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/{affix-widget-9dd2f18a.js → affix-widget-c4065b27.js} +2 -2
- package/{alert-widget-921569b3.js → alert-widget-ff10c60b.js} +2 -2
- package/{auto-complete-widget-1c99a442.js → auto-complete-widget-4c883842.js} +1 -1
- package/{avatar-widget-baaa192a.js → avatar-widget-3b22d828.js} +2 -2
- package/{backtop-widget-e893cb46.js → backtop-widget-4c3c2891.js} +2 -2
- package/{badge-widget-d7b30c7b.js → badge-widget-904a3f45.js} +2 -2
- package/{button-widget-258b858b.js → button-widget-f9c69dd8.js} +2 -2
- package/{card-widget-7834b56c.js → card-widget-3d2b5c3c.js} +1 -1
- package/{carousel-widget-70e74809.js → carousel-widget-9962f004.js} +1 -1
- package/{collapse-widget-7e9f891d.js → collapse-widget-1091233f.js} +1 -1
- package/{cont-cell-widget-1b8b0610.js → cont-cell-widget-d1558236.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-74822add.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-02ed20f1.js} +1 -1
- package/{cont-widget-0a12b275.js → cont-widget-98e0b55e.js} +1 -1
- package/{countdown-widget-89d43ee5.js → countdown-widget-0cd4caf2.js} +2 -2
- package/{default-slot-widget-2e60c137.js → default-slot-widget-74a70443.js} +2 -2
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-96416f0b.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-b6ecb71d.js} +1 -1
- package/{descriptions-widget-183d9328.js → descriptions-widget-920a7e7b.js} +1 -1
- package/{dialog-widget-49ba3eb6.js → dialog-widget-21c79556.js} +2 -2
- package/{divider-widget-791254e6.js → divider-widget-7e03bd52.js} +2 -2
- package/{drag-wrapper-8a051680.js → drag-wrapper-36615ce0.js} +1 -1
- package/{drawer-widget-acff88ad.js → drawer-widget-2df5c04d.js} +2 -2
- package/{dropdown-widget-facf4316.js → dropdown-widget-6087546a.js} +1 -1
- package/{empty-widget-e1545ea4.js → empty-widget-2acf4fd8.js} +2 -2
- package/{feedback-widget-e503eda6.js → feedback-widget-0ea3c175.js} +2 -2
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-70418efb.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-89da1996.js} +1 -1
- package/{file-upload-widget-615a5aa8.js → file-upload-widget-530ead59.js} +1 -1
- package/{form-widget-735e253c.js → form-widget-d5140a0c.js} +85 -85
- package/{grid-col-widget-ba4b447d.js → grid-col-widget-f6e1818f.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-197100d8.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-d585a977.js} +1 -1
- package/{grid-widget-2a85dbf6.js → grid-widget-5b394a6e.js} +1 -1
- package/{hcard-widget-cc6f3bea.js → hcard-widget-4546722a.js} +1 -1
- package/iframe-widget-1b917f36.js +140 -0
- package/{input-tag-widget-4a9d92a4.js → input-tag-widget-69867f07.js} +1 -1
- package/{input-widget-c80d6544.js → input-widget-d98570bb.js} +1 -1
- package/{link-widget-9640c9a4.js → link-widget-f61630fc.js} +2 -2
- package/{ltable-col-widget-ede02b06.js → ltable-col-widget-6a055b7f.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-8bcbf3ba.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-98d08c6d.js} +1 -1
- package/{ltable-widget-66b014d0.js → ltable-widget-973c487a.js} +1 -1
- package/{mention-widget-66f58046.js → mention-widget-fa7ce36f.js} +1 -1
- package/{multirow-widget-2f13b26f.js → multirow-widget-1ab52ccd.js} +1 -1
- package/package.json +1 -1
- package/{progress-widget-ee4ada7c.js → progress-widget-dbfc8213.js} +1 -1
- package/{range-widget-4656be10.js → range-widget-d37c84ca.js} +1 -1
- package/render.es.js +17 -17
- package/render.style.css +1 -1
- package/render.umd.js +214 -214
- package/{result-widget-cb3615d2.js → result-widget-467a1a87.js} +1 -1
- package/{skeleton-widget-60d531c4.js → skeleton-widget-c2eedd00.js} +2 -2
- package/{space-widget-dbc69750.js → space-widget-94bd590b.js} +1 -1
- package/{splitter-widget-13da4f80.js → splitter-widget-0bb69636.js} +1 -1
- package/{statistic-widget-bad99fbc.js → statistic-widget-ca42b1d0.js} +2 -2
- package/{tab-pane-widget-bd1fc6c3.js → tab-pane-widget-36660de8.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-f8e8a2f6.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-739df3b2.js} +1 -1
- package/{table-col-widget-0606a8eb.js → table-col-widget-c78eb5f8.js} +2 -2
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-9377aecb.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-7471bca3.js} +1 -1
- package/{table-widget-25dd7382.js → table-widget-bc45d4a8.js} +2 -2
- package/{tabs-widget-b653db33.js → tabs-widget-9efd7958.js} +1 -1
- package/{tag-widget-6990d2a4.js → tag-widget-097ab070.js} +2 -2
- package/{text-widget-036f96dd.js → text-widget-aebddadf.js} +2 -2
- package/{timeline-widget-c3c01fdb.js → timeline-widget-ef5890cf.js} +1 -1
- package/{tmpl-widget-eb2ca989.js → tmpl-widget-236ceda4.js} +1 -1
- package/{tooltip-widget-913a8fd6.js → tooltip-widget-fd7f446f.js} +1 -1
- package/{transfer-widget-5e6339ad.js → transfer-widget-94741e91.js} +1 -1
- package/{wrapper-widget-d205c036.js → wrapper-widget-94ca963a.js} +1 -1
- package/iframe-widget-f13fddc9.js +0 -127
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { ref as Z, reactive as J, onMounted as he, nextTick as Be, defineComponent as
|
|
1
|
+
import { ref as Z, reactive as J, onMounted as he, nextTick as Be, defineComponent as ae, resolveDirective as Me, withDirectives as se, openBlock as ee, createElementBlock as Ne, createElementVNode as _e, unref as b, vShow as Pe, computed as Q, inject as Re, watch as ke, resolveComponent as Ie, createBlock as re, mergeProps as X, withCtx as ce, createVNode as ue, toHandlers as Te, withModifiers as ze } from "vue";
|
|
2
2
|
import { I as qe } from "./widget-base-df734ada.js";
|
|
3
|
-
import { D as He } from "./drag-wrapper-
|
|
3
|
+
import { D as He } from "./drag-wrapper-36615ce0.js";
|
|
4
4
|
import { _ as Ge } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b5783744.js";
|
|
5
5
|
import { w as te, f as fe, b as z, a as $, i as Ke, j as Ue, d as Je } from "./expression-11846fd1.js";
|
|
6
6
|
import { u as Qe } from "./icon-4e8380f7.js";
|
|
7
7
|
import { u as Xe, a as Ye } from "./multirow-29ad4d31.js";
|
|
8
|
-
import { a as Ze, c as et, b as tt, z as Y, F as me, n as be, d as ve, G as pe, v as
|
|
9
|
-
import { b as ot, c as ge, $ as
|
|
8
|
+
import { a as Ze, c as et, b as tt, z as Y, F as me, n as be, d as ve, G as pe, v as at, e as nt } from "./enum-type-52a6b12a.js";
|
|
9
|
+
import { b as ot, c as ge, $ as lt, B as it } from "./baseImp-9b58e733.js";
|
|
10
10
|
import { f as dt, F as st } from "./global-provide-inject-6d2932d0.js";
|
|
11
11
|
import { a as rt, u as ct } from "./share-field-c6ed3ba9.js";
|
|
12
12
|
import { W as ut } from "./enum-type-b9b133f4.js";
|
|
13
13
|
import { _ as Ce } from "./_plugin-vue_export-helper-dad06003.js";
|
|
14
|
-
function ft(
|
|
15
|
-
const { getWidgetOption: u, getWidgetOptionByPropValue: g } = ot(
|
|
14
|
+
function ft(l, x) {
|
|
15
|
+
const { getWidgetOption: u, getWidgetOptionByPropValue: g } = ot(l, x), C = (f) => u(f);
|
|
16
16
|
return {
|
|
17
17
|
existFunc: C,
|
|
18
18
|
handleFunc: (f, O) => {
|
|
19
19
|
if (Ze(f)) {
|
|
20
|
-
var
|
|
21
|
-
return ge(
|
|
20
|
+
var S = C(String(f));
|
|
21
|
+
return ge(S, O);
|
|
22
22
|
} else {
|
|
23
|
-
var
|
|
24
|
-
return ge(
|
|
23
|
+
var S = g(et(f));
|
|
24
|
+
return ge(S, O);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
function mt(
|
|
30
|
-
const x =
|
|
29
|
+
function mt(l) {
|
|
30
|
+
const x = l.widget, u = l.designer, g = u == null ? void 0 : u.pageConfig, C = l == null ? void 0 : l.widgetList, w = Z({}), f = {}, { fieldModel: O, fieldName: S, fieldEditor: m, attrs: N, events: y, hasFieldOptions: P, exposed: E, fieldObj: q, watchOption: R, propResultOpt: D, extendAttrs: A } = rt(l), { off$: V, on$: B, emit$: k, broadcast: n } = Ye();
|
|
31
31
|
var { instance: d } = Qe();
|
|
32
|
-
const { setAllRefList: j } = ct(w.value), F = { designState:
|
|
32
|
+
const { setAllRefList: j } = ct(w.value), F = { designState: l == null ? void 0 : l.designState, pageConfig: g, globalConfig: D == null ? void 0 : D.globalConfig }, { formModel: h, setData: I, getData: L, clearData: ne } = Xe(C, { ...F }, d), { handleFunc: H } = ft({ options: g }, F), G = J({}), we = () => {
|
|
33
33
|
V($.fieldChange), B($.fieldChange, (e) => {
|
|
34
|
-
De(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue), E == null || E.setValue(h),
|
|
34
|
+
De(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue), E == null || E.setValue(h), Se(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue);
|
|
35
35
|
});
|
|
36
36
|
}, Fe = () => {
|
|
37
37
|
V($.fieldValidation), B($.fieldValidation, (e) => {
|
|
@@ -40,8 +40,8 @@ function mt(i) {
|
|
|
40
40
|
});
|
|
41
41
|
}, We = () => {
|
|
42
42
|
V($.fieldRuleChange), B($.fieldRuleChange, (e) => {
|
|
43
|
-
var
|
|
44
|
-
var t = (
|
|
43
|
+
var a;
|
|
44
|
+
var t = (a = e == null ? void 0 : e.rules) == null ? void 0 : a.map((o) => ({
|
|
45
45
|
required: o.required,
|
|
46
46
|
message: o.message,
|
|
47
47
|
trigger: o.trigger,
|
|
@@ -56,17 +56,17 @@ function mt(i) {
|
|
|
56
56
|
before_info: Y(T),
|
|
57
57
|
after_info: Y(h),
|
|
58
58
|
flag: K.value
|
|
59
|
-
}),
|
|
59
|
+
}), Se = (e, t, a) => {
|
|
60
60
|
var o = T[e];
|
|
61
|
-
pe(t,
|
|
62
|
-
},
|
|
61
|
+
pe(t, a) || pe(t, o) || (K.value = !0, e && ve(U, { [e]: { oldValue: o, newValue: t, beforeValue: a } }));
|
|
62
|
+
}, ye = () => {
|
|
63
63
|
K.value = !1, me(U), oe(L());
|
|
64
|
-
}, De = (e, t,
|
|
65
|
-
H(
|
|
64
|
+
}, De = (e, t, a) => {
|
|
65
|
+
H(y.value.formDataChange, { field: { fieldName: e, newValue: t, oldValue: a }, formModel: h });
|
|
66
66
|
}, Ve = () => {
|
|
67
|
-
H(
|
|
67
|
+
H(y.value.formCreated);
|
|
68
68
|
}, Le = () => {
|
|
69
|
-
H(
|
|
69
|
+
H(y.value.formMounted);
|
|
70
70
|
}, Oe = () => {
|
|
71
71
|
We(), we(), Fe(), Ve();
|
|
72
72
|
}, Ee = (e) => {
|
|
@@ -76,60 +76,60 @@ function mt(i) {
|
|
|
76
76
|
j(ut.resetField), Be(() => {
|
|
77
77
|
Ee();
|
|
78
78
|
});
|
|
79
|
-
},
|
|
80
|
-
let
|
|
79
|
+
}, le = (e, t) => {
|
|
80
|
+
let a = [];
|
|
81
81
|
for (let p in e) {
|
|
82
82
|
var o = e[p], s = o == null ? void 0 : o.filter((r) => (r == null ? void 0 : r.force) === t);
|
|
83
83
|
s == null || s.forEach((r) => {
|
|
84
84
|
var c;
|
|
85
85
|
const _ = (c = r == null ? void 0 : r.rule) == null ? void 0 : c.label;
|
|
86
|
-
r.message &&
|
|
86
|
+
r.message && a.push(Ke(_ ? "【" + _ + "】" : "", r.message, ":"));
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
return Ue(
|
|
89
|
+
return Ue(a);
|
|
90
90
|
}, $e = (e, t) => {
|
|
91
|
-
var
|
|
91
|
+
var a = {};
|
|
92
92
|
return dt(t, (o) => {
|
|
93
|
-
var s =
|
|
94
|
-
return p && (
|
|
95
|
-
}, !1),
|
|
93
|
+
var s = it.getName(o), p = at(e, s);
|
|
94
|
+
return p && (a[s] = e[s]), p;
|
|
95
|
+
}, !1), a;
|
|
96
96
|
}, Ae = (e = !0) => {
|
|
97
97
|
var s, p, r;
|
|
98
|
-
let t = L(),
|
|
98
|
+
let t = L(), a = function() {
|
|
99
99
|
}, o = new Promise(function(_, c) {
|
|
100
|
-
|
|
101
|
-
(
|
|
100
|
+
a = function(v, i) {
|
|
101
|
+
(i ? c : _)({ data: v, isSuccess: !i, message: i });
|
|
102
102
|
};
|
|
103
103
|
});
|
|
104
|
-
return !((s = m.value) != null && s.validate) || !e ? (
|
|
104
|
+
return !((s = m.value) != null && s.validate) || !e ? (a(t), o) : ((r = (p = m.value) == null ? void 0 : p.validate) == null || r.call(p, (_, c) => {
|
|
105
105
|
if (_)
|
|
106
|
-
|
|
106
|
+
a(t);
|
|
107
107
|
else {
|
|
108
|
-
var v =
|
|
108
|
+
var v = le(c, !0);
|
|
109
109
|
if (v && v.length > 0) {
|
|
110
|
-
|
|
110
|
+
a(t, v);
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
|
-
var
|
|
114
|
-
if (
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
var i = le(c, !1);
|
|
114
|
+
if (i && i.length > 0) {
|
|
115
|
+
i.push(be.i18nt("designer.hint.continue")), lt.multiple(i).then((W) => {
|
|
116
|
+
a(t);
|
|
117
117
|
});
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}), o);
|
|
122
|
-
},
|
|
122
|
+
}, ie = (e, t = !0) => {
|
|
123
123
|
if (x) {
|
|
124
|
-
var
|
|
125
|
-
I(
|
|
124
|
+
var a = $e(e, [x]);
|
|
125
|
+
I(a, t), n(te.ContainerWidget, fe.setFormData, e, [w.value]), n(te.FieldWidget, fe.setFormData, e, [w.value]);
|
|
126
126
|
}
|
|
127
|
-
}, de = (e) => new Promise((t,
|
|
127
|
+
}, de = (e) => new Promise((t, a) => {
|
|
128
128
|
const o = (c, v) => {
|
|
129
129
|
var M;
|
|
130
|
-
const
|
|
131
|
-
let W =
|
|
132
|
-
|
|
130
|
+
const i = (M = A.value) == null ? void 0 : M.formDataLoaded;
|
|
131
|
+
let W = i ? i == null ? void 0 : i(L(), c) : c;
|
|
132
|
+
nt(W) ? ie(W, !v) : W = {}, oe(W), t(W);
|
|
133
133
|
}, s = () => {
|
|
134
134
|
const c = (v) => {
|
|
135
135
|
o(v, !0);
|
|
@@ -138,8 +138,8 @@ function mt(i) {
|
|
|
138
138
|
}, p = () => {
|
|
139
139
|
const c = (v) => {
|
|
140
140
|
var M;
|
|
141
|
-
const
|
|
142
|
-
if ((
|
|
141
|
+
const i = (M = A.value) == null ? void 0 : M.needFormAdd;
|
|
142
|
+
if ((i == null ? void 0 : i(v)) && _) {
|
|
143
143
|
s();
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
@@ -159,67 +159,67 @@ function mt(i) {
|
|
|
159
159
|
pageConfig: g,
|
|
160
160
|
widgetList: C,
|
|
161
161
|
fieldModel: O,
|
|
162
|
-
fieldName:
|
|
162
|
+
fieldName: S,
|
|
163
163
|
attrs: N,
|
|
164
164
|
extendAttrs: A,
|
|
165
|
-
events:
|
|
165
|
+
events: y,
|
|
166
166
|
rules: G,
|
|
167
167
|
loadData: de,
|
|
168
|
-
clearData:
|
|
168
|
+
clearData: ne,
|
|
169
169
|
exposed: {
|
|
170
170
|
...E,
|
|
171
|
-
setValue:
|
|
171
|
+
setValue: ie,
|
|
172
172
|
getValue: Ae,
|
|
173
173
|
resetField: je,
|
|
174
|
-
clearData:
|
|
174
|
+
clearData: ne,
|
|
175
175
|
loadData: de,
|
|
176
176
|
getData: L,
|
|
177
177
|
//修改痕迹
|
|
178
|
-
clearChangeRecord:
|
|
178
|
+
clearChangeRecord: ye,
|
|
179
179
|
getChangeRecord: xe,
|
|
180
180
|
emit$: k
|
|
181
181
|
},
|
|
182
182
|
fieldObj: q
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
const vt = { class: "loadingLayout" }, pt = ["element-loading-text"], gt = /* @__PURE__ */
|
|
185
|
+
const vt = { class: "loadingLayout" }, pt = ["element-loading-text"], gt = /* @__PURE__ */ ae({
|
|
186
186
|
__name: "index",
|
|
187
187
|
props: {
|
|
188
188
|
loading: { type: Boolean },
|
|
189
189
|
loadingText: {}
|
|
190
190
|
},
|
|
191
|
-
setup(
|
|
191
|
+
setup(l) {
|
|
192
192
|
return (x, u) => {
|
|
193
193
|
const g = Me("loading");
|
|
194
194
|
return se((ee(), Ne("div", vt, [
|
|
195
195
|
se(_e("div", {
|
|
196
|
-
|
|
197
|
-
"element-loading-text":
|
|
196
|
+
class: "h-100 w-100",
|
|
197
|
+
"element-loading-text": l.loadingText || b(be).i18nt("designer.hint.loading")
|
|
198
198
|
}, null, 8, pt), [
|
|
199
|
-
[g,
|
|
199
|
+
[g, l.loading]
|
|
200
200
|
])
|
|
201
201
|
], 512)), [
|
|
202
|
-
[Pe,
|
|
202
|
+
[Pe, l.loading]
|
|
203
203
|
]);
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
|
-
const ht = /* @__PURE__ */ Ce(gt, [["__scopeId", "data-v-
|
|
207
|
+
const ht = /* @__PURE__ */ Ce(gt, [["__scopeId", "data-v-592c7eee"]]), _t = { class: "h-100 v-100 relative" }, bt = ae({ componentName: te.ContainerWidget }), Ct = /* @__PURE__ */ ae({
|
|
208
208
|
...bt,
|
|
209
209
|
__name: "form-widget",
|
|
210
210
|
props: { ...qe },
|
|
211
|
-
setup(
|
|
211
|
+
setup(l, { expose: x }) {
|
|
212
212
|
var k;
|
|
213
|
-
const u =
|
|
214
|
-
var
|
|
213
|
+
const u = l, { exposed: g, formModel: C, fieldEditor: w, attrs: f, events: O, widgetRefList: S, extendAttrs: m, fieldName: N, fieldObj: y, loadData: P } = mt({ ...u, widgetList: (k = u == null ? void 0 : u.widget) == null ? void 0 : k.widgetList }), E = N.value, q = Q(() => {
|
|
214
|
+
var n, d;
|
|
215
215
|
return {
|
|
216
|
-
disabled: (
|
|
216
|
+
disabled: (n = f.value) == null ? void 0 : n.disabled,
|
|
217
217
|
readonly: (d = m.value) == null ? void 0 : d.readonly
|
|
218
218
|
};
|
|
219
219
|
}), R = Q(() => {
|
|
220
|
-
var
|
|
220
|
+
var n, d, j, F, h;
|
|
221
221
|
return {
|
|
222
|
-
size: (
|
|
222
|
+
size: (n = f.value) == null ? void 0 : n.size,
|
|
223
223
|
labelWidth: (d = f.value) == null ? void 0 : d.labelWidth,
|
|
224
224
|
labelSuffix: (j = f.value) == null ? void 0 : j.labelSuffix,
|
|
225
225
|
labelAlign: (F = m.value) == null ? void 0 : F.labelAlign,
|
|
@@ -227,8 +227,8 @@ const ht = /* @__PURE__ */ Ce(gt, [["__scopeId", "data-v-bb929952"]]), _t = { cl
|
|
|
227
227
|
inForm: !0
|
|
228
228
|
};
|
|
229
229
|
}), D = Z(!1), A = Q(() => {
|
|
230
|
-
var
|
|
231
|
-
return !u.designState && D.value && ((
|
|
230
|
+
var n;
|
|
231
|
+
return !u.designState && D.value && ((n = m.value) == null ? void 0 : n.showLoading);
|
|
232
232
|
});
|
|
233
233
|
st.globalProvide({
|
|
234
234
|
globalFormName: E,
|
|
@@ -236,20 +236,20 @@ const ht = /* @__PURE__ */ Ce(gt, [["__scopeId", "data-v-bb929952"]]), _t = { cl
|
|
|
236
236
|
globalFormOptions: R,
|
|
237
237
|
globalWrapperOptions: q
|
|
238
238
|
});
|
|
239
|
-
const V = Re(Je.isRenderComplete), B = ke(() => V == null ? void 0 : V.value, (
|
|
239
|
+
const V = Re(Je.isRenderComplete), B = ke(() => V == null ? void 0 : V.value, (n) => {
|
|
240
240
|
var d;
|
|
241
|
-
|
|
241
|
+
n && ((d = w.value) == null || d.validate(), B());
|
|
242
242
|
});
|
|
243
243
|
return he(() => {
|
|
244
|
-
var
|
|
245
|
-
(
|
|
244
|
+
var n;
|
|
245
|
+
(n = m.value) != null && n.loadDataWhenInit && !u.designState && (D.value = !0, P(!0).catch((d) => {
|
|
246
246
|
}).finally(() => {
|
|
247
247
|
D.value = !1, g.clearChangeRecord();
|
|
248
248
|
}));
|
|
249
|
-
}), x({ ...g }), (
|
|
249
|
+
}), x({ ...g }), (n, d) => {
|
|
250
250
|
const j = Ie("el-form");
|
|
251
|
-
return ee(), re(Ge, X(
|
|
252
|
-
"prop-options": { fieldObj: b(
|
|
251
|
+
return ee(), re(Ge, X(n.$props, {
|
|
252
|
+
"prop-options": { fieldObj: b(y) }
|
|
253
253
|
}), {
|
|
254
254
|
default: ce(({ data: F }) => {
|
|
255
255
|
var h, I;
|
|
@@ -265,22 +265,22 @@ const ht = /* @__PURE__ */ Ce(gt, [["__scopeId", "data-v-bb929952"]]), _t = { cl
|
|
|
265
265
|
model: b(C)
|
|
266
266
|
}, b(f), Te(b(O)), {
|
|
267
267
|
class: F.injectClass,
|
|
268
|
-
key: (I = b(
|
|
268
|
+
key: (I = b(y)) == null ? void 0 : I.fieldKey,
|
|
269
269
|
onSubmit: d[0] || (d[0] = ze(() => {
|
|
270
270
|
}, ["prevent"]))
|
|
271
271
|
}), {
|
|
272
272
|
default: ce(() => {
|
|
273
273
|
var L;
|
|
274
274
|
return [
|
|
275
|
-
ue(He, X(
|
|
275
|
+
ue(He, X(n.$props, {
|
|
276
276
|
dragClass: "formDrag padSize",
|
|
277
277
|
model: b(C),
|
|
278
278
|
provideModel: !0,
|
|
279
279
|
"component-class": F.componentWrapperClass,
|
|
280
|
-
refList: b(
|
|
280
|
+
refList: b(S),
|
|
281
281
|
"show-suspense": (L = b(m)) == null ? void 0 : L.showSuspense,
|
|
282
|
-
"parent-widget":
|
|
283
|
-
"parent-tree":
|
|
282
|
+
"parent-widget": n.widget,
|
|
283
|
+
"parent-tree": n.parentTree
|
|
284
284
|
}), null, 16, ["model", "component-class", "refList", "show-suspense", "parent-widget", "parent-tree"])
|
|
285
285
|
];
|
|
286
286
|
}),
|
|
@@ -294,7 +294,7 @@ const ht = /* @__PURE__ */ Ce(gt, [["__scopeId", "data-v-bb929952"]]), _t = { cl
|
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
|
-
const wt = /* @__PURE__ */ Ce(Ct, [["__scopeId", "data-v-
|
|
297
|
+
const wt = /* @__PURE__ */ Ce(Ct, [["__scopeId", "data-v-facf666e"]]), Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
298
298
|
__proto__: null,
|
|
299
299
|
default: wt
|
|
300
300
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-
|
|
1
|
+
import { _ as e } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-d585a977.js";
|
|
2
2
|
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
default: e
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as m, computed as l, reactive as C, openBlock as y, createBlock as O, mergeProps as c, unref as r, withCtx as W, createVNode as x } from "vue";
|
|
2
2
|
import { w as k } from "./expression-11846fd1.js";
|
|
3
3
|
import { I as A } from "./widget-base-df734ada.js";
|
|
4
|
-
import { D as b } from "./drag-wrapper-
|
|
4
|
+
import { D as b } from "./drag-wrapper-36615ce0.js";
|
|
5
5
|
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b5783744.js";
|
|
6
6
|
import { a as H } from "./share-field-c6ed3ba9.js";
|
|
7
7
|
import { c as $ } from "./cssClass-0ad1f6a9.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as o, createBlock as s, mergeProps as f, unref as t, withCtx as u, createElementBlock as _, Fragment as w, renderList as C } from "vue";
|
|
2
2
|
import { w as b } from "./expression-11846fd1.js";
|
|
3
3
|
import { I as h, m as k } from "./widget-base-df734ada.js";
|
|
4
|
-
import { _ as O } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-
|
|
4
|
+
import { _ as O } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-d585a977.js";
|
|
5
5
|
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b5783744.js";
|
|
6
6
|
import { a as y } from "./share-field-c6ed3ba9.js";
|
|
7
7
|
import { c as P } from "./cssClass-0ad1f6a9.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as C, useCssVars as j, computed as t, openBlock as l, createBlock as f, mergeProps as p, unref as r, withCtx as D, createElementBlock as _, normalizeClass as E, createElementVNode as g, Fragment as F, createTextVNode as I, toDisplayString as P, normalizeStyle as H, createVNode as O } from "vue";
|
|
2
2
|
import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b5783744.js";
|
|
3
3
|
import { a as T } from "./share-field-c6ed3ba9.js";
|
|
4
|
-
import { D as v } from "./drag-wrapper-
|
|
4
|
+
import { D as v } from "./drag-wrapper-36615ce0.js";
|
|
5
5
|
import { w as q } from "./expression-11846fd1.js";
|
|
6
6
|
import { d as h } from "./slot-31d7643d.js";
|
|
7
7
|
import { I as A } from "./widget-base-df734ada.js";
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { defineComponent as Q, ref as v, computed as P, resolveComponent as L, openBlock as g, createBlock as S, mergeProps as U, unref as n, withCtx as j, createCommentVNode as N, withDirectives as T, createElementVNode as H, createElementBlock as B, createVNode as E, toHandlers as K, vShow as R } from "vue";
|
|
2
|
+
import { H as w } from "./baseImp-9b58e733.js";
|
|
3
|
+
import { g as q } from "./uuid-1b528338.js";
|
|
4
|
+
import { l as F } from "./enum-type-52a6b12a.js";
|
|
5
|
+
import { w as z } from "./expression-11846fd1.js";
|
|
6
|
+
import { a as G } from "./share-field-c6ed3ba9.js";
|
|
7
|
+
import { _ as J } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b5783744.js";
|
|
8
|
+
import { I as M } from "./field-base-66c90648.js";
|
|
9
|
+
import { Loading as X } from "./index-6bcfdc22.js";
|
|
10
|
+
import { _ as Y } from "./_plugin-vue_export-helper-dad06003.js";
|
|
11
|
+
import "./enum-type-b9b133f4.js";
|
|
12
|
+
import "./icon-4e8380f7.js";
|
|
13
|
+
import "axios";
|
|
14
|
+
import "./dialog-ac1079e2.js";
|
|
15
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
16
|
+
import "element-plus";
|
|
17
|
+
import "./source-map-b04aec4a.js";
|
|
18
|
+
import "./esprima-e8d15055.js";
|
|
19
|
+
import "./multirow-29ad4d31.js";
|
|
20
|
+
import "./global-provide-inject-6d2932d0.js";
|
|
21
|
+
import "./slot-31d7643d.js";
|
|
22
|
+
import "./widget-base-df734ada.js";
|
|
23
|
+
import "./index-f9b79d02.js";
|
|
24
|
+
import "./fieldobj-444b15a2.js";
|
|
25
|
+
function Z(c, h) {
|
|
26
|
+
var d;
|
|
27
|
+
if (!c) {
|
|
28
|
+
F.error("iframe is empty");
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const r = (d = c.contentWindow) == null ? void 0 : d.document;
|
|
32
|
+
if (!r) {
|
|
33
|
+
F.error("iframe doc is empty");
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
r.open(), r.write(h), r.close();
|
|
37
|
+
}
|
|
38
|
+
const A = { class: "full-width full-height relative iframe-container" }, ee = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "iframe-loading-mask"
|
|
41
|
+
}, oe = ["src", "id"], te = Q({ componentName: z.FieldWidget }), re = /* @__PURE__ */ Q({
|
|
42
|
+
...te,
|
|
43
|
+
__name: "iframe-widget",
|
|
44
|
+
props: { ...M },
|
|
45
|
+
setup(c, { expose: h }) {
|
|
46
|
+
const r = c, { exposed: d, fieldEditor: b, events: s, attrs: k, extendAttrs: a, fieldObj: V, fieldKey: W, fieldName: $, refreshKey: x } = G(r), u = v(!1), y = v(), C = v(), I = v(Date.now()), p = P(() => {
|
|
47
|
+
var i;
|
|
48
|
+
if (y.value)
|
|
49
|
+
return y.value;
|
|
50
|
+
const e = C.value || k.value.src, t = D(e);
|
|
51
|
+
if (r.designState)
|
|
52
|
+
return t;
|
|
53
|
+
const o = (i = s.value) == null ? void 0 : i.urlFormatter;
|
|
54
|
+
return o !== void 0 ? o == null ? void 0 : o(t) : t;
|
|
55
|
+
}), D = (e) => {
|
|
56
|
+
var l, m;
|
|
57
|
+
if (e == "")
|
|
58
|
+
return "";
|
|
59
|
+
const o = ((l = a == null ? void 0 : a.value) == null ? void 0 : l.withQuery) ? w.getLocationQueryParams() : {};
|
|
60
|
+
Object.assign(o, { _timestamp: I.value });
|
|
61
|
+
const i = w.buildUrl(e, o, { addtimestamp: !1 });
|
|
62
|
+
if (!i)
|
|
63
|
+
return "";
|
|
64
|
+
const _ = (m = a == null ? void 0 : a.value) == null ? void 0 : m.hashRouter;
|
|
65
|
+
return w.resolveByCurrentUrl(i, _ ? q() + "" : "");
|
|
66
|
+
}, f = () => {
|
|
67
|
+
u.value = !1, x();
|
|
68
|
+
}, O = () => {
|
|
69
|
+
var e, t;
|
|
70
|
+
setTimeout(() => {
|
|
71
|
+
u.value = !0;
|
|
72
|
+
}, 1e3), (t = (e = s == null ? void 0 : s.value) == null ? void 0 : e.onLoaded) == null || t.call(e);
|
|
73
|
+
};
|
|
74
|
+
return h({
|
|
75
|
+
...d,
|
|
76
|
+
loadSrc: (e) => {
|
|
77
|
+
f(), C.value = e;
|
|
78
|
+
},
|
|
79
|
+
loadUrl: (e) => {
|
|
80
|
+
f(), y.value = e;
|
|
81
|
+
},
|
|
82
|
+
loadContent: (e) => {
|
|
83
|
+
f(), Z(b.value, e);
|
|
84
|
+
},
|
|
85
|
+
refresh: () => {
|
|
86
|
+
I.value = Date.now(), f();
|
|
87
|
+
}
|
|
88
|
+
}), (e, t) => {
|
|
89
|
+
var _;
|
|
90
|
+
const o = L("el-empty"), i = L("el-icon");
|
|
91
|
+
return g(), S(J, U(e.$props, {
|
|
92
|
+
"prop-options": { fieldObj: n(V) },
|
|
93
|
+
key: (_ = e.widget) == null ? void 0 : _.id
|
|
94
|
+
}), {
|
|
95
|
+
default: j(({ data: l }) => {
|
|
96
|
+
var m;
|
|
97
|
+
return [
|
|
98
|
+
p.value ? N("", !0) : (g(), S(o, {
|
|
99
|
+
key: 0,
|
|
100
|
+
description: (m = n(k)) == null ? void 0 : m.emptyText,
|
|
101
|
+
class: "full-width full-height nopadding nomargin"
|
|
102
|
+
}, null, 8, ["description"])),
|
|
103
|
+
T(H("div", A, [
|
|
104
|
+
u.value ? N("", !0) : (g(), B("div", ee, [
|
|
105
|
+
E(i, {
|
|
106
|
+
class: "is-loading",
|
|
107
|
+
size: "3em"
|
|
108
|
+
}, {
|
|
109
|
+
default: j(() => [
|
|
110
|
+
E(n(X))
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
})
|
|
114
|
+
])),
|
|
115
|
+
(g(), B("iframe", U({
|
|
116
|
+
ref_key: "fieldEditor",
|
|
117
|
+
ref: b,
|
|
118
|
+
key: `${n(W)}_${p.value}`
|
|
119
|
+
}, K(n(s), !0), {
|
|
120
|
+
onLoad: O,
|
|
121
|
+
src: p.value,
|
|
122
|
+
class: [[...l.injectClass, u.value ? "iframe-loaded" : "iframe-loading"], "nopadding nomargin hlIframe"],
|
|
123
|
+
frameborder: 0,
|
|
124
|
+
style: l.injectStyle,
|
|
125
|
+
id: n($)
|
|
126
|
+
}), null, 16, oe))
|
|
127
|
+
], 512), [
|
|
128
|
+
[R, !!p.value]
|
|
129
|
+
])
|
|
130
|
+
];
|
|
131
|
+
}),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 16, ["prop-options"]);
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
const Fe = /* @__PURE__ */ Y(re, [["__scopeId", "data-v-b5676b53"]]);
|
|
138
|
+
export {
|
|
139
|
+
Fe as default
|
|
140
|
+
};
|
|
@@ -5,7 +5,7 @@ import { a as A } from "./share-field-c6ed3ba9.js";
|
|
|
5
5
|
import { g as B } from "./slot-31d7643d.js";
|
|
6
6
|
import E from "./form-item-wrapper-4cec7bbe.js";
|
|
7
7
|
import { w as L } from "./expression-11846fd1.js";
|
|
8
|
-
import { D as P } from "./drag-wrapper-
|
|
8
|
+
import { D as P } from "./drag-wrapper-36615ce0.js";
|
|
9
9
|
import "./widget-base-df734ada.js";
|
|
10
10
|
import "./multirow-29ad4d31.js";
|
|
11
11
|
import "./baseImp-9b58e733.js";
|
|
@@ -5,7 +5,7 @@ import { a as A } from "./share-field-c6ed3ba9.js";
|
|
|
5
5
|
import { g as B } from "./slot-31d7643d.js";
|
|
6
6
|
import E from "./form-item-wrapper-4cec7bbe.js";
|
|
7
7
|
import { w as L } from "./expression-11846fd1.js";
|
|
8
|
-
import { D as P } from "./drag-wrapper-
|
|
8
|
+
import { D as P } from "./drag-wrapper-36615ce0.js";
|
|
9
9
|
import "./widget-base-df734ada.js";
|
|
10
10
|
import "./multirow-29ad4d31.js";
|
|
11
11
|
import "./baseImp-9b58e733.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, openBlock as r, createBlock as i, mergeProps as w, unref as o, withCtx as E, createCommentVNode as f, createVNode as F } from "vue";
|
|
2
2
|
import { I as N } from "./field-base-66c90648.js";
|
|
3
|
-
import { _ as O } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-
|
|
3
|
+
import { _ as O } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-b6ecb71d.js";
|
|
4
4
|
import { w as P } from "./expression-11846fd1.js";
|
|
5
5
|
import { _ as y } from "./content-wrapper.vue_vue_type_script_setup_true_lang-5dffd598.js";
|
|
6
6
|
import { S as c } from "./index-f9b79d02.js";
|
|
@@ -19,7 +19,7 @@ import "./_commonjsHelpers-e7ea1525.js";
|
|
|
19
19
|
import "element-plus";
|
|
20
20
|
import "./fieldobj-444b15a2.js";
|
|
21
21
|
import "./slot-31d7643d.js";
|
|
22
|
-
import "./drag-wrapper-
|
|
22
|
+
import "./drag-wrapper-36615ce0.js";
|
|
23
23
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
24
24
|
import "./source-map-b04aec4a.js";
|
|
25
25
|
import "./esprima-e8d15055.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-
|
|
1
|
+
import { _ as e } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-98d08c6d.js";
|
|
2
2
|
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
default: e
|
|
@@ -6,7 +6,7 @@ import { a as Te, b as he } from "./global-provide-inject-6d2932d0.js";
|
|
|
6
6
|
import { a as ye } from "./share-field-c6ed3ba9.js";
|
|
7
7
|
import { B as k } from "./baseImp-9b58e733.js";
|
|
8
8
|
import { S as De } from "./index-f9b79d02.js";
|
|
9
|
-
import { D as Oe } from "./drag-wrapper-
|
|
9
|
+
import { D as Oe } from "./drag-wrapper-36615ce0.js";
|
|
10
10
|
import { _ as _e } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b5783744.js";
|
|
11
11
|
import { c as Be } from "./cssClass-0ad1f6a9.js";
|
|
12
12
|
const Le = ["title"], xe = _({ componentName: ke.ContainerWidget }), qe = /* @__PURE__ */ _({
|
|
@@ -2,7 +2,7 @@ import { defineComponent as u, openBlock as t, createBlock as g, mergeProps as v
|
|
|
2
2
|
import { w as A } from "./expression-11846fd1.js";
|
|
3
3
|
import { I as P, m as B } from "./widget-base-df734ada.js";
|
|
4
4
|
import { _ as L } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b5783744.js";
|
|
5
|
-
import { _ as N } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-
|
|
5
|
+
import { _ as N } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-98d08c6d.js";
|
|
6
6
|
import { c as S } from "./cssClass-0ad1f6a9.js";
|
|
7
7
|
import { a as T } from "./share-field-c6ed3ba9.js";
|
|
8
8
|
import { _ as V } from "./_plugin-vue_export-helper-dad06003.js";
|
|
@@ -5,7 +5,7 @@ import { a as L } from "./share-field-c6ed3ba9.js";
|
|
|
5
5
|
import { g as P } from "./slot-31d7643d.js";
|
|
6
6
|
import T from "./form-item-wrapper-4cec7bbe.js";
|
|
7
7
|
import { w as $ } from "./expression-11846fd1.js";
|
|
8
|
-
import { D as H } from "./drag-wrapper-
|
|
8
|
+
import { D as H } from "./drag-wrapper-36615ce0.js";
|
|
9
9
|
import "./widget-base-df734ada.js";
|
|
10
10
|
import "./multirow-29ad4d31.js";
|
|
11
11
|
import "./baseImp-9b58e733.js";
|
|
@@ -4,7 +4,7 @@ import { B as ie, v as G } from "./baseImp-9b58e733.js";
|
|
|
4
4
|
import { I as st } from "./widget-base-df734ada.js";
|
|
5
5
|
import { a as rt, u as dt } from "./share-field-c6ed3ba9.js";
|
|
6
6
|
import { _ as ut } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b5783744.js";
|
|
7
|
-
import { D as x } from "./drag-wrapper-
|
|
7
|
+
import { D as x } from "./drag-wrapper-36615ce0.js";
|
|
8
8
|
import { ae as Fe, W as ct } from "./enum-type-b9b133f4.js";
|
|
9
9
|
import { _ as pt } from "./label-wrapper.vue_vue_type_style_index_0_lang-e7be73d8.js";
|
|
10
10
|
import { i as mt, d as V } from "./slot-31d7643d.js";
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { _ as R } from "./widget-wrapper.vue_vue_type_script_setup_true_name_for
|
|
|
5
5
|
import { a as U } from "./share-field-c6ed3ba9.js";
|
|
6
6
|
import { w as X } from "./expression-11846fd1.js";
|
|
7
7
|
import { g as T } from "./slot-31d7643d.js";
|
|
8
|
-
import { D as V } from "./drag-wrapper-
|
|
8
|
+
import { D as V } from "./drag-wrapper-36615ce0.js";
|
|
9
9
|
import Y from "./vertical-progress-widget-c44812e6.js";
|
|
10
10
|
import { h as Z, p as _ } from "./enum-type-b9b133f4.js";
|
|
11
11
|
import "./widget-base-df734ada.js";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as y, openBlock as o, createBlock as F, mergeProps as i
|
|
|
2
2
|
import { a as N } from "./share-field-c6ed3ba9.js";
|
|
3
3
|
import { I as S } from "./field-base-66c90648.js";
|
|
4
4
|
import T from "./form-item-wrapper-4cec7bbe.js";
|
|
5
|
-
import { D as f } from "./drag-wrapper-
|
|
5
|
+
import { D as f } from "./drag-wrapper-36615ce0.js";
|
|
6
6
|
import { w as V } from "./expression-11846fd1.js";
|
|
7
7
|
import { d as u } from "./slot-31d7643d.js";
|
|
8
8
|
import { _ as B } from "./_plugin-vue_export-helper-dad06003.js";
|