hlrender 0.0.136 → 0.0.138
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-3e3edebc.js +47 -0
- package/_txt-4e2ecc06.js +60 -0
- package/{affix-widget-37a07e00.js → affix-widget-b0bd1a26.js} +3 -3
- package/{alert-widget-8fe947b1.js → alert-widget-e54cb7f4.js} +3 -3
- package/{anchor-widget-58cf155c.js → anchor-widget-5f091d11.js} +1 -1
- package/{auto-complete-widget-5bf525b0.js → auto-complete-widget-57f8c0e7.js} +2 -2
- package/{avatar-widget-1a9f4ce1.js → avatar-widget-c288d63d.js} +3 -3
- package/{backtop-widget-04483047.js → backtop-widget-3d54226e.js} +3 -3
- package/{badge-widget-5c1c43fc.js → badge-widget-8acb0c82.js} +3 -3
- package/{breadcrumb-widget-83eb3f7a.js → breadcrumb-widget-c6755d6b.js} +1 -1
- package/{button-widget-1cb7a4e9.js → button-widget-b05e4690.js} +3 -3
- package/{cache-widget-da03c62b.js → cache-widget-7077a030.js} +1 -1
- package/{card-widget-4b745db5.js → card-widget-fb553cda.js} +2 -2
- package/{carousel-widget-b6a75009.js → carousel-widget-fe11a287.js} +1 -1
- package/{cascader-widget-1f58e855.js → cascader-widget-5a886d49.js} +1 -1
- package/{chart-widget-b9aba393.js → chart-widget-0aa7ea40.js} +1 -1
- package/{checkbox-widget-77f10a9b.js → checkbox-widget-84c09d07.js} +1 -1
- package/{collapse-widget-9cbf2ab7.js → collapse-widget-c087b2df.js} +1 -1
- package/{color-picker-widget-129f2eaf.js → color-picker-widget-8d4b012d.js} +1 -1
- package/{cont-cell-widget-1cbf5153.js → cont-cell-widget-1f5af847.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-33d60ca0.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-9d79d3d3.js} +2 -2
- package/{cont-widget-183b9997.js → cont-widget-a87b7d7c.js} +2 -2
- package/{date-picker-range-widget-b1459881.js → date-picker-range-widget-0e1bf5e9.js} +1 -1
- package/{date-picker-widget-005bc493.js → date-picker-widget-45e11211.js} +1 -1
- package/{default-slot-widget-b0005ee5.js → default-slot-widget-a4037130.js} +2 -2
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-41e7b0ae.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8cc5dc14.js} +1 -1
- package/{descriptions-widget-164add72.js → descriptions-widget-5dda5522.js} +2 -2
- package/{dialog-widget-b298379f.js → dialog-widget-45f2a6a8.js} +3 -3
- package/{divider-widget-bbdfe6c1.js → divider-widget-74895eb7.js} +3 -3
- package/{drag-wrapper-74f4b57f.js → drag-wrapper-f6aa00f6.js} +19 -19
- package/{drawer-widget-d1d59f17.js → drawer-widget-f8f175ab.js} +3 -3
- package/{dropdown-widget-df329997.js → dropdown-widget-c3781e0a.js} +2 -2
- package/{empty-widget-e83581d9.js → empty-widget-4a854aa4.js} +3 -3
- package/{feedback-widget-23a30899.js → feedback-widget-fc966cfd.js} +3 -3
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f6842c0e.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-060df774.js} +2 -2
- package/file-upload-widget-4acfb0c0.js +352 -0
- package/{form-widget-1a943e76.js → form-widget-4a8adbeb.js} +2 -2
- package/{grid-col-widget-b81a2c7b.js → grid-col-widget-d2ab53a1.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ca464ba0.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-76ff5dfa.js} +2 -2
- package/{grid-widget-198a7108.js → grid-widget-b4864397.js} +2 -2
- package/{html-text-widget-a8a5b417.js → html-text-widget-e409615c.js} +1 -1
- package/{icon-widget-b9a59840.js → icon-widget-198c97a3.js} +1 -1
- package/{iframe-widget-17860440.js → iframe-widget-88ef0855.js} +1 -1
- package/{image-widget-451bf7f8.js → image-widget-b4e6fc06.js} +1 -1
- package/{input-number-widget-69c6af4c.js → input-number-widget-3f018315.js} +1 -1
- package/{input-widget-d2a7907d.js → input-widget-33d18b8b.js} +2 -2
- package/{link-widget-62d78e94.js → link-widget-5bd3d4b3.js} +3 -3
- package/{ltable-col-widget-64164744.js → ltable-col-widget-e4a78a11.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-34ed414d.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-7f1adfe3.js} +2 -2
- package/{ltable-widget-9088fb7f.js → ltable-widget-5b59d003.js} +2 -2
- package/{menu-widget-40fd16d6.js → menu-widget-38506dc7.js} +1 -1
- package/{model-widget-33fae8dd.js → model-widget-7f740f10.js} +1 -1
- package/{multirow-widget-5ed8f573.js → multirow-widget-7fb52aeb.js} +2 -2
- package/package.json +1 -1
- package/{pagination-widget-cf6dd900.js → pagination-widget-93b4ff18.js} +1 -1
- package/picture-upload-widget-2b281639.js +172 -0
- package/{progress-widget-c7006307.js → progress-widget-69257fe5.js} +2 -2
- package/{radio-widget-a7f7359b.js → radio-widget-3419a061.js} +1 -1
- package/{range-widget-25b31a35.js → range-widget-bc9eb3bc.js} +2 -2
- package/{rate-widget-1b9c9662.js → rate-widget-51ea66b0.js} +1 -1
- package/render.es.js +16 -16
- package/render.style.css +1 -1
- package/render.umd.js +285 -284
- package/{result-widget-f8048c93.js → result-widget-48bbee71.js} +2 -2
- package/{rich-editor-widget-9162cc06.js → rich-editor-widget-f6a707d6.js} +1 -1
- package/{router-widget-4fd7ce8c.js → router-widget-9d95900e.js} +1 -1
- package/{select-widget-a0e827fd.js → select-widget-9f5875de.js} +1 -1
- package/{share-field-4fbdc88f.js → share-field-70e53805.js} +104 -101
- package/share-file-81d7679e.js +237 -0
- package/{slider-widget-091f83cc.js → slider-widget-c1e7cf1b.js} +1 -1
- package/{static-text-widget-3816d15b.js → static-text-widget-c498c4f8.js} +1 -1
- package/{steps-widget-6a8210e4.js → steps-widget-0794d0f5.js} +1 -1
- package/{switch-widget-d0e20872.js → switch-widget-658399b0.js} +1 -1
- package/{tab-pane-widget-ac9366dc.js → tab-pane-widget-6bb27163.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-c37ad11f.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bf376251.js} +2 -2
- package/{table-col-widget-c26583f7.js → table-col-widget-c6667f25.js} +2 -2
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-9c9c6e07.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-d683bcb7.js} +1 -1
- package/{table-widget-4e4ab1c5.js → table-widget-81bb288f.js} +3 -3
- package/{tabs-widget-c7725122.js → tabs-widget-7359728f.js} +2 -2
- package/{tag-widget-5e700f23.js → tag-widget-eb60301a.js} +3 -3
- package/{text-widget-00ab10a4.js → text-widget-3de85e13.js} +3 -3
- package/{textarea-widget-63cd69f9.js → textarea-widget-beafa36f.js} +1 -1
- package/{time-picker-range-widget-69776300.js → time-picker-range-widget-c889d4c1.js} +1 -1
- package/{time-picker-widget-13b956d7.js → time-picker-widget-11438a8b.js} +1 -1
- package/{time-select-widget-d33463ec.js → time-select-widget-53ecd39a.js} +1 -1
- package/{tmpl-widget-6c3cbf74.js → tmpl-widget-5036dded.js} +2 -2
- package/{tree-select-widget-87fcea0b.js → tree-select-widget-fcf77445.js} +1 -1
- package/{tree-widget-c0fff9cc.js → tree-widget-8b15bfd7.js} +1 -1
- package/{wrapper-widget-969259a6.js → wrapper-widget-b8e27139.js} +2 -2
- package/_pdf-14593069.js +0 -58
- package/_txt-6126b3b3.js +0 -70
- package/file-upload-widget-07573747.js +0 -400
- package/picture-upload-widget-af4a46e6.js +0 -165
- package/share-file-557fbed9.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-557fbed9.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-74f4b57f.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-14593069.js"));
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
case "text/plain": {
|
|
31
|
-
s.value = L(() => import("./_txt-6126b3b3.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-557fbed9.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-4fbdc88f.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
|
-
};
|