hlrender 0.0.135 → 0.0.137
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-1b3ce234.js +47 -0
- package/_txt-c8be11e9.js +60 -0
- package/{affix-widget-4fab64c2.js → affix-widget-bf896d2c.js} +3 -3
- package/{alert-widget-ea5474d8.js → alert-widget-e558f240.js} +3 -3
- package/{anchor-widget-35793db2.js → anchor-widget-3ce0ceb8.js} +1 -1
- package/{auto-complete-widget-c765ca4f.js → auto-complete-widget-edcee1a1.js} +2 -2
- package/{avatar-widget-8b45b12f.js → avatar-widget-a3707ea1.js} +3 -3
- package/{backtop-widget-63d6fc82.js → backtop-widget-b15af9a9.js} +3 -3
- package/{badge-widget-9eb0441a.js → badge-widget-b2ca6530.js} +3 -3
- package/{breadcrumb-widget-1288528d.js → breadcrumb-widget-c65cffbb.js} +1 -1
- package/{button-widget-5f5b2db1.js → button-widget-4b73aa22.js} +3 -3
- package/{cache-widget-b4bd928d.js → cache-widget-424a40e2.js} +1 -1
- package/{card-widget-6ddbaf67.js → card-widget-0587e443.js} +2 -2
- package/{carousel-widget-d6df0fd9.js → carousel-widget-68fe4bae.js} +1 -1
- package/{cascader-widget-dea19c0d.js → cascader-widget-36a29d45.js} +1 -1
- package/{chart-widget-338adbb4.js → chart-widget-9fbbedf9.js} +1 -1
- package/{checkbox-widget-99a90ce7.js → checkbox-widget-534da4e0.js} +1 -1
- package/{collapse-widget-b972043c.js → collapse-widget-605bcbe3.js} +1 -1
- package/{color-picker-widget-e5df51a8.js → color-picker-widget-ffc75c9f.js} +1 -1
- package/{cont-cell-widget-3b1fd833.js → cont-cell-widget-e6745b1e.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-73033ca4.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-aa5ab67f.js} +2 -2
- package/{cont-widget-43b3f88d.js → cont-widget-9c46584c.js} +2 -2
- package/{date-picker-range-widget-8bde7b57.js → date-picker-range-widget-95fe1027.js} +1 -1
- package/{date-picker-widget-2d17febd.js → date-picker-widget-ed363cfc.js} +1 -1
- package/{default-slot-widget-1c301349.js → default-slot-widget-fd8675b0.js} +2 -2
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-c74e1444.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-67b894df.js} +1 -1
- package/{descriptions-widget-5b527758.js → descriptions-widget-acc9925e.js} +2 -2
- package/{dialog-widget-11482f6b.js → dialog-widget-a051755d.js} +3 -3
- package/{divider-widget-6b6d35cd.js → divider-widget-2b29796d.js} +3 -3
- package/{drag-wrapper-ab9e6826.js → drag-wrapper-ddd788db.js} +19 -19
- package/{drawer-widget-f88c985d.js → drawer-widget-25a1400d.js} +3 -3
- package/{dropdown-widget-9de8275a.js → dropdown-widget-3875e58f.js} +2 -2
- package/{empty-widget-acc04117.js → empty-widget-c02f7189.js} +3 -3
- package/{feedback-widget-a1fb1b8f.js → feedback-widget-289cc5f3.js} +3 -3
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-24c173c2.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-4fb99716.js} +2 -2
- package/file-upload-widget-177ce5dc.js +352 -0
- package/{form-widget-08e21867.js → form-widget-f00a294a.js} +2 -2
- package/{grid-col-widget-8a02c5d4.js → grid-col-widget-db25799c.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-775d20e5.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-c405b26b.js} +2 -2
- package/{grid-widget-56f76749.js → grid-widget-b0b89ee4.js} +2 -2
- package/{html-text-widget-312ee643.js → html-text-widget-29d6fd91.js} +1 -1
- package/{icon-widget-cecf27f9.js → icon-widget-d21ce368.js} +1 -1
- package/{iframe-widget-493ead44.js → iframe-widget-1ccf04b7.js} +1 -1
- package/{image-widget-ae17e6e1.js → image-widget-11d35a55.js} +1 -1
- package/{input-number-widget-e715b9ba.js → input-number-widget-edd5d01a.js} +1 -1
- package/{input-widget-f29f62f6.js → input-widget-34b6587f.js} +2 -2
- package/{link-widget-9c1a0574.js → link-widget-8486753f.js} +3 -3
- package/{ltable-col-widget-7e510547.js → ltable-col-widget-8c83cc28.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-7111c858.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-5d10129f.js} +2 -2
- package/{ltable-widget-d56f2f83.js → ltable-widget-aee29346.js} +2 -2
- package/{menu-widget-6b0ddb72.js → menu-widget-86467f21.js} +1 -1
- package/{model-widget-ecc69eeb.js → model-widget-ea3ae98c.js} +1 -1
- package/{multirow-widget-f8a3e2e6.js → multirow-widget-f00de883.js} +2 -2
- package/package.json +1 -1
- package/{pagination-widget-ad54b31a.js → pagination-widget-d4928942.js} +1 -1
- package/picture-upload-widget-2331a7ee.js +172 -0
- package/{progress-widget-0ff6d1b1.js → progress-widget-dedc4687.js} +2 -2
- package/{radio-widget-9da17fd6.js → radio-widget-748a9474.js} +1 -1
- package/{range-widget-e20ddcc3.js → range-widget-ac9ed3ab.js} +2 -2
- package/{rate-widget-e29d0adf.js → rate-widget-6d3a5587.js} +1 -1
- package/render.es.js +16 -16
- package/render.style.css +1 -1
- package/render.umd.js +285 -284
- package/{result-widget-66243ff8.js → result-widget-3161eae3.js} +2 -2
- package/{rich-editor-widget-2864177c.js → rich-editor-widget-9a48e91b.js} +1 -1
- package/{router-widget-2e43a055.js → router-widget-78b5a8e1.js} +1 -1
- package/{select-widget-5e61b5b0.js → select-widget-6743f3f6.js} +1 -1
- package/{share-field-21c5dda2.js → share-field-f0f2612d.js} +98 -97
- package/share-file-cee43523.js +229 -0
- package/{slider-widget-d7dc7c1e.js → slider-widget-0866c354.js} +1 -1
- package/{static-text-widget-f324413b.js → static-text-widget-bdde824c.js} +1 -1
- package/{steps-widget-3389b1ae.js → steps-widget-28e361e1.js} +1 -1
- package/{switch-widget-5ebebdd5.js → switch-widget-58b406fb.js} +1 -1
- package/{tab-pane-widget-83844ddb.js → tab-pane-widget-58db19f7.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-559ed5ca.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-257a0a0d.js} +2 -2
- package/{table-col-widget-10972fb6.js → table-col-widget-24561e8b.js} +2 -2
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-da6b4968.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-e70de5c8.js} +1 -1
- package/{table-widget-e0058c9e.js → table-widget-6b526240.js} +3 -3
- package/{tabs-widget-77b20490.js → tabs-widget-1f4552bc.js} +2 -2
- package/{tag-widget-ea3a1aba.js → tag-widget-e985a598.js} +3 -3
- package/{text-widget-b1f68907.js → text-widget-4ac9329d.js} +3 -3
- package/{textarea-widget-ea03e265.js → textarea-widget-086c6f37.js} +1 -1
- package/{time-picker-range-widget-3534faed.js → time-picker-range-widget-d0961060.js} +1 -1
- package/{time-picker-widget-7f7987ba.js → time-picker-widget-b9ee4808.js} +1 -1
- package/{time-select-widget-4bbf14d9.js → time-select-widget-4b549b73.js} +1 -1
- package/{tmpl-widget-069c9363.js → tmpl-widget-4f55af42.js} +2 -2
- package/{tree-select-widget-0401a61a.js → tree-select-widget-1a25bc8f.js} +1 -1
- package/{tree-widget-7eb887f0.js → tree-widget-d9c0d860.js} +1 -1
- package/{wrapper-widget-b3cb0ef4.js → wrapper-widget-e88e954a.js} +2 -2
- package/_pdf-aa882567.js +0 -58
- package/_txt-a00c936a.js +0 -70
- package/file-upload-widget-5062a5ff.js +0 -400
- package/picture-upload-widget-e585794b.js +0 -165
- package/share-file-406e7440.js +0 -171
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { reactive as me, ref as z, computed as O } from "vue";
|
|
2
|
+
import { m as pe, e as U, d as ve, c as he, t as ge, E as y, i as I } from "./enum-type-4a798b1a.js";
|
|
3
|
+
import { b as Ue } from "./share-field-f0f2612d.js";
|
|
4
|
+
import { f as a } from "./expression-490b4335.js";
|
|
5
|
+
import { H as fe, $ as we, f } from "./baseImp-1b9355d2.js";
|
|
6
|
+
import { g as Se } from "./uuid-4999945f.js";
|
|
7
|
+
import { ag as R } from "./enum-type-bb2bfafa.js";
|
|
8
|
+
const Ee = (h) => new Promise((s) => {
|
|
9
|
+
if (!h) {
|
|
10
|
+
s({ isSuccess: !1 });
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
fe.get(h, {
|
|
14
|
+
responseType: "blob",
|
|
15
|
+
timeout: 1e3 * 60 * 60
|
|
16
|
+
}).then((d) => {
|
|
17
|
+
s({ isSuccess: !0, data: d == null ? void 0 : d.data });
|
|
18
|
+
}).catch((d) => {
|
|
19
|
+
s({ isSuccess: !1, message: d.message });
|
|
20
|
+
});
|
|
21
|
+
}), xe = (h, s) => new Promise((d) => {
|
|
22
|
+
if (!h || !s) {
|
|
23
|
+
d({ isSuccess: !1, message: "empty file" });
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const m = document.createElement("a"), u = document.querySelector("body");
|
|
27
|
+
try {
|
|
28
|
+
return m.href = window.URL.createObjectURL(h), m.download = s, m.style.display = "none", u == null || u.appendChild(m), m.click(), u == null || u.removeChild(m), window.URL.revokeObjectURL(m.href), !0;
|
|
29
|
+
} catch (S) {
|
|
30
|
+
d({ isSuccess: !1, message: "download error" }), pe.error("download error", S);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
}), ye = (h, s) => new Promise((d, m) => {
|
|
34
|
+
Ee(h).then((u) => {
|
|
35
|
+
if (u == null || !u.isSuccess) {
|
|
36
|
+
d(u);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
xe(u.data, s).then((S) => {
|
|
40
|
+
d(S);
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
function Ie(h) {
|
|
45
|
+
let s = me([]);
|
|
46
|
+
const d = (e) => {
|
|
47
|
+
var n;
|
|
48
|
+
var r = he(ge(y(e) || [], !0)), t = (n = Array.from(r)) == null ? void 0 : n.map((o) => (o.orgUrl = o == null ? void 0 : o.url, v(a.onBuildUrl) && (o.url = i(a.onBuildUrl, { orgUrl: o.orgUrl, disposition: R.preview })), o.uid <= 0 && (o.uid = Se()), o));
|
|
49
|
+
s.splice(0, s == null ? void 0 : s.length, ...t);
|
|
50
|
+
}, m = (e) => {
|
|
51
|
+
d(e);
|
|
52
|
+
}, u = () => {
|
|
53
|
+
g.value.clearFiles(), d([]);
|
|
54
|
+
}, S = (e, r) => {
|
|
55
|
+
let t = y(p.value);
|
|
56
|
+
const n = Object.assign({
|
|
57
|
+
name: e.name,
|
|
58
|
+
url: e.url,
|
|
59
|
+
size: e.size,
|
|
60
|
+
uid: e.uid,
|
|
61
|
+
type: e.type
|
|
62
|
+
}, r);
|
|
63
|
+
I(p.value) && (p.value = []), p.value.push(n), D(t);
|
|
64
|
+
}, D = (e) => {
|
|
65
|
+
N(p.value), V(p.value, e);
|
|
66
|
+
}, A = (e) => {
|
|
67
|
+
const r = (s == null ? void 0 : s.findIndex((t) => (t == null ? void 0 : t.uid) === e)) || 0;
|
|
68
|
+
r >= 0 && (s.splice(r, 1), T(r));
|
|
69
|
+
}, T = (e) => {
|
|
70
|
+
let r = y(p.value);
|
|
71
|
+
p.value.splice(e, 1), D(r);
|
|
72
|
+
}, { fieldEditor: g, fieldKey: j, fieldModel: p, field: L, attrs: E, extendAttrs: l, events: P, slots: H, exposed: $, syncUpdateFormModel: N, emitFieldDataChange: V, existEvent: v, handleEvent: i, getWidgetOption: Re, rules: q, fieldObj: K } = Ue({ ...h, extInitFieldModel: m, exResetField: u }), b = z({ key: "" }), C = z(), W = O(() => {
|
|
73
|
+
var e;
|
|
74
|
+
return s.length >= ((e = l.value) == null ? void 0 : e.limit);
|
|
75
|
+
}), G = O(() => {
|
|
76
|
+
var e;
|
|
77
|
+
return (e = l.value) == null ? void 0 : e.uploadTip;
|
|
78
|
+
}), J = (e, r) => {
|
|
79
|
+
var n;
|
|
80
|
+
let t = (n = E.value) == null ? void 0 : n.limit;
|
|
81
|
+
f.warning(U.i18nt("render.hint.uploadExceed").replace("${uploadLimit}", t));
|
|
82
|
+
}, Q = (e, r) => {
|
|
83
|
+
let t = {
|
|
84
|
+
key: r.name
|
|
85
|
+
//文件名
|
|
86
|
+
};
|
|
87
|
+
if (v(a.getData)) {
|
|
88
|
+
const n = i(a.getData, { keyName: e });
|
|
89
|
+
I(n) || Object.assign(t, n);
|
|
90
|
+
}
|
|
91
|
+
return t;
|
|
92
|
+
}, X = () => i(a.getHeaders), Y = (e, r, t) => {
|
|
93
|
+
let n = !1, o = e == null ? void 0 : e.name.substring((e == null ? void 0 : e.name.lastIndexOf(".")) + 1);
|
|
94
|
+
if (r && (r == null ? void 0 : r.length) > 0 && (n = r.some((ce) => o.toLowerCase() === ce.toLowerCase())), !n)
|
|
95
|
+
return f.error(U.i18nt("render.hint.unsupportedFileType") + o), !1;
|
|
96
|
+
let c = !1, w = 5;
|
|
97
|
+
return t && (w = t), c = (e.size || 0) / 1024 / 1024 <= w, c ? !0 : (f.error(U.i18nt("render.hint.fileSizeExceed") + w + "MB"), !1);
|
|
98
|
+
}, Z = (e) => {
|
|
99
|
+
if (!v(a.beforeUpload))
|
|
100
|
+
return !0;
|
|
101
|
+
let r = i(a.beforeUpload, { file: e });
|
|
102
|
+
return typeof r == "boolean" ? r : !1;
|
|
103
|
+
}, F = (e) => {
|
|
104
|
+
var o, c, w;
|
|
105
|
+
let r = (o = l.value) == null ? void 0 : o.accept, t = (c = l == null ? void 0 : l.value) == null ? void 0 : c.fileMaxSize, n = (w = l == null ? void 0 : l.value) == null ? void 0 : w.dataName;
|
|
106
|
+
return Y(e, r, t) ? (b.value = Q(n, e), C.value = X(), Z(e)) : !1;
|
|
107
|
+
}, ee = (e, r) => {
|
|
108
|
+
i(a.onChangeFn, { uploadFile: e, uploadFiles: r });
|
|
109
|
+
}, re = (e, r, t) => {
|
|
110
|
+
var c;
|
|
111
|
+
if (r.status !== "success") {
|
|
112
|
+
_(r, t);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
if (v(a.isUploadSuccess)) {
|
|
116
|
+
var n = i(a.isUploadSuccess, { response: e, uploadFile: r, uploadFiles: t });
|
|
117
|
+
if (!(n != null && n.isSuccess)) {
|
|
118
|
+
_(r, t), f.error((n == null ? void 0 : n.message) || U.i18nt("designer.hint.failToUpload"));
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
let o = e;
|
|
123
|
+
v(a.onSuccess) && (o = i(a.onSuccess, { response: e, uploadFile: r, uploadFiles: t })), S({ ...r, type: (c = r == null ? void 0 : r.raw) == null ? void 0 : c.type }, o), d(p.value);
|
|
124
|
+
}, _ = (e, r) => {
|
|
125
|
+
const t = (r == null ? void 0 : r.findIndex((n) => (n == null ? void 0 : n.uid) === (e == null ? void 0 : e.uid))) || 0;
|
|
126
|
+
t >= 0 && r.splice(t, 1);
|
|
127
|
+
}, te = (e, r, t) => {
|
|
128
|
+
v(a.onError) ? i(a.onError, { error: e, uploadFile: r, uploadFiles: t }) : f.error(U.i18nt("render.hint.uploadError") + e);
|
|
129
|
+
}, B = () => {
|
|
130
|
+
var e, r;
|
|
131
|
+
(r = (e = g.value) == null ? void 0 : e.submit) == null || r.call(e);
|
|
132
|
+
}, ne = (e) => {
|
|
133
|
+
var r, t;
|
|
134
|
+
(t = (r = g.value) == null ? void 0 : r.abort) == null || t.call(r, e);
|
|
135
|
+
}, oe = (e) => {
|
|
136
|
+
var r, t;
|
|
137
|
+
(t = (r = g.value) == null ? void 0 : r.clearFiles) == null || t.call(r, e);
|
|
138
|
+
}, se = (e) => {
|
|
139
|
+
var r, t;
|
|
140
|
+
(t = (r = g.value) == null ? void 0 : r.handleStart) == null || t.call(r, e);
|
|
141
|
+
}, ae = (e) => {
|
|
142
|
+
var r, t;
|
|
143
|
+
(t = (r = g.value) == null ? void 0 : r.handleRemove) == null || t.call(r, e);
|
|
144
|
+
}, M = (e) => {
|
|
145
|
+
var t;
|
|
146
|
+
if ((t = E.value) != null && t.beforeRemove) {
|
|
147
|
+
var r = i(a.beforeRemove, { uploadFile: e, uploadFiles: s });
|
|
148
|
+
if (!r)
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
we.delete().then((n) => {
|
|
152
|
+
var o, c;
|
|
153
|
+
k(e, s), (c = (o = g.value) == null ? void 0 : o.handleRemove) == null || c.call(o, e);
|
|
154
|
+
});
|
|
155
|
+
}, k = (e, r) => {
|
|
156
|
+
A(e == null ? void 0 : e.uid), i(a.onRemove, { uploadFile: e, uploadFiles: r });
|
|
157
|
+
}, ie = (e) => {
|
|
158
|
+
var n;
|
|
159
|
+
var r = x(e);
|
|
160
|
+
let t = r == null ? void 0 : r.orgUrl;
|
|
161
|
+
return v(a.onBuildUrl) && (t = i(a.onBuildUrl, { orgUrl: t, disposition: R.preview })), t ? (n = E.value) != null && n.onPreview ? (e.url = t, i(a.onPreview, { file: { ...e, type: r == null ? void 0 : r.type } }), { url: t, file: r, previewed: !0 }) : { url: t, file: r, previewed: !1 } : (f.error(U.i18nt("designer.hint.fileIsEmpty")), { url: t, file: r, previewed: !1 });
|
|
162
|
+
}, de = (e) => {
|
|
163
|
+
var t, n;
|
|
164
|
+
let r = (t = x(e)) == null ? void 0 : t.orgUrl;
|
|
165
|
+
if ((n = l.value) != null && n.onDownload) {
|
|
166
|
+
e.url = r, i(a.onDownload, { file: e });
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (v(a.onBuildUrl) && (r = i(a.onBuildUrl, { orgUrl: r, disposition: R.download })), !r) {
|
|
170
|
+
f.error(U.i18nt("designer.hint.fileToDownload"));
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
ye(r, e.name).then((o) => {
|
|
174
|
+
(o == null || !(o != null && o.isSuccess)) && f.error((o == null ? void 0 : o.message) || U.i18nt("designer.hint.fileToDownload"));
|
|
175
|
+
});
|
|
176
|
+
}, ue = (e, r) => !!(e != null && e.uid) && (e == null ? void 0 : e.uid) == (r == null ? void 0 : r.uid), x = (e) => {
|
|
177
|
+
var r = s == null ? void 0 : s.find((t) => (t == null ? void 0 : t.uid) === (e == null ? void 0 : e.uid));
|
|
178
|
+
return r ? { ...e, ...r } : e;
|
|
179
|
+
}, le = (e, r) => !v(e) || i(e, { file: r });
|
|
180
|
+
return (() => {
|
|
181
|
+
ve(E.value, {
|
|
182
|
+
beforeUpload: F,
|
|
183
|
+
onRemove: k,
|
|
184
|
+
onSuccess: re,
|
|
185
|
+
onError: te,
|
|
186
|
+
onExceed: J
|
|
187
|
+
}, !0);
|
|
188
|
+
})(), {
|
|
189
|
+
rules: q,
|
|
190
|
+
field: L,
|
|
191
|
+
fieldKey: j,
|
|
192
|
+
fieldModel: p,
|
|
193
|
+
attrs: E,
|
|
194
|
+
extendAttrs: l,
|
|
195
|
+
events: P,
|
|
196
|
+
fieldObj: K,
|
|
197
|
+
fileList: s,
|
|
198
|
+
fieldEditor: g,
|
|
199
|
+
uploadBtnHidden: W,
|
|
200
|
+
uploadData: b,
|
|
201
|
+
uploadHeaders: C,
|
|
202
|
+
uploadTip: G,
|
|
203
|
+
slots: H,
|
|
204
|
+
handleDownload: de,
|
|
205
|
+
exterPreview: ie,
|
|
206
|
+
handleEvent: i,
|
|
207
|
+
existEvent: v,
|
|
208
|
+
submitToServer: B,
|
|
209
|
+
handleManualRemove: M,
|
|
210
|
+
//单独给出,采用attrs绑定方式,会提示onChange传入了Array
|
|
211
|
+
handleStatusChange: ee,
|
|
212
|
+
getRealFile: x,
|
|
213
|
+
isSameFile: ue,
|
|
214
|
+
isAllow: le,
|
|
215
|
+
exposed: {
|
|
216
|
+
...$,
|
|
217
|
+
submit: B,
|
|
218
|
+
abort: ne,
|
|
219
|
+
handleStart: se,
|
|
220
|
+
handleRemove: ae,
|
|
221
|
+
clearFiles: oe,
|
|
222
|
+
handleManualRemove: M
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
export {
|
|
227
|
+
Ee as g,
|
|
228
|
+
Ie as u
|
|
229
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, computed as w, resolveComponent as x, openBlock as s, createBlock as m, mergeProps as n, unref as e, withCtx as C, isRef as F, toHandlers as b, createTextVNode as z, toDisplayString as I } from "vue";
|
|
2
|
-
import { b as B } from "./share-field-
|
|
2
|
+
import { b as B } from "./share-field-f0f2612d.js";
|
|
3
3
|
import { I as E } from "./field-base-5547436d.js";
|
|
4
4
|
import N from "./form-item-wrapper-14987803.js";
|
|
5
5
|
import { w as P } from "./expression-490b4335.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, openBlock as c, createBlock as d, mergeProps as _, unref as o, withCtx as u, createVNode as x } from "vue";
|
|
2
2
|
import { I as g } from "./field-base-5547436d.js";
|
|
3
|
-
import { b as w } from "./share-field-
|
|
3
|
+
import { b as w } from "./share-field-f0f2612d.js";
|
|
4
4
|
import { w as C } from "./expression-490b4335.js";
|
|
5
5
|
import { _ as P } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
6
6
|
import { _ as b } from "./content-wrapper.vue_vue_type_script_setup_true_lang-131fb31a.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as f, computed as E, ref as F, resolveComponent as u, openBlock as r, createBlock as s, mergeProps as i, unref as e, withCtx as o, toHandlers as M, createElementBlock as S, Fragment as T, renderList as B, createSlots as N, createElementVNode as _, createVNode as O } from "vue";
|
|
2
2
|
import { I as P } from "./field-base-5547436d.js";
|
|
3
3
|
import { _ as $ } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
4
|
-
import { b as K } from "./share-field-
|
|
4
|
+
import { b as K } from "./share-field-f0f2612d.js";
|
|
5
5
|
import { S as W } from "./index-79892b9c.js";
|
|
6
6
|
import { w as q } from "./expression-490b4335.js";
|
|
7
7
|
import { c as p } from "./enum-type-4a798b1a.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, resolveComponent as C, openBlock as i, createBlock as p, mergeProps as m, unref as e, withCtx as F, isRef as O, toHandlers as V } from "vue";
|
|
2
2
|
import { w as b } from "./expression-490b4335.js";
|
|
3
|
-
import { b as h } from "./share-field-
|
|
3
|
+
import { b as h } from "./share-field-f0f2612d.js";
|
|
4
4
|
import { I as v } from "./field-base-5547436d.js";
|
|
5
5
|
import x from "./form-item-wrapper-14987803.js";
|
|
6
6
|
import "./source-map-b04aec4a.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-
|
|
1
|
+
import { _ as e } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-257a0a0d.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 s, openBlock as l, createBlock as f, mergeProps as r, unref as e, withCtx as g, createVNode as _ } from "vue";
|
|
2
2
|
import { w as u } from "./expression-490b4335.js";
|
|
3
3
|
import { I as w } from "./widget-base-4c2d6265.js";
|
|
4
|
-
import { D as C } from "./drag-wrapper-
|
|
4
|
+
import { D as C } from "./drag-wrapper-ddd788db.js";
|
|
5
5
|
import { _ as b } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
6
6
|
import { c as W } from "./slot-afdbaf6a.js";
|
|
7
|
-
import { b as h } from "./share-field-
|
|
7
|
+
import { b as h } from "./share-field-f0f2612d.js";
|
|
8
8
|
const k = s({ componentName: u.ContainerWidget }), x = /* @__PURE__ */ s({
|
|
9
9
|
...k,
|
|
10
10
|
__name: "tab-pane-widget",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as o } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-
|
|
1
|
+
import { _ as o } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-e70de5c8.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "./enum-type-4a798b1a.js";
|
|
4
4
|
import "./baseImp-1b9355d2.js";
|
|
@@ -11,7 +11,7 @@ import "./esprima-e8d15055.js";
|
|
|
11
11
|
import "./icon-a0e0cdb0.js";
|
|
12
12
|
import "./dialog-c4706078.js";
|
|
13
13
|
import "element-plus";
|
|
14
|
-
import "./drag-wrapper-
|
|
14
|
+
import "./drag-wrapper-ddd788db.js";
|
|
15
15
|
import "./widget-base-4c2d6265.js";
|
|
16
16
|
import "./index-f6240372.js";
|
|
17
17
|
import "./slot-afdbaf6a.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as E, resolveComponent as G, openBlock as i, createBlock as a, normalizeProps as I, guardReactiveProps as N, unref as e, withCtx as v, resolveDynamicComponent as A, createCommentVNode as s, createElementBlock as F, Fragment as L, renderList as V } from "vue";
|
|
2
2
|
import { c as O, e as j } from "./enum-type-4a798b1a.js";
|
|
3
3
|
import { b as q, g as H } from "./baseImp-1b9355d2.js";
|
|
4
|
-
import { D as W } from "./drag-wrapper-
|
|
4
|
+
import { D as W } from "./drag-wrapper-ddd788db.js";
|
|
5
5
|
import { a as g } from "./slot-afdbaf6a.js";
|
|
6
6
|
import { b as J } from "./multirow-3a97c61a.js";
|
|
7
7
|
import { g as K } from "./uuid-4999945f.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as H, ref as O, computed as de, reactive as fe, onMounted as ge, resolveComponent as k, resolveDirective as ce, openBlock as f, createBlock as z, mergeProps as W, unref as t, withCtx as $, withDirectives as ve, createElementBlock as K, toHandlers as _e, Fragment as ye, renderList as be, createCommentVNode as he } from "vue";
|
|
2
2
|
import { I as Se } from "./field-base-5547436d.js";
|
|
3
3
|
import { _ as Pe } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
4
|
-
import { b as Oe } from "./share-field-
|
|
4
|
+
import { b as Oe } from "./share-field-f0f2612d.js";
|
|
5
5
|
import { w as ze, g as Ne } from "./expression-490b4335.js";
|
|
6
|
-
import { _ as Re } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-
|
|
6
|
+
import { _ as Re } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-e70de5c8.js";
|
|
7
7
|
import { x as Ce, e as U, g as x, a as je, f as ke, t as Fe, o as Ie } from "./enum-type-4a798b1a.js";
|
|
8
8
|
import { F as De } from "./slot-afdbaf6a.js";
|
|
9
9
|
import { c as Te, p as G } from "./multirow-3a97c61a.js";
|
|
@@ -21,7 +21,7 @@ import "./_plugin-vue_export-helper-dad06003.js";
|
|
|
21
21
|
import "./fieldobj-a9f1231d.js";
|
|
22
22
|
import "./source-map-b04aec4a.js";
|
|
23
23
|
import "./esprima-e8d15055.js";
|
|
24
|
-
import "./drag-wrapper-
|
|
24
|
+
import "./drag-wrapper-ddd788db.js";
|
|
25
25
|
const Ee = { key: 1 }, Me = H({ componentName: ze.FieldWidget }), lt = /* @__PURE__ */ H({
|
|
26
26
|
...Me,
|
|
27
27
|
__name: "table-widget",
|
|
@@ -2,9 +2,9 @@ import { defineComponent as y, computed as _, ref as L, resolveComponent as R, r
|
|
|
2
2
|
import { c as n, k as Q } from "./enum-type-4a798b1a.js";
|
|
3
3
|
import { g as X, w as Y } from "./expression-490b4335.js";
|
|
4
4
|
import { I as Z } from "./widget-base-4c2d6265.js";
|
|
5
|
-
import { b as ee } from "./share-field-
|
|
5
|
+
import { b as ee } from "./share-field-f0f2612d.js";
|
|
6
6
|
import { _ as te } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
7
|
-
import { _ as ae } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-
|
|
7
|
+
import { _ as ae } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-257a0a0d.js";
|
|
8
8
|
import { u as oe } from "./index-f6240372.js";
|
|
9
9
|
import { B as T } from "./baseImp-1b9355d2.js";
|
|
10
10
|
const se = y({ componentName: Y.ContainerWidget }), ne = /* @__PURE__ */ y({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as s, createBlock as n, mergeProps as a, unref as f } from "vue";
|
|
2
2
|
import { I as l } from "./field-base-5547436d.js";
|
|
3
|
-
import { _ as c } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-
|
|
3
|
+
import { _ as c } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-67b894df.js";
|
|
4
4
|
import { w as d } from "./expression-490b4335.js";
|
|
5
|
-
import { b as _ } from "./share-field-
|
|
5
|
+
import { b as _ } from "./share-field-f0f2612d.js";
|
|
6
6
|
import "./widget-base-4c2d6265.js";
|
|
7
7
|
import "./enum-type-4a798b1a.js";
|
|
8
8
|
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
@@ -19,7 +19,7 @@ import "./_plugin-vue_export-helper-dad06003.js";
|
|
|
19
19
|
import "./fieldobj-a9f1231d.js";
|
|
20
20
|
import "./slot-afdbaf6a.js";
|
|
21
21
|
import "./content-wrapper.vue_vue_type_script_setup_true_lang-131fb31a.js";
|
|
22
|
-
import "./drag-wrapper-
|
|
22
|
+
import "./drag-wrapper-ddd788db.js";
|
|
23
23
|
import "./source-map-b04aec4a.js";
|
|
24
24
|
import "./esprima-e8d15055.js";
|
|
25
25
|
import "./multirow-3a97c61a.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as s, createBlock as n, mergeProps as a, unref as f } from "vue";
|
|
2
2
|
import { I as l } from "./field-base-5547436d.js";
|
|
3
|
-
import { _ as c } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-
|
|
3
|
+
import { _ as c } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-67b894df.js";
|
|
4
4
|
import { w as d } from "./expression-490b4335.js";
|
|
5
|
-
import { b as _ } from "./share-field-
|
|
5
|
+
import { b as _ } from "./share-field-f0f2612d.js";
|
|
6
6
|
import "./widget-base-4c2d6265.js";
|
|
7
7
|
import "./enum-type-4a798b1a.js";
|
|
8
8
|
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
@@ -19,7 +19,7 @@ import "./_plugin-vue_export-helper-dad06003.js";
|
|
|
19
19
|
import "./fieldobj-a9f1231d.js";
|
|
20
20
|
import "./slot-afdbaf6a.js";
|
|
21
21
|
import "./content-wrapper.vue_vue_type_script_setup_true_lang-131fb31a.js";
|
|
22
|
-
import "./drag-wrapper-
|
|
22
|
+
import "./drag-wrapper-ddd788db.js";
|
|
23
23
|
import "./source-map-b04aec4a.js";
|
|
24
24
|
import "./esprima-e8d15055.js";
|
|
25
25
|
import "./multirow-3a97c61a.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, resolveComponent as w, openBlock as p, createBlock as i, mergeProps as m, unref as e, withCtx as C, isRef as F, toHandlers as O } from "vue";
|
|
2
|
-
import { b as V } from "./share-field-
|
|
2
|
+
import { b as V } from "./share-field-f0f2612d.js";
|
|
3
3
|
import { I as b } from "./field-base-5547436d.js";
|
|
4
4
|
import v from "./form-item-wrapper-14987803.js";
|
|
5
5
|
import { w as I } from "./expression-490b4335.js";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as _, computed as x, resolveComponent as z, openBlock a
|
|
|
2
2
|
import { a as B, f as E, n as M, e as f, c as s } from "./enum-type-4a798b1a.js";
|
|
3
3
|
import { b as m, d as n } from "./uuid-4999945f.js";
|
|
4
4
|
import { I as S } from "./field-base-5547436d.js";
|
|
5
|
-
import { b as W } from "./share-field-
|
|
5
|
+
import { b as W } from "./share-field-f0f2612d.js";
|
|
6
6
|
import D from "./form-item-wrapper-14987803.js";
|
|
7
7
|
import { w as H } from "./expression-490b4335.js";
|
|
8
8
|
import "./widget-base-4c2d6265.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as a, resolveComponent as C, openBlock as p, createBlock as m, mergeProps as s, unref as e, withCtx as F, isRef as O, toHandlers as b } from "vue";
|
|
2
2
|
import { e as x, c as z } from "./enum-type-4a798b1a.js";
|
|
3
|
-
import { b as I } from "./share-field-
|
|
3
|
+
import { b as I } from "./share-field-f0f2612d.js";
|
|
4
4
|
import { I as K } from "./field-base-5547436d.js";
|
|
5
5
|
import P from "./form-item-wrapper-14987803.js";
|
|
6
6
|
import { w as B } from "./expression-490b4335.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, resolveComponent as w, openBlock as p, createBlock as l, mergeProps as m, unref as e, withCtx as C, isRef as F, toHandlers as O } from "vue";
|
|
2
2
|
import { e as V } from "./enum-type-4a798b1a.js";
|
|
3
|
-
import { b } from "./share-field-
|
|
3
|
+
import { b } from "./share-field-f0f2612d.js";
|
|
4
4
|
import { I as v } from "./field-base-5547436d.js";
|
|
5
5
|
import x from "./form-item-wrapper-14987803.js";
|
|
6
6
|
import { w as z } from "./expression-490b4335.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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 t, withCtx as M, createElementBlock as n, Fragment as c, withDirectives as P, renderList as R, createTextVNode as z, toDisplayString as A } from "vue";
|
|
2
2
|
import { e as E, t as J, f as q } from "./enum-type-4a798b1a.js";
|
|
3
3
|
import { I as G } from "./widget-base-4c2d6265.js";
|
|
4
|
-
import { b as H } from "./share-field-
|
|
4
|
+
import { b as H } from "./share-field-f0f2612d.js";
|
|
5
5
|
import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
6
|
-
import { D as v } from "./drag-wrapper-
|
|
6
|
+
import { D as v } from "./drag-wrapper-ddd788db.js";
|
|
7
7
|
import { i as Q, a as U } from "./slot-afdbaf6a.js";
|
|
8
8
|
import { c as X } from "./multirow-3a97c61a.js";
|
|
9
9
|
import { g as Y } from "./expression-490b4335.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as T, computed as s, resolveComponent as ee, openBlock as d, createBlock as p, mergeProps as j, unref as e, withCtx as a, isRef as W, toHandlers as A, createSlots as B, resolveDynamicComponent as i, createCommentVNode as g } from "vue";
|
|
2
2
|
import { s as f, t as D } from "./enum-type-4a798b1a.js";
|
|
3
3
|
import { I as te } from "./field-base-5547436d.js";
|
|
4
|
-
import { b as oe } from "./share-field-
|
|
4
|
+
import { b as oe } from "./share-field-f0f2612d.js";
|
|
5
5
|
import re from "./form-item-wrapper-14987803.js";
|
|
6
6
|
import { g as y, w as le } from "./expression-490b4335.js";
|
|
7
7
|
import "./widget-base-4c2d6265.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, computed as s, resolveComponent as $, openBlock as u, createBlock as f, mergeProps as x, unref as t, withCtx as K, isRef as A, toHandlers as H, createSlots as M, resolveDynamicComponent as P } from "vue";
|
|
2
2
|
import { I as R } from "./field-base-5547436d.js";
|
|
3
|
-
import { b as U } from "./share-field-
|
|
3
|
+
import { b as U } from "./share-field-f0f2612d.js";
|
|
4
4
|
import { _ as q } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
5
5
|
import { g as n, w as G } from "./expression-490b4335.js";
|
|
6
6
|
import { s as a } from "./enum-type-4a798b1a.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as y, watch as L, defineComponent as h, resolveDirective as j, openBlock as b, createBlock as D, mergeProps as W, unref as s, withCtx as O, withDirectives as P, createElementBlock as x, normalizeClass as z, createVNode as R, createCommentVNode as S } from "vue";
|
|
2
2
|
import { I as k } from "./widget-base-4c2d6265.js";
|
|
3
|
-
import { D as A } from "./drag-wrapper-
|
|
3
|
+
import { D as A } from "./drag-wrapper-ddd788db.js";
|
|
4
4
|
import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
5
5
|
import { w as F } from "./expression-490b4335.js";
|
|
6
6
|
import { W as v } from "./enum-type-bb2bfafa.js";
|
|
7
|
-
import { b as N, a as $ } from "./share-field-
|
|
7
|
+
import { b as N, a as $ } from "./share-field-f0f2612d.js";
|
|
8
8
|
import { c as E } from "./slot-afdbaf6a.js";
|
|
9
9
|
function H(i) {
|
|
10
10
|
const n = y({}), { componentWrapperClass: c, customClass: a } = E({ widget: i.widget }), { exposed: t, attrs: d, extendAttrs: m, fieldKey: f, fieldObj: g } = N(i), { setAllRefList: l } = $(n.value), p = (o = !1) => {
|
package/_pdf-aa882567.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, ref as n, resolveComponent as s, openBlock as o, createElementBlock as c, createBlock as l, unref as u } from "vue";
|
|
2
|
-
import { e as a } from "./enum-type-4a798b1a.js";
|
|
3
|
-
import { g as f } from "./file-upload-widget-5062a5ff.js";
|
|
4
|
-
import "./uuid-4999945f.js";
|
|
5
|
-
import "./field-base-5547436d.js";
|
|
6
|
-
import "./widget-base-4c2d6265.js";
|
|
7
|
-
import "./share-file-406e7440.js";
|
|
8
|
-
import "./share-field-21c5dda2.js";
|
|
9
|
-
import "./multirow-3a97c61a.js";
|
|
10
|
-
import "./baseImp-1b9355d2.js";
|
|
11
|
-
import "./enum-type-bb2bfafa.js";
|
|
12
|
-
import "./expression-490b4335.js";
|
|
13
|
-
import "./source-map-b04aec4a.js";
|
|
14
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
-
import "./esprima-e8d15055.js";
|
|
16
|
-
import "./icon-a0e0cdb0.js";
|
|
17
|
-
import "./dialog-c4706078.js";
|
|
18
|
-
import "element-plus";
|
|
19
|
-
import "./index-f6240372.js";
|
|
20
|
-
import "./slot-afdbaf6a.js";
|
|
21
|
-
import "./form-item-wrapper-14987803.js";
|
|
22
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
23
|
-
import "./index-79892b9c.js";
|
|
24
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
25
|
-
import "./fieldobj-a9f1231d.js";
|
|
26
|
-
import "./label-wrapper.vue_vue_type_style_index_0_lang-62dc93f6.js";
|
|
27
|
-
import "./drag-wrapper-ab9e6826.js";
|
|
28
|
-
import "./index-ddd23411.js";
|
|
29
|
-
const _ = ["src"], Q = /* @__PURE__ */ m({
|
|
30
|
-
__name: "_pdf",
|
|
31
|
-
props: {
|
|
32
|
-
url: null,
|
|
33
|
-
type: null
|
|
34
|
-
},
|
|
35
|
-
setup(e) {
|
|
36
|
-
const i = e, r = n(!0);
|
|
37
|
-
return f(i.url).then((t) => {
|
|
38
|
-
r.value = t == null ? void 0 : t.isSuccess, t.isSuccess;
|
|
39
|
-
}).catch((t) => {
|
|
40
|
-
r.value = !1;
|
|
41
|
-
}), (t, h) => {
|
|
42
|
-
const p = s("el-empty");
|
|
43
|
-
return r.value ? (o(), c("iframe", {
|
|
44
|
-
key: 0,
|
|
45
|
-
src: e.url,
|
|
46
|
-
class: "full-height full-width",
|
|
47
|
-
frameborder: "0",
|
|
48
|
-
style: { height: "99%" }
|
|
49
|
-
}, null, 8, _)) : (o(), l(p, {
|
|
50
|
-
key: 1,
|
|
51
|
-
description: u(a).i18nt("designer.hint.failToPreview")
|
|
52
|
-
}, null, 8, ["description"]));
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
export {
|
|
57
|
-
Q as default
|
|
58
|
-
};
|
package/_txt-a00c936a.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, ref as i, onMounted as l, nextTick as _, resolveComponent as d, openBlock as p, createElementBlock as u, createElementVNode as f, toDisplayString as v, createBlock as x, unref as h } from "vue";
|
|
2
|
-
import { e as k } from "./enum-type-4a798b1a.js";
|
|
3
|
-
import { g } from "./file-upload-widget-5062a5ff.js";
|
|
4
|
-
import { _ as y } from "./_plugin-vue_export-helper-dad06003.js";
|
|
5
|
-
import "./uuid-4999945f.js";
|
|
6
|
-
import "./field-base-5547436d.js";
|
|
7
|
-
import "./widget-base-4c2d6265.js";
|
|
8
|
-
import "./share-file-406e7440.js";
|
|
9
|
-
import "./share-field-21c5dda2.js";
|
|
10
|
-
import "./multirow-3a97c61a.js";
|
|
11
|
-
import "./baseImp-1b9355d2.js";
|
|
12
|
-
import "./enum-type-bb2bfafa.js";
|
|
13
|
-
import "./expression-490b4335.js";
|
|
14
|
-
import "./source-map-b04aec4a.js";
|
|
15
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
16
|
-
import "./esprima-e8d15055.js";
|
|
17
|
-
import "./icon-a0e0cdb0.js";
|
|
18
|
-
import "./dialog-c4706078.js";
|
|
19
|
-
import "element-plus";
|
|
20
|
-
import "./index-f6240372.js";
|
|
21
|
-
import "./slot-afdbaf6a.js";
|
|
22
|
-
import "./form-item-wrapper-14987803.js";
|
|
23
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
24
|
-
import "./index-79892b9c.js";
|
|
25
|
-
import "./fieldobj-a9f1231d.js";
|
|
26
|
-
import "./label-wrapper.vue_vue_type_style_index_0_lang-62dc93f6.js";
|
|
27
|
-
import "./drag-wrapper-ab9e6826.js";
|
|
28
|
-
import "./index-ddd23411.js";
|
|
29
|
-
const w = {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: "full-width hl-page-bk"
|
|
32
|
-
}, B = {
|
|
33
|
-
class: "hl-page-a4",
|
|
34
|
-
style: { padding: "20px", "background-color": "white", "word-break": "break-all" }
|
|
35
|
-
}, S = /* @__PURE__ */ a({
|
|
36
|
-
__name: "_txt",
|
|
37
|
-
props: {
|
|
38
|
-
url: null,
|
|
39
|
-
type: null
|
|
40
|
-
},
|
|
41
|
-
setup(n) {
|
|
42
|
-
const s = n, o = i(""), r = i(!0), m = (t) => {
|
|
43
|
-
const e = new FileReader();
|
|
44
|
-
e.readAsText(t, "GBK"), e.onload = () => {
|
|
45
|
-
o.value = e.result;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
return l(() => {
|
|
49
|
-
g(s.url).then((t) => {
|
|
50
|
-
r.value = t == null ? void 0 : t.isSuccess, t.isSuccess && _(() => {
|
|
51
|
-
m(t == null ? void 0 : t.data);
|
|
52
|
-
});
|
|
53
|
-
}).catch((t) => {
|
|
54
|
-
r.value = !1;
|
|
55
|
-
});
|
|
56
|
-
}), (t, e) => {
|
|
57
|
-
const c = d("el-empty");
|
|
58
|
-
return r.value ? (p(), u("div", w, [
|
|
59
|
-
f("div", B, v(o.value), 1)
|
|
60
|
-
])) : (p(), x(c, {
|
|
61
|
-
key: 1,
|
|
62
|
-
description: h(k).i18nt("designer.hint.failToPreview")
|
|
63
|
-
}, null, 8, ["description"]));
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
const b = /* @__PURE__ */ y(S, [["__scopeId", "data-v-051110ee"]]);
|
|
68
|
-
export {
|
|
69
|
-
b as default
|
|
70
|
-
};
|