hlrender 0.0.286 → 0.0.288
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-a296b8ed.js → _pdf-b35bf271.js} +6 -6
- package/{_txt-4777e820.js → _txt-443eaa47.js} +6 -6
- package/{_unsupport-6395882c.js → _unsupport-cf3c950b.js} +1 -1
- package/{affix-widget-c4065b27.js → affix-widget-88c1e722.js} +16 -16
- package/{alert-widget-ff10c60b.js → alert-widget-bccc61c2.js} +16 -16
- package/{anchor-widget-127b46a5.js → anchor-widget-0ae40083.js} +13 -13
- package/{auto-complete-widget-4c883842.js → auto-complete-widget-30189399.js} +16 -16
- package/{avatar-widget-3b22d828.js → avatar-widget-2a369f90.js} +16 -16
- package/{backtop-widget-4c3c2891.js → backtop-widget-dd9c75ee.js} +16 -16
- package/{badge-widget-904a3f45.js → badge-widget-f22829e6.js} +16 -16
- package/{barcode-widget-2588d202.js → barcode-widget-c72476ef.js} +13 -13
- package/{baseImp-9b58e733.js → baseImp-df668798.js} +6 -6
- package/{breadcrumb-widget-067b874c.js → breadcrumb-widget-29b4b662.js} +13 -13
- package/{button-widget-f9c69dd8.js → button-widget-5f610b64.js} +16 -16
- package/{cache-widget-22fbdaad.js → cache-widget-a7d837c5.js} +15 -15
- package/{card-widget-3d2b5c3c.js → card-widget-ad1372e2.js} +14 -14
- package/{carousel-widget-9962f004.js → carousel-widget-bb07655a.js} +14 -14
- package/{cascader-widget-7764ddc2.js → cascader-widget-296b60b9.js} +15 -15
- package/chart-widget-915c849a.js +90 -0
- package/{checkbox-widget-77a40e84.js → checkbox-widget-2fd2802c.js} +15 -15
- package/{collapse-widget-1091233f.js → collapse-widget-30dff916.js} +14 -14
- package/{color-picker-widget-7365857c.js → color-picker-widget-38f1df08.js} +15 -15
- package/{cont-cell-widget-d1558236.js → cont-cell-widget-b5102b11.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-02ed20f1.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-721f8696.js} +5 -5
- package/{cont-widget-98e0b55e.js → cont-widget-aa778e24.js} +5 -5
- package/{content-wrapper-3dc1044e.js → content-wrapper-5ddc6ad6.js} +7 -7
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-5dffd598.js → content-wrapper.vue_vue_type_script_setup_true_lang-d355db07.js} +3 -3
- package/{countdown-widget-0cd4caf2.js → countdown-widget-ad93dd96.js} +16 -16
- package/{cssClass-0ad1f6a9.js → cssClass-8a9a67ca.js} +2 -2
- package/{date-picker-range-widget-df8df55d.js → date-picker-range-widget-4c4bdb5e.js} +15 -15
- package/{date-picker-widget-26f89536.js → date-picker-widget-9d76ded3.js} +15 -15
- package/default-slot-widget-b0fe24bb.js +27 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-b6ecb71d.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-42804788.js} +7 -7
- package/{descriptions-widget-920a7e7b.js → descriptions-widget-02cc4f1d.js} +14 -14
- package/{dialog-ac1079e2.js → dialog-72c9fee2.js} +5 -5
- package/{dialog-widget-21c79556.js → dialog-widget-847bca81.js} +15 -15
- package/{divider-widget-7e03bd52.js → divider-widget-78f877c4.js} +16 -16
- package/{drag-wrapper-36615ce0.js → drag-wrapper-e1759ecb.js} +6 -6
- package/{drawer-widget-2df5c04d.js → drawer-widget-ead750ce.js} +15 -15
- package/{dropdown-widget-6087546a.js → dropdown-widget-0060114a.js} +14 -14
- package/{empty-widget-2acf4fd8.js → empty-widget-ed32b4d9.js} +16 -16
- package/{enum-type-b9b133f4.js → enum-type-07387ae0.js} +1 -1
- package/{enum-type-52a6b12a.js → enum-type-a1e82b20.js} +1 -1
- package/{expression-11846fd1.js → expression-9425784a.js} +2 -2
- package/feedback-widget-e5410b4c.js +27 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-89da1996.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-81418b66.js} +6 -6
- package/{fieldobj-444b15a2.js → fieldobj-87c20520.js} +1 -1
- package/{file-upload-widget-530ead59.js → file-upload-widget-80e3e49a.js} +20 -20
- package/{form-item-wrapper-4cec7bbe.js → form-item-wrapper-6216610d.js} +11 -11
- package/form-widget-a7e980bd.js +313 -0
- package/{global-provide-inject-6d2932d0.js → global-provide-inject-65b5523b.js} +5 -5
- package/{grid-col-widget-f6e1818f.js → grid-col-widget-2cc84777.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-d585a977.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-c79be913.js} +5 -5
- package/{grid-widget-5b394a6e.js → grid-widget-730fa7a7.js} +5 -5
- package/{hcard-widget-4546722a.js → hcard-widget-04b193b2.js} +14 -14
- package/{html-text-widget-a51a53fd.js → html-text-widget-06a1350b.js} +14 -14
- package/{icon-widget-c9775148.js → icon-widget-9ee80ce4.js} +13 -13
- package/iframe-widget-180ffdae.js +130 -0
- package/{image-widget-c48be9f7.js → image-widget-d253b761.js} +13 -13
- package/{index-f9b79d02.js → index-1810c59c.js} +1 -1
- package/index-e519b1d0.js +237 -0
- package/{input-number-widget-899ebe13.js → input-number-widget-66864bdc.js} +15 -15
- package/{input-tag-widget-69867f07.js → input-tag-widget-736b6f43.js} +16 -16
- package/{input-widget-d98570bb.js → input-widget-569c488c.js} +16 -16
- package/{label-wrapper-b3056f03.js → label-wrapper-1ded736d.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-e7be73d8.js → label-wrapper.vue_vue_type_style_index_0_lang-079b7f50.js} +3 -3
- package/{link-widget-f61630fc.js → link-widget-298da9bb.js} +16 -16
- package/{ltable-col-widget-6a055b7f.js → ltable-col-widget-1dd83d97.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-98d08c6d.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-84cb1c4b.js} +9 -9
- package/{ltable-widget-973c487a.js → ltable-widget-5852228f.js} +5 -5
- package/mask-772d4739.js +42 -0
- package/{mention-widget-fa7ce36f.js → mention-widget-e8d8866e.js} +16 -16
- package/{menu-widget-23a42aae.js → menu-widget-18550bad.js} +14 -14
- package/{model-widget-3874d793.js → model-widget-fbaeab4b.js} +13 -13
- package/{multirow-29ad4d31.js → multirow-62d9592a.js} +6 -6
- package/{multirow-widget-1ab52ccd.js → multirow-widget-661dc0c3.js} +15 -15
- package/package.json +1 -1
- package/{pagination-widget-afba979f.js → pagination-widget-ba9896de.js} +13 -13
- package/{picture-upload-widget-9b2aba9f.js → picture-upload-widget-37be6ee6.js} +16 -16
- package/{progress-widget-dbfc8213.js → progress-widget-4fb3a225.js} +14 -14
- package/{qrcode-widget-61ea4de5.js → qrcode-widget-a2e10db9.js} +13 -13
- package/{radio-widget-44b5fb08.js → radio-widget-d92dce59.js} +15 -15
- package/{range-widget-d37c84ca.js → range-widget-731ad98e.js} +16 -16
- package/{rate-widget-ad1412cb.js → rate-widget-58152cd8.js} +15 -15
- package/render.es.js +144 -139
- package/render.style.css +1 -1
- package/render.umd.js +121 -121
- package/{result-widget-467a1a87.js → result-widget-2e9e6271.js} +14 -14
- package/{rich-editor-widget-a9997240.js → rich-editor-widget-f8e79bdc.js} +15 -15
- package/{router-widget-eac989fb.js → router-widget-0dcbeb42.js} +13 -13
- package/{segmented-widget-a4e6f534.js → segmented-widget-0951ec26.js} +13 -13
- package/{select-widget-ec70edd0.js → select-widget-4b3a9a7d.js} +15 -15
- package/{sfc-a41c7416.js → sfc-d276bd8a.js} +8 -8
- package/{sfcview-c0ee8b66.js → sfcview-b819b120.js} +7 -7
- package/{share-field-c6ed3ba9.js → share-field-203045dd.js} +8 -8
- package/{share-file-26d67e57.js → share-file-5d1174d3.js} +6 -6
- package/{skeleton-widget-c2eedd00.js → skeleton-widget-c09bf46e.js} +16 -16
- package/{skeletonItem-widget-42445a2e.js → skeletonItem-widget-bff4f1e3.js} +13 -13
- package/{slider-widget-5a4fe6a7.js → slider-widget-36a4e357.js} +15 -15
- package/{slot-31d7643d.js → slot-aaf57901.js} +3 -3
- package/{space-widget-94bd590b.js → space-widget-65fb21a0.js} +14 -14
- package/{splitter-widget-0bb69636.js → splitter-widget-f3e7ff18.js} +14 -14
- package/{static-text-widget-ae1d8d8b.js → static-text-widget-bfd9252a.js} +14 -14
- package/{statistic-widget-ca42b1d0.js → statistic-widget-d6006b60.js} +16 -16
- package/{steps-widget-6d3f000d.js → steps-widget-7a895029.js} +13 -13
- package/{subMenu-widget-e50bb427.js → subMenu-widget-434e571b.js} +8 -8
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-cd5da56f.js → subMenu-widget.vue_vue_type_script_setup_true_lang-c7555105.js} +3 -3
- package/{switch-widget-b28d9792.js → switch-widget-4163ce07.js} +15 -15
- package/{tab-pane-widget-36660de8.js → tab-pane-widget-3783d01e.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-739df3b2.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-7c2bfd14.js} +5 -5
- package/table-col-widget-529a478b.js +23 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-7471bca3.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-709742ec.js} +7 -7
- package/{table-widget-bc45d4a8.js → table-widget-caf8be71.js} +15 -15
- package/{tabs-widget-9efd7958.js → tabs-widget-45f04b23.js} +7 -7
- package/{tag-widget-097ab070.js → tag-widget-f9a5a760.js} +16 -16
- package/{text-widget-aebddadf.js → text-widget-0d2908a3.js} +16 -16
- package/{textarea-widget-373a765d.js → textarea-widget-2df7fe28.js} +15 -15
- package/{time-picker-range-widget-cd271bd9.js → time-picker-range-widget-322b7df7.js} +15 -15
- package/{time-picker-widget-72a2e0c0.js → time-picker-widget-e5874b61.js} +15 -15
- package/{time-select-widget-53fd555d.js → time-select-widget-e46f3a3c.js} +15 -15
- package/{timeline-widget-ef5890cf.js → timeline-widget-2286db9b.js} +14 -14
- package/{tmpl-widget-236ceda4.js → tmpl-widget-f79f4381.js} +14 -14
- package/{tooltip-widget-fd7f446f.js → tooltip-widget-1d6f5852.js} +14 -14
- package/{tour-widget-6d0af588.js → tour-widget-faafdd36.js} +13 -13
- package/{transfer-widget-94741e91.js → transfer-widget-b882d35c.js} +16 -16
- package/{tree-select-widget-aae42d5d.js → tree-select-widget-af3ba51f.js} +15 -15
- package/{tree-widget-2b547c2c.js → tree-widget-adc04f63.js} +13 -13
- package/{uuid-1b528338.js → uuid-95341c36.js} +1 -1
- package/{verifycode-widget-d34c9c56.js → verifycode-widget-91074896.js} +13 -13
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b5783744.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c15079c9.js} +7 -7
- package/{wrapper-widget-94ca963a.js → wrapper-widget-180649f1.js} +7 -7
- package/chart-widget-cc786a3b.js +0 -89
- package/default-slot-widget-74a70443.js +0 -27
- package/feedback-widget-0ea3c175.js +0 -27
- package/form-widget-d5140a0c.js +0 -305
- package/iframe-widget-1b917f36.js +0 -140
- package/index-c926edb8.js +0 -241
- package/table-col-widget-c78eb5f8.js +0 -23
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { ref as ee, reactive as Q, onMounted as _e, nextTick as Be, defineComponent as ie, resolveComponent as he, withDirectives as Me, openBlock as te, createElementBlock as Ne, createElementVNode as ae, createVNode as q, withCtx as ne, unref as g, toDisplayString as Pe, vShow as Re, computed as X, inject as ke, watch as Ie, createBlock as ue, mergeProps as Y, toHandlers as ze, withModifiers as Te } from "vue";
|
|
2
|
+
import { I as qe } from "./widget-base-df734ada.js";
|
|
3
|
+
import { D as He } from "./drag-wrapper-e1759ecb.js";
|
|
4
|
+
import { _ as Ge } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c15079c9.js";
|
|
5
|
+
import { w as oe, f as fe, b as T, a as $, i as Ke, j as Ue, d as Je } from "./expression-9425784a.js";
|
|
6
|
+
import { u as Qe } from "./icon-4e8380f7.js";
|
|
7
|
+
import { u as Xe, a as Ye } from "./multirow-62d9592a.js";
|
|
8
|
+
import { a as Ze, c as et, b as tt, z as Z, F as me, n as be, d as pe, G as ve, v as at, e as nt } from "./enum-type-a1e82b20.js";
|
|
9
|
+
import { b as ot, c as ge, $ as it, B as lt } from "./baseImp-df668798.js";
|
|
10
|
+
import { f as dt, F as st } from "./global-provide-inject-65b5523b.js";
|
|
11
|
+
import { a as rt, u as ct } from "./share-field-203045dd.js";
|
|
12
|
+
import { W as ut } from "./enum-type-07387ae0.js";
|
|
13
|
+
import { Loading as ft } from "./index-6bcfdc22.js";
|
|
14
|
+
import { _ as Ce } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
|
+
function mt(l, W) {
|
|
16
|
+
const { getWidgetOption: u, getWidgetOptionByPropValue: _ } = ot(l, W), C = (f) => u(f);
|
|
17
|
+
return {
|
|
18
|
+
existFunc: C,
|
|
19
|
+
handleFunc: (f, O) => {
|
|
20
|
+
if (Ze(f)) {
|
|
21
|
+
var S = C(String(f));
|
|
22
|
+
return ge(S, O);
|
|
23
|
+
} else {
|
|
24
|
+
var S = _(et(f));
|
|
25
|
+
return ge(S, O);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function pt(l) {
|
|
31
|
+
const W = l.widget, u = l.designer, _ = u == null ? void 0 : u.pageConfig, C = l == null ? void 0 : l.widgetList, w = ee({}), f = {}, { fieldModel: O, fieldName: S, fieldEditor: m, attrs: N, events: x, hasFieldOptions: P, exposed: E, fieldObj: H, watchOption: R, propResultOpt: D, extendAttrs: A } = rt(l), { off$: V, on$: B, emit$: k, broadcast: n } = Ye();
|
|
32
|
+
var { instance: d } = Qe();
|
|
33
|
+
const { setAllRefList: j } = ct(w.value), F = { designState: l == null ? void 0 : l.designState, pageConfig: _, globalConfig: D == null ? void 0 : D.globalConfig }, { formModel: h, setData: I, getData: L, clearData: le } = Xe(C, { ...F }, d), { handleFunc: G } = mt({ options: _ }, F), K = Q({}), we = () => {
|
|
34
|
+
V($.fieldChange), B($.fieldChange, (e) => {
|
|
35
|
+
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);
|
|
36
|
+
});
|
|
37
|
+
}, Fe = () => {
|
|
38
|
+
V($.fieldValidation), B($.fieldValidation, (e) => {
|
|
39
|
+
var t;
|
|
40
|
+
(t = m.value) == null || t.validateField(e == null ? void 0 : e.propName);
|
|
41
|
+
});
|
|
42
|
+
}, ye = () => {
|
|
43
|
+
V($.fieldRuleChange), B($.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 }), N.value.rules = K;
|
|
52
|
+
});
|
|
53
|
+
}, U = ee(!1), J = Q({}), z = Q({}), de = (e) => {
|
|
54
|
+
me(z), pe(z, e);
|
|
55
|
+
}, We = () => ({
|
|
56
|
+
change_info: Z(J),
|
|
57
|
+
before_info: Z(z),
|
|
58
|
+
after_info: Z(h),
|
|
59
|
+
flag: U.value
|
|
60
|
+
}), Se = (e, t, a) => {
|
|
61
|
+
var o = z[e];
|
|
62
|
+
ve(t, a) || ve(t, o) || (U.value = !0, e && pe(J, { [e]: { oldValue: o, newValue: t, beforeValue: a } }));
|
|
63
|
+
}, xe = () => {
|
|
64
|
+
U.value = !1, me(J), de(L());
|
|
65
|
+
}, De = (e, t, a) => {
|
|
66
|
+
G(x.value.formDataChange, { field: { fieldName: e, newValue: t, oldValue: a }, formModel: h });
|
|
67
|
+
}, Ve = () => {
|
|
68
|
+
G(x.value.formCreated);
|
|
69
|
+
}, Le = () => {
|
|
70
|
+
G(x.value.formMounted);
|
|
71
|
+
}, Oe = () => {
|
|
72
|
+
ye(), we(), Fe(), Ve();
|
|
73
|
+
}, Ee = (e) => {
|
|
74
|
+
var t;
|
|
75
|
+
(t = m.value) == null || t.clearValidate(e);
|
|
76
|
+
}, je = () => {
|
|
77
|
+
j(ut.resetField), Be(() => {
|
|
78
|
+
Ee();
|
|
79
|
+
});
|
|
80
|
+
}, se = (e, t) => {
|
|
81
|
+
let a = [];
|
|
82
|
+
for (let v in e) {
|
|
83
|
+
var o = e[v], s = o == null ? void 0 : o.filter((r) => (r == null ? void 0 : r.force) === t);
|
|
84
|
+
s == null || s.forEach((r) => {
|
|
85
|
+
var c;
|
|
86
|
+
const b = (c = r == null ? void 0 : r.rule) == null ? void 0 : c.label;
|
|
87
|
+
r.message && a.push(Ke(b ? "【" + b + "】" : "", r.message, ":"));
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
return Ue(a);
|
|
91
|
+
}, $e = (e, t) => {
|
|
92
|
+
var a = {};
|
|
93
|
+
return dt(t, (o) => {
|
|
94
|
+
var s = lt.getName(o), v = at(e, s);
|
|
95
|
+
return v && (a[s] = e[s]), v;
|
|
96
|
+
}, !1), a;
|
|
97
|
+
}, Ae = (e = !0) => {
|
|
98
|
+
var s, v, r;
|
|
99
|
+
let t = L(), a = function() {
|
|
100
|
+
}, o = new Promise(function(b, c) {
|
|
101
|
+
a = function(p, i) {
|
|
102
|
+
(i ? c : b)({ data: p, isSuccess: !i, message: i });
|
|
103
|
+
};
|
|
104
|
+
});
|
|
105
|
+
return !((s = m.value) != null && s.validate) || !e ? (a(t), o) : ((r = (v = m.value) == null ? void 0 : v.validate) == null || r.call(v, (b, c) => {
|
|
106
|
+
if (b)
|
|
107
|
+
a(t);
|
|
108
|
+
else {
|
|
109
|
+
var p = se(c, !0);
|
|
110
|
+
if (p && p.length > 0) {
|
|
111
|
+
a(t, p);
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
var i = se(c, !1);
|
|
115
|
+
if (i && i.length > 0) {
|
|
116
|
+
i.push(be.i18nt("designer.hint.continue")), it.multiple(i).then((y) => {
|
|
117
|
+
a(t);
|
|
118
|
+
});
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}), o);
|
|
123
|
+
}, re = (e, t = !0) => {
|
|
124
|
+
if (W) {
|
|
125
|
+
var a = $e(e, [W]);
|
|
126
|
+
I(a, t), n(oe.ContainerWidget, fe.setFormData, e, [w.value]), n(oe.FieldWidget, fe.setFormData, e, [w.value]);
|
|
127
|
+
}
|
|
128
|
+
}, ce = (e) => new Promise((t, a) => {
|
|
129
|
+
const o = (c, p) => {
|
|
130
|
+
var M;
|
|
131
|
+
const i = (M = A.value) == null ? void 0 : M.formDataLoaded;
|
|
132
|
+
let y = i ? i == null ? void 0 : i(L(), c) : c;
|
|
133
|
+
nt(y) ? re(y, !p) : y = {}, de(y), t(y);
|
|
134
|
+
}, s = () => {
|
|
135
|
+
const c = (p) => {
|
|
136
|
+
o(p, !0);
|
|
137
|
+
};
|
|
138
|
+
R(T.newDataSource, void 0, c);
|
|
139
|
+
}, v = () => {
|
|
140
|
+
const c = (p) => {
|
|
141
|
+
var M;
|
|
142
|
+
const i = (M = A.value) == null ? void 0 : M.needFormAdd;
|
|
143
|
+
if ((i == null ? void 0 : i(p)) && b) {
|
|
144
|
+
s();
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
o(p, !1);
|
|
148
|
+
};
|
|
149
|
+
R(T.editDataSource, void 0, c);
|
|
150
|
+
}, r = P(T.editDataSource), b = P(T.newDataSource);
|
|
151
|
+
r ? v() : b && s();
|
|
152
|
+
});
|
|
153
|
+
return Oe(), _e(() => {
|
|
154
|
+
tt(), Le();
|
|
155
|
+
}), {
|
|
156
|
+
widgetRefList: w,
|
|
157
|
+
allWidgetRefList: f,
|
|
158
|
+
fieldEditor: m,
|
|
159
|
+
formModel: h,
|
|
160
|
+
pageConfig: _,
|
|
161
|
+
widgetList: C,
|
|
162
|
+
fieldModel: O,
|
|
163
|
+
fieldName: S,
|
|
164
|
+
attrs: N,
|
|
165
|
+
extendAttrs: A,
|
|
166
|
+
events: x,
|
|
167
|
+
rules: K,
|
|
168
|
+
loadData: ce,
|
|
169
|
+
clearData: le,
|
|
170
|
+
exposed: {
|
|
171
|
+
...E,
|
|
172
|
+
setValue: re,
|
|
173
|
+
getValue: Ae,
|
|
174
|
+
resetField: je,
|
|
175
|
+
clearData: le,
|
|
176
|
+
loadData: ce,
|
|
177
|
+
getData: L,
|
|
178
|
+
//修改痕迹
|
|
179
|
+
clearChangeRecord: xe,
|
|
180
|
+
getChangeRecord: We,
|
|
181
|
+
emit$: k
|
|
182
|
+
},
|
|
183
|
+
fieldObj: H
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
const vt = { class: "loadingLayout" }, gt = { style: { "text-align": "center" } }, _t = { style: { "font-size": "1.2em", "margin-top": "10px" } }, ht = /* @__PURE__ */ ie({
|
|
187
|
+
__name: "index",
|
|
188
|
+
props: {
|
|
189
|
+
loading: { type: Boolean },
|
|
190
|
+
loadingText: {}
|
|
191
|
+
},
|
|
192
|
+
setup(l) {
|
|
193
|
+
return (W, u) => {
|
|
194
|
+
const _ = he("el-icon");
|
|
195
|
+
return Me((te(), Ne("div", vt, [
|
|
196
|
+
ae("div", gt, [
|
|
197
|
+
q(_, {
|
|
198
|
+
class: "is-loading",
|
|
199
|
+
size: "3em",
|
|
200
|
+
type: "primary"
|
|
201
|
+
}, {
|
|
202
|
+
default: ne(() => [
|
|
203
|
+
q(g(ft))
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
}),
|
|
207
|
+
ae("div", _t, Pe(l.loadingText || g(be).i18nt("designer.hint.loading")), 1)
|
|
208
|
+
])
|
|
209
|
+
], 512)), [
|
|
210
|
+
[Re, l.loading]
|
|
211
|
+
]);
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
const bt = /* @__PURE__ */ Ce(ht, [["__scopeId", "data-v-50894e06"]]), Ct = { class: "full-width full-height relative" }, wt = ie({ componentName: oe.ContainerWidget }), Ft = /* @__PURE__ */ ie({
|
|
216
|
+
...wt,
|
|
217
|
+
__name: "form-widget",
|
|
218
|
+
props: { ...qe },
|
|
219
|
+
setup(l, { expose: W }) {
|
|
220
|
+
var k;
|
|
221
|
+
const u = l, { exposed: _, formModel: C, fieldEditor: w, attrs: f, events: O, widgetRefList: S, extendAttrs: m, fieldName: N, fieldObj: x, loadData: P } = pt({ ...u, widgetList: (k = u == null ? void 0 : u.widget) == null ? void 0 : k.widgetList }), E = N.value, H = X(() => {
|
|
222
|
+
var n, d;
|
|
223
|
+
return {
|
|
224
|
+
disabled: (n = f.value) == null ? void 0 : n.disabled,
|
|
225
|
+
readonly: (d = m.value) == null ? void 0 : d.readonly
|
|
226
|
+
};
|
|
227
|
+
}), R = X(() => {
|
|
228
|
+
var n, d, j, F, h;
|
|
229
|
+
return {
|
|
230
|
+
size: (n = f.value) == null ? void 0 : n.size,
|
|
231
|
+
labelWidth: (d = f.value) == null ? void 0 : d.labelWidth,
|
|
232
|
+
labelSuffix: (j = f.value) == null ? void 0 : j.labelSuffix,
|
|
233
|
+
labelAlign: (F = m.value) == null ? void 0 : F.labelAlign,
|
|
234
|
+
displayLayout: (h = m.value) == null ? void 0 : h.displayLayout,
|
|
235
|
+
inForm: !0
|
|
236
|
+
};
|
|
237
|
+
}), D = ee(!1), A = X(() => {
|
|
238
|
+
var n;
|
|
239
|
+
return !u.designState && D.value && ((n = m.value) == null ? void 0 : n.showLoading);
|
|
240
|
+
});
|
|
241
|
+
st.globalProvide({
|
|
242
|
+
globalFormName: E,
|
|
243
|
+
globalDataModel: C,
|
|
244
|
+
globalFormOptions: R,
|
|
245
|
+
globalWrapperOptions: H
|
|
246
|
+
});
|
|
247
|
+
const V = ke(Je.isRenderComplete), B = Ie(() => V == null ? void 0 : V.value, (n) => {
|
|
248
|
+
var d;
|
|
249
|
+
n && ((d = w.value) == null || d.validate(), B());
|
|
250
|
+
});
|
|
251
|
+
return _e(() => {
|
|
252
|
+
var n;
|
|
253
|
+
(n = m.value) != null && n.loadDataWhenInit && !u.designState && (D.value = !0, P(!0).catch((d) => {
|
|
254
|
+
}).finally(() => {
|
|
255
|
+
D.value = !1, _.clearChangeRecord();
|
|
256
|
+
}));
|
|
257
|
+
}), W({ ..._ }), (n, d) => {
|
|
258
|
+
const j = he("el-form");
|
|
259
|
+
return te(), ue(Ge, Y(n.$props, {
|
|
260
|
+
"prop-options": { fieldObj: g(x) }
|
|
261
|
+
}), {
|
|
262
|
+
default: ne(({ data: F }) => {
|
|
263
|
+
var h, I;
|
|
264
|
+
return [
|
|
265
|
+
ae("div", Ct, [
|
|
266
|
+
q(bt, {
|
|
267
|
+
loading: A.value,
|
|
268
|
+
"loading-text": (h = g(m)) == null ? void 0 : h.loadingText
|
|
269
|
+
}, null, 8, ["loading", "loading-text"]),
|
|
270
|
+
(te(), ue(j, Y({
|
|
271
|
+
ref_key: "fieldEditor",
|
|
272
|
+
ref: w,
|
|
273
|
+
model: g(C)
|
|
274
|
+
}, g(f), ze(g(O)), {
|
|
275
|
+
class: F.injectClass,
|
|
276
|
+
key: (I = g(x)) == null ? void 0 : I.fieldKey,
|
|
277
|
+
onSubmit: d[0] || (d[0] = Te(() => {
|
|
278
|
+
}, ["prevent"]))
|
|
279
|
+
}), {
|
|
280
|
+
default: ne(() => {
|
|
281
|
+
var L;
|
|
282
|
+
return [
|
|
283
|
+
q(He, Y(n.$props, {
|
|
284
|
+
dragClass: "formDrag padSize",
|
|
285
|
+
model: g(C),
|
|
286
|
+
provideModel: !0,
|
|
287
|
+
"component-class": F.componentWrapperClass,
|
|
288
|
+
refList: g(S),
|
|
289
|
+
"show-suspense": (L = g(m)) == null ? void 0 : L.showSuspense,
|
|
290
|
+
"parent-widget": n.widget,
|
|
291
|
+
"parent-tree": n.parentTree
|
|
292
|
+
}), null, 16, ["model", "component-class", "refList", "show-suspense", "parent-widget", "parent-tree"])
|
|
293
|
+
];
|
|
294
|
+
}),
|
|
295
|
+
_: 2
|
|
296
|
+
}, 1040, ["model", "class"]))
|
|
297
|
+
])
|
|
298
|
+
];
|
|
299
|
+
}),
|
|
300
|
+
_: 1
|
|
301
|
+
}, 16, ["prop-options"]);
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
const yt = /* @__PURE__ */ Ce(Ft, [["__scopeId", "data-v-da768d48"]]), Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
306
|
+
__proto__: null,
|
|
307
|
+
default: yt
|
|
308
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
309
|
+
export {
|
|
310
|
+
Pt as _,
|
|
311
|
+
bt as c,
|
|
312
|
+
mt as u
|
|
313
|
+
};
|
|
@@ -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, n as Me, E as hn } from "./enum-type-
|
|
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, n as Me, E as hn } from "./enum-type-a1e82b20.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-95341c36.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-07387ae0.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-df668798.js";
|
|
9
|
+
import { b as Se, r as zn, m as Ta, p as cr, d as Be, a as _a } from "./expression-9425784a.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-c79be913.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-9425784a.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-e1759ecb.js";
|
|
5
|
+
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c15079c9.js";
|
|
6
|
+
import { a as H } from "./share-field-203045dd.js";
|
|
7
|
+
import { c as $ } from "./cssClass-8a9a67ca.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-9425784a.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-c79be913.js";
|
|
5
|
+
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c15079c9.js";
|
|
6
|
+
import { a as y } from "./share-field-203045dd.js";
|
|
7
|
+
import { c as P } from "./cssClass-8a9a67ca.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-c15079c9.js";
|
|
3
|
+
import { a as T } from "./share-field-203045dd.js";
|
|
4
|
+
import { D as v } from "./drag-wrapper-e1759ecb.js";
|
|
5
|
+
import { w as q } from "./expression-9425784a.js";
|
|
6
|
+
import { d as h } from "./slot-aaf57901.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-a1e82b20.js";
|
|
11
|
+
import "./global-provide-inject-65b5523b.js";
|
|
12
|
+
import "./uuid-95341c36.js";
|
|
13
|
+
import "./enum-type-07387ae0.js";
|
|
14
|
+
import "./baseImp-df668798.js";
|
|
15
15
|
import "./icon-4e8380f7.js";
|
|
16
16
|
import "axios";
|
|
17
|
-
import "./dialog-
|
|
17
|
+
import "./dialog-72c9fee2.js";
|
|
18
18
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
19
19
|
import "element-plus";
|
|
20
|
-
import "./index-
|
|
21
|
-
import "./fieldobj-
|
|
22
|
-
import "./multirow-
|
|
20
|
+
import "./index-1810c59c.js";
|
|
21
|
+
import "./fieldobj-87c20520.js";
|
|
22
|
+
import "./multirow-62d9592a.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-203045dd.js";
|
|
4
|
+
import { w as h } from "./expression-9425784a.js";
|
|
5
|
+
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c15079c9.js";
|
|
6
|
+
import { _ as k } from "./content-wrapper.vue_vue_type_script_setup_true_lang-d355db07.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-a1e82b20.js";
|
|
9
|
+
import "./multirow-62d9592a.js";
|
|
10
|
+
import "./baseImp-df668798.js";
|
|
11
|
+
import "./enum-type-07387ae0.js";
|
|
12
12
|
import "./icon-4e8380f7.js";
|
|
13
13
|
import "axios";
|
|
14
|
-
import "./dialog-
|
|
14
|
+
import "./dialog-72c9fee2.js";
|
|
15
15
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
16
|
-
import "./uuid-
|
|
16
|
+
import "./uuid-95341c36.js";
|
|
17
17
|
import "element-plus";
|
|
18
|
-
import "./global-provide-inject-
|
|
19
|
-
import "./slot-
|
|
18
|
+
import "./global-provide-inject-65b5523b.js";
|
|
19
|
+
import "./slot-aaf57901.js";
|
|
20
20
|
import "./source-map-b04aec4a.js";
|
|
21
21
|
import "./esprima-e8d15055.js";
|
|
22
|
-
import "./index-
|
|
22
|
+
import "./index-1810c59c.js";
|
|
23
23
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
24
|
-
import "./fieldobj-
|
|
24
|
+
import "./fieldobj-87c20520.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-9425784a.js";
|
|
4
|
+
import { a as b } from "./share-field-203045dd.js";
|
|
5
|
+
import { _ as h } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c15079c9.js";
|
|
6
|
+
import { S as B } from "./enum-type-07387ae0.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-a1e82b20.js";
|
|
10
|
+
import "./uuid-95341c36.js";
|
|
11
11
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
12
12
|
import "./esprima-e8d15055.js";
|
|
13
|
-
import "./multirow-
|
|
14
|
-
import "./baseImp-
|
|
13
|
+
import "./multirow-62d9592a.js";
|
|
14
|
+
import "./baseImp-df668798.js";
|
|
15
15
|
import "./icon-4e8380f7.js";
|
|
16
16
|
import "axios";
|
|
17
|
-
import "./dialog-
|
|
17
|
+
import "./dialog-72c9fee2.js";
|
|
18
18
|
import "element-plus";
|
|
19
|
-
import "./global-provide-inject-
|
|
20
|
-
import "./slot-
|
|
21
|
-
import "./index-
|
|
19
|
+
import "./global-provide-inject-65b5523b.js";
|
|
20
|
+
import "./slot-aaf57901.js";
|
|
21
|
+
import "./index-1810c59c.js";
|
|
22
22
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
|
-
import "./fieldobj-
|
|
23
|
+
import "./fieldobj-87c20520.js";
|
|
24
24
|
const I = d({ componentName: S.FieldWidget }), to = /* @__PURE__ */ d({
|
|
25
25
|
...I,
|
|
26
26
|
__name: "icon-widget",
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { defineComponent as B, ref as _, computed as E, resolveComponent as O, openBlock as h, createBlock as U, mergeProps as b, unref as m, withCtx as j, createCommentVNode as P, withDirectives as V, createVNode as H, createElementBlock as K, toHandlers as M, vShow as R } from "vue";
|
|
2
|
+
import { H as w } from "./baseImp-df668798.js";
|
|
3
|
+
import { g as T } from "./uuid-95341c36.js";
|
|
4
|
+
import { l as k } from "./enum-type-a1e82b20.js";
|
|
5
|
+
import { w as q } from "./expression-9425784a.js";
|
|
6
|
+
import { a as z } from "./share-field-203045dd.js";
|
|
7
|
+
import { _ as G } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c15079c9.js";
|
|
8
|
+
import { I as J } from "./field-base-66c90648.js";
|
|
9
|
+
import { M as X } from "./mask-772d4739.js";
|
|
10
|
+
import { _ as Y } from "./_plugin-vue_export-helper-dad06003.js";
|
|
11
|
+
import "./enum-type-07387ae0.js";
|
|
12
|
+
import "./icon-4e8380f7.js";
|
|
13
|
+
import "axios";
|
|
14
|
+
import "./dialog-72c9fee2.js";
|
|
15
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
16
|
+
import "element-plus";
|
|
17
|
+
import "./source-map-b04aec4a.js";
|
|
18
|
+
import "./esprima-e8d15055.js";
|
|
19
|
+
import "./multirow-62d9592a.js";
|
|
20
|
+
import "./global-provide-inject-65b5523b.js";
|
|
21
|
+
import "./slot-aaf57901.js";
|
|
22
|
+
import "./widget-base-df734ada.js";
|
|
23
|
+
import "./index-1810c59c.js";
|
|
24
|
+
import "./fieldobj-87c20520.js";
|
|
25
|
+
import "./index-6bcfdc22.js";
|
|
26
|
+
function Z(c, v) {
|
|
27
|
+
var p;
|
|
28
|
+
if (!c) {
|
|
29
|
+
k.error("iframe is empty");
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const i = (p = c.contentWindow) == null ? void 0 : p.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 D = ["src", "id"], A = B({ componentName: q.FieldWidget }), ee = /* @__PURE__ */ B({
|
|
40
|
+
...A,
|
|
41
|
+
__name: "iframe-widget",
|
|
42
|
+
props: { ...J },
|
|
43
|
+
setup(c, { expose: v }) {
|
|
44
|
+
const i = c, { exposed: p, fieldEditor: C, events: s, attrs: I, extendAttrs: n, fieldObj: F, fieldKey: N, fieldName: Q, refreshKey: W } = z(i), g = _(!1), y = _(), S = _(), L = _(Date.now()), d = E(() => {
|
|
45
|
+
var t;
|
|
46
|
+
if (y.value)
|
|
47
|
+
return y.value;
|
|
48
|
+
const e = S.value || I.value.src, r = $(e);
|
|
49
|
+
if (i.designState)
|
|
50
|
+
return r;
|
|
51
|
+
const o = (t = s.value) == null ? void 0 : t.urlFormatter;
|
|
52
|
+
return o !== void 0 ? o == null ? void 0 : o(r) : r;
|
|
53
|
+
}), $ = (e) => {
|
|
54
|
+
var l, a;
|
|
55
|
+
if (e == "")
|
|
56
|
+
return "";
|
|
57
|
+
const o = ((l = n == null ? void 0 : n.value) == null ? void 0 : l.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 = (a = n == null ? void 0 : n.value) == null ? void 0 : a.hashRouter;
|
|
63
|
+
return w.resolveByCurrentUrl(t, f ? T() + "" : "");
|
|
64
|
+
}, u = () => {
|
|
65
|
+
g.value = !1, W();
|
|
66
|
+
}, x = () => {
|
|
67
|
+
var e, r;
|
|
68
|
+
g.value = !0, (r = (e = s == null ? void 0 : s.value) == null ? void 0 : e.onLoaded) == null || r.call(e);
|
|
69
|
+
};
|
|
70
|
+
return v({
|
|
71
|
+
...p,
|
|
72
|
+
loadSrc: (e) => {
|
|
73
|
+
u(), S.value = e;
|
|
74
|
+
},
|
|
75
|
+
loadUrl: (e) => {
|
|
76
|
+
u(), y.value = e;
|
|
77
|
+
},
|
|
78
|
+
loadContent: (e) => {
|
|
79
|
+
u(), Z(C.value, e);
|
|
80
|
+
},
|
|
81
|
+
refresh: () => {
|
|
82
|
+
L.value = Date.now(), u();
|
|
83
|
+
}
|
|
84
|
+
}), (e, r) => {
|
|
85
|
+
var t;
|
|
86
|
+
const o = O("el-empty");
|
|
87
|
+
return h(), U(G, b(e.$props, {
|
|
88
|
+
"prop-options": { fieldObj: m(F) },
|
|
89
|
+
key: (t = e.widget) == null ? void 0 : t.id
|
|
90
|
+
}), {
|
|
91
|
+
default: j(({ data: f }) => {
|
|
92
|
+
var l;
|
|
93
|
+
return [
|
|
94
|
+
d.value ? P("", !0) : (h(), U(o, {
|
|
95
|
+
key: 0,
|
|
96
|
+
description: (l = m(I)) == null ? void 0 : l.emptyText,
|
|
97
|
+
class: "full-width full-height nopadding nomargin"
|
|
98
|
+
}, null, 8, ["description"])),
|
|
99
|
+
V(H(X, {
|
|
100
|
+
loading: !g.value
|
|
101
|
+
}, {
|
|
102
|
+
default: j(({ maskData: a }) => [
|
|
103
|
+
(h(), K("iframe", b({
|
|
104
|
+
ref_key: "fieldEditor",
|
|
105
|
+
ref: C,
|
|
106
|
+
key: `${m(N)}_${d.value}`
|
|
107
|
+
}, M(m(s), !0), {
|
|
108
|
+
onLoad: x,
|
|
109
|
+
src: d.value,
|
|
110
|
+
class: [[...f.injectClass, ...a == null ? void 0 : a.class], "nopadding nomargin hlIframe"],
|
|
111
|
+
frameborder: 0,
|
|
112
|
+
style: f.injectStyle,
|
|
113
|
+
id: m(Q)
|
|
114
|
+
}), null, 16, D))
|
|
115
|
+
]),
|
|
116
|
+
_: 2
|
|
117
|
+
}, 1032, ["loading"]), [
|
|
118
|
+
[R, !!d.value]
|
|
119
|
+
])
|
|
120
|
+
];
|
|
121
|
+
}),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 16, ["prop-options"]);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
const Fe = /* @__PURE__ */ Y(ee, [["__scopeId", "data-v-567120a3"]]);
|
|
128
|
+
export {
|
|
129
|
+
Fe as default
|
|
130
|
+
};
|