hlrender 0.0.249 → 0.0.251
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-c7a8dc5c.js → _pdf-cb2a31ab.js} +2 -2
- package/{_txt-ed537805.js → _txt-391e502f.js} +2 -2
- package/{affix-widget-45213c27.js → affix-widget-d0b42bdf.js} +10 -10
- package/{alert-widget-115961d7.js → alert-widget-c1558d02.js} +10 -10
- package/{anchor-widget-3e4ab1f0.js → anchor-widget-c2d2be95.js} +7 -7
- package/{auto-complete-widget-711a9b79.js → auto-complete-widget-8c026611.js} +9 -9
- package/{avatar-widget-32febad5.js → avatar-widget-339334b4.js} +10 -10
- package/{backtop-widget-981be562.js → backtop-widget-bd30cda7.js} +10 -10
- package/{badge-widget-c4b3fa0e.js → badge-widget-6bbc715a.js} +10 -10
- package/{barcode-widget-976e72ec.js → barcode-widget-12e02ccd.js} +7 -7
- package/{baseImp-bb323303.js → baseImp-9c1c3476.js} +2 -2
- package/{breadcrumb-widget-29191aec.js → breadcrumb-widget-928a6248.js} +7 -7
- package/{button-widget-a7a3c1a6.js → button-widget-9d8ccc3c.js} +10 -10
- package/{cache-widget-aedd240d.js → cache-widget-a9ec7c5d.js} +8 -8
- package/{card-widget-70faaaec.js → card-widget-d5f16ee6.js} +8 -8
- package/{carousel-widget-648d464b.js → carousel-widget-153c1c46.js} +8 -8
- package/{cascader-widget-811067ff.js → cascader-widget-63d24f6b.js} +8 -8
- package/{chart-widget-ea492a07.js → chart-widget-0a1fa896.js} +7 -7
- package/{checkbox-widget-196a55b3.js → checkbox-widget-f69203a4.js} +8 -8
- package/{collapse-widget-93cee9c9.js → collapse-widget-54bd3ca2.js} +8 -8
- package/{color-picker-widget-1a90ee74.js → color-picker-widget-82710478.js} +8 -8
- package/{cont-cell-widget-5d2102f6.js → cont-cell-widget-b62c363d.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-5888607d.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-dd0ad1c8.js} +5 -5
- package/{cont-widget-f4620d0d.js → cont-widget-e828e64a.js} +5 -5
- package/{content-wrapper-1e0bc2b7.js → content-wrapper-8467d706.js} +3 -3
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-ea363bf5.js → content-wrapper.vue_vue_type_script_setup_true_lang-a0a33278.js} +2 -2
- package/{countdown-widget-125d198c.js → countdown-widget-70bd04dc.js} +10 -10
- package/{date-picker-range-widget-d4cd1db2.js → date-picker-range-widget-accecd35.js} +8 -8
- package/{date-picker-widget-4df25f35.js → date-picker-widget-3fd486d4.js} +8 -8
- package/{default-slot-widget-373fb900.js → default-slot-widget-78fba757.js} +8 -8
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-0e47d408.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-7f447b6f.js} +5 -5
- package/{descriptions-widget-2067c26b.js → descriptions-widget-ffda8cd9.js} +8 -8
- package/{dialog-widget-c3c9b306.js → dialog-widget-a87e3248.js} +9 -9
- package/{divider-widget-b8a0d684.js → divider-widget-b0d5200a.js} +10 -10
- package/{drag-wrapper-4dd92bd6.js → drag-wrapper-c97acf25.js} +5 -5
- package/{drawer-widget-3f2ca895.js → drawer-widget-99367bc1.js} +9 -9
- package/{dropdown-widget-1575b141.js → dropdown-widget-31efc106.js} +8 -8
- package/{empty-widget-4fdb6ada.js → empty-widget-c411ff6b.js} +10 -10
- package/{expression-ce9920fa.js → expression-fb652f29.js} +1 -1
- package/{feedback-widget-3450209d.js → feedback-widget-f2d7e1db.js} +9 -9
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-98047669.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-7f2bd815.js} +5 -5
- package/{file-upload-widget-c2c6b0a1.js → file-upload-widget-658a7002.js} +12 -12
- package/{form-item-wrapper-0c55cd05.js → form-item-wrapper-b34acfff.js} +4 -4
- package/form-widget-5e1a4cdc.js +235 -0
- package/{grid-col-widget-99fcb291.js → grid-col-widget-016ff9ea.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-13fe1f20.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-10ad2a79.js} +5 -5
- package/{grid-widget-dfe416ed.js → grid-widget-a0084250.js} +5 -5
- package/{hcard-widget-16e7904c.js → hcard-widget-35819dc6.js} +8 -8
- package/{html-text-widget-cee1b077.js → html-text-widget-9217a694.js} +8 -8
- package/{icon-widget-6e897414.js → icon-widget-3b0072d6.js} +7 -7
- package/{iframe-widget-21eb9e79.js → iframe-widget-9cf03ad4.js} +7 -7
- package/{image-widget-6ca35f6d.js → image-widget-2a03bbd5.js} +7 -7
- package/{index-f1a0889e.js → index-4c98d500.js} +2 -2
- package/{input-number-widget-71259fd5.js → input-number-widget-258d7af8.js} +8 -8
- package/{input-tag-widget-119df21d.js → input-tag-widget-626718a5.js} +9 -9
- package/{input-widget-ab4e257b.js → input-widget-9224341e.js} +9 -9
- package/{link-widget-3142955f.js → link-widget-96065198.js} +10 -10
- package/{ltable-col-widget-8e2b357a.js → ltable-col-widget-75c1f835.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-8307af6b.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-cdfa4779.js} +7 -7
- package/{ltable-widget-4b50f573.js → ltable-widget-f5a4ca42.js} +5 -5
- package/{mention-widget-8f6ac4e0.js → mention-widget-531a9884.js} +9 -9
- package/{menu-widget-90431960.js → menu-widget-80d0339b.js} +8 -8
- package/{model-widget-36e09346.js → model-widget-f445ee28.js} +7 -7
- package/{multirow-1063090e.js → multirow-55dfa7bf.js} +71 -71
- package/{multirow-widget-9a662d6f.js → multirow-widget-81a6cd69.js} +128 -128
- package/package.json +1 -1
- package/{pagination-widget-9b3054bf.js → pagination-widget-99971cc9.js} +7 -7
- package/{picture-upload-widget-3855c224.js → picture-upload-widget-cc9030a3.js} +9 -9
- package/{progress-widget-65c6c07c.js → progress-widget-2a526b23.js} +8 -8
- package/{qrcode-widget-bbd31f33.js → qrcode-widget-39ca3c3d.js} +7 -7
- package/{radio-widget-926c0ba1.js → radio-widget-29c9d2bf.js} +8 -8
- package/{range-widget-638cf55b.js → range-widget-c3367a2f.js} +9 -9
- package/{rate-widget-3173ff95.js → rate-widget-ea3079f1.js} +8 -8
- package/render.es.js +25 -25
- package/render.style.css +1 -1
- package/render.umd.js +325 -325
- package/{result-widget-70e4db33.js → result-widget-6bca64fe.js} +8 -8
- package/{rich-editor-widget-e9a59c4e.js → rich-editor-widget-32ea2042.js} +8 -8
- package/{router-widget-ca2b99db.js → router-widget-9599bfc9.js} +7 -7
- package/{segmented-widget-bc2e4530.js → segmented-widget-b060b1cc.js} +7 -7
- package/{select-widget-c03d727f.js → select-widget-45846558.js} +8 -8
- package/{sfc-dd434d0b.js → sfc-751c17f2.js} +4 -4
- package/{sfcview-cfd26217.js → sfcview-f2e4159b.js} +3 -3
- package/share-field-2e7f9b3a.js +819 -0
- package/{share-file-b4beb5b0.js → share-file-10c6d927.js} +3 -3
- package/{skeleton-widget-10baadb1.js → skeleton-widget-778dd090.js} +10 -10
- package/{skeletonItem-widget-aa1281c0.js → skeletonItem-widget-83f3417b.js} +7 -7
- package/{slider-widget-501a335d.js → slider-widget-92a94eec.js} +8 -8
- package/slot-44e26cb4.js +337 -0
- package/{space-widget-3658d4ba.js → space-widget-b9a576ec.js} +8 -8
- package/{splitter-widget-eef8be7c.js → splitter-widget-42bd96f8.js} +8 -8
- package/{static-text-widget-466da6b8.js → static-text-widget-5fd90f16.js} +8 -8
- package/{statistic-widget-9db7eff0.js → statistic-widget-073df406.js} +10 -10
- package/{steps-widget-c0926f24.js → steps-widget-ac6fffcd.js} +7 -7
- package/{subMenu-widget-053433b9.js → subMenu-widget-09b1a1c0.js} +3 -3
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-3a5390b6.js → subMenu-widget.vue_vue_type_script_setup_true_lang-27267c3d.js} +1 -1
- package/{switch-widget-a8c0010d.js → switch-widget-382153cd.js} +8 -8
- package/{tab-pane-widget-7b0f11f5.js → tab-pane-widget-67cdce85.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-b0fb6a2b.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-95fbe638.js} +5 -5
- package/{table-col-widget-2521f42c.js → table-col-widget-df5f5451.js} +7 -7
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-7c6e75cd.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-4d8dcf50.js} +4 -4
- package/{table-widget-c2cfcb11.js → table-widget-aee48dd6.js} +95 -94
- package/{tabs-widget-ebadc3f8.js → tabs-widget-ab3e15df.js} +6 -6
- package/{tag-widget-75622762.js → tag-widget-e9790079.js} +10 -10
- package/{text-widget-f4c126a3.js → text-widget-e588d0ac.js} +10 -10
- package/{textarea-widget-316b73a3.js → textarea-widget-881b9191.js} +8 -8
- package/{time-picker-range-widget-b32bf4c5.js → time-picker-range-widget-35811b8e.js} +8 -8
- package/{time-picker-widget-8fa671d0.js → time-picker-widget-81e0be45.js} +8 -8
- package/{time-select-widget-8eaa79a7.js → time-select-widget-2edc0d65.js} +8 -8
- package/{timeline-widget-f8f659d9.js → timeline-widget-b506c92c.js} +8 -8
- package/tmpl-widget-38c09700.js +97 -0
- package/{tooltip-widget-63dfa6e9.js → tooltip-widget-5a7b0934.js} +8 -8
- package/tour-widget-8fc644d9.js +148 -0
- package/{transfer-widget-32971695.js → transfer-widget-9a4a7cb4.js} +9 -9
- package/{tree-select-widget-45487101.js → tree-select-widget-442180b1.js} +8 -8
- package/{tree-widget-fe156721.js → tree-widget-1fdf704b.js} +7 -7
- package/{verifycode-widget-3ccc989a.js → verifycode-widget-f15a4328.js} +7 -7
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-3748a4a5.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-21b0af7b.js} +3 -3
- package/wrapper-widget-c8fcd2f1.js +91 -0
- package/form-widget-4257b3a9.js +0 -229
- package/share-field-1e759a0d.js +0 -812
- package/slot-f8ccd25c.js +0 -329
- package/tmpl-widget-31f94d08.js +0 -96
- package/tour-widget-8c2f4063.js +0 -148
- package/wrapper-widget-fbfcdd18.js +0 -84
package/slot-f8ccd25c.js
DELETED
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
var _ = Object.defineProperty;
|
|
2
|
-
var O = (e, t, o) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
-
var T = (e, t, o) => (O(e, typeof t != "symbol" ? t + "" : t, o), o);
|
|
4
|
-
import { inject as H, provide as R, computed as f } from "vue";
|
|
5
|
-
import { d as m, b as h, r as V, s as B } from "./expression-ce9920fa.js";
|
|
6
|
-
import { B as G } from "./baseImp-bb323303.js";
|
|
7
|
-
import { c as E, i as q, m as N, j as F, o as x } from "./enum-type-8bbffeb3.js";
|
|
8
|
-
class W {
|
|
9
|
-
constructor() {
|
|
10
|
-
/**
|
|
11
|
-
* 当前表单引用库
|
|
12
|
-
* 假设表单组件位于表单form中,则该引用注册入库
|
|
13
|
-
*/
|
|
14
|
-
T(this, "formRefList", {});
|
|
15
|
-
/**
|
|
16
|
-
* 全局引用库
|
|
17
|
-
*/
|
|
18
|
-
T(this, "globalRefList", {});
|
|
19
|
-
/**
|
|
20
|
-
* 全局数据对象
|
|
21
|
-
*/
|
|
22
|
-
T(this, "globalDataModel", {});
|
|
23
|
-
/**
|
|
24
|
-
* 当前表单名称
|
|
25
|
-
*/
|
|
26
|
-
T(this, "globalFormName", "");
|
|
27
|
-
/**
|
|
28
|
-
* 全局页面名称
|
|
29
|
-
*/
|
|
30
|
-
// globalPageName?: string = "";
|
|
31
|
-
/**
|
|
32
|
-
* 用于类似template组件的数据绑定传递,必须是{}!
|
|
33
|
-
*/
|
|
34
|
-
T(this, "rowScope", {});
|
|
35
|
-
/**
|
|
36
|
-
* 渲染器调用者传入的配置参数,如接口地址、密钥等
|
|
37
|
-
*/
|
|
38
|
-
T(this, "globalConfig", {});
|
|
39
|
-
}
|
|
40
|
-
static globalInject() {
|
|
41
|
-
const t = new W();
|
|
42
|
-
return t.formRefList = H(m.refList, {}), t.globalRefList = H(m.allRefList, {}), t.globalDataModel = H(m.globalModel, {}), t.rowScope = H(m.rowScope, {}), t.globalFormName = H(m.globalForm, ""), t.globalConfig = H(m.globalConfig, {}), t;
|
|
43
|
-
}
|
|
44
|
-
static globalProvide(t) {
|
|
45
|
-
if ((t == null ? void 0 : t.globalDataModel) !== void 0) {
|
|
46
|
-
const o = (t == null ? void 0 : t.globalDataModel) || {};
|
|
47
|
-
R(m.globalModel, o);
|
|
48
|
-
}
|
|
49
|
-
if ((t == null ? void 0 : t.rowScope) !== void 0) {
|
|
50
|
-
const o = (t == null ? void 0 : t.rowScope) || {};
|
|
51
|
-
R(m.rowScope, o);
|
|
52
|
-
}
|
|
53
|
-
if ((t == null ? void 0 : t.globalRefList) !== void 0) {
|
|
54
|
-
const o = (t == null ? void 0 : t.globalRefList) || {};
|
|
55
|
-
R(m.allRefList, o);
|
|
56
|
-
}
|
|
57
|
-
if ((t == null ? void 0 : t.formRefList) !== void 0) {
|
|
58
|
-
const o = (t == null ? void 0 : t.formRefList) || {};
|
|
59
|
-
R(m.refList, o);
|
|
60
|
-
}
|
|
61
|
-
if ((t == null ? void 0 : t.globalFormName) !== void 0) {
|
|
62
|
-
const o = (t == null ? void 0 : t.globalFormName) || "";
|
|
63
|
-
R(m.globalForm, o);
|
|
64
|
-
}
|
|
65
|
-
if ((t == null ? void 0 : t.globalConfig) !== void 0) {
|
|
66
|
-
const o = (t == null ? void 0 : t.globalConfig) || "";
|
|
67
|
-
R(m.globalConfig, o);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function ot(e) {
|
|
72
|
-
const t = (c, A = !1) => G.getOptions(e == null ? void 0 : e.widget, c, A, !(e != null && e.designState)), o = f(() => t(h.ctrlWidth) || "auto"), s = f(() => t(h.ctrlHeight) || "auto"), l = f(() => t(h.displayLayout)), a = f(() => {
|
|
73
|
-
var c = t(h.customClass);
|
|
74
|
-
return Array.isArray(c) ? c == null ? void 0 : c.join(" ") : c;
|
|
75
|
-
}), i = f(() => {
|
|
76
|
-
var c = t(h.componentWrapperClass);
|
|
77
|
-
return Array.isArray(c) ? c == null ? void 0 : c.join(" ") : c;
|
|
78
|
-
}), b = f(() => t(h.css)), n = f(() => {
|
|
79
|
-
var c = t(h.componentRootClass);
|
|
80
|
-
return Array.isArray(c) ? c == null ? void 0 : c.join(" ") : c;
|
|
81
|
-
}), r = f(() => {
|
|
82
|
-
var c, A;
|
|
83
|
-
return (A = E((c = t(h.required, !0)) == null ? void 0 : c.options)) == null ? void 0 : A.enable;
|
|
84
|
-
}), u = f(() => t(h.hidden)), y = f(() => t(h.labelTooltip)), w = f(() => t(h.labelIconClass)), d = f(() => t(h.labelIconPosition)), g = f(() => t(h.labelHidden)), p = f(() => t(h.label)), L = f(() => t(h.labelWidth)), C = f(() => t(h.labelAlign));
|
|
85
|
-
return {
|
|
86
|
-
//size,
|
|
87
|
-
attrs: f(() => ({
|
|
88
|
-
required: r.value,
|
|
89
|
-
label: p.value,
|
|
90
|
-
labelHidden: g.value,
|
|
91
|
-
labelAlign: C.value,
|
|
92
|
-
labelIconClass: w.value,
|
|
93
|
-
labelIconPosition: d.value,
|
|
94
|
-
labelTooltip: y.value,
|
|
95
|
-
labelWidth: L.value,
|
|
96
|
-
ctrlWidth: o.value
|
|
97
|
-
})),
|
|
98
|
-
labelAlign: C,
|
|
99
|
-
labelHidden: g,
|
|
100
|
-
labelIconClass: w,
|
|
101
|
-
labelIconPosition: d,
|
|
102
|
-
labelTooltip: y,
|
|
103
|
-
labelWidth: L,
|
|
104
|
-
label: p,
|
|
105
|
-
displayLayout: l,
|
|
106
|
-
hidden: u,
|
|
107
|
-
// required,
|
|
108
|
-
ctrlWidth: o,
|
|
109
|
-
ctrlHeight: s,
|
|
110
|
-
customClass: a,
|
|
111
|
-
componentWrapperClass: i,
|
|
112
|
-
componentRootClass: n,
|
|
113
|
-
css: b
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
const $ = (e = "") => new Promise((t) => {
|
|
117
|
-
import("./index-3aaf8638.js").then((o) => {
|
|
118
|
-
const s = o.parse(e, {
|
|
119
|
-
positions: !0,
|
|
120
|
-
parseValue: !1
|
|
121
|
-
}), l = [];
|
|
122
|
-
o.walk(s, {
|
|
123
|
-
visit: "Rule",
|
|
124
|
-
enter(a) {
|
|
125
|
-
const i = o.generate(a.prelude), b = {};
|
|
126
|
-
o.walk(a, {
|
|
127
|
-
visit: "Declaration",
|
|
128
|
-
enter(n) {
|
|
129
|
-
n.property && (b[n.property] = o.generate(n.value));
|
|
130
|
-
}
|
|
131
|
-
}), l.push({ selector: i, declarations: b });
|
|
132
|
-
}
|
|
133
|
-
}), t(l);
|
|
134
|
-
});
|
|
135
|
-
}), D = (e) => new Promise((t) => {
|
|
136
|
-
import("./index-3aaf8638.js").then((o) => {
|
|
137
|
-
const s = z(e), l = o.parse(s, { context: "stylesheet" });
|
|
138
|
-
t(o.generate(l));
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
function z(e) {
|
|
142
|
-
return e.map((o) => {
|
|
143
|
-
var l, a, i;
|
|
144
|
-
const s = (i = (a = (l = Object.entries(o.declarations)) == null ? void 0 : l.filter(([b, n]) => !q(n) && n !== "")) == null ? void 0 : a.sort(([b], [n]) => b > n ? 1 : -1)) == null ? void 0 : i.map(([b, n]) => `${b}: ${n};`);
|
|
145
|
-
return `${o.selector} { ${s.join(" ")} }`;
|
|
146
|
-
}).join(`
|
|
147
|
-
`);
|
|
148
|
-
}
|
|
149
|
-
const J = () => new Promise((e) => {
|
|
150
|
-
import("./acorn-a3705767.js").then((t) => {
|
|
151
|
-
e(t);
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
function Q(e) {
|
|
155
|
-
return new Promise((t) => {
|
|
156
|
-
J().then((o) => {
|
|
157
|
-
var s = U(o, e);
|
|
158
|
-
t(s);
|
|
159
|
-
});
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
function U(e, t) {
|
|
163
|
-
var a, i, b;
|
|
164
|
-
const o = e.parse(t, {
|
|
165
|
-
ecmaVersion: "latest",
|
|
166
|
-
sourceType: "script",
|
|
167
|
-
ranges: !0
|
|
168
|
-
// ←←← 必须启用,才能 slice 源码
|
|
169
|
-
}), s = [], l = [];
|
|
170
|
-
for (const n of o.body) {
|
|
171
|
-
if (n.type === "FunctionDeclaration" && ((a = n.id) != null && a.name) && n.range) {
|
|
172
|
-
const r = n.id.name, u = t.slice(n.range[0], n.range[1]);
|
|
173
|
-
s.push({ name: r, text: u });
|
|
174
|
-
}
|
|
175
|
-
if (n.type === "ClassDeclaration" && ((i = n.id) != null && i.name) && n.range) {
|
|
176
|
-
const r = n.id.name, u = t.slice(n.range[0], n.range[1]);
|
|
177
|
-
l.push({ name: r, text: u });
|
|
178
|
-
}
|
|
179
|
-
if (n.type === "VariableDeclaration") {
|
|
180
|
-
for (const r of n.declarations)
|
|
181
|
-
if (((b = r.id) == null ? void 0 : b.type) === "Identifier" && r.init && r.init.range && (r.init.type === "FunctionExpression" || r.init.type === "ArrowFunctionExpression")) {
|
|
182
|
-
const u = r.id.name, y = t.slice(r.range[0], r.range[1]);
|
|
183
|
-
s.push({ name: u, text: y });
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
return { functions: s, classes: l };
|
|
188
|
-
}
|
|
189
|
-
const X = () => {
|
|
190
|
-
const e = "v_form_global_css", t = (n = "", r = e) => {
|
|
191
|
-
var u = l(n, r);
|
|
192
|
-
s(u);
|
|
193
|
-
}, o = (n = "", r = "", u = e) => {
|
|
194
|
-
if (!n)
|
|
195
|
-
return;
|
|
196
|
-
let y = document.getElementsByTagName("head")[0];
|
|
197
|
-
if (y)
|
|
198
|
-
try {
|
|
199
|
-
var w = l(r, u);
|
|
200
|
-
s(u), s(w);
|
|
201
|
-
let d = document.createElement("style");
|
|
202
|
-
if (!d)
|
|
203
|
-
return;
|
|
204
|
-
d.type = "text/css", d.id = w;
|
|
205
|
-
try {
|
|
206
|
-
d.appendChild(document.createTextNode(n.toString()));
|
|
207
|
-
} catch {
|
|
208
|
-
d.innerHTML = n.toString();
|
|
209
|
-
}
|
|
210
|
-
y.appendChild(d);
|
|
211
|
-
} catch (d) {
|
|
212
|
-
N.error("insert css to head fail", d);
|
|
213
|
-
}
|
|
214
|
-
}, s = (n) => {
|
|
215
|
-
let r = document.getElementById(n);
|
|
216
|
-
try {
|
|
217
|
-
r && r.parentNode && r.parentNode.removeChild(r);
|
|
218
|
-
} catch (u) {
|
|
219
|
-
console.log(u, r);
|
|
220
|
-
}
|
|
221
|
-
}, l = (n, r) => n ? r + "-" + n : r, a = "v_form_global_functions";
|
|
222
|
-
return {
|
|
223
|
-
insertCustomCssToHead: o,
|
|
224
|
-
insertGlobalFunctionsToHtml: (n, r = "") => new Promise((u) => {
|
|
225
|
-
if (!n) {
|
|
226
|
-
u(!0);
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
try {
|
|
230
|
-
Q(n).then((y) => {
|
|
231
|
-
var w, d;
|
|
232
|
-
(w = y.functions) == null || w.forEach((g) => {
|
|
233
|
-
let p;
|
|
234
|
-
const L = g == null ? void 0 : g.text, C = g == null ? void 0 : g.name;
|
|
235
|
-
try {
|
|
236
|
-
p = new Function(`return ${L}`)();
|
|
237
|
-
} catch (S) {
|
|
238
|
-
N.error(`Failed to compile function "${C}":`, S);
|
|
239
|
-
return;
|
|
240
|
-
}
|
|
241
|
-
window[C] = p;
|
|
242
|
-
}), (d = y.classes) == null || d.forEach((g) => {
|
|
243
|
-
const p = g == null ? void 0 : g.text, L = g == null ? void 0 : g.name;
|
|
244
|
-
let C;
|
|
245
|
-
try {
|
|
246
|
-
C = new Function(`return ${p}`)();
|
|
247
|
-
} catch (S) {
|
|
248
|
-
N.error(`Failed to compile class "${L}":`, S);
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
window[L] = C;
|
|
252
|
-
}), u(!0);
|
|
253
|
-
});
|
|
254
|
-
} catch (y) {
|
|
255
|
-
N.error("insert js to head fail", y), u(!0);
|
|
256
|
-
}
|
|
257
|
-
}),
|
|
258
|
-
removeGlobalFunctionsToHtml: (n, r = a) => {
|
|
259
|
-
var u = l(n, r);
|
|
260
|
-
s(u);
|
|
261
|
-
},
|
|
262
|
-
removeCustomCssToHead: t
|
|
263
|
-
};
|
|
264
|
-
}, K = [
|
|
265
|
-
"width",
|
|
266
|
-
"height",
|
|
267
|
-
"display",
|
|
268
|
-
"margin",
|
|
269
|
-
"margin-left",
|
|
270
|
-
"margin-right",
|
|
271
|
-
"margin-top",
|
|
272
|
-
"margin-bottom"
|
|
273
|
-
], Y = (e, t, o) => {
|
|
274
|
-
const s = {};
|
|
275
|
-
return t.forEach((l) => {
|
|
276
|
-
var a = e[l];
|
|
277
|
-
F(a) || (s[l] = o ? o(l, a) : a);
|
|
278
|
-
}), s;
|
|
279
|
-
}, Z = (e, t, o) => {
|
|
280
|
-
var l;
|
|
281
|
-
const s = {};
|
|
282
|
-
return (l = x(e)) == null || l.forEach((a) => {
|
|
283
|
-
var i = e[a];
|
|
284
|
-
t != null && t.includes(a) || (s[a] = o ? o(a, i) : i);
|
|
285
|
-
}), s;
|
|
286
|
-
}, M = (e, t) => ["width", "height", "display"].includes(e) ? F(t) || t == "auto" ? t : `${t} !important` : t, et = (e) => new Promise((t) => {
|
|
287
|
-
$(e).then((o) => {
|
|
288
|
-
var s = o == null ? void 0 : o.map((l) => ({ selector: l.selector, declarations: Y(l.declarations, K, M) }));
|
|
289
|
-
D(s).then((l) => {
|
|
290
|
-
t(l);
|
|
291
|
-
});
|
|
292
|
-
});
|
|
293
|
-
}), nt = (e) => new Promise((t) => {
|
|
294
|
-
$(e).then((o) => {
|
|
295
|
-
var s = o == null ? void 0 : o.map((l) => ({ selector: l.selector, declarations: Z(l.declarations, K, M) }));
|
|
296
|
-
D(s).then((l) => {
|
|
297
|
-
t(l);
|
|
298
|
-
});
|
|
299
|
-
});
|
|
300
|
-
}), lt = (e, t) => {
|
|
301
|
-
if (!t || !e)
|
|
302
|
-
return;
|
|
303
|
-
const o = V(e, ":root", `.${t}`), { insertCustomCssToHead: s } = X();
|
|
304
|
-
s(o, void 0, t);
|
|
305
|
-
}, st = (e, t = !0, o, s) => {
|
|
306
|
-
if (o != null && o === !1)
|
|
307
|
-
return [];
|
|
308
|
-
const l = k(e);
|
|
309
|
-
if (t || (e == null ? void 0 : e.length) <= 0)
|
|
310
|
-
return l;
|
|
311
|
-
var a = l == null ? void 0 : l.filter(
|
|
312
|
-
(i) => {
|
|
313
|
-
var b, n, r;
|
|
314
|
-
return s != null && (s == null ? void 0 : s(i)) || s == null && (!!i.default && (!(i != null && i.options) || ((b = i == null ? void 0 : i.options) == null ? void 0 : b.enable) == null || ((n = i == null ? void 0 : i.options) == null ? void 0 : n.enable) === !0) || !!(i != null && i.widgetList) && ((r = i == null ? void 0 : i.widgetList) == null ? void 0 : r.length) > 0 || (i == null ? void 0 : i.slotName) === B.default);
|
|
315
|
-
}
|
|
316
|
-
);
|
|
317
|
-
return a;
|
|
318
|
-
}, it = (e, t) => e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.slotName) === t), k = (e) => E(e);
|
|
319
|
-
export {
|
|
320
|
-
W as F,
|
|
321
|
-
lt as a,
|
|
322
|
-
nt as b,
|
|
323
|
-
ot as c,
|
|
324
|
-
it as d,
|
|
325
|
-
st as g,
|
|
326
|
-
k as i,
|
|
327
|
-
et as p,
|
|
328
|
-
X as u
|
|
329
|
-
};
|
package/tmpl-widget-31f94d08.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { defineComponent as F, computed as I, ref as T, onMounted as j, resolveDirective as L, openBlock as a, createBlock as d, mergeProps as u, unref as o, withCtx as M, createElementBlock as n, Fragment as c, withDirectives as P, renderList as R, createTextVNode as z, toDisplayString as A } from "vue";
|
|
2
|
-
import { e as E, t as J, f as q } from "./enum-type-8bbffeb3.js";
|
|
3
|
-
import { I as G } from "./widget-base-8eece820.js";
|
|
4
|
-
import { b as H } from "./share-field-1e759a0d.js";
|
|
5
|
-
import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-3748a4a5.js";
|
|
6
|
-
import { D as v } from "./drag-wrapper-4dd92bd6.js";
|
|
7
|
-
import { i as Q, d as U } from "./slot-f8ccd25c.js";
|
|
8
|
-
import { c as X } from "./multirow-1063090e.js";
|
|
9
|
-
import { b as Y } from "./expression-ce9920fa.js";
|
|
10
|
-
import { _ as Z } from "./_plugin-vue_export-helper-dad06003.js";
|
|
11
|
-
import "./icon-1fc5d00d.js";
|
|
12
|
-
import "./baseImp-bb323303.js";
|
|
13
|
-
import "./enum-type-80708bd8.js";
|
|
14
|
-
import "./dialog-eea5b71b.js";
|
|
15
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
16
|
-
import "./uuid-f2110dfe.js";
|
|
17
|
-
import "element-plus";
|
|
18
|
-
import "./index-f1a0889e.js";
|
|
19
|
-
import "./index-ae7a8101.js";
|
|
20
|
-
import "./fieldobj-0f01de3c.js";
|
|
21
|
-
import "./source-map-b04aec4a.js";
|
|
22
|
-
import "./esprima-e8d15055.js";
|
|
23
|
-
const ee = ["element-loading-text"], te = /* @__PURE__ */ F({
|
|
24
|
-
__name: "tmpl-widget",
|
|
25
|
-
props: {
|
|
26
|
-
...G
|
|
27
|
-
},
|
|
28
|
-
setup(h, { expose: y }) {
|
|
29
|
-
const f = h, { slots: g, exposed: D, attrs: i, events: k, fieldObj: x, fieldName: S, watchOption: $ } = H(f), O = I(() => Q(g.value)), { getSlotFromData: V, emit$: b, rowsData: p, getValue: C, setValue: N } = X({
|
|
30
|
-
...f,
|
|
31
|
-
fieldName: S.value
|
|
32
|
-
}), _ = (e) => N(J(q(e), !0), (r) => W(r)), l = T(!1), w = (e = !1) => {
|
|
33
|
-
$(e, Y.data, () => {
|
|
34
|
-
l.value = !0;
|
|
35
|
-
}, (r) => {
|
|
36
|
-
var t, s;
|
|
37
|
-
_(r), setTimeout(() => {
|
|
38
|
-
l.value = !1;
|
|
39
|
-
}, 1e3), (s = (t = k.value) == null ? void 0 : t.completed) == null || s.call(t, r);
|
|
40
|
-
});
|
|
41
|
-
}, W = (e) => {
|
|
42
|
-
var t;
|
|
43
|
-
const r = (t = i == null ? void 0 : i.value) != null && t.alwaysShow ? [{}] : null;
|
|
44
|
-
return V(g.value, e || r);
|
|
45
|
-
};
|
|
46
|
-
return j(() => {
|
|
47
|
-
w(!0);
|
|
48
|
-
}), y({
|
|
49
|
-
...D,
|
|
50
|
-
refresh: w,
|
|
51
|
-
emit$: b,
|
|
52
|
-
setValue: _,
|
|
53
|
-
getValue: C
|
|
54
|
-
}), (e, r) => {
|
|
55
|
-
const t = L("loading");
|
|
56
|
-
return a(), d(K, u(e.$props, {
|
|
57
|
-
"prop-options": { fieldObj: o(x) },
|
|
58
|
-
"show-wrapper-component": !0
|
|
59
|
-
}), {
|
|
60
|
-
default: M(() => {
|
|
61
|
-
var s;
|
|
62
|
-
return [
|
|
63
|
-
e.designState ? (a(), d(v, u({ key: 0 }, e.$props, {
|
|
64
|
-
widget: o(U)(O.value, "row"),
|
|
65
|
-
dragClass: "dragSize"
|
|
66
|
-
}), null, 16, ["widget"])) : (a(), n(c, { key: 1 }, [
|
|
67
|
-
o(p) && ((s = o(p)) == null ? void 0 : s.length) > 0 ? P((a(), n("div", {
|
|
68
|
-
key: 0,
|
|
69
|
-
"element-loading-text": o(i).loadingText
|
|
70
|
-
}, [
|
|
71
|
-
(a(!0), n(c, null, R(o(p), (m, B) => (a(), d(v, u({
|
|
72
|
-
key: m.key,
|
|
73
|
-
ref_for: !0
|
|
74
|
-
}, e.$props, {
|
|
75
|
-
widget: m.widget[0],
|
|
76
|
-
componentName: "div",
|
|
77
|
-
"row-scope": { row: m.data, $index: B },
|
|
78
|
-
componentClass: "flex full-width"
|
|
79
|
-
}), null, 16, ["widget", "row-scope"]))), 128))
|
|
80
|
-
], 8, ee)), [
|
|
81
|
-
[t, o(i).showLoading && l.value]
|
|
82
|
-
]) : (a(), n(c, { key: 1 }, [
|
|
83
|
-
z(A(o(i).noData || o(E).i18nt("designer.hint.noData")), 1)
|
|
84
|
-
], 64))
|
|
85
|
-
], 64))
|
|
86
|
-
];
|
|
87
|
-
}),
|
|
88
|
-
_: 1
|
|
89
|
-
}, 16, ["prop-options"]);
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
const Se = /* @__PURE__ */ Z(te, [["__scopeId", "data-v-03255958"]]);
|
|
94
|
-
export {
|
|
95
|
-
Se as default
|
|
96
|
-
};
|
package/tour-widget-8c2f4063.js
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { defineComponent as A, computed as w, resolveComponent as I, openBlock as l, createBlock as c, mergeProps as V, unref as n, withCtx as p, createElementBlock as y, Fragment as O, createVNode as S, renderList as C, createTextVNode as oo, toDisplayString as g, createElementVNode as B, isRef as to, toHandlers as eo, resolveDynamicComponent as T } from "vue";
|
|
2
|
-
import { I as no } from "./field-base-1acf3ada.js";
|
|
3
|
-
import { _ as so } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-3748a4a5.js";
|
|
4
|
-
import { b as ro } from "./share-field-1e759a0d.js";
|
|
5
|
-
import { w as lo } from "./expression-ce9920fa.js";
|
|
6
|
-
import { g as ao, K as co, c as po } from "./baseImp-bb323303.js";
|
|
7
|
-
import { u as uo } from "./icon-1fc5d00d.js";
|
|
8
|
-
import { a8 as v, as as h } from "./enum-type-80708bd8.js";
|
|
9
|
-
import { d as io } from "./slot-f8ccd25c.js";
|
|
10
|
-
import { e as F } from "./enum-type-8bbffeb3.js";
|
|
11
|
-
import { t as go } from "./index-31e1760d.js";
|
|
12
|
-
import "./widget-base-8eece820.js";
|
|
13
|
-
import "./index-f1a0889e.js";
|
|
14
|
-
import "./uuid-f2110dfe.js";
|
|
15
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
16
|
-
import "./index-ae7a8101.js";
|
|
17
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
18
|
-
import "./fieldobj-0f01de3c.js";
|
|
19
|
-
import "./multirow-1063090e.js";
|
|
20
|
-
import "./source-map-b04aec4a.js";
|
|
21
|
-
import "./esprima-e8d15055.js";
|
|
22
|
-
import "./dialog-eea5b71b.js";
|
|
23
|
-
import "element-plus";
|
|
24
|
-
const _o = A({ componentName: lo.FieldWidget }), Do = /* @__PURE__ */ A({
|
|
25
|
-
..._o,
|
|
26
|
-
__name: "tour-widget",
|
|
27
|
-
props: { ...no },
|
|
28
|
-
setup(M, { expose: N }) {
|
|
29
|
-
const P = M, { fieldEditor: R, slots: D, fieldKey: H, fieldModel: u, attrs: K, extendAttrs: _, events: L, optionItems: b, getWidgetOptionByPropValue: s, getFieldOptions: fo, exposed: f, fieldObj: W } = ro(P), $ = w(() => {
|
|
30
|
-
var o, e;
|
|
31
|
-
return {
|
|
32
|
-
offset: (o = _.value) == null ? void 0 : o.gap_offset,
|
|
33
|
-
radius: (e = _.value) == null ? void 0 : e.gap_radius
|
|
34
|
-
};
|
|
35
|
-
}), m = (o) => {
|
|
36
|
-
const e = s(o == null ? void 0 : o.maskType), r = s(o == null ? void 0 : o.mask1), a = s(o == null ? void 0 : o.mask2);
|
|
37
|
-
switch (e) {
|
|
38
|
-
case v.bool:
|
|
39
|
-
return r;
|
|
40
|
-
case v.object:
|
|
41
|
-
return a;
|
|
42
|
-
}
|
|
43
|
-
}, E = (o) => {
|
|
44
|
-
const e = s(o == null ? void 0 : o.scrollIntoViewOptionsType), r = s(o == null ? void 0 : o.scrollIntoViewOptions1), a = s(o == null ? void 0 : o.scrollIntoViewOptions2);
|
|
45
|
-
switch (e) {
|
|
46
|
-
case v.bool:
|
|
47
|
-
return r;
|
|
48
|
-
case v.object:
|
|
49
|
-
return a;
|
|
50
|
-
}
|
|
51
|
-
}, G = (o) => {
|
|
52
|
-
var d, t;
|
|
53
|
-
const e = s(o == null ? void 0 : o.targetType), r = s(o == null ? void 0 : o.target_htmlelement), a = s(o == null ? void 0 : o.target_string), k = s(o == null ? void 0 : o.target_function);
|
|
54
|
-
switch (e) {
|
|
55
|
-
case h.HTMLElement: {
|
|
56
|
-
const { transFormula: i } = po(), Z = i(r), x = f == null ? void 0 : f.findRefById(Z, j);
|
|
57
|
-
return console.log((d = x.exposed) == null ? void 0 : d.fieldEditor()), (t = x.exposed) == null ? void 0 : t.fieldEditor();
|
|
58
|
-
}
|
|
59
|
-
case h.String:
|
|
60
|
-
return a;
|
|
61
|
-
case h.Function:
|
|
62
|
-
return co(k);
|
|
63
|
-
}
|
|
64
|
-
}, U = (o) => {
|
|
65
|
-
var e = {};
|
|
66
|
-
return [
|
|
67
|
-
"showArrow",
|
|
68
|
-
"title",
|
|
69
|
-
"description",
|
|
70
|
-
"placement",
|
|
71
|
-
"contentStyle",
|
|
72
|
-
"showClose",
|
|
73
|
-
"closeIcon"
|
|
74
|
-
].map((r) => {
|
|
75
|
-
e[r] = s(o == null ? void 0 : o[r]);
|
|
76
|
-
}), Object.assign(e, {
|
|
77
|
-
target: G(o),
|
|
78
|
-
mask: m(o),
|
|
79
|
-
scrollIntoViewOptions: E(o)
|
|
80
|
-
}), e;
|
|
81
|
-
}, q = w(() => m(_.value)), z = w(() => E(_.value)), J = w(() => ({
|
|
82
|
-
...K.value,
|
|
83
|
-
gap: $.value,
|
|
84
|
-
scrollIntoViewOptions: z.value,
|
|
85
|
-
mask: q.value
|
|
86
|
-
})), Q = () => {
|
|
87
|
-
u.value = !0;
|
|
88
|
-
}, X = () => {
|
|
89
|
-
u.value = !1;
|
|
90
|
-
}, { instance: j } = uo(), Y = ao({ instance: j });
|
|
91
|
-
return N({ ...f, show: Q, hide: X }), (o, e) => {
|
|
92
|
-
const r = I("el-tag"), a = I("el-tour-step"), k = I("el-tour");
|
|
93
|
-
return l(), c(so, V(o.$props, {
|
|
94
|
-
"prop-options": { fieldObj: n(W) }
|
|
95
|
-
}), {
|
|
96
|
-
default: p(({ data: d }) => [
|
|
97
|
-
o.designState ? (l(), y(O, { key: 0 }, [
|
|
98
|
-
S(go, {
|
|
99
|
-
content: n(F).i18nt("designer.hint.designTip")
|
|
100
|
-
}, null, 8, ["content"]),
|
|
101
|
-
(l(!0), y(O, null, C(n(b), (t, i) => (l(), y("div", null, [
|
|
102
|
-
S(r, null, {
|
|
103
|
-
default: p(() => [
|
|
104
|
-
oo(g(i), 1)
|
|
105
|
-
]),
|
|
106
|
-
_: 2
|
|
107
|
-
}, 1024),
|
|
108
|
-
B("div", null, g(n(F).i18nt("designer.setting.tour_title")) + ":" + g(t == null ? void 0 : t.title), 1),
|
|
109
|
-
B("div", null, g(n(F).i18nt("designer.setting.tour_description")) + ":" + g(t == null ? void 0 : t.description), 1)
|
|
110
|
-
]))), 256))
|
|
111
|
-
], 64)) : (l(), c(k, V({
|
|
112
|
-
modelValue: n(u),
|
|
113
|
-
"onUpdate:modelValue": e[0] || (e[0] = (t) => to(u) ? u.value = t : null),
|
|
114
|
-
ref_key: "fieldEditor",
|
|
115
|
-
ref: R,
|
|
116
|
-
key: n(H)
|
|
117
|
-
}, J.value, eo(n(L)), {
|
|
118
|
-
class: d.injectClass,
|
|
119
|
-
style: d.injectStyle
|
|
120
|
-
}), {
|
|
121
|
-
indicators: p((t) => [
|
|
122
|
-
(l(), c(T(n(s)(n(io)(n(D), "indicators"))), {
|
|
123
|
-
scope: t,
|
|
124
|
-
ctx: n(Y)
|
|
125
|
-
}, null, 8, ["scope", "ctx"]))
|
|
126
|
-
]),
|
|
127
|
-
default: p(() => [
|
|
128
|
-
(l(!0), y(O, null, C(n(b), (t, i) => (l(), c(a, V({ key: i }, { ref_for: !0 }, U(t)), {
|
|
129
|
-
header: p(() => [
|
|
130
|
-
(l(), c(T(n(s)(t.header))))
|
|
131
|
-
]),
|
|
132
|
-
default: p(() => [
|
|
133
|
-
(l(), c(T(n(s)(t.default))))
|
|
134
|
-
]),
|
|
135
|
-
_: 2
|
|
136
|
-
}, 1040))), 128))
|
|
137
|
-
]),
|
|
138
|
-
_: 1
|
|
139
|
-
}, 16, ["modelValue", "class", "style"]))
|
|
140
|
-
]),
|
|
141
|
-
_: 1
|
|
142
|
-
}, 16, ["prop-options"]);
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
export {
|
|
147
|
-
Do as default
|
|
148
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { ref as h, watch as y, defineComponent as W, resolveDirective as L, openBlock as b, createBlock as j, mergeProps as v, unref as s, withCtx as D, withDirectives as O, createElementBlock as P, normalizeClass as x, createVNode as z, createCommentVNode as S } from "vue";
|
|
2
|
-
import { I as R } from "./widget-base-8eece820.js";
|
|
3
|
-
import { D as k } from "./drag-wrapper-4dd92bd6.js";
|
|
4
|
-
import { _ as A } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-3748a4a5.js";
|
|
5
|
-
import { w as B } from "./expression-ce9920fa.js";
|
|
6
|
-
import { W as C } from "./enum-type-80708bd8.js";
|
|
7
|
-
import { b as F, a as N } from "./share-field-1e759a0d.js";
|
|
8
|
-
import { c as $ } from "./slot-f8ccd25c.js";
|
|
9
|
-
function E(i) {
|
|
10
|
-
const n = h({}), { componentWrapperClass: p, customClass: a } = $({ widget: i.widget }), { exposed: t, attrs: d, extendAttrs: c, fieldKey: m, fieldObj: f } = F(i), { setAllRefList: r } = N(n.value), g = (o = !1) => {
|
|
11
|
-
r(C.setDisabled, { flag: o });
|
|
12
|
-
}, _ = (o = !1) => {
|
|
13
|
-
var e;
|
|
14
|
-
(e = t == null ? void 0 : t.setHidden) == null || e.call(t, o);
|
|
15
|
-
}, l = () => {
|
|
16
|
-
r(C.resetField);
|
|
17
|
-
};
|
|
18
|
-
return ((o) => {
|
|
19
|
-
y(() => {
|
|
20
|
-
var e;
|
|
21
|
-
return (e = d.value) == null ? void 0 : e[o];
|
|
22
|
-
}, (e) => {
|
|
23
|
-
e != null && o === "disabled" && g(e);
|
|
24
|
-
}, { immediate: !0 });
|
|
25
|
-
})("disabled"), {
|
|
26
|
-
extendAttrs: c,
|
|
27
|
-
attrs: d,
|
|
28
|
-
exposed: {
|
|
29
|
-
...t,
|
|
30
|
-
setDisabled: g,
|
|
31
|
-
setHidden: _,
|
|
32
|
-
// setRequired,
|
|
33
|
-
resetField: l
|
|
34
|
-
},
|
|
35
|
-
componentWrapperClass: p,
|
|
36
|
-
customClass: a,
|
|
37
|
-
fieldKey: m,
|
|
38
|
-
fieldObj: f,
|
|
39
|
-
widgetRefList: n
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
const H = ["element-loading-text"], I = W({ componentName: B.ContainerWidget }), K = /* @__PURE__ */ W({
|
|
43
|
-
...I,
|
|
44
|
-
__name: "wrapper-widget",
|
|
45
|
-
props: { ...R },
|
|
46
|
-
setup(i, { expose: n }) {
|
|
47
|
-
const p = i, { attrs: a, extendAttrs: t, exposed: d, fieldObj: c, fieldKey: m, widgetRefList: f } = E(p);
|
|
48
|
-
return n({ ...d }), (r, g) => {
|
|
49
|
-
const _ = L("loading");
|
|
50
|
-
return b(), j(A, v(r.$props, {
|
|
51
|
-
"prop-options": { fieldObj: s(c) },
|
|
52
|
-
"component-name": "div",
|
|
53
|
-
"show-wrapper-component": !0
|
|
54
|
-
}), {
|
|
55
|
-
default: D(({ data: l }) => {
|
|
56
|
-
var u, o, e, w;
|
|
57
|
-
return [
|
|
58
|
-
r.designState || !((u = s(a)) != null && u.hidden) || !((o = s(a)) != null && o.lazy) ? O((b(), P("div", {
|
|
59
|
-
ref: "fieldEditor",
|
|
60
|
-
class: x(l.injectClass),
|
|
61
|
-
key: s(m),
|
|
62
|
-
"element-loading-text": (e = s(t)) == null ? void 0 : e.loadingText
|
|
63
|
-
}, [
|
|
64
|
-
z(k, v(r.$props, {
|
|
65
|
-
dragClass: "dragSize padSize",
|
|
66
|
-
"component-class": l.componentWrapperClass,
|
|
67
|
-
refList: s(f)
|
|
68
|
-
}), null, 16, ["component-class", "refList"])
|
|
69
|
-
], 10, H)), [
|
|
70
|
-
[_, (w = s(t)) == null ? void 0 : w.showLoading]
|
|
71
|
-
]) : S("", !0)
|
|
72
|
-
];
|
|
73
|
-
}),
|
|
74
|
-
_: 1
|
|
75
|
-
}, 16, ["prop-options"]);
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
}), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
79
|
-
__proto__: null,
|
|
80
|
-
default: K
|
|
81
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
82
|
-
export {
|
|
83
|
-
X as _
|
|
84
|
-
};
|