hlrender 0.0.289 → 0.0.291
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/{_pdf-eed611b5.js → _pdf-98100e69.js} +6 -6
- package/{_txt-d04eed11.js → _txt-60276314.js} +6 -6
- package/{_unsupport-cf3c950b.js → _unsupport-ceb6d576.js} +1 -1
- package/{affix-widget-2acd9d36.js → affix-widget-39995e66.js} +16 -16
- package/{alert-widget-067b3cf5.js → alert-widget-cd766349.js} +16 -16
- package/{anchor-widget-813626bc.js → anchor-widget-af4a9b75.js} +13 -13
- package/{auto-complete-widget-81c2ff38.js → auto-complete-widget-7b84f656.js} +16 -16
- package/{avatar-widget-d8c774c6.js → avatar-widget-0574ce74.js} +16 -16
- package/{backtop-widget-e1ab506f.js → backtop-widget-03a05abb.js} +16 -16
- package/{badge-widget-960f6500.js → badge-widget-81255165.js} +16 -16
- package/{barcode-widget-7acec4d8.js → barcode-widget-a7542823.js} +13 -13
- package/{baseImp-ee9da650.js → baseImp-bde6d061.js} +6 -6
- package/{breadcrumb-widget-b760bdd6.js → breadcrumb-widget-19c4d1cb.js} +13 -13
- package/{button-widget-83420669.js → button-widget-811847d3.js} +16 -16
- package/{cache-widget-131eaa68.js → cache-widget-24b2c545.js} +15 -15
- package/{card-widget-192c7841.js → card-widget-9847a3f6.js} +14 -14
- package/{carousel-widget-d138549a.js → carousel-widget-7ec883f9.js} +14 -14
- package/{cascader-widget-b6a53d85.js → cascader-widget-f44c67e4.js} +15 -15
- package/chart-widget-aee971ce.js +93 -0
- package/{checkbox-widget-504952bc.js → checkbox-widget-d4d82de4.js} +15 -15
- package/{collapse-widget-bad5a579.js → collapse-widget-d96dc058.js} +14 -14
- package/{color-picker-widget-df724141.js → color-picker-widget-48f1f21b.js} +15 -15
- package/{cont-cell-widget-937ff996.js → cont-cell-widget-673daf4b.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-4afaf5dd.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-810bad89.js} +5 -5
- package/{cont-widget-d308e618.js → cont-widget-e2f7fdf0.js} +5 -5
- package/{content-wrapper-dc517bb4.js → content-wrapper-fea4fcf0.js} +7 -7
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-4483a2a4.js → content-wrapper.vue_vue_type_script_setup_true_lang-300eb1df.js} +3 -3
- package/{countdown-widget-ae21e7e0.js → countdown-widget-6ea2140c.js} +16 -16
- package/{cssClass-ae8a5619.js → cssClass-b6ffbe49.js} +2 -2
- package/{date-picker-range-widget-e5e467f0.js → date-picker-range-widget-1d17c0b9.js} +15 -15
- package/{date-picker-widget-ce6c112b.js → date-picker-widget-d4ae31b9.js} +15 -15
- package/default-slot-widget-f5c5ae59.js +27 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-164cb014.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-a1a1a85c.js} +12 -12
- package/{descriptions-widget-e128aeb9.js → descriptions-widget-1ac4ab71.js} +14 -14
- package/{dialog-744b7727.js → dialog-5587563a.js} +2 -2
- package/{dialog-widget-78b877f1.js → dialog-widget-d6b40caa.js} +15 -15
- package/{divider-widget-741d7cb7.js → divider-widget-556a2f7e.js} +16 -16
- package/{drag-wrapper-178f8467.js → drag-wrapper-f8996a38.js} +6 -6
- package/{drawer-widget-230c7376.js → drawer-widget-c59ed2d5.js} +15 -15
- package/{dropdown-widget-90e1c130.js → dropdown-widget-665ebea8.js} +14 -14
- package/{empty-widget-32812041.js → empty-widget-6dbfe19c.js} +16 -16
- package/{enum-type-a1e82b20.js → enum-type-2272b21a.js} +7 -7
- package/{enum-type-07387ae0.js → enum-type-6135428c.js} +1 -1
- package/{expression-9425784a.js → expression-b41be0ff.js} +2 -2
- package/feedback-widget-d3c88b89.js +27 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-4019a6cb.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-fb31367e.js} +6 -6
- package/{fieldobj-87c20520.js → fieldobj-94bc6810.js} +1 -1
- package/{file-upload-widget-1bb29610.js → file-upload-widget-c8cd2f19.js} +20 -20
- package/{form-item-wrapper-a2d2e890.js → form-item-wrapper-ac5a2e6c.js} +11 -11
- package/form-widget-759d6624.js +281 -0
- package/{global-provide-inject-9802c138.js → global-provide-inject-d9978a87.js} +5 -5
- package/{grid-col-widget-c92e3146.js → grid-col-widget-0017d817.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-528a7107.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-e0ea5e2c.js} +5 -5
- package/{grid-widget-c20ceed5.js → grid-widget-bcb55cc6.js} +5 -5
- package/{hcard-widget-47bfafb0.js → hcard-widget-6bfed350.js} +14 -14
- package/{html-text-widget-dae8c175.js → html-text-widget-324cc78f.js} +14 -14
- package/{icon-widget-035a25e7.js → icon-widget-fda80b2f.js} +13 -13
- package/iframe-widget-8f8f17f2.js +131 -0
- package/{image-widget-e5739a13.js → image-widget-91670b2a.js} +13 -13
- package/{index-98453cc3.js → index-86338f51.js} +13 -13
- package/{index-1810c59c.js → index-9569518a.js} +1 -1
- package/{input-number-widget-186ffe9f.js → input-number-widget-6af1a806.js} +15 -15
- package/{input-tag-widget-1b6bf18d.js → input-tag-widget-96c61281.js} +16 -16
- package/{input-widget-3123a091.js → input-widget-8cec0ed6.js} +16 -16
- package/{label-wrapper-1ded736d.js → label-wrapper-d47b7510.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-079b7f50.js → label-wrapper.vue_vue_type_style_index_0_lang-0cd2db40.js} +3 -3
- package/{link-widget-7f12fccb.js → link-widget-731cb32b.js} +16 -16
- package/loading-4a13a1bc.js +4 -0
- package/{ltable-col-widget-645872b6.js → ltable-col-widget-42380f39.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-8ba8cddf.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-e125c03b.js} +9 -9
- package/{ltable-widget-fcff3a77.js → ltable-widget-1591d754.js} +11 -11
- package/mask-1d8061d6.js +46 -0
- package/{mention-widget-6884b3d2.js → mention-widget-ddf913ee.js} +16 -16
- package/{menu-widget-d9f1b035.js → menu-widget-90a4e514.js} +14 -14
- package/{model-widget-3eb3c274.js → model-widget-b2ab2a66.js} +13 -13
- package/{multirow-0d392a0d.js → multirow-4e9816b6.js} +16 -16
- package/{multirow-widget-357d8cc2.js → multirow-widget-2a6cf16e.js} +15 -15
- package/package.json +1 -1
- package/{pagination-widget-8a6fb914.js → pagination-widget-3384acc8.js} +13 -13
- package/{picture-upload-widget-5ffcd640.js → picture-upload-widget-0136854d.js} +16 -16
- package/{progress-widget-631c2cb0.js → progress-widget-b72bd881.js} +14 -14
- package/{qrcode-widget-099c9bce.js → qrcode-widget-67664447.js} +13 -13
- package/{radio-widget-1edab3c6.js → radio-widget-a0f4c8b3.js} +15 -15
- package/{range-widget-8415ccf4.js → range-widget-8481f4d2.js} +16 -16
- package/{rate-widget-61647653.js → rate-widget-ca72a9c4.js} +15 -15
- package/render.es.js +222 -222
- package/render.style.css +1 -1
- package/render.umd.js +206 -206
- package/{result-widget-98aaed9e.js → result-widget-c97cf561.js} +14 -14
- package/{rich-editor-widget-ab13124f.js → rich-editor-widget-07cec2b8.js} +15 -15
- package/{router-widget-923558f4.js → router-widget-a9b410cb.js} +13 -13
- package/{segmented-widget-45513321.js → segmented-widget-b6e628cd.js} +13 -13
- package/{select-widget-660852de.js → select-widget-4dfcfcc6.js} +15 -15
- package/{sfc-2e9e40bd.js → sfc-37c9efec.js} +8 -8
- package/{sfcview-ad6a26ff.js → sfcview-31637b7c.js} +7 -7
- package/{share-field-b2808259.js → share-field-85f172d9.js} +8 -8
- package/{share-file-9a16c621.js → share-file-9d953df4.js} +6 -6
- package/{skeleton-widget-de112183.js → skeleton-widget-1803d0ff.js} +16 -16
- package/{skeletonItem-widget-a26167d4.js → skeletonItem-widget-e5e37d4b.js} +13 -13
- package/{slider-widget-92e746e6.js → slider-widget-f7a57876.js} +15 -15
- package/{slot-d10c50c7.js → slot-16fbbcdc.js} +3 -3
- package/{space-widget-a9235e7e.js → space-widget-f7352def.js} +14 -14
- package/{splitter-widget-aa984ea7.js → splitter-widget-2df33936.js} +14 -14
- package/{static-text-widget-665de746.js → static-text-widget-9cc64929.js} +14 -14
- package/{statistic-widget-37b2ec7c.js → statistic-widget-c5e7de3f.js} +16 -16
- package/{steps-widget-1b55c2e7.js → steps-widget-02981dd4.js} +13 -13
- package/{subMenu-widget-c68792c0.js → subMenu-widget-e2597b01.js} +8 -8
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-7a6cc52e.js → subMenu-widget.vue_vue_type_script_setup_true_lang-4276cd8e.js} +3 -3
- package/{switch-widget-b3c3cb44.js → switch-widget-d112fa32.js} +15 -15
- package/{tab-pane-widget-dfc88acc.js → tab-pane-widget-af08d657.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-e149b618.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-2c7e83ec.js} +5 -5
- package/table-col-widget-eb451ff8.js +23 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-06477c6f.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-6eed7dd7.js} +19 -19
- package/table-widget-d8ea8462.js +365 -0
- package/{tabs-widget-17d11d49.js → tabs-widget-d74650f2.js} +11 -11
- package/{tag-widget-559dfe69.js → tag-widget-12488a0d.js} +16 -16
- package/{text-widget-fc354306.js → text-widget-ca54a22b.js} +16 -16
- package/{textarea-widget-7e7290f7.js → textarea-widget-3bb3df4b.js} +15 -15
- package/{time-picker-range-widget-9afe9013.js → time-picker-range-widget-4f4a6335.js} +18 -18
- package/{time-picker-widget-0795bc7e.js → time-picker-widget-ac27a332.js} +15 -15
- package/{time-select-widget-e1d55b9b.js → time-select-widget-8a3e89ea.js} +15 -15
- package/{timeline-widget-883b9792.js → timeline-widget-06328b36.js} +14 -14
- package/tmpl-widget-4e4aae23.js +104 -0
- package/{tooltip-widget-6a523340.js → tooltip-widget-ca8e7022.js} +14 -14
- package/{tour-widget-9021418d.js → tour-widget-f01275ca.js} +13 -13
- package/{transfer-widget-0e5c2304.js → transfer-widget-641ea330.js} +16 -16
- package/{tree-select-widget-a20e05e8.js → tree-select-widget-bd90c0c0.js} +15 -15
- package/{tree-widget-fb21f0f8.js → tree-widget-7163694c.js} +13 -13
- package/{uuid-95341c36.js → uuid-4c2ca70a.js} +1 -1
- package/{verifycode-widget-902f45c2.js → verifycode-widget-774deadf.js} +13 -13
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c67c8bef.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-62d10561.js} +7 -7
- package/{wrapper-widget-33858262.js → wrapper-widget-3276dbab.js} +7 -7
- package/chart-widget-9f2c157a.js +0 -90
- package/default-slot-widget-43178484.js +0 -27
- package/feedback-widget-849d9c12.js +0 -27
- package/form-widget-46a1a9fb.js +0 -313
- package/iframe-widget-e06ba98e.js +0 -132
- package/mask-772d4739.js +0 -42
- package/table-col-widget-c9552cf3.js +0 -23
- package/table-widget-28af1134.js +0 -360
- package/tmpl-widget-44e2878d.js +0 -102
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { ref as ee, reactive as Q, onMounted as ve, nextTick as xe, defineComponent as pe, computed as X, inject as Ee, watch as Ae, resolveComponent as Me, resolveDirective as Pe, openBlock as ie, createBlock as de, mergeProps as Y, unref as g, withCtx as re, withDirectives as Re, toHandlers as Ne, withModifiers as $e, createVNode as ke } from "vue";
|
|
2
|
+
import { I as Be } from "./widget-base-df734ada.js";
|
|
3
|
+
import { D as Ie } from "./drag-wrapper-f8996a38.js";
|
|
4
|
+
import { _ as ze } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-62d10561.js";
|
|
5
|
+
import { w as te, f as se, b as q, a as A, i as Te, j as qe, d as He } from "./expression-b41be0ff.js";
|
|
6
|
+
import { u as Ge } from "./icon-4e8380f7.js";
|
|
7
|
+
import { u as Ke, a as Ue } from "./multirow-4e9816b6.js";
|
|
8
|
+
import { a as Je, c as Qe, b as Xe, z as Z, F as ce, e as ge, d as ue, G as fe, v as Ye, g as Ze } from "./enum-type-2272b21a.js";
|
|
9
|
+
import { b as et, c as me, $ as tt, B as at } from "./baseImp-bde6d061.js";
|
|
10
|
+
import { f as nt, F as ot } from "./global-provide-inject-d9978a87.js";
|
|
11
|
+
import { a as lt, u as it } from "./share-field-85f172d9.js";
|
|
12
|
+
import { W as dt } from "./enum-type-6135428c.js";
|
|
13
|
+
import { l as rt } from "./loading-4a13a1bc.js";
|
|
14
|
+
import { _ as st } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
|
+
function ct(c, L) {
|
|
16
|
+
const { getWidgetOption: m, getWidgetOptionByPropValue: C } = et(c, L), b = (u) => m(u);
|
|
17
|
+
return {
|
|
18
|
+
existFunc: b,
|
|
19
|
+
handleFunc: (u, j) => {
|
|
20
|
+
if (Je(u)) {
|
|
21
|
+
var W = b(String(u));
|
|
22
|
+
return me(W, j);
|
|
23
|
+
} else {
|
|
24
|
+
var W = C(Qe(u));
|
|
25
|
+
return me(W, j);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function ut(c) {
|
|
31
|
+
const L = c.widget, m = c.designer, C = m == null ? void 0 : m.pageConfig, b = c == null ? void 0 : c.widgetList, F = ee({}), u = {}, { fieldModel: j, fieldName: W, fieldEditor: f, attrs: $, events: S, hasFieldOptions: k, exposed: x, fieldObj: H, watchOption: B, propResultOpt: D, extendAttrs: M } = lt(c), { off$: V, on$: P, emit$: I, broadcast: n } = Ue();
|
|
32
|
+
var { instance: i } = Ge();
|
|
33
|
+
const { setAllRefList: E } = it(F.value), y = { designState: c == null ? void 0 : c.designState, pageConfig: C, globalConfig: D == null ? void 0 : D.globalConfig }, { formModel: h, setData: z, getData: O, clearData: R } = Ke(b, { ...y }, i), { handleFunc: G } = ct({ options: C }, y), K = Q({}), he = () => {
|
|
34
|
+
V(A.fieldChange), P(A.fieldChange, (e) => {
|
|
35
|
+
We(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue), x == null || x.setValue(h), Fe(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue);
|
|
36
|
+
});
|
|
37
|
+
}, _e = () => {
|
|
38
|
+
V(A.fieldValidation), P(A.fieldValidation, (e) => {
|
|
39
|
+
var t;
|
|
40
|
+
(t = f.value) == null || t.validateField(e == null ? void 0 : e.propName);
|
|
41
|
+
});
|
|
42
|
+
}, be = () => {
|
|
43
|
+
V(A.fieldRuleChange), P(A.fieldRuleChange, (e) => {
|
|
44
|
+
var a;
|
|
45
|
+
var t = (a = e == null ? void 0 : e.rules) == null ? void 0 : a.map((o) => ({
|
|
46
|
+
required: o.required,
|
|
47
|
+
message: o.message,
|
|
48
|
+
trigger: o.trigger,
|
|
49
|
+
validator: o.validator
|
|
50
|
+
}));
|
|
51
|
+
Object.assign(K, { [e == null ? void 0 : e.fieldName]: t }), $.value.rules = K;
|
|
52
|
+
});
|
|
53
|
+
}, U = ee(!1), J = Q({}), T = Q({}), ae = (e) => {
|
|
54
|
+
ce(T), ue(T, e);
|
|
55
|
+
}, Ce = () => ({
|
|
56
|
+
change_info: Z(J),
|
|
57
|
+
before_info: Z(T),
|
|
58
|
+
after_info: Z(h),
|
|
59
|
+
flag: U.value
|
|
60
|
+
}), Fe = (e, t, a) => {
|
|
61
|
+
var o = T[e];
|
|
62
|
+
fe(t, a) || fe(t, o) || (U.value = !0, e && ue(J, { [e]: { oldValue: o, newValue: t, beforeValue: a } }));
|
|
63
|
+
}, we = () => {
|
|
64
|
+
U.value = !1, ce(J), ae(O());
|
|
65
|
+
}, We = (e, t, a) => {
|
|
66
|
+
G(S.value.formDataChange, { field: { fieldName: e, newValue: t, oldValue: a }, formModel: h });
|
|
67
|
+
}, Se = () => {
|
|
68
|
+
G(S.value.formCreated);
|
|
69
|
+
}, De = () => {
|
|
70
|
+
G(S.value.formMounted);
|
|
71
|
+
}, Ve = () => {
|
|
72
|
+
be(), he(), _e(), Se();
|
|
73
|
+
}, ye = (e) => {
|
|
74
|
+
var t;
|
|
75
|
+
(t = f.value) == null || t.clearValidate(e);
|
|
76
|
+
}, Oe = () => {
|
|
77
|
+
E(dt.resetField), xe(() => {
|
|
78
|
+
ye();
|
|
79
|
+
});
|
|
80
|
+
}, ne = (e, t) => {
|
|
81
|
+
let a = [];
|
|
82
|
+
for (let p in e) {
|
|
83
|
+
var o = e[p], d = o == null ? void 0 : o.filter((r) => (r == null ? void 0 : r.force) === t);
|
|
84
|
+
d == null || d.forEach((r) => {
|
|
85
|
+
var s;
|
|
86
|
+
const _ = (s = r == null ? void 0 : r.rule) == null ? void 0 : s.label;
|
|
87
|
+
r.message && a.push(Te(_ ? "【" + _ + "】" : "", r.message, ":"));
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
return qe(a);
|
|
91
|
+
}, Le = (e, t) => {
|
|
92
|
+
var a = {};
|
|
93
|
+
return nt(t, (o) => {
|
|
94
|
+
var d = at.getName(o), p = Ye(e, d);
|
|
95
|
+
return p && (a[d] = e[d]), p;
|
|
96
|
+
}, !1), a;
|
|
97
|
+
}, je = (e = !0) => {
|
|
98
|
+
var d, p, r;
|
|
99
|
+
let t = O(), a = function() {
|
|
100
|
+
}, o = new Promise(function(_, s) {
|
|
101
|
+
a = function(v, l) {
|
|
102
|
+
(l ? s : _)({ data: v, isSuccess: !l, message: l });
|
|
103
|
+
};
|
|
104
|
+
});
|
|
105
|
+
return !((d = f.value) != null && d.validate) || !e ? (a(t), o) : ((r = (p = f.value) == null ? void 0 : p.validate) == null || r.call(p, (_, s) => {
|
|
106
|
+
if (_)
|
|
107
|
+
a(t);
|
|
108
|
+
else {
|
|
109
|
+
var v = ne(s, !0);
|
|
110
|
+
if (v && v.length > 0) {
|
|
111
|
+
a(t, v);
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
var l = ne(s, !1);
|
|
115
|
+
if (l && l.length > 0) {
|
|
116
|
+
l.push(ge.i18nt("designer.hint.continue")), tt.multiple(l).then((w) => {
|
|
117
|
+
a(t);
|
|
118
|
+
});
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}), o);
|
|
123
|
+
}, oe = (e, t = !0) => {
|
|
124
|
+
if (L) {
|
|
125
|
+
var a = Le(e, [L]);
|
|
126
|
+
z(a, t), n(te.ContainerWidget, se.setFormData, e, [F.value]), n(te.FieldWidget, se.setFormData, e, [F.value]);
|
|
127
|
+
}
|
|
128
|
+
}, le = (e) => new Promise((t, a) => {
|
|
129
|
+
const o = (s, v) => {
|
|
130
|
+
var N;
|
|
131
|
+
const l = (N = M.value) == null ? void 0 : N.formDataLoaded;
|
|
132
|
+
let w = l ? l == null ? void 0 : l(O(), s) : s;
|
|
133
|
+
Ze(w) ? oe(w, !v) : w = {}, ae(w), t(w);
|
|
134
|
+
}, d = () => {
|
|
135
|
+
const s = (v) => {
|
|
136
|
+
o(v, !0);
|
|
137
|
+
};
|
|
138
|
+
B(q.newDataSource, void 0, s);
|
|
139
|
+
}, p = () => {
|
|
140
|
+
const s = (v) => {
|
|
141
|
+
var N;
|
|
142
|
+
const l = (N = M.value) == null ? void 0 : N.needFormAdd;
|
|
143
|
+
if ((l == null ? void 0 : l(v)) && _) {
|
|
144
|
+
d();
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
o(v, !1);
|
|
148
|
+
};
|
|
149
|
+
B(q.editDataSource, void 0, s);
|
|
150
|
+
}, r = k(q.editDataSource), _ = k(q.newDataSource);
|
|
151
|
+
r ? p() : _ && d();
|
|
152
|
+
});
|
|
153
|
+
return Ve(), ve(() => {
|
|
154
|
+
Xe(), De();
|
|
155
|
+
}), {
|
|
156
|
+
widgetRefList: F,
|
|
157
|
+
allWidgetRefList: u,
|
|
158
|
+
fieldEditor: f,
|
|
159
|
+
formModel: h,
|
|
160
|
+
pageConfig: C,
|
|
161
|
+
widgetList: b,
|
|
162
|
+
fieldModel: j,
|
|
163
|
+
fieldName: W,
|
|
164
|
+
attrs: $,
|
|
165
|
+
extendAttrs: M,
|
|
166
|
+
events: S,
|
|
167
|
+
rules: K,
|
|
168
|
+
loadData: le,
|
|
169
|
+
clearData: R,
|
|
170
|
+
exposed: {
|
|
171
|
+
...x,
|
|
172
|
+
setValue: oe,
|
|
173
|
+
getValue: je,
|
|
174
|
+
resetField: Oe,
|
|
175
|
+
clearData: R,
|
|
176
|
+
loadData: le,
|
|
177
|
+
getData: O,
|
|
178
|
+
//修改痕迹
|
|
179
|
+
clearChangeRecord: we,
|
|
180
|
+
getChangeRecord: Ce,
|
|
181
|
+
emit$: I
|
|
182
|
+
},
|
|
183
|
+
fieldObj: H
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
const ft = pe({ componentName: te.ContainerWidget }), mt = /* @__PURE__ */ pe({
|
|
187
|
+
...ft,
|
|
188
|
+
__name: "form-widget",
|
|
189
|
+
props: { ...Be },
|
|
190
|
+
setup(c, { expose: L }) {
|
|
191
|
+
var I;
|
|
192
|
+
const m = c, { exposed: C, formModel: b, fieldEditor: F, attrs: u, events: j, widgetRefList: W, extendAttrs: f, fieldName: $, fieldObj: S, loadData: k } = ut({ ...m, widgetList: (I = m == null ? void 0 : m.widget) == null ? void 0 : I.widgetList }), x = $.value, H = X(() => {
|
|
193
|
+
var n, i;
|
|
194
|
+
return {
|
|
195
|
+
disabled: (n = u.value) == null ? void 0 : n.disabled,
|
|
196
|
+
readonly: (i = f.value) == null ? void 0 : i.readonly
|
|
197
|
+
};
|
|
198
|
+
}), B = X(() => {
|
|
199
|
+
var n, i, E, y, h;
|
|
200
|
+
return {
|
|
201
|
+
size: (n = u.value) == null ? void 0 : n.size,
|
|
202
|
+
labelWidth: (i = u.value) == null ? void 0 : i.labelWidth,
|
|
203
|
+
labelSuffix: (E = u.value) == null ? void 0 : E.labelSuffix,
|
|
204
|
+
labelAlign: (y = f.value) == null ? void 0 : y.labelAlign,
|
|
205
|
+
displayLayout: (h = f.value) == null ? void 0 : h.displayLayout,
|
|
206
|
+
inForm: !0
|
|
207
|
+
};
|
|
208
|
+
}), D = ee(!1), M = X(() => {
|
|
209
|
+
var n;
|
|
210
|
+
return !m.designState && D.value && ((n = f.value) == null ? void 0 : n.showLoading);
|
|
211
|
+
});
|
|
212
|
+
ot.globalProvide({
|
|
213
|
+
globalFormName: x,
|
|
214
|
+
globalDataModel: b,
|
|
215
|
+
globalFormOptions: B,
|
|
216
|
+
globalWrapperOptions: H
|
|
217
|
+
});
|
|
218
|
+
const V = Ee(He.isRenderComplete), P = Ae(() => V == null ? void 0 : V.value, (n) => {
|
|
219
|
+
var i;
|
|
220
|
+
n && ((i = F.value) == null || i.validate(), P());
|
|
221
|
+
});
|
|
222
|
+
return ve(() => {
|
|
223
|
+
var n;
|
|
224
|
+
(n = f.value) != null && n.loadDataWhenInit && !m.designState && (D.value = !0, k(!0).catch((i) => {
|
|
225
|
+
}).finally(() => {
|
|
226
|
+
D.value = !1, C.clearChangeRecord();
|
|
227
|
+
}));
|
|
228
|
+
}), L({ ...C }), (n, i) => {
|
|
229
|
+
const E = Me("el-form"), y = Pe("loading");
|
|
230
|
+
return ie(), de(ze, Y(n.$props, {
|
|
231
|
+
"prop-options": { fieldObj: g(S) }
|
|
232
|
+
}), {
|
|
233
|
+
default: re(({ data: h }) => {
|
|
234
|
+
var z, O;
|
|
235
|
+
return [
|
|
236
|
+
Re((ie(), de(E, Y({
|
|
237
|
+
ref_key: "fieldEditor",
|
|
238
|
+
ref: F,
|
|
239
|
+
model: g(b)
|
|
240
|
+
}, g(u), Ne(g(j)), {
|
|
241
|
+
class: [...h.injectClass],
|
|
242
|
+
key: (z = g(S)) == null ? void 0 : z.fieldKey,
|
|
243
|
+
onSubmit: i[0] || (i[0] = $e(() => {
|
|
244
|
+
}, ["prevent"])),
|
|
245
|
+
"element-loading-text": ((O = g(f)) == null ? void 0 : O.loadingText) || g(ge).i18nt("designer.hint.loading"),
|
|
246
|
+
"element-loading-svg": g(rt)
|
|
247
|
+
}), {
|
|
248
|
+
default: re(() => {
|
|
249
|
+
var R;
|
|
250
|
+
return [
|
|
251
|
+
ke(Ie, Y(n.$props, {
|
|
252
|
+
dragClass: "formDrag padSize",
|
|
253
|
+
model: g(b),
|
|
254
|
+
provideModel: !0,
|
|
255
|
+
"component-class": h.componentWrapperClass,
|
|
256
|
+
refList: g(W),
|
|
257
|
+
"show-suspense": (R = g(f)) == null ? void 0 : R.showSuspense,
|
|
258
|
+
"parent-widget": n.widget,
|
|
259
|
+
"parent-tree": n.parentTree
|
|
260
|
+
}), null, 16, ["model", "component-class", "refList", "show-suspense", "parent-widget", "parent-tree"])
|
|
261
|
+
];
|
|
262
|
+
}),
|
|
263
|
+
_: 2
|
|
264
|
+
}, 1040, ["model", "class", "element-loading-text", "element-loading-svg"])), [
|
|
265
|
+
[y, M.value]
|
|
266
|
+
])
|
|
267
|
+
];
|
|
268
|
+
}),
|
|
269
|
+
_: 1
|
|
270
|
+
}, 16, ["prop-options"]);
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
const vt = /* @__PURE__ */ st(mt, [["__scopeId", "data-v-211d3a0d"]]), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
275
|
+
__proto__: null,
|
|
276
|
+
default: vt
|
|
277
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
278
|
+
export {
|
|
279
|
+
Lt as _,
|
|
280
|
+
ct as u
|
|
281
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Ai = Object.defineProperty;
|
|
2
2
|
var Fi = (t, n, o) => n in t ? Ai(t, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[n] = o;
|
|
3
3
|
var e = (t, n, o) => (Fi(t, typeof n != "symbol" ? n + "" : n, o), o);
|
|
4
|
-
import { q as nn, d as mt, f as Nn, z as Ae, B as se, o as Cn, c as Oe, v as _t, i as Yn,
|
|
4
|
+
import { q as nn, d as mt, f as Nn, z as Ae, B as se, o as Cn, c as Oe, v as _t, i as Yn, e as Me, E as hn } from "./enum-type-2272b21a.js";
|
|
5
5
|
import { reactive as Zn, computed as Bt, nextTick as Di, watch as Si, inject as st, provide as lt } from "vue";
|
|
6
|
-
import { m as Oi, g as pt } from "./uuid-
|
|
7
|
-
import { O as ki, c as k, h as Ve, C as a, i as ct, F as Ti, I as _i, R as Bi, j as Ii, k as Li, l as tt, D as Lt, T as xn, m as gt, n as Pi, o as Ri, p as Ni, q as Mi, r as Ui, s as Hi, t as Ue, L as er, u as on, v as An, w as tr, x as zi, y as sn, B as ji, H as jt, z as $i, A as Wi, G as Ki, J as Vi, K as Gi, M as nr, N as qi, Q as Xi, U as Ji, X as Qi, Y as Yi, Z as Zi, _ as Mn, $ as ea, a0 as ta, a1 as na, a2 as rr, a3 as ra, a4 as ia, a5 as aa, a6 as ir, a7 as oa, a8 as ar, a9 as sa, aa as vn, ab as la, ac as ua, ad as ca, ae as fa, af as or, ag as pa, ah as Un, ai as da, aj as ha, ak as wa, al as ya, am as va, an as ma, ao as ga, ap as ba, aq as Ea, ar as Ca, d as Fn, e as xa, as as Aa, at as Fa, au as Da, av as Sa, P as Hn } from "./enum-type-
|
|
8
|
-
import { S as J, I as sr, P as i, d as Ce, e as m, f as Ge, s as V, h as G, i as bt, j as le, k as Oa, m as Gt, n as Je, E as ka, o as ln, p as Dn, q as He, r as Pt, B as he, t as rn, v as ze, T as lr, w as ur } from "./baseImp-
|
|
9
|
-
import { b as Se, r as zn, m as Ta, p as cr, d as Be, a as _a } from "./expression-
|
|
6
|
+
import { m as Oi, g as pt } from "./uuid-4c2ca70a.js";
|
|
7
|
+
import { O as ki, c as k, h as Ve, C as a, i as ct, F as Ti, I as _i, R as Bi, j as Ii, k as Li, l as tt, D as Lt, T as xn, m as gt, n as Pi, o as Ri, p as Ni, q as Mi, r as Ui, s as Hi, t as Ue, L as er, u as on, v as An, w as tr, x as zi, y as sn, B as ji, H as jt, z as $i, A as Wi, G as Ki, J as Vi, K as Gi, M as nr, N as qi, Q as Xi, U as Ji, X as Qi, Y as Yi, Z as Zi, _ as Mn, $ as ea, a0 as ta, a1 as na, a2 as rr, a3 as ra, a4 as ia, a5 as aa, a6 as ir, a7 as oa, a8 as ar, a9 as sa, aa as vn, ab as la, ac as ua, ad as ca, ae as fa, af as or, ag as pa, ah as Un, ai as da, aj as ha, ak as wa, al as ya, am as va, an as ma, ao as ga, ap as ba, aq as Ea, ar as Ca, d as Fn, e as xa, as as Aa, at as Fa, au as Da, av as Sa, P as Hn } from "./enum-type-6135428c.js";
|
|
8
|
+
import { S as J, I as sr, P as i, d as Ce, e as m, f as Ge, s as V, h as G, i as bt, j as le, k as Oa, m as Gt, n as Je, E as ka, o as ln, p as Dn, q as He, r as Pt, B as he, t as rn, v as ze, T as lr, w as ur } from "./baseImp-bde6d061.js";
|
|
9
|
+
import { b as Se, r as zn, m as Ta, p as cr, d as Be, a as _a } from "./expression-b41be0ff.js";
|
|
10
10
|
import { c as jn } from "./_commonjsHelpers-e7ea1525.js";
|
|
11
11
|
function Ba(t) {
|
|
12
12
|
return t = t || /* @__PURE__ */ Object.create(null), {
|
|
@@ -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-e0ea5e2c.js";
|
|
2
2
|
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
default: e
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
import { w as k } from "./expression-
|
|
2
|
+
import { w as k } from "./expression-b41be0ff.js";
|
|
3
3
|
import { I as A } from "./widget-base-df734ada.js";
|
|
4
|
-
import { D as b } from "./drag-wrapper-
|
|
5
|
-
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
6
|
-
import { a as H } from "./share-field-
|
|
7
|
-
import { c as $ } from "./cssClass-
|
|
4
|
+
import { D as b } from "./drag-wrapper-f8996a38.js";
|
|
5
|
+
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-62d10561.js";
|
|
6
|
+
import { a as H } from "./share-field-85f172d9.js";
|
|
7
|
+
import { c as $ } from "./cssClass-b6ffbe49.js";
|
|
8
8
|
const z = m({ componentName: k.ContainerWidget }), V = /* @__PURE__ */ m({
|
|
9
9
|
...z,
|
|
10
10
|
__name: "grid-col-widget",
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
import { w as b } from "./expression-
|
|
2
|
+
import { w as b } from "./expression-b41be0ff.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-
|
|
5
|
-
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
6
|
-
import { a as y } from "./share-field-
|
|
7
|
-
import { c as P } from "./cssClass-
|
|
4
|
+
import { _ as O } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-e0ea5e2c.js";
|
|
5
|
+
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-62d10561.js";
|
|
6
|
+
import { a as y } from "./share-field-85f172d9.js";
|
|
7
|
+
import { c as P } from "./cssClass-b6ffbe49.js";
|
|
8
8
|
const B = p({ componentName: b.ContainerWidget }), I = /* @__PURE__ */ p({
|
|
9
9
|
...B,
|
|
10
10
|
__name: "grid-widget",
|
|
@@ -1,25 +1,25 @@
|
|
|
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
|
-
import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
3
|
-
import { a as T } from "./share-field-
|
|
4
|
-
import { D as v } from "./drag-wrapper-
|
|
5
|
-
import { w as q } from "./expression-
|
|
6
|
-
import { d as h } from "./slot-
|
|
2
|
+
import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-62d10561.js";
|
|
3
|
+
import { a as T } from "./share-field-85f172d9.js";
|
|
4
|
+
import { D as v } from "./drag-wrapper-f8996a38.js";
|
|
5
|
+
import { w as q } from "./expression-b41be0ff.js";
|
|
6
|
+
import { d as h } from "./slot-16fbbcdc.js";
|
|
7
7
|
import { I as A } from "./widget-base-df734ada.js";
|
|
8
8
|
import { g as i, a as G } from "./color-bae04003.js";
|
|
9
9
|
import { _ as J } from "./_plugin-vue_export-helper-dad06003.js";
|
|
10
|
-
import "./enum-type-
|
|
11
|
-
import "./global-provide-inject-
|
|
12
|
-
import "./uuid-
|
|
13
|
-
import "./enum-type-
|
|
14
|
-
import "./baseImp-
|
|
10
|
+
import "./enum-type-2272b21a.js";
|
|
11
|
+
import "./global-provide-inject-d9978a87.js";
|
|
12
|
+
import "./uuid-4c2ca70a.js";
|
|
13
|
+
import "./enum-type-6135428c.js";
|
|
14
|
+
import "./baseImp-bde6d061.js";
|
|
15
15
|
import "./icon-4e8380f7.js";
|
|
16
16
|
import "axios";
|
|
17
|
-
import "./dialog-
|
|
17
|
+
import "./dialog-5587563a.js";
|
|
18
18
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
19
19
|
import "element-plus";
|
|
20
|
-
import "./index-
|
|
21
|
-
import "./fieldobj-
|
|
22
|
-
import "./multirow-
|
|
20
|
+
import "./index-9569518a.js";
|
|
21
|
+
import "./fieldobj-94bc6810.js";
|
|
22
|
+
import "./multirow-4e9816b6.js";
|
|
23
23
|
import "./source-map-b04aec4a.js";
|
|
24
24
|
import "./esprima-e8d15055.js";
|
|
25
25
|
const L = { class: "--hcard-header" }, M = C({ componentName: q.ContainerWidget }), Q = /* @__PURE__ */ C({
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { defineComponent as e, openBlock as _, createBlock as u, mergeProps as x, unref as o, withCtx as g, createVNode as w } from "vue";
|
|
2
2
|
import { I as C } from "./field-base-66c90648.js";
|
|
3
|
-
import { a as P } from "./share-field-
|
|
4
|
-
import { w as h } from "./expression-
|
|
5
|
-
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
6
|
-
import { _ as k } from "./content-wrapper.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { a as P } from "./share-field-85f172d9.js";
|
|
4
|
+
import { w as h } from "./expression-b41be0ff.js";
|
|
5
|
+
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-62d10561.js";
|
|
6
|
+
import { _ as k } from "./content-wrapper.vue_vue_type_script_setup_true_lang-300eb1df.js";
|
|
7
7
|
import "./widget-base-df734ada.js";
|
|
8
|
-
import "./enum-type-
|
|
9
|
-
import "./multirow-
|
|
10
|
-
import "./baseImp-
|
|
11
|
-
import "./enum-type-
|
|
8
|
+
import "./enum-type-2272b21a.js";
|
|
9
|
+
import "./multirow-4e9816b6.js";
|
|
10
|
+
import "./baseImp-bde6d061.js";
|
|
11
|
+
import "./enum-type-6135428c.js";
|
|
12
12
|
import "./icon-4e8380f7.js";
|
|
13
13
|
import "axios";
|
|
14
|
-
import "./dialog-
|
|
14
|
+
import "./dialog-5587563a.js";
|
|
15
15
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
16
|
-
import "./uuid-
|
|
16
|
+
import "./uuid-4c2ca70a.js";
|
|
17
17
|
import "element-plus";
|
|
18
|
-
import "./global-provide-inject-
|
|
19
|
-
import "./slot-
|
|
18
|
+
import "./global-provide-inject-d9978a87.js";
|
|
19
|
+
import "./slot-16fbbcdc.js";
|
|
20
20
|
import "./source-map-b04aec4a.js";
|
|
21
21
|
import "./esprima-e8d15055.js";
|
|
22
|
-
import "./index-
|
|
22
|
+
import "./index-9569518a.js";
|
|
23
23
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
24
|
-
import "./fieldobj-
|
|
24
|
+
import "./fieldobj-94bc6810.js";
|
|
25
25
|
const F = e({ componentName: h.FieldWidget }), U = /* @__PURE__ */ e({
|
|
26
26
|
...F,
|
|
27
27
|
__name: "html-text-widget",
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineComponent as d, resolveComponent as D, openBlock as i, createBlock as r, mergeProps as c, unref as o, withCtx as f, toHandlers as k, resolveDynamicComponent as v } from "vue";
|
|
2
2
|
import { I as F } from "./field-base-66c90648.js";
|
|
3
|
-
import { w as S } from "./expression-
|
|
4
|
-
import { a as b } from "./share-field-
|
|
5
|
-
import { _ as h } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
6
|
-
import { S as B } from "./enum-type-
|
|
3
|
+
import { w as S } from "./expression-b41be0ff.js";
|
|
4
|
+
import { a as b } from "./share-field-85f172d9.js";
|
|
5
|
+
import { _ as h } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-62d10561.js";
|
|
6
|
+
import { S as B } from "./enum-type-6135428c.js";
|
|
7
7
|
import "./widget-base-df734ada.js";
|
|
8
8
|
import "./source-map-b04aec4a.js";
|
|
9
|
-
import "./enum-type-
|
|
10
|
-
import "./uuid-
|
|
9
|
+
import "./enum-type-2272b21a.js";
|
|
10
|
+
import "./uuid-4c2ca70a.js";
|
|
11
11
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
12
12
|
import "./esprima-e8d15055.js";
|
|
13
|
-
import "./multirow-
|
|
14
|
-
import "./baseImp-
|
|
13
|
+
import "./multirow-4e9816b6.js";
|
|
14
|
+
import "./baseImp-bde6d061.js";
|
|
15
15
|
import "./icon-4e8380f7.js";
|
|
16
16
|
import "axios";
|
|
17
|
-
import "./dialog-
|
|
17
|
+
import "./dialog-5587563a.js";
|
|
18
18
|
import "element-plus";
|
|
19
|
-
import "./global-provide-inject-
|
|
20
|
-
import "./slot-
|
|
21
|
-
import "./index-
|
|
19
|
+
import "./global-provide-inject-d9978a87.js";
|
|
20
|
+
import "./slot-16fbbcdc.js";
|
|
21
|
+
import "./index-9569518a.js";
|
|
22
22
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
|
-
import "./fieldobj-
|
|
23
|
+
import "./fieldobj-94bc6810.js";
|
|
24
24
|
const I = d({ componentName: S.FieldWidget }), to = /* @__PURE__ */ d({
|
|
25
25
|
...I,
|
|
26
26
|
__name: "icon-widget",
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { defineComponent as B, ref as _, computed as P, resolveComponent as T, openBlock as y, createBlock as U, mergeProps as b, unref as m, withCtx as j, createCommentVNode as V, withDirectives as H, createVNode as K, createElementBlock as M, toHandlers as R, vShow as W } from "vue";
|
|
2
|
+
import { H as w } from "./baseImp-bde6d061.js";
|
|
3
|
+
import { g as q } from "./uuid-4c2ca70a.js";
|
|
4
|
+
import { l as k } from "./enum-type-2272b21a.js";
|
|
5
|
+
import { w as x } from "./expression-b41be0ff.js";
|
|
6
|
+
import { a as z } from "./share-field-85f172d9.js";
|
|
7
|
+
import { _ as G } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-62d10561.js";
|
|
8
|
+
import { I as J } from "./field-base-66c90648.js";
|
|
9
|
+
import { M as X } from "./mask-1d8061d6.js";
|
|
10
|
+
import "./enum-type-6135428c.js";
|
|
11
|
+
import "./icon-4e8380f7.js";
|
|
12
|
+
import "axios";
|
|
13
|
+
import "./dialog-5587563a.js";
|
|
14
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
+
import "element-plus";
|
|
16
|
+
import "./source-map-b04aec4a.js";
|
|
17
|
+
import "./esprima-e8d15055.js";
|
|
18
|
+
import "./multirow-4e9816b6.js";
|
|
19
|
+
import "./global-provide-inject-d9978a87.js";
|
|
20
|
+
import "./slot-16fbbcdc.js";
|
|
21
|
+
import "./widget-base-df734ada.js";
|
|
22
|
+
import "./index-9569518a.js";
|
|
23
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
24
|
+
import "./fieldobj-94bc6810.js";
|
|
25
|
+
import "./index-6bcfdc22.js";
|
|
26
|
+
function Y(c, v) {
|
|
27
|
+
var u;
|
|
28
|
+
if (!c) {
|
|
29
|
+
k.error("iframe is empty");
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const i = (u = c.contentWindow) == null ? void 0 : u.document;
|
|
33
|
+
if (!i) {
|
|
34
|
+
k.error("iframe doc is empty");
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
i.open(), i.write(v), i.close();
|
|
38
|
+
}
|
|
39
|
+
const Z = ["src", "id"], D = B({ componentName: x.FieldWidget }), ke = /* @__PURE__ */ B({
|
|
40
|
+
...D,
|
|
41
|
+
__name: "iframe-widget",
|
|
42
|
+
props: { ...J },
|
|
43
|
+
setup(c, { expose: v }) {
|
|
44
|
+
const i = c, { exposed: u, fieldEditor: C, events: a, attrs: S, extendAttrs: n, fieldObj: F, fieldKey: N, fieldName: Q, refreshKey: $ } = z(i), h = _(!1), g = _(), I = _(), L = _(Date.now()), p = P(() => {
|
|
45
|
+
var t;
|
|
46
|
+
if (g.value)
|
|
47
|
+
return g.value;
|
|
48
|
+
const e = I.value || S.value.src, r = E(e);
|
|
49
|
+
if (i.designState)
|
|
50
|
+
return r;
|
|
51
|
+
const o = (t = a.value) == null ? void 0 : t.urlFormatter;
|
|
52
|
+
return o !== void 0 ? o == null ? void 0 : o(r) : r;
|
|
53
|
+
}), E = (e) => {
|
|
54
|
+
var s, l;
|
|
55
|
+
if (e == "")
|
|
56
|
+
return "";
|
|
57
|
+
const o = ((s = n == null ? void 0 : n.value) == null ? void 0 : s.withQuery) ? w.getLocationQueryParams() : {};
|
|
58
|
+
Object.assign(o, { _timestamp: L.value });
|
|
59
|
+
const t = w.buildUrl(e, o, { addtimestamp: !1 });
|
|
60
|
+
if (!t)
|
|
61
|
+
return "";
|
|
62
|
+
const f = (l = n == null ? void 0 : n.value) == null ? void 0 : l.hashRouter;
|
|
63
|
+
return w.resolveByCurrentUrl(t, f ? q() + "" : "");
|
|
64
|
+
}, d = () => {
|
|
65
|
+
h.value = !1, $();
|
|
66
|
+
}, O = () => {
|
|
67
|
+
setTimeout(() => {
|
|
68
|
+
var e, r;
|
|
69
|
+
h.value = !0, (r = (e = a == null ? void 0 : a.value) == null ? void 0 : e.onLoaded) == null || r.call(e);
|
|
70
|
+
}, 1e3);
|
|
71
|
+
};
|
|
72
|
+
return v({
|
|
73
|
+
...u,
|
|
74
|
+
loadSrc: (e) => {
|
|
75
|
+
d(), I.value = e;
|
|
76
|
+
},
|
|
77
|
+
loadUrl: (e) => {
|
|
78
|
+
d(), g.value = e;
|
|
79
|
+
},
|
|
80
|
+
loadContent: (e) => {
|
|
81
|
+
d(), Y(C.value, e);
|
|
82
|
+
},
|
|
83
|
+
refresh: () => {
|
|
84
|
+
L.value = Date.now(), d();
|
|
85
|
+
}
|
|
86
|
+
}), (e, r) => {
|
|
87
|
+
var t;
|
|
88
|
+
const o = T("el-empty");
|
|
89
|
+
return y(), U(G, b(e.$props, {
|
|
90
|
+
"prop-options": { fieldObj: m(F) },
|
|
91
|
+
key: (t = e.widget) == null ? void 0 : t.id
|
|
92
|
+
}), {
|
|
93
|
+
default: j(({ data: f }) => {
|
|
94
|
+
var s;
|
|
95
|
+
return [
|
|
96
|
+
p.value ? V("", !0) : (y(), U(o, {
|
|
97
|
+
key: 0,
|
|
98
|
+
description: (s = m(S)) == null ? void 0 : s.emptyText,
|
|
99
|
+
class: "full-width full-height nopadding nomargin"
|
|
100
|
+
}, null, 8, ["description"])),
|
|
101
|
+
H(K(X, {
|
|
102
|
+
loading: !h.value
|
|
103
|
+
}, {
|
|
104
|
+
default: j(({ maskData: l }) => [
|
|
105
|
+
(y(), M("iframe", b({
|
|
106
|
+
ref_key: "fieldEditor",
|
|
107
|
+
ref: C,
|
|
108
|
+
key: `${m(N)}_${p.value}`
|
|
109
|
+
}, R(m(a), !0), {
|
|
110
|
+
onLoad: O,
|
|
111
|
+
src: p.value,
|
|
112
|
+
class: [[...f.injectClass, ...l == null ? void 0 : l.class], "full-width full-height nopadding nomargin hlIframe"],
|
|
113
|
+
frameborder: 0,
|
|
114
|
+
style: f.injectStyle,
|
|
115
|
+
id: m(Q)
|
|
116
|
+
}), null, 16, Z))
|
|
117
|
+
]),
|
|
118
|
+
_: 2
|
|
119
|
+
}, 1032, ["loading"]), [
|
|
120
|
+
[W, !!p.value]
|
|
121
|
+
])
|
|
122
|
+
];
|
|
123
|
+
}),
|
|
124
|
+
_: 1
|
|
125
|
+
}, 16, ["prop-options"]);
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
export {
|
|
130
|
+
ke as default
|
|
131
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineComponent as c, computed as S, resolveComponent as j, openBlock as m, createBlock as n, mergeProps as d, unref as e, withCtx as l, toHandlers as F, createSlots as N, renderList as O, resolveDynamicComponent as b, createCommentVNode as B } from "vue";
|
|
2
|
-
import { w as D } from "./expression-
|
|
2
|
+
import { w as D } from "./expression-b41be0ff.js";
|
|
3
3
|
import { I as E } from "./field-base-66c90648.js";
|
|
4
|
-
import { _ as L } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
5
|
-
import { a as P } from "./share-field-
|
|
6
|
-
import { g as V } from "./slot-
|
|
4
|
+
import { _ as L } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-62d10561.js";
|
|
5
|
+
import { a as P } from "./share-field-85f172d9.js";
|
|
6
|
+
import { g as V } from "./slot-16fbbcdc.js";
|
|
7
7
|
import "./source-map-b04aec4a.js";
|
|
8
|
-
import "./enum-type-
|
|
9
|
-
import "./uuid-
|
|
8
|
+
import "./enum-type-2272b21a.js";
|
|
9
|
+
import "./uuid-4c2ca70a.js";
|
|
10
10
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
11
11
|
import "./esprima-e8d15055.js";
|
|
12
12
|
import "./widget-base-df734ada.js";
|
|
13
|
-
import "./global-provide-inject-
|
|
14
|
-
import "./enum-type-
|
|
15
|
-
import "./baseImp-
|
|
13
|
+
import "./global-provide-inject-d9978a87.js";
|
|
14
|
+
import "./enum-type-6135428c.js";
|
|
15
|
+
import "./baseImp-bde6d061.js";
|
|
16
16
|
import "./icon-4e8380f7.js";
|
|
17
17
|
import "axios";
|
|
18
|
-
import "./dialog-
|
|
18
|
+
import "./dialog-5587563a.js";
|
|
19
19
|
import "element-plus";
|
|
20
|
-
import "./index-
|
|
20
|
+
import "./index-9569518a.js";
|
|
21
21
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
22
|
-
import "./fieldobj-
|
|
23
|
-
import "./multirow-
|
|
22
|
+
import "./fieldobj-94bc6810.js";
|
|
23
|
+
import "./multirow-4e9816b6.js";
|
|
24
24
|
const $ = c({ componentName: D.FieldWidget }), ne = /* @__PURE__ */ c({
|
|
25
25
|
...$,
|
|
26
26
|
__name: "image-widget",
|