iking-web-ui-pro 0.2.11 → 0.2.13
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/dist/IKDetailPreviewFiles/ik.index.es.js +116 -111
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/ik.index.es.js +2 -2
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +172 -167
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +2 -2
- package/dist/IKVerticalStepBar/ik.index.umd.js +1 -1
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcess/ik.index.es.js +194 -190
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +645 -636
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +2 -2
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +2 -2
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +2 -2
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +329 -324
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +2 -2
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +2 -2
- package/dist/IkMonacoEditor/ik.index.umd.js +1 -1
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +2 -2
- package/dist/IkPageFull/ik.index.umd.js +1 -1
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +206 -203
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2 -2
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +2 -2
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +8 -8
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +112 -109
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +84 -84
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +12672 -12663
- package/dist/index.umd.js +60 -60
- package/dist/src/components/IkMonacoEditor/src/editor-config.d.ts +1 -1
- package/dist/src/components/IkPlayer-beta/index.d.ts +76 -0
- package/dist/src/components/IkPlayer-beta/src/player.d.ts +19 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/src/components/IkPickerUser/src/list/utils.d.ts +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, openBlock as s, createElementBlock as p, createElementVNode as d, computed as D, inject as T, mergeModels as G, useModel as c3, ref as M, reactive as w3, watch as k3, nextTick as s3, resolveComponent as X, Fragment as U, createBlock as
|
|
1
|
+
import { defineComponent as C, openBlock as s, createElementBlock as p, createElementVNode as d, computed as D, inject as T, mergeModels as G, useModel as c3, ref as M, reactive as w3, watch as k3, nextTick as s3, resolveComponent as X, Fragment as U, createBlock as x, createCommentVNode as k, createVNode as m, unref as u, withCtx as _, normalizeClass as R, normalizeStyle as O, createTextVNode as q, toDisplayString as I, h as b3, mergeProps as l3, createSlots as A3, renderSlot as E, renderList as z3, withDirectives as x3, vShow as F3, pushScopeId as C3, popScopeId as I3 } from "vue";
|
|
2
2
|
import { ElUpload as u3, ElButton as B3, ElProgress as d3, ElTooltip as v3, ElIcon as H, ElMessage as o3 } from "element-plus";
|
|
3
3
|
import { buildUUID as S3, ikColor as D3, ikFile as V3 } from "iking-utils-pro";
|
|
4
4
|
const N = (e, n) => {
|
|
@@ -96,9 +96,9 @@ var R3 = /* @__PURE__ */ C({
|
|
|
96
96
|
]));
|
|
97
97
|
}
|
|
98
98
|
}), P3 = j3;
|
|
99
|
-
const
|
|
100
|
-
var c, i, f,
|
|
101
|
-
const o = (c = e == null ? void 0 : e.response) != null && c.data ? h3((f = (i = e == null ? void 0 : e.response) == null ? void 0 : i.data) == null ? void 0 : f.suffix) : ((
|
|
99
|
+
const z = (e, n) => {
|
|
100
|
+
var c, i, f, y;
|
|
101
|
+
const o = (c = e == null ? void 0 : e.response) != null && c.data ? h3((f = (i = e == null ? void 0 : e.response) == null ? void 0 : i.data) == null ? void 0 : f.suffix) : ((y = e.raw) == null ? void 0 : y.type) || h3(e[n.suffix]), t = o == null ? void 0 : o.toLowerCase(), a = {
|
|
102
102
|
sheet: "excel",
|
|
103
103
|
excel: "excel",
|
|
104
104
|
zip: "zip",
|
|
@@ -706,7 +706,7 @@ const F = (e, n) => {
|
|
|
706
706
|
}
|
|
707
707
|
},
|
|
708
708
|
setup(e) {
|
|
709
|
-
const n = e, o = D(() => n.file ?
|
|
709
|
+
const n = e, o = D(() => n.file ? z(n.file, n.fields) : n.type);
|
|
710
710
|
return (t, a) => o.value === "image" ? (s(), p("svg", Z3, X3)) : o.value === "zip" ? (s(), p("svg", Y3, n6)) : o.value === "ppt" ? (s(), p("svg", o6, l6)) : o.value === "word" ? (s(), p("svg", a6, u6)) : o.value === "pdf" ? (s(), p("svg", d6, h6)) : o.value === "txt" ? (s(), p("svg", f6, m6)) : o.value === "audio" ? (s(), p("svg", _6, k6)) : o.value === "video" ? (s(), p("svg", b6, F6)) : o.value === "excel" ? (s(), p("svg", C6, D6)) : o.value === "exe" ? (s(), p("svg", V6, H6)) : o.value === "json" ? (s(), p("svg", U6, T6)) : (s(), p("svg", j6, Z6));
|
|
711
711
|
}
|
|
712
712
|
}), Y = (e, n) => {
|
|
@@ -715,12 +715,12 @@ const F = (e, n) => {
|
|
|
715
715
|
o[t] = a;
|
|
716
716
|
return o;
|
|
717
717
|
}, i3 = (e) => e % 1 === 0 ? e.toString() : e.toFixed(2), a3 = (e, n) => n ? n.startsWith("http") ? n : `${e || location.origin}${n}` : "", Q6 = (e) => {
|
|
718
|
-
const n = T("loadUrl"), o = D(() => e.loadUrl || (n == null ? void 0 : n.value)), t = T("uploadUrl"), a = D(() => e.action || e.uploadUrl || (t == null ? void 0 : t.value)), c = T("token"), i = D(() => e.token || (c == null ? void 0 : c.value)), f = T("onlyofficeConfig"),
|
|
718
|
+
const n = T("loadUrl"), o = D(() => e.loadUrl || e.fileUrl || (n == null ? void 0 : n.value)), t = T("uploadUrl"), a = D(() => e.action || e.uploadUrl || (t == null ? void 0 : t.value)), c = T("token"), i = D(() => e.token || (c == null ? void 0 : c.value)), f = T("onlyofficeConfig"), y = D(() => e.onlyofficeConfig || (f == null ? void 0 : f.value)), r = T("userInfo"), A = D(() => e.userInfo || (r == null ? void 0 : r.value));
|
|
719
719
|
return {
|
|
720
720
|
cLoadUrl: o,
|
|
721
721
|
cUploadUrl: a,
|
|
722
722
|
cToken: i,
|
|
723
|
-
cOnlyofficeConfig:
|
|
723
|
+
cOnlyofficeConfig: y,
|
|
724
724
|
cUserInfo: A
|
|
725
725
|
};
|
|
726
726
|
}, J6 = Q6, K6 = /* @__PURE__ */ C({
|
|
@@ -771,16 +771,19 @@ const F = (e, n) => {
|
|
|
771
771
|
office: !1,
|
|
772
772
|
video: !1
|
|
773
773
|
}), f = (r) => {
|
|
774
|
-
var A,
|
|
774
|
+
var A, F, V, $, B, j, P;
|
|
775
775
|
try {
|
|
776
|
-
const
|
|
776
|
+
const b = ((A = r == null ? void 0 : r.response) == null ? void 0 : A.data) || r, Z = b[t.value.url] || (b == null ? void 0 : b.id) || b.attachmentId, L = (F = b[t.value.suffix] || b.attachmentSuffix) == null ? void 0 : F.toLowerCase(), Q = b[t.value.name] || (b == null ? void 0 : b.attachmentName) || (b == null ? void 0 : b.originName);
|
|
777
777
|
if (c.value = {
|
|
778
778
|
...r,
|
|
779
779
|
name: r[t.value.name],
|
|
780
780
|
url: a3(n.loadUrl, Z)
|
|
781
|
-
}, r &&
|
|
781
|
+
}, r && z(r, t.value) === "image") {
|
|
782
782
|
i.image = !0;
|
|
783
783
|
return;
|
|
784
|
+
} else if (r && z(r, t.value) === "video") {
|
|
785
|
+
i.video = !0, console.log("modal.video = true;", i.video);
|
|
786
|
+
return;
|
|
784
787
|
} else if ((((V = n.onlyOfficeConfig) == null ? void 0 : V.accept) || n.onlyOfficeAccept).includes(L)) {
|
|
785
788
|
i.office = !0, a.value = {
|
|
786
789
|
...n.onlyOfficeConfig,
|
|
@@ -804,8 +807,8 @@ const F = (e, n) => {
|
|
|
804
807
|
};
|
|
805
808
|
return;
|
|
806
809
|
}
|
|
807
|
-
} catch (
|
|
808
|
-
console.info("预览错误: ",
|
|
810
|
+
} catch (b) {
|
|
811
|
+
console.info("预览错误: ", b);
|
|
809
812
|
}
|
|
810
813
|
};
|
|
811
814
|
k3([o, n.file], ([r, A]) => {
|
|
@@ -813,25 +816,25 @@ const F = (e, n) => {
|
|
|
813
816
|
f(n.file);
|
|
814
817
|
});
|
|
815
818
|
});
|
|
816
|
-
const
|
|
817
|
-
o.value = !1, i.office = !1, i.image = !1, i.video = !1;
|
|
819
|
+
const y = () => {
|
|
820
|
+
o.value = !1, i.office = !1, i.image = !1, i.video = !1, c.value = null;
|
|
818
821
|
};
|
|
819
822
|
return (r, A) => {
|
|
820
823
|
var V, $;
|
|
821
|
-
const
|
|
824
|
+
const F = X("el-image-viewer");
|
|
822
825
|
return o.value ? (s(), p(
|
|
823
826
|
U,
|
|
824
827
|
{ key: 0 },
|
|
825
828
|
[
|
|
826
|
-
(V = c.value) != null && V.url && i.image ? (s(),
|
|
829
|
+
(V = c.value) != null && V.url && i.image ? (s(), x(F, {
|
|
827
830
|
key: 0,
|
|
828
|
-
onClose: A[0] || (A[0] = (B) =>
|
|
829
|
-
c.value = null, i.image = !1;
|
|
830
|
-
}),
|
|
831
|
+
onClose: A[0] || (A[0] = (B) => y()),
|
|
831
832
|
ref: "previewImgRef",
|
|
832
|
-
"url-list": [($ = c.value) == null ? void 0 : $.url]
|
|
833
|
-
|
|
834
|
-
|
|
833
|
+
"url-list": [($ = c.value) == null ? void 0 : $.url],
|
|
834
|
+
teleported: ""
|
|
835
|
+
}, null, 8, ["url-list"])) : k("v-if", !0),
|
|
836
|
+
k(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
837
|
+
k(" 文档类 "),
|
|
835
838
|
m(u(ve), {
|
|
836
839
|
modelValue: i.office,
|
|
837
840
|
"onUpdate:modelValue": A[1] || (A[1] = (B) => i.office = B),
|
|
@@ -844,7 +847,7 @@ const F = (e, n) => {
|
|
|
844
847
|
"close-on-click-modal": "",
|
|
845
848
|
"close-on-press-escape": !1,
|
|
846
849
|
"append-to-body": "",
|
|
847
|
-
onClose:
|
|
850
|
+
onClose: y,
|
|
848
851
|
"modal-class": "ik-only-preview-dialog"
|
|
849
852
|
}, {
|
|
850
853
|
default: _(() => {
|
|
@@ -862,13 +865,13 @@ const F = (e, n) => {
|
|
|
862
865
|
],
|
|
863
866
|
64
|
|
864
867
|
/* STABLE_FRAGMENT */
|
|
865
|
-
)) :
|
|
868
|
+
)) : k("v-if", !0);
|
|
866
869
|
};
|
|
867
870
|
}
|
|
868
871
|
});
|
|
869
872
|
const G6 = N(K6), X6 = {
|
|
870
873
|
key: 0,
|
|
871
|
-
class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
|
|
874
|
+
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
872
875
|
}, Y6 = {
|
|
873
876
|
key: 1,
|
|
874
877
|
class: "h-[1em] w-[1em]",
|
|
@@ -938,7 +941,7 @@ const G6 = N(K6), X6 = {
|
|
|
938
941
|
return t.value.width && (f.width = f.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), f;
|
|
939
942
|
});
|
|
940
943
|
return (i, f) => {
|
|
941
|
-
const
|
|
944
|
+
const y = X("el-tooltip"), r = X("el-button");
|
|
942
945
|
return t.value.tableIconType === "icon" || !t.value.tableIconType ? (s(), p("span", X6, [
|
|
943
946
|
t.value.notip || !t.value.title ? (s(), p(
|
|
944
947
|
"i",
|
|
@@ -960,7 +963,7 @@ const G6 = N(K6), X6 = {
|
|
|
960
963
|
style: O(c.value)
|
|
961
964
|
},
|
|
962
965
|
[
|
|
963
|
-
|
|
966
|
+
k(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
964
967
|
a.value === "iksig" ? (s(), p(
|
|
965
968
|
"i",
|
|
966
969
|
{
|
|
@@ -993,7 +996,7 @@ const G6 = N(K6), X6 = {
|
|
|
993
996
|
],
|
|
994
997
|
6
|
|
995
998
|
/* CLASS, STYLE */
|
|
996
|
-
)) : (s(),
|
|
999
|
+
)) : (s(), x(y, {
|
|
997
1000
|
key: 1,
|
|
998
1001
|
content: t.value.title,
|
|
999
1002
|
placement: "top"
|
|
@@ -1054,7 +1057,7 @@ const G6 = N(K6), X6 = {
|
|
|
1054
1057
|
_: 1
|
|
1055
1058
|
/* STABLE */
|
|
1056
1059
|
}, 8, ["content"]))
|
|
1057
|
-
])) : (s(),
|
|
1060
|
+
])) : (s(), x(r, {
|
|
1058
1061
|
key: 1,
|
|
1059
1062
|
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
1060
1063
|
}, {
|
|
@@ -1071,7 +1074,7 @@ const G6 = N(K6), X6 = {
|
|
|
1071
1074
|
};
|
|
1072
1075
|
}
|
|
1073
1076
|
});
|
|
1074
|
-
const le = /* @__PURE__ */ Y(se, [["__scopeId", "data-v-
|
|
1077
|
+
const le = /* @__PURE__ */ Y(se, [["__scopeId", "data-v-76d7e119"]]), S = N(le), ae = {
|
|
1075
1078
|
key: 0,
|
|
1076
1079
|
class: "exit-main-page-maximize"
|
|
1077
1080
|
}, ce = /* @__PURE__ */ C({
|
|
@@ -1095,7 +1098,7 @@ const le = /* @__PURE__ */ Y(se, [["__scopeId", "data-v-7729b79a"]]), S = N(le),
|
|
|
1095
1098
|
size: 20,
|
|
1096
1099
|
error: ""
|
|
1097
1100
|
})
|
|
1098
|
-
])) : (s(),
|
|
1101
|
+
])) : (s(), x(u(S), {
|
|
1099
1102
|
key: 1,
|
|
1100
1103
|
error: "",
|
|
1101
1104
|
name: "iksvg_guanbidanchuang",
|
|
@@ -1137,8 +1140,8 @@ const re = /* @__PURE__ */ Y(ce, [["__scopeId", "data-v-79f49df8"]]), ue = { cla
|
|
|
1137
1140
|
}
|
|
1138
1141
|
});
|
|
1139
1142
|
return (i, f) => {
|
|
1140
|
-
const
|
|
1141
|
-
return s(),
|
|
1143
|
+
const y = X("el-dialog");
|
|
1144
|
+
return s(), x(y, l3({
|
|
1142
1145
|
modelValue: o.value,
|
|
1143
1146
|
"onUpdate:modelValue": f[0] || (f[0] = (r) => o.value = r)
|
|
1144
1147
|
}, i.$attrs, {
|
|
@@ -1166,13 +1169,13 @@ const re = /* @__PURE__ */ Y(ce, [["__scopeId", "data-v-79f49df8"]]), ue = { cla
|
|
|
1166
1169
|
)
|
|
1167
1170
|
])
|
|
1168
1171
|
]),
|
|
1169
|
-
i.$attrs.showClose ? (s(),
|
|
1172
|
+
i.$attrs.showClose ? (s(), x(u(S), {
|
|
1170
1173
|
key: 0,
|
|
1171
1174
|
onClick: a,
|
|
1172
1175
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
1173
1176
|
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
1174
1177
|
title: t.value ? "退出全屏" : "全屏"
|
|
1175
|
-
}, null, 8, ["name", "title"])) :
|
|
1178
|
+
}, null, 8, ["name", "title"])) : k("v-if", !0)
|
|
1176
1179
|
]),
|
|
1177
1180
|
default: _(() => [
|
|
1178
1181
|
E(i.$slots, "default")
|
|
@@ -1202,19 +1205,19 @@ function pe(e, n, o, t) {
|
|
|
1202
1205
|
function f(A) {
|
|
1203
1206
|
try {
|
|
1204
1207
|
r(t.next(A));
|
|
1205
|
-
} catch (
|
|
1206
|
-
i(
|
|
1208
|
+
} catch (F) {
|
|
1209
|
+
i(F);
|
|
1207
1210
|
}
|
|
1208
1211
|
}
|
|
1209
|
-
function
|
|
1212
|
+
function y(A) {
|
|
1210
1213
|
try {
|
|
1211
1214
|
r(t.throw(A));
|
|
1212
|
-
} catch (
|
|
1213
|
-
i(
|
|
1215
|
+
} catch (F) {
|
|
1216
|
+
i(F);
|
|
1214
1217
|
}
|
|
1215
1218
|
}
|
|
1216
1219
|
function r(A) {
|
|
1217
|
-
A.done ? c(A.value) : a(A.value).then(f,
|
|
1220
|
+
A.done ? c(A.value) : a(A.value).then(f, y);
|
|
1218
1221
|
}
|
|
1219
1222
|
r((t = t.apply(e, n || [])).next());
|
|
1220
1223
|
});
|
|
@@ -1230,10 +1233,10 @@ function he(e, n) {
|
|
|
1230
1233
|
}), i;
|
|
1231
1234
|
function f(r) {
|
|
1232
1235
|
return function(A) {
|
|
1233
|
-
return
|
|
1236
|
+
return y([r, A]);
|
|
1234
1237
|
};
|
|
1235
1238
|
}
|
|
1236
|
-
function
|
|
1239
|
+
function y(r) {
|
|
1237
1240
|
if (t)
|
|
1238
1241
|
throw new TypeError("Generator is already executing.");
|
|
1239
1242
|
for (; i && (i = 0, r[0] && (o = 0)), o; )
|
|
@@ -1294,8 +1297,8 @@ var fe = function(e, n) {
|
|
|
1294
1297
|
var c = document.getElementById(n);
|
|
1295
1298
|
if (c)
|
|
1296
1299
|
var i = setInterval(function() {
|
|
1297
|
-
var
|
|
1298
|
-
if (!
|
|
1300
|
+
var y = c.getAttribute("loading");
|
|
1301
|
+
if (!y) {
|
|
1299
1302
|
if (clearInterval(i), window.DocsAPI)
|
|
1300
1303
|
return t(null);
|
|
1301
1304
|
var r = g3(n, e, t, a);
|
|
@@ -1306,8 +1309,8 @@ var fe = function(e, n) {
|
|
|
1306
1309
|
var f = g3(n, e, t, a);
|
|
1307
1310
|
document.body.appendChild(f);
|
|
1308
1311
|
}
|
|
1309
|
-
} catch (
|
|
1310
|
-
console.error(
|
|
1312
|
+
} catch (y) {
|
|
1313
|
+
console.error(y);
|
|
1311
1314
|
}
|
|
1312
1315
|
})];
|
|
1313
1316
|
});
|
|
@@ -1709,7 +1712,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
1709
1712
|
size: "size"
|
|
1710
1713
|
},
|
|
1711
1714
|
...o.defaultFileds
|
|
1712
|
-
}, { cLoadUrl: f, cUploadUrl:
|
|
1715
|
+
}, { cLoadUrl: f, cUploadUrl: y, cOnlyofficeConfig: r } = J6(o), A = D(() => o.size), F = M(null), V = M([]), $ = M({}), B = M(!1), j = (v) => {
|
|
1713
1716
|
const h = v.size / 1024 / 1024;
|
|
1714
1717
|
return h < A.value ? !0 : (t("outSize"), o3({
|
|
1715
1718
|
message: `上传文件大小(${h.toFixed(4)}MB)超出允许最大值(${o.size}MB),请重新选择`,
|
|
@@ -1729,33 +1732,33 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
1729
1732
|
}), s3(() => {
|
|
1730
1733
|
a.value.pop();
|
|
1731
1734
|
}));
|
|
1732
|
-
},
|
|
1733
|
-
var
|
|
1734
|
-
v.status = "ready", h !== void 0 && V.value.splice(h, 1), (
|
|
1735
|
+
}, b = () => !1, Z = (v, h) => {
|
|
1736
|
+
var w, l;
|
|
1737
|
+
v.status = "ready", h !== void 0 && V.value.splice(h, 1), (w = F.value) == null || w.handleStart(v.raw), (l = F.value) == null || l.submit();
|
|
1735
1738
|
}, L = (v, h) => {
|
|
1736
1739
|
var W, K;
|
|
1737
|
-
const
|
|
1740
|
+
const w = a.value.length, l = o.limit - w;
|
|
1738
1741
|
let g = 0;
|
|
1739
1742
|
for (; g < l && g < v.length; )
|
|
1740
|
-
(W =
|
|
1743
|
+
(W = F.value) == null || W.handleStart(v[g]), (K = F.value) == null || K.submit(), g++;
|
|
1741
1744
|
o3({
|
|
1742
1745
|
message: (o == null ? void 0 : o.limitText) || `最大可上传${o.limit}个文件,已忽略超出文件`,
|
|
1743
1746
|
type: "warning",
|
|
1744
1747
|
showClose: !0,
|
|
1745
1748
|
duration: 5e3
|
|
1746
1749
|
}), t("exceed", v);
|
|
1747
|
-
}, Q = (v, h,
|
|
1748
|
-
t("success", v, h,
|
|
1749
|
-
}, e3 = (v, h,
|
|
1750
|
-
V.value.push(h), t("error", v, h,
|
|
1750
|
+
}, Q = (v, h, w) => {
|
|
1751
|
+
t("success", v, h, w);
|
|
1752
|
+
}, e3 = (v, h, w) => {
|
|
1753
|
+
V.value.push(h), t("error", v, h, w);
|
|
1751
1754
|
}, t3 = (v) => {
|
|
1752
|
-
var h,
|
|
1755
|
+
var h, w;
|
|
1753
1756
|
$.value = {
|
|
1754
1757
|
...v,
|
|
1755
1758
|
name: v[i.name],
|
|
1756
1759
|
url: a3(
|
|
1757
1760
|
f.value,
|
|
1758
|
-
v[i.url] || ((
|
|
1761
|
+
v[i.url] || ((w = (h = v == null ? void 0 : v.response) == null ? void 0 : h.data) == null ? void 0 : w.id)
|
|
1759
1762
|
)
|
|
1760
1763
|
}, B.value = !0;
|
|
1761
1764
|
}, m3 = (v) => {
|
|
@@ -1764,14 +1767,14 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
1764
1767
|
v[i.name]
|
|
1765
1768
|
);
|
|
1766
1769
|
}, _3 = (v, h = !1) => {
|
|
1767
|
-
var
|
|
1768
|
-
(
|
|
1770
|
+
var w;
|
|
1771
|
+
(w = F.value) == null || w.abort(v);
|
|
1769
1772
|
}, J = (v) => {
|
|
1770
|
-
var h,
|
|
1773
|
+
var h, w;
|
|
1771
1774
|
try {
|
|
1772
|
-
v.status !== "success" && _3(v), (h =
|
|
1775
|
+
v.status !== "success" && _3(v), (h = F.value) == null || h.handleRemove(v), a.value = a.value.filter((l) => l.uid !== v.uid), t("delete", v);
|
|
1773
1776
|
} catch (l) {
|
|
1774
|
-
(
|
|
1777
|
+
(w = F.value) == null || w.handleRemove(v), a.value = a.value.filter((g) => g.uid !== v.uid), t("delete", v), console.error(l);
|
|
1775
1778
|
}
|
|
1776
1779
|
}, y3 = (v, h) => {
|
|
1777
1780
|
V.value.splice(h, 1);
|
|
@@ -1779,27 +1782,27 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
1779
1782
|
() => a.value.length >= o.limit || o.disabled
|
|
1780
1783
|
);
|
|
1781
1784
|
return (v, h) => {
|
|
1782
|
-
var
|
|
1785
|
+
var w;
|
|
1783
1786
|
return s(), p(
|
|
1784
1787
|
U,
|
|
1785
1788
|
null,
|
|
1786
1789
|
[
|
|
1787
|
-
e.preview ?
|
|
1790
|
+
e.preview ? k("v-if", !0) : (s(), p(
|
|
1788
1791
|
U,
|
|
1789
1792
|
{ key: 0 },
|
|
1790
1793
|
[
|
|
1791
|
-
e.type === "button" ? (s(),
|
|
1794
|
+
e.type === "button" ? (s(), x(u(u3), l3({
|
|
1792
1795
|
key: 0,
|
|
1793
1796
|
class: "ik-file-upload"
|
|
1794
1797
|
}, v.$attrs, {
|
|
1795
1798
|
accept: e.accept,
|
|
1796
|
-
action: u(
|
|
1799
|
+
action: u(y),
|
|
1797
1800
|
"file-list": a.value,
|
|
1798
1801
|
"onUpdate:fileList": h[0] || (h[0] = (l) => a.value = l),
|
|
1799
1802
|
ref_key: "refUpload",
|
|
1800
|
-
ref:
|
|
1803
|
+
ref: F,
|
|
1801
1804
|
"before-upload": j,
|
|
1802
|
-
"before-remove":
|
|
1805
|
+
"before-remove": b,
|
|
1803
1806
|
"on-exceed": L,
|
|
1804
1807
|
"on-change": P,
|
|
1805
1808
|
multiple: e.multiple,
|
|
@@ -1809,7 +1812,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
1809
1812
|
"on-error": e3
|
|
1810
1813
|
}), {
|
|
1811
1814
|
trigger: _(() => [
|
|
1812
|
-
v.$slots.trigger ? E(v.$slots, "trigger", { key: 0 }, void 0, !0) : (s(),
|
|
1815
|
+
v.$slots.trigger ? E(v.$slots, "trigger", { key: 0 }, void 0, !0) : (s(), x(u(B3), {
|
|
1813
1816
|
key: 1,
|
|
1814
1817
|
disabled: n3.value
|
|
1815
1818
|
}, A3({
|
|
@@ -1838,13 +1841,13 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
1838
1841
|
file: _(({ file: l }) => [
|
|
1839
1842
|
d("div", ke, [
|
|
1840
1843
|
d("div", be, [
|
|
1841
|
-
!v.$slots.fileIcon && (!e.customIconData[u(
|
|
1844
|
+
!v.$slots.fileIcon && (!e.customIconData[u(z)(l, i)] || !e.customIconData[u(z)(l, i)][e.customIconFields.icon]) ? (s(), x(f3, {
|
|
1842
1845
|
key: 0,
|
|
1843
|
-
type: u(
|
|
1844
|
-
}, null, 8, ["type"])) : !v.$slots.fileIcon && e.customIconData[u(
|
|
1845
|
-
e.customIconData[u(
|
|
1846
|
+
type: u(z)(l, i)
|
|
1847
|
+
}, null, 8, ["type"])) : !v.$slots.fileIcon && e.customIconData[u(z)(l, i)] && e.customIconData[u(z)(l, i)][e.customIconFields.icon] ? (s(), p("div", ze, [
|
|
1848
|
+
e.customIconData[u(z)(l, i)][e.customIconFields.type] === "img" ? (s(), p("img", {
|
|
1846
1849
|
key: 0,
|
|
1847
|
-
src: e.customIconData[u(
|
|
1850
|
+
src: e.customIconData[u(z)(l, i)][e.customIconFields.icon],
|
|
1848
1851
|
alt: "",
|
|
1849
1852
|
class: "file-img-icon"
|
|
1850
1853
|
}, null, 8, xe)) : (s(), p(
|
|
@@ -1852,7 +1855,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
1852
1855
|
{
|
|
1853
1856
|
key: 1,
|
|
1854
1857
|
class: R([
|
|
1855
|
-
e.customIconData[u(
|
|
1858
|
+
e.customIconData[u(z)(l, i)][e.customIconFields.icon],
|
|
1856
1859
|
"file-icon-size"
|
|
1857
1860
|
])
|
|
1858
1861
|
},
|
|
@@ -1860,7 +1863,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
1860
1863
|
2
|
|
1861
1864
|
/* CLASS */
|
|
1862
1865
|
))
|
|
1863
|
-
])) :
|
|
1866
|
+
])) : k("v-if", !0),
|
|
1864
1867
|
d("div", Fe, [
|
|
1865
1868
|
E(v.$slots, "fileIcon", { file: l }, void 0, !0)
|
|
1866
1869
|
]),
|
|
@@ -1877,7 +1880,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
1877
1880
|
"(" + I(l.percentage) + "%)",
|
|
1878
1881
|
1
|
|
1879
1882
|
/* TEXT */
|
|
1880
|
-
)) :
|
|
1883
|
+
)) : k("v-if", !0)
|
|
1881
1884
|
]),
|
|
1882
1885
|
l.status === "success" ? (s(), p(
|
|
1883
1886
|
"p",
|
|
@@ -1885,14 +1888,14 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
1885
1888
|
I(u(i3)(l.size / 1024 / 1024)) + "MB ",
|
|
1886
1889
|
1
|
|
1887
1890
|
/* TEXT */
|
|
1888
|
-
)) :
|
|
1889
|
-
l.percentage && l.status === "uploading" ? (s(),
|
|
1891
|
+
)) : k("v-if", !0),
|
|
1892
|
+
l.percentage && l.status === "uploading" ? (s(), x(u(d3), {
|
|
1890
1893
|
key: 1,
|
|
1891
1894
|
"text-inside": "",
|
|
1892
1895
|
percentage: l.percentage,
|
|
1893
1896
|
color: "var(--el-color-primary)",
|
|
1894
1897
|
"show-text": !1
|
|
1895
|
-
}, null, 8, ["percentage"])) :
|
|
1898
|
+
}, null, 8, ["percentage"])) : k("v-if", !0)
|
|
1896
1899
|
])
|
|
1897
1900
|
]),
|
|
1898
1901
|
d("div", null, [
|
|
@@ -1918,7 +1921,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
1918
1921
|
],
|
|
1919
1922
|
64
|
|
1920
1923
|
/* STABLE_FRAGMENT */
|
|
1921
|
-
)) : (s(),
|
|
1924
|
+
)) : (s(), x(u(S), {
|
|
1922
1925
|
key: 1,
|
|
1923
1926
|
onClick: (g) => J(l),
|
|
1924
1927
|
error: "",
|
|
@@ -1933,7 +1936,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
1933
1936
|
default: _(() => {
|
|
1934
1937
|
var l;
|
|
1935
1938
|
return [
|
|
1936
|
-
!e.preview && e.tip ? (s(),
|
|
1939
|
+
!e.preview && e.tip ? (s(), x(u(v3), {
|
|
1937
1940
|
key: 0,
|
|
1938
1941
|
effect: "dark",
|
|
1939
1942
|
content: o.tipText || "",
|
|
@@ -1953,7 +1956,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
1953
1956
|
]),
|
|
1954
1957
|
_: 1
|
|
1955
1958
|
/* STABLE */
|
|
1956
|
-
}, 8, ["content"])) :
|
|
1959
|
+
}, 8, ["content"])) : k("v-if", !0),
|
|
1957
1960
|
(l = V.value) != null && l.length ? (s(!0), p(
|
|
1958
1961
|
U,
|
|
1959
1962
|
{ key: 1 },
|
|
@@ -2026,24 +2029,24 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
2026
2029
|
]))),
|
|
2027
2030
|
128
|
|
2028
2031
|
/* KEYED_FRAGMENT */
|
|
2029
|
-
)) :
|
|
2032
|
+
)) : k("v-if", !0)
|
|
2030
2033
|
];
|
|
2031
2034
|
}),
|
|
2032
2035
|
_: 3
|
|
2033
2036
|
/* FORWARDED */
|
|
2034
|
-
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(),
|
|
2037
|
+
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(), x(u(u3), l3({
|
|
2035
2038
|
key: 1,
|
|
2036
2039
|
"file-list": a.value,
|
|
2037
2040
|
"onUpdate:fileList": h[1] || (h[1] = (l) => a.value = l),
|
|
2038
2041
|
class: ["ik-file-pload-card", { plain: e.plain }]
|
|
2039
2042
|
}, v.$attrs, {
|
|
2040
2043
|
accept: e.accept,
|
|
2041
|
-
action: u(
|
|
2044
|
+
action: u(y),
|
|
2042
2045
|
disabled: n3.value,
|
|
2043
2046
|
ref_key: "refUpload",
|
|
2044
|
-
ref:
|
|
2047
|
+
ref: F,
|
|
2045
2048
|
"before-upload": j,
|
|
2046
|
-
"before-remove":
|
|
2049
|
+
"before-remove": b,
|
|
2047
2050
|
"on-exceed": L,
|
|
2048
2051
|
multiple: e.multiple,
|
|
2049
2052
|
headers: e.headers,
|
|
@@ -2055,13 +2058,13 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
2055
2058
|
file: _(({ file: l }) => [
|
|
2056
2059
|
d("div", Oe, [
|
|
2057
2060
|
d("div", qe, [
|
|
2058
|
-
!v.$slots.fileIcon && (!e.customIconData[u(
|
|
2061
|
+
!v.$slots.fileIcon && (!e.customIconData[u(z)(l, i)] || !e.customIconData[u(z)(l, i)][e.customIconFields.icon]) ? (s(), x(f3, {
|
|
2059
2062
|
key: 0,
|
|
2060
|
-
type: u(
|
|
2061
|
-
}, null, 8, ["type"])) : !v.$slots.fileIcon && e.customIconData[u(
|
|
2062
|
-
e.customIconData[u(
|
|
2063
|
+
type: u(z)(l, i)
|
|
2064
|
+
}, null, 8, ["type"])) : !v.$slots.fileIcon && e.customIconData[u(z)(l, i)] && e.customIconData[u(z)(l, i)][e.customIconFields.icon] ? (s(), p("div", Le, [
|
|
2065
|
+
e.customIconData[u(z)(l, i)][e.customIconFields.type] === "img" ? (s(), p("img", {
|
|
2063
2066
|
key: 0,
|
|
2064
|
-
src: e.customIconData[u(
|
|
2067
|
+
src: e.customIconData[u(z)(l, i)][e.customIconFields.icon],
|
|
2065
2068
|
alt: "",
|
|
2066
2069
|
class: "file-img-icon"
|
|
2067
2070
|
}, null, 8, Te)) : (s(), p(
|
|
@@ -2069,7 +2072,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
2069
2072
|
{
|
|
2070
2073
|
key: 1,
|
|
2071
2074
|
class: R([
|
|
2072
|
-
e.customIconData[u(
|
|
2075
|
+
e.customIconData[u(z)(l, i)][e.customIconFields.icon],
|
|
2073
2076
|
"file-icon-size"
|
|
2074
2077
|
])
|
|
2075
2078
|
},
|
|
@@ -2077,7 +2080,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
2077
2080
|
2
|
|
2078
2081
|
/* CLASS */
|
|
2079
2082
|
))
|
|
2080
|
-
])) :
|
|
2083
|
+
])) : k("v-if", !0),
|
|
2081
2084
|
d("div", je, [
|
|
2082
2085
|
E(v.$slots, "fileIcon", { file: l }, void 0, !0)
|
|
2083
2086
|
]),
|
|
@@ -2094,7 +2097,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
2094
2097
|
"(" + I(l.percentage) + "%)",
|
|
2095
2098
|
1
|
|
2096
2099
|
/* TEXT */
|
|
2097
|
-
)) :
|
|
2100
|
+
)) : k("v-if", !0)
|
|
2098
2101
|
]),
|
|
2099
2102
|
l.status === "success" ? (s(), p(
|
|
2100
2103
|
"p",
|
|
@@ -2102,21 +2105,21 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
2102
2105
|
I(u(i3)(l.size / 1024 / 1024)) + "MB ",
|
|
2103
2106
|
1
|
|
2104
2107
|
/* TEXT */
|
|
2105
|
-
)) :
|
|
2106
|
-
l.percentage && l.status === "uploading" ? (s(),
|
|
2108
|
+
)) : k("v-if", !0),
|
|
2109
|
+
l.percentage && l.status === "uploading" ? (s(), x(u(d3), {
|
|
2107
2110
|
key: 1,
|
|
2108
2111
|
"text-inside": "",
|
|
2109
2112
|
percentage: l.percentage,
|
|
2110
2113
|
color: "var(--el-color-primary)",
|
|
2111
2114
|
"show-text": !1
|
|
2112
|
-
}, null, 8, ["percentage"])) :
|
|
2115
|
+
}, null, 8, ["percentage"])) : k("v-if", !0)
|
|
2113
2116
|
])
|
|
2114
2117
|
]),
|
|
2115
2118
|
e.preview ? (s(), p(
|
|
2116
2119
|
U,
|
|
2117
2120
|
{ key: 1 },
|
|
2118
2121
|
[
|
|
2119
|
-
e.preview || l.percentage === 100 ? (s(),
|
|
2122
|
+
e.preview || l.percentage === 100 ? (s(), x(
|
|
2120
2123
|
u(H),
|
|
2121
2124
|
{
|
|
2122
2125
|
key: 0,
|
|
@@ -2134,7 +2137,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
2134
2137
|
},
|
|
2135
2138
|
1024
|
|
2136
2139
|
/* DYNAMIC_SLOTS */
|
|
2137
|
-
)) :
|
|
2140
|
+
)) : k("v-if", !0),
|
|
2138
2141
|
m(
|
|
2139
2142
|
u(H),
|
|
2140
2143
|
{
|
|
@@ -2179,7 +2182,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
2179
2182
|
],
|
|
2180
2183
|
64
|
|
2181
2184
|
/* STABLE_FRAGMENT */
|
|
2182
|
-
)) : (s(),
|
|
2185
|
+
)) : (s(), x(u(S), {
|
|
2183
2186
|
key: 1,
|
|
2184
2187
|
onClick: (g) => J(l),
|
|
2185
2188
|
error: "",
|
|
@@ -2196,20 +2199,20 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
2196
2199
|
d("div", He, [
|
|
2197
2200
|
e.imageMode ? E(v.$slots, "image", { key: 0 }, () => [
|
|
2198
2201
|
Ue
|
|
2199
|
-
], !0) : e.showIcon ? (s(),
|
|
2202
|
+
], !0) : e.showIcon ? (s(), x(u(S), {
|
|
2200
2203
|
key: 1,
|
|
2201
2204
|
name: "iksvg_img_shangchuanhetongfujianbeifen",
|
|
2202
2205
|
type: "primary",
|
|
2203
2206
|
bg: "",
|
|
2204
2207
|
size: 40
|
|
2205
|
-
})) :
|
|
2208
|
+
})) : k("v-if", !0),
|
|
2206
2209
|
d("span", null, [
|
|
2207
2210
|
q(
|
|
2208
2211
|
I(e.title) + " ",
|
|
2209
2212
|
1
|
|
2210
2213
|
/* TEXT */
|
|
2211
2214
|
),
|
|
2212
|
-
!e.preview && e.tip ? (s(),
|
|
2215
|
+
!e.preview && e.tip ? (s(), x(u(v3), {
|
|
2213
2216
|
key: 0,
|
|
2214
2217
|
effect: "dark",
|
|
2215
2218
|
content: o.tipText || "",
|
|
@@ -2229,7 +2232,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
2229
2232
|
]),
|
|
2230
2233
|
_: 1
|
|
2231
2234
|
/* STABLE */
|
|
2232
|
-
}, 8, ["content"])) :
|
|
2235
|
+
}, 8, ["content"])) : k("v-if", !0)
|
|
2233
2236
|
])
|
|
2234
2237
|
]),
|
|
2235
2238
|
m(u(S), {
|
|
@@ -2253,7 +2256,7 @@ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e)
|
|
|
2253
2256
|
"onUpdate:show": h[2] || (h[2] = (l) => B.value = l),
|
|
2254
2257
|
loadUrl: u(f),
|
|
2255
2258
|
file: $.value,
|
|
2256
|
-
onlyofficeServer: ((
|
|
2259
|
+
onlyofficeServer: ((w = u(r)) == null ? void 0 : w.serverUrl) || e.onlyofficeServer,
|
|
2257
2260
|
onlyOfficeConfig: u(r)
|
|
2258
2261
|
}, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig"])
|
|
2259
2262
|
],
|