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
|
@@ -1,400 +0,0 @@
|
|
|
1
|
-
import { defineComponent as M, shallowRef as he, onMounted as ye, openBlock as o, createElementBlock as m, createBlock as _, resolveDynamicComponent as R, unref as t, defineAsyncComponent as L, computed as ge, ref as H, resolveComponent as F, Fragment as j, createVNode as i, mergeProps as O, withCtx as l, toHandlers as oe, createSlots as se, createElementVNode as g, createTextVNode as N, toDisplayString as w, createCommentVNode as C, renderList as ve, normalizeProps as ke } from "vue";
|
|
2
|
-
import { m as we, e as u } from "./enum-type-4a798b1a.js";
|
|
3
|
-
import { u as fe } from "./uuid-4999945f.js";
|
|
4
|
-
import { I as Ce } from "./field-base-5547436d.js";
|
|
5
|
-
import { u as Ue } from "./share-file-406e7440.js";
|
|
6
|
-
import { f as v, w as De } from "./expression-490b4335.js";
|
|
7
|
-
import Te from "./form-item-wrapper-14987803.js";
|
|
8
|
-
import { g as be } from "./slot-afdbaf6a.js";
|
|
9
|
-
import { D as Se } from "./drag-wrapper-ab9e6826.js";
|
|
10
|
-
import { UploadFilled as $e, Plus as xe, Document as je, Download as le, CircleCheck as ne, Close as ae } from "./index-ddd23411.js";
|
|
11
|
-
import { L as ie, ag as re } from "./enum-type-bb2bfafa.js";
|
|
12
|
-
import { H as Pe, f as I } from "./baseImp-1b9355d2.js";
|
|
13
|
-
import { _ as Ve } from "./_plugin-vue_export-helper-dad06003.js";
|
|
14
|
-
const Le = {
|
|
15
|
-
class: "full-height full-width",
|
|
16
|
-
style: { overflow: "auto" }
|
|
17
|
-
}, Oe = /* @__PURE__ */ M({
|
|
18
|
-
__name: "index",
|
|
19
|
-
props: {
|
|
20
|
-
file: null
|
|
21
|
-
},
|
|
22
|
-
setup(p) {
|
|
23
|
-
const c = p, s = he(), r = () => {
|
|
24
|
-
var n, U, D, T, P;
|
|
25
|
-
switch ((n = c.file) == null ? void 0 : n.type) {
|
|
26
|
-
case "application/pdf": {
|
|
27
|
-
s.value = L(() => import("./_pdf-aa882567.js"));
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
case "text/plain": {
|
|
31
|
-
s.value = L(() => import("./_txt-a00c936a.js"));
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
default: {
|
|
35
|
-
(D = (U = c.file) == null ? void 0 : U.type) != null && D.startsWith("image/") ? s.value = L(() => import("./_image-fab8c8e2.js")) : (P = (T = c.file) == null ? void 0 : T.type) != null && P.startsWith("video/") ? s.value = L(() => import("./_video-21c5b64e.js")) : s.value = L(() => import("./_unsupport-e6f84e26.js"));
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
return ye(() => {
|
|
41
|
-
r();
|
|
42
|
-
}), (n, U) => {
|
|
43
|
-
var D, T;
|
|
44
|
-
return o(), m("div", Le, [
|
|
45
|
-
(o(), _(R(t(s)), {
|
|
46
|
-
url: (D = p.file) == null ? void 0 : D.url,
|
|
47
|
-
type: (T = p.file) == null ? void 0 : T.type
|
|
48
|
-
}, null, 8, ["url", "type"]))
|
|
49
|
-
]);
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}), Be = (p) => new Promise((c) => {
|
|
53
|
-
if (!p) {
|
|
54
|
-
c({ isSuccess: !1 });
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
Pe.get(p, {
|
|
58
|
-
responseType: "blob",
|
|
59
|
-
timeout: 1e3 * 60 * 60
|
|
60
|
-
}).then((s) => {
|
|
61
|
-
c({ isSuccess: !0, data: s == null ? void 0 : s.data });
|
|
62
|
-
}).catch((s) => {
|
|
63
|
-
c({ isSuccess: !1, message: s.message });
|
|
64
|
-
});
|
|
65
|
-
}), Ee = (p, c) => new Promise((s) => {
|
|
66
|
-
if (!p || !c) {
|
|
67
|
-
s({ isSuccess: !1, message: "empty file" });
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
const r = document.createElement("a"), n = document.querySelector("body");
|
|
71
|
-
try {
|
|
72
|
-
return r.href = window.URL.createObjectURL(p), r.download = c, r.style.display = "none", n == null || n.appendChild(r), r.click(), n == null || n.removeChild(r), window.URL.revokeObjectURL(r.href), !0;
|
|
73
|
-
} catch (U) {
|
|
74
|
-
s({ isSuccess: !1, message: "download error" }), we.error("download error", U);
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
}), Fe = (p, c) => new Promise((s, r) => {
|
|
78
|
-
Be(p).then((n) => {
|
|
79
|
-
if (n == null || !n.isSuccess) {
|
|
80
|
-
s(n);
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
Ee(n.data, c).then((U) => {
|
|
84
|
-
s(U);
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
}), Ne = { class: "el-upload__tip" }, We = { class: "el-upload__text" }, Ae = { class: "el-upload-list__item-info" }, He = {
|
|
88
|
-
class: "el-upload-list__item-name",
|
|
89
|
-
style: { "justify-content": "space-between" }
|
|
90
|
-
}, Ie = ["title"], Re = ["title", "onClick"], Me = {
|
|
91
|
-
key: 0,
|
|
92
|
-
class: "fileOperCol"
|
|
93
|
-
}, ze = { class: "el-upload-list__item-status-label" }, qe = ["src"], Ke = { class: "el-upload-list__item-info" }, Ge = {
|
|
94
|
-
class: "el-upload-list__item-name",
|
|
95
|
-
style: { "justify-content": "space-between" }
|
|
96
|
-
}, Je = ["title"], Qe = ["title", "onClick"], Xe = {
|
|
97
|
-
key: 2,
|
|
98
|
-
class: "fileOperCol"
|
|
99
|
-
}, Ye = { class: "el-upload-list__item-status-label" }, Ze = { style: { "text-align": "right" } }, et = M({ componentName: De.FieldWidget }), tt = /* @__PURE__ */ M({
|
|
100
|
-
...et,
|
|
101
|
-
__name: "file-upload-widget",
|
|
102
|
-
props: { ...Ce },
|
|
103
|
-
setup(p, { expose: c }) {
|
|
104
|
-
const s = p, { handleEvent: r, existEvent: n, slots: U, fieldEditor: D, fieldKey: T, uploadData: P, uploadHeaders: z, uploadBtnHidden: q, uploadTip: K, exposed: de, rules: ce, extendAttrs: V, attrs: b, events: G, fieldObj: ue, fileList: J, submitToServer: pe, handleManualRemove: Q, getRealFile: B, handleStatusChange: X, isAllow: x } = Ue(s), me = ge(() => s.designState ? [{ uid: fe(), url: `${u.i18nt("designer.hint.fileUrl")}`, name: `${u.i18nt("designer.hint.fileName")}` }] : J), Y = H({
|
|
105
|
-
"--select-file-action": `'${u.i18nt("render.hint.selectFile")}'`
|
|
106
|
-
}), W = (h) => {
|
|
107
|
-
var y, d;
|
|
108
|
-
let a = (y = B(h)) == null ? void 0 : y.orgUrl;
|
|
109
|
-
if ((d = V.value) != null && d.onDownload) {
|
|
110
|
-
h.url = a, r(v.onDownload, { file: h });
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
if (n(v.onBuildUrl) && (a = r(v.onBuildUrl, { orgUrl: a, disposition: re.download })), !a) {
|
|
114
|
-
I.error(u.i18nt("designer.hint.fileToDownload"));
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
Fe(a, h.name).then((f) => {
|
|
118
|
-
(f == null || !(f != null && f.isSuccess)) && I.error((f == null ? void 0 : f.message) || u.i18nt("designer.hint.fileToDownload"));
|
|
119
|
-
});
|
|
120
|
-
}, E = H(!1), Z = H(), A = (h) => {
|
|
121
|
-
var d;
|
|
122
|
-
var a = B(h);
|
|
123
|
-
let y = a == null ? void 0 : a.orgUrl;
|
|
124
|
-
if (n(v.onBuildUrl) && (y = r(v.onBuildUrl, { orgUrl: y, disposition: re.preview })), !y) {
|
|
125
|
-
I.error(u.i18nt("designer.hint.fileIsEmpty"));
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
if ((d = b.value) != null && d.onPreview) {
|
|
129
|
-
h.url = y, r(v.onPreview, { file: { ...h, type: a == null ? void 0 : a.type } });
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
return E.value = !0, Z.value = a, y;
|
|
133
|
-
};
|
|
134
|
-
return c({ ...de, handleDownload: W, handlePreview: A }), (h, a) => {
|
|
135
|
-
const y = F("el-button"), d = F("el-icon"), f = F("el-upload"), _e = F("el-dialog");
|
|
136
|
-
return o(), m(j, null, [
|
|
137
|
-
i(Te, O(h.$props, {
|
|
138
|
-
propOptions: { fieldObj: t(ue), rules: t(ce) }
|
|
139
|
-
}), {
|
|
140
|
-
default: l(({ data: $ }) => {
|
|
141
|
-
var ee, te;
|
|
142
|
-
return [
|
|
143
|
-
t(V).slotable ? (o(), _(f, O({
|
|
144
|
-
ref_key: "fieldEditor",
|
|
145
|
-
ref: D,
|
|
146
|
-
key: t(T)
|
|
147
|
-
}, t(b), oe(t(G)), {
|
|
148
|
-
data: t(P),
|
|
149
|
-
headers: t(z),
|
|
150
|
-
style: { ...Y.value, ...$.injectStyle },
|
|
151
|
-
"on-change": t(X),
|
|
152
|
-
"file-list": t(me),
|
|
153
|
-
class: [$.injectClass, t(q) ? "hideUploadDiv" : ""]
|
|
154
|
-
}), se({ _: 2 }, [
|
|
155
|
-
ve(t(be)(t(U), h.designState, (te = t(V)) == null ? void 0 : te.slotable), (e) => ({
|
|
156
|
-
name: e == null ? void 0 : e.slotName,
|
|
157
|
-
fn: l(({ file: k }) => [
|
|
158
|
-
(e == null ? void 0 : e.slotName) === "file" ? (o(), m(j, { key: 0 }, [
|
|
159
|
-
e.default ? (o(), _(R(e.default), ke(O({ key: 0 }, { row: t(B)(k) })), null, 16)) : C("", !0)
|
|
160
|
-
], 64)) : (o(), m(j, { key: 1 }, [
|
|
161
|
-
e.default ? (o(), _(R(e.default), { key: 0 })) : C("", !0)
|
|
162
|
-
], 64)),
|
|
163
|
-
e != null && e.widgetList ? (o(), _(Se, O({ key: 2 }, h.$props, {
|
|
164
|
-
widget: e,
|
|
165
|
-
"row-scope": { row: t(B)(k) },
|
|
166
|
-
dragTip: `${t(u).i18nt("designer.hint.draggableArea1")} [${e == null ? void 0 : e.slotName}]`
|
|
167
|
-
}), null, 16, ["widget", "row-scope", "dragTip"])) : C("", !0)
|
|
168
|
-
])
|
|
169
|
-
}))
|
|
170
|
-
]), 1040, ["data", "headers", "style", "on-change", "file-list", "class"])) : (o(), _(f, O({
|
|
171
|
-
ref_key: "fieldEditor",
|
|
172
|
-
ref: D,
|
|
173
|
-
key: t(T)
|
|
174
|
-
}, t(b), oe(t(G)), {
|
|
175
|
-
data: t(P),
|
|
176
|
-
headers: t(z),
|
|
177
|
-
style: { ...Y.value, ...$.injectStyle },
|
|
178
|
-
"file-list": t(J),
|
|
179
|
-
"on-change": t(X),
|
|
180
|
-
class: [$.injectClass, t(q) ? "hideUploadDiv" : ""]
|
|
181
|
-
}), se({
|
|
182
|
-
trigger: l(() => {
|
|
183
|
-
var e, k;
|
|
184
|
-
return [
|
|
185
|
-
(e = t(b)) != null && e.drag ? (o(), m(j, { key: 0 }, [
|
|
186
|
-
i(d, { class: "el-icon--upload" }, {
|
|
187
|
-
default: l(() => [
|
|
188
|
-
i(t($e))
|
|
189
|
-
]),
|
|
190
|
-
_: 1
|
|
191
|
-
}),
|
|
192
|
-
g("div", We, [
|
|
193
|
-
N(w(t(u).i18nt("designer.hint.dropFileHere")) + " " + w(t(u).i18nt("designer.hint.or")) + " ", 1),
|
|
194
|
-
g("em", null, w(t(u).i18nt("designer.hint.clickToUpload")), 1)
|
|
195
|
-
])
|
|
196
|
-
], 64)) : ((k = t(b)) == null ? void 0 : k.listType) === t(ie).pictureCard ? (o(), _(d, { key: 1 }, {
|
|
197
|
-
default: l(() => [
|
|
198
|
-
i(t(xe))
|
|
199
|
-
]),
|
|
200
|
-
_: 1
|
|
201
|
-
})) : (o(), _(y, { key: 2 }, {
|
|
202
|
-
default: l(() => {
|
|
203
|
-
var S;
|
|
204
|
-
return [
|
|
205
|
-
N(w(((S = t(V)) == null ? void 0 : S.uploadTriggerTip) || t(u).i18nt("designer.hint.uploadTriggerTip")), 1)
|
|
206
|
-
];
|
|
207
|
-
}),
|
|
208
|
-
_: 1
|
|
209
|
-
}))
|
|
210
|
-
];
|
|
211
|
-
}),
|
|
212
|
-
file: l(({ file: e }) => {
|
|
213
|
-
var k;
|
|
214
|
-
return [
|
|
215
|
-
((k = t(b)) == null ? void 0 : k.listType) === t(ie).text ? (o(), m(j, { key: 0 }, [
|
|
216
|
-
g("div", Ae, [
|
|
217
|
-
g("a", He, [
|
|
218
|
-
g("div", null, [
|
|
219
|
-
i(d, null, {
|
|
220
|
-
default: l(() => [
|
|
221
|
-
i(t(je))
|
|
222
|
-
]),
|
|
223
|
-
_: 1
|
|
224
|
-
}),
|
|
225
|
-
t(x)(t(v).allowPreview, e) ? (o(), m("span", {
|
|
226
|
-
key: 1,
|
|
227
|
-
class: "el-upload-list__item-file-name",
|
|
228
|
-
title: e == null ? void 0 : e.name,
|
|
229
|
-
onClick: (S) => A(e)
|
|
230
|
-
}, w(e == null ? void 0 : e.name), 9, Re)) : (o(), m("span", {
|
|
231
|
-
key: 0,
|
|
232
|
-
class: "el-upload-list__item-file-name",
|
|
233
|
-
title: e == null ? void 0 : e.name
|
|
234
|
-
}, w(e == null ? void 0 : e.name), 9, Ie))
|
|
235
|
-
]),
|
|
236
|
-
t(x)(t(v).allowDownload, e) ? (o(), m("div", Me, [
|
|
237
|
-
i(d, {
|
|
238
|
-
onClick: (S) => W(e)
|
|
239
|
-
}, {
|
|
240
|
-
default: l(() => [
|
|
241
|
-
i(t(le))
|
|
242
|
-
]),
|
|
243
|
-
_: 2
|
|
244
|
-
}, 1032, ["onClick"])
|
|
245
|
-
])) : C("", !0)
|
|
246
|
-
])
|
|
247
|
-
]),
|
|
248
|
-
g("label", ze, [
|
|
249
|
-
(e == null ? void 0 : e.status) === "success" ? (o(), _(d, {
|
|
250
|
-
key: 0,
|
|
251
|
-
class: "el-icon--upload-success el-icon--check",
|
|
252
|
-
type: "success"
|
|
253
|
-
}, {
|
|
254
|
-
default: l(() => [
|
|
255
|
-
i(t(ne))
|
|
256
|
-
]),
|
|
257
|
-
_: 1
|
|
258
|
-
})) : C("", !0)
|
|
259
|
-
]),
|
|
260
|
-
t(x)(t(v).allowDelete, e) ? (o(), _(d, {
|
|
261
|
-
key: 0,
|
|
262
|
-
class: "el-icon--close",
|
|
263
|
-
onClick: (S) => t(Q)(e)
|
|
264
|
-
}, {
|
|
265
|
-
default: l(() => [
|
|
266
|
-
i(t(ae))
|
|
267
|
-
]),
|
|
268
|
-
_: 2
|
|
269
|
-
}, 1032, ["onClick"])) : C("", !0)
|
|
270
|
-
], 64)) : (o(), m(j, { key: 1 }, [
|
|
271
|
-
g("img", {
|
|
272
|
-
class: "el-upload-list__item-thumbnail",
|
|
273
|
-
src: e == null ? void 0 : e.url,
|
|
274
|
-
alt: ""
|
|
275
|
-
}, null, 8, qe),
|
|
276
|
-
g("div", Ke, [
|
|
277
|
-
g("a", Ge, [
|
|
278
|
-
t(x)(t(v).allowPreview, e) ? (o(), m("span", {
|
|
279
|
-
key: 1,
|
|
280
|
-
class: "el-upload-list__item-file-name",
|
|
281
|
-
title: e == null ? void 0 : e.name,
|
|
282
|
-
onClick: (S) => A(e)
|
|
283
|
-
}, w(e == null ? void 0 : e.name), 9, Qe)) : (o(), m("span", {
|
|
284
|
-
key: 0,
|
|
285
|
-
class: "el-upload-list__item-file-name",
|
|
286
|
-
title: e == null ? void 0 : e.name
|
|
287
|
-
}, w(e == null ? void 0 : e.name), 9, Je)),
|
|
288
|
-
t(x)(t(v).allowDownload, e) ? (o(), m("div", Xe, [
|
|
289
|
-
i(d, {
|
|
290
|
-
onClick: (S) => W(e)
|
|
291
|
-
}, {
|
|
292
|
-
default: l(() => [
|
|
293
|
-
i(t(le))
|
|
294
|
-
]),
|
|
295
|
-
_: 2
|
|
296
|
-
}, 1032, ["onClick"])
|
|
297
|
-
])) : C("", !0)
|
|
298
|
-
])
|
|
299
|
-
]),
|
|
300
|
-
g("label", Ye, [
|
|
301
|
-
(e == null ? void 0 : e.status) === "success" ? (o(), _(d, {
|
|
302
|
-
key: 0,
|
|
303
|
-
class: "el-icon--upload-success el-icon--check",
|
|
304
|
-
type: "success"
|
|
305
|
-
}, {
|
|
306
|
-
default: l(() => [
|
|
307
|
-
i(t(ne))
|
|
308
|
-
]),
|
|
309
|
-
_: 1
|
|
310
|
-
})) : C("", !0)
|
|
311
|
-
]),
|
|
312
|
-
t(x)(t(v).allowDelete, e) ? (o(), _(d, {
|
|
313
|
-
key: 0,
|
|
314
|
-
class: "el-icon--close",
|
|
315
|
-
onClick: (S) => t(Q)(e)
|
|
316
|
-
}, {
|
|
317
|
-
default: l(() => [
|
|
318
|
-
i(t(ae))
|
|
319
|
-
]),
|
|
320
|
-
_: 2
|
|
321
|
-
}, 1032, ["onClick"])) : C("", !0)
|
|
322
|
-
], 64))
|
|
323
|
-
];
|
|
324
|
-
}),
|
|
325
|
-
_: 2
|
|
326
|
-
}, [
|
|
327
|
-
t(K) ? {
|
|
328
|
-
name: "tip",
|
|
329
|
-
fn: l(() => [
|
|
330
|
-
g("div", Ne, w(t(K)), 1)
|
|
331
|
-
]),
|
|
332
|
-
key: "0"
|
|
333
|
-
} : void 0,
|
|
334
|
-
(ee = t(b)) != null && ee.autoUpload ? void 0 : {
|
|
335
|
-
name: "default",
|
|
336
|
-
fn: l(() => {
|
|
337
|
-
var e;
|
|
338
|
-
return [
|
|
339
|
-
(e = t(b)) != null && e.autoUpload ? C("", !0) : (o(), _(y, {
|
|
340
|
-
key: 0,
|
|
341
|
-
class: "ml-3",
|
|
342
|
-
type: "primary",
|
|
343
|
-
onClick: t(pe)
|
|
344
|
-
}, {
|
|
345
|
-
default: l(() => {
|
|
346
|
-
var k;
|
|
347
|
-
return [
|
|
348
|
-
N(w(((k = t(V)) == null ? void 0 : k.submitUploadTip) || t(u).i18nt("designer.hint.submitUploadTip")), 1)
|
|
349
|
-
];
|
|
350
|
-
}),
|
|
351
|
-
_: 1
|
|
352
|
-
}, 8, ["onClick"]))
|
|
353
|
-
];
|
|
354
|
-
}),
|
|
355
|
-
key: "1"
|
|
356
|
-
}
|
|
357
|
-
]), 1040, ["data", "headers", "style", "file-list", "on-change", "class"]))
|
|
358
|
-
];
|
|
359
|
-
}),
|
|
360
|
-
_: 1
|
|
361
|
-
}, 16, ["propOptions"]),
|
|
362
|
-
i(_e, {
|
|
363
|
-
modelValue: E.value,
|
|
364
|
-
"onUpdate:modelValue": a[1] || (a[1] = ($) => E.value = $),
|
|
365
|
-
title: t(u).i18nt("designer.hint.previewDialog"),
|
|
366
|
-
fullscreen: "",
|
|
367
|
-
"align-center": "",
|
|
368
|
-
"destroy-on-close": "",
|
|
369
|
-
class: "--hl-dialog full-height"
|
|
370
|
-
}, {
|
|
371
|
-
footer: l(() => [
|
|
372
|
-
g("div", Ze, [
|
|
373
|
-
i(y, {
|
|
374
|
-
type: "primary",
|
|
375
|
-
onClick: a[0] || (a[0] = ($) => E.value = !1)
|
|
376
|
-
}, {
|
|
377
|
-
default: l(() => [
|
|
378
|
-
N(w(t(u).i18nt("designer.hint.close")), 1)
|
|
379
|
-
]),
|
|
380
|
-
_: 1
|
|
381
|
-
})
|
|
382
|
-
])
|
|
383
|
-
]),
|
|
384
|
-
default: l(() => [
|
|
385
|
-
i(Oe, { file: Z.value }, null, 8, ["file"])
|
|
386
|
-
]),
|
|
387
|
-
_: 1
|
|
388
|
-
}, 8, ["modelValue", "title"])
|
|
389
|
-
], 64);
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
});
|
|
393
|
-
const ot = /* @__PURE__ */ Ve(tt, [["__scopeId", "data-v-0f6d2d51"]]), yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
394
|
-
__proto__: null,
|
|
395
|
-
default: ot
|
|
396
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
397
|
-
export {
|
|
398
|
-
yt as f,
|
|
399
|
-
Be as g
|
|
400
|
-
};
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { defineComponent as E, ref as b, computed as L, resolveComponent as v, openBlock as i, createElementBlock as f, Fragment as Q, createVNode as r, mergeProps as I, unref as e, withCtx as l, createBlock as n, toHandlers as X, createSlots as Y, toDisplayString as g, createCommentVNode as d, createTextVNode as V, createElementVNode as c } from "vue";
|
|
2
|
-
import { e as P } from "./enum-type-4a798b1a.js";
|
|
3
|
-
import { Plus as ee, Check as te, ZoomIn as oe, Delete as le } from "./index-ddd23411.js";
|
|
4
|
-
import { I as ie } from "./field-base-5547436d.js";
|
|
5
|
-
import { u as se } from "./share-file-406e7440.js";
|
|
6
|
-
import re from "./form-item-wrapper-14987803.js";
|
|
7
|
-
import { f as k, w as ae } from "./expression-490b4335.js";
|
|
8
|
-
import { ElImageViewer as ne } from "element-plus";
|
|
9
|
-
import { L as pe } from "./enum-type-bb2bfafa.js";
|
|
10
|
-
import { _ as de } from "./_plugin-vue_export-helper-dad06003.js";
|
|
11
|
-
import "./widget-base-4c2d6265.js";
|
|
12
|
-
import "./share-field-21c5dda2.js";
|
|
13
|
-
import "./multirow-3a97c61a.js";
|
|
14
|
-
import "./baseImp-1b9355d2.js";
|
|
15
|
-
import "./icon-a0e0cdb0.js";
|
|
16
|
-
import "./dialog-c4706078.js";
|
|
17
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
18
|
-
import "./uuid-4999945f.js";
|
|
19
|
-
import "./index-f6240372.js";
|
|
20
|
-
import "./slot-afdbaf6a.js";
|
|
21
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
22
|
-
import "./index-79892b9c.js";
|
|
23
|
-
import "./fieldobj-a9f1231d.js";
|
|
24
|
-
import "./label-wrapper.vue_vue_type_style_index_0_lang-62dc93f6.js";
|
|
25
|
-
import "./source-map-b04aec4a.js";
|
|
26
|
-
import "./esprima-e8d15055.js";
|
|
27
|
-
const ue = {
|
|
28
|
-
key: 0,
|
|
29
|
-
class: "el-upload__tip"
|
|
30
|
-
}, ce = ["src"], me = { class: "el-upload-list__item-status-label" }, _e = { class: "el-upload-list__item-actions" }, ve = ["onClick"], fe = { class: "el-upload-list__item-delete" }, ge = E({ componentName: ae.FieldWidget }), ke = /* @__PURE__ */ E({
|
|
31
|
-
...ge,
|
|
32
|
-
__name: "picture-upload-widget",
|
|
33
|
-
props: { ...ie },
|
|
34
|
-
setup(F, { expose: S }) {
|
|
35
|
-
const U = F, { fieldEditor: D, fieldKey: N, fileList: s, attrs: u, events: j, rules: B, uploadTip: y, uploadData: O, handleEvent: W, extendAttrs: h, handleStatusChange: $, uploadBtnHidden: A, exposed: H, fieldObj: z, isSameFile: K, submitToServer: M, isAllow: w, handleManualRemove: R } = se(U), m = b(!1), C = b(), Z = (o) => {
|
|
36
|
-
var p;
|
|
37
|
-
if ((p = u.value) != null && p.onPreview) {
|
|
38
|
-
W(k.onPreview, { uploadFile: o });
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
C.value = s == null ? void 0 : s.findIndex((a) => K(a, o)), m.value = !0;
|
|
42
|
-
}, q = L(() => s == null ? void 0 : s.filter((o) => !!(o != null && o.url)).map((o) => o == null ? void 0 : o.url));
|
|
43
|
-
return S({ ...H }), (o, p) => {
|
|
44
|
-
const a = v("el-icon"), x = v("el-button"), G = v("el-upload");
|
|
45
|
-
return i(), f(Q, null, [
|
|
46
|
-
r(re, I(o.$props, {
|
|
47
|
-
propOptions: { fieldObj: e(z), rules: e(B) }
|
|
48
|
-
}), {
|
|
49
|
-
default: l(({ data: _ }) => {
|
|
50
|
-
var T;
|
|
51
|
-
return [
|
|
52
|
-
(i(), n(G, I({
|
|
53
|
-
ref_key: "fieldEditor",
|
|
54
|
-
ref: D,
|
|
55
|
-
key: e(N)
|
|
56
|
-
}, e(u), X(e(j)), {
|
|
57
|
-
data: e(O),
|
|
58
|
-
"on-change": e($),
|
|
59
|
-
"file-list": e(s),
|
|
60
|
-
style: _.injectStyle,
|
|
61
|
-
class: [_.injectClass, e(A) ? "hideUploadDiv" : ""]
|
|
62
|
-
}), Y({
|
|
63
|
-
tip: l(() => [
|
|
64
|
-
e(y) ? (i(), f("div", ue, g(e(y)), 1)) : d("", !0)
|
|
65
|
-
]),
|
|
66
|
-
trigger: l(() => [
|
|
67
|
-
e(u).listType === e(pe).pictureCard ? (i(), n(a, { key: 0 }, {
|
|
68
|
-
default: l(() => [
|
|
69
|
-
r(e(ee))
|
|
70
|
-
]),
|
|
71
|
-
_: 1
|
|
72
|
-
})) : (i(), n(x, { key: 1 }, {
|
|
73
|
-
default: l(() => {
|
|
74
|
-
var t;
|
|
75
|
-
return [
|
|
76
|
-
V(g(((t = e(h)) == null ? void 0 : t.uploadTriggerTip) || e(P).i18nt("designer.hint.uploadTriggerTip")), 1)
|
|
77
|
-
];
|
|
78
|
-
}),
|
|
79
|
-
_: 1
|
|
80
|
-
}))
|
|
81
|
-
]),
|
|
82
|
-
file: l(({ file: t }) => [
|
|
83
|
-
c("img", {
|
|
84
|
-
class: "el-upload-list__item-thumbnail",
|
|
85
|
-
src: t == null ? void 0 : t.url,
|
|
86
|
-
alt: ""
|
|
87
|
-
}, null, 8, ce),
|
|
88
|
-
c("label", me, [
|
|
89
|
-
(t == null ? void 0 : t.status) === "success" ? (i(), n(a, {
|
|
90
|
-
key: 0,
|
|
91
|
-
type: "success",
|
|
92
|
-
class: "el-icon--check"
|
|
93
|
-
}, {
|
|
94
|
-
default: l(() => [
|
|
95
|
-
r(e(te))
|
|
96
|
-
]),
|
|
97
|
-
_: 1
|
|
98
|
-
})) : d("", !0)
|
|
99
|
-
]),
|
|
100
|
-
c("span", _e, [
|
|
101
|
-
e(w)(e(k).allowPreview, t) ? (i(), f("span", {
|
|
102
|
-
key: 0,
|
|
103
|
-
class: "el-upload-list__item-preview",
|
|
104
|
-
onClick: (J) => Z(t)
|
|
105
|
-
}, [
|
|
106
|
-
r(a, null, {
|
|
107
|
-
default: l(() => [
|
|
108
|
-
r(e(oe))
|
|
109
|
-
]),
|
|
110
|
-
_: 1
|
|
111
|
-
})
|
|
112
|
-
], 8, ve)) : d("", !0),
|
|
113
|
-
c("span", fe, [
|
|
114
|
-
e(w)(e(k).allowDelete, t) ? (i(), n(a, {
|
|
115
|
-
key: 0,
|
|
116
|
-
onClick: (J) => e(R)(t)
|
|
117
|
-
}, {
|
|
118
|
-
default: l(() => [
|
|
119
|
-
r(e(le))
|
|
120
|
-
]),
|
|
121
|
-
_: 2
|
|
122
|
-
}, 1032, ["onClick"])) : d("", !0)
|
|
123
|
-
])
|
|
124
|
-
])
|
|
125
|
-
]),
|
|
126
|
-
_: 2
|
|
127
|
-
}, [
|
|
128
|
-
(T = e(u)) != null && T.autoUpload ? void 0 : {
|
|
129
|
-
name: "default",
|
|
130
|
-
fn: l(() => [
|
|
131
|
-
r(x, {
|
|
132
|
-
class: "ml-3",
|
|
133
|
-
type: "primary",
|
|
134
|
-
onClick: e(M)
|
|
135
|
-
}, {
|
|
136
|
-
default: l(() => {
|
|
137
|
-
var t;
|
|
138
|
-
return [
|
|
139
|
-
V(g(((t = e(h)) == null ? void 0 : t.submitUploadTip) || e(P).i18nt("designer.hint.submitUploadTip")), 1)
|
|
140
|
-
];
|
|
141
|
-
}),
|
|
142
|
-
_: 1
|
|
143
|
-
}, 8, ["onClick"])
|
|
144
|
-
]),
|
|
145
|
-
key: "0"
|
|
146
|
-
}
|
|
147
|
-
]), 1040, ["data", "on-change", "file-list", "style", "class"]))
|
|
148
|
-
];
|
|
149
|
-
}),
|
|
150
|
-
_: 1
|
|
151
|
-
}, 16, ["propOptions"]),
|
|
152
|
-
m.value ? (i(), n(e(ne), {
|
|
153
|
-
key: 0,
|
|
154
|
-
"url-list": e(q),
|
|
155
|
-
"initial-index": C.value,
|
|
156
|
-
onClose: p[0] || (p[0] = (_) => m.value = !1)
|
|
157
|
-
}, null, 8, ["url-list", "initial-index"])) : d("", !0)
|
|
158
|
-
], 64);
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
const Re = /* @__PURE__ */ de(ke, [["__scopeId", "data-v-587440c5"]]);
|
|
163
|
-
export {
|
|
164
|
-
Re as default
|
|
165
|
-
};
|