iking-web-ui-pro 0.2.26 → 0.2.28
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/IKPreviewFile/ik.index.es.js +353 -342
- package/dist/IKPreviewFile/ik.index.umd.js +44 -44
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +935 -924
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +38 -38
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +95 -85
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +430 -419
- package/dist/IkDescription/ik.index.umd.js +45 -45
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +1028 -1017
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +39 -39
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +246 -236
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +151 -141
- package/dist/IkUploadFile/ik.index.umd.js +2 -2
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/index.es.js +5210 -5199
- package/dist/index.umd.js +64 -64
- package/dist/src/components/IKPreviewFile/index.d.ts +16 -4
- package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +6 -2
- package/dist/src/components/IkUploadFile/index.d.ts +6 -0
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ie, openBlock as E, createElementBlock as D, createElementVNode as x, computed as le, inject as rt, mergeModels as it, useModel as xt, ref as Le, reactive as On, watch as Qi, nextTick as vt, resolveComponent as at, Fragment as Ue, createBlock as
|
|
1
|
+
import { defineComponent as ie, openBlock as E, createElementBlock as D, createElementVNode as x, computed as le, inject as rt, mergeModels as it, useModel as xt, ref as Le, reactive as On, watch as Qi, nextTick as vt, resolveComponent as at, Fragment as Ue, createBlock as ee, createCommentVNode as q, createVNode as $, unref as T, withCtx as X, normalizeClass as he, normalizeStyle as De, createTextVNode as Ve, toDisplayString as fe, h as Fn, mergeProps as qt, createSlots as en, renderSlot as be, Teleport as Mn, Transition as Nn, renderList as Bn, withDirectives as Hn, vShow as Un, pushScopeId as zn, popScopeId as Vn } from "vue";
|
|
2
2
|
import { useNamespace as jn, ElUpload as mi, ElButton as Wn, ElProgress as yi, ElTooltip as _i, ElIcon as Be, ElMessage as Ot } from "element-plus";
|
|
3
3
|
import { buildUUID as tn, ikColor as Gn, ikFile as $n } from "iking-utils-pro";
|
|
4
4
|
const We = (o, a) => {
|
|
@@ -110,7 +110,7 @@ var Yn = /* @__PURE__ */ ie({
|
|
|
110
110
|
]));
|
|
111
111
|
}
|
|
112
112
|
}), or = sr;
|
|
113
|
-
const
|
|
113
|
+
const Q = (o, a) => {
|
|
114
114
|
var i, n, s, l;
|
|
115
115
|
const r = (i = o == null ? void 0 : o.response) != null && i.data ? Ci((s = (n = o == null ? void 0 : o.response) == null ? void 0 : n.data) == null ? void 0 : s.suffix) : ((l = o.raw) == null ? void 0 : l.type) || Ci(o[a.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
|
|
116
116
|
sheet: "excel",
|
|
@@ -720,7 +720,7 @@ const ee = (o, a) => {
|
|
|
720
720
|
}
|
|
721
721
|
},
|
|
722
722
|
setup(o) {
|
|
723
|
-
const a = o, r = le(() => a.file ?
|
|
723
|
+
const a = o, r = le(() => a.file ? Q(a.file, a.fields) : a.type);
|
|
724
724
|
return (t, e) => r.value === "image" ? (E(), D("svg", ur, gr)) : r.value === "zip" ? (E(), D("svg", pr, yr)) : r.value === "ppt" ? (E(), D("svg", _r, wr)) : r.value === "word" ? (E(), D("svg", br, Sr)) : r.value === "pdf" ? (E(), D("svg", Ar, Pr)) : r.value === "txt" ? (E(), D("svg", Dr, Or)) : r.value === "audio" ? (E(), D("svg", Fr, Br)) : r.value === "video" ? (E(), D("svg", Hr, Vr)) : r.value === "excel" ? (E(), D("svg", jr, Kr)) : r.value === "exe" ? (E(), D("svg", Yr, Qr)) : r.value === "json" ? (E(), D("svg", es, rs)) : (E(), D("svg", ss, us));
|
|
725
725
|
}
|
|
726
726
|
}), wi = We(cs), ut = (o, a) => {
|
|
@@ -792,10 +792,10 @@ const ee = (o, a) => {
|
|
|
792
792
|
...u,
|
|
793
793
|
name: u[t.value.name],
|
|
794
794
|
url: mt(a.loadUrl, b)
|
|
795
|
-
}, u &&
|
|
795
|
+
}, u && Q(u, t.value) === "image") {
|
|
796
796
|
n.image = !0;
|
|
797
797
|
return;
|
|
798
|
-
} else if (u &&
|
|
798
|
+
} else if (u && Q(u, t.value) === "video") {
|
|
799
799
|
n.video = !0;
|
|
800
800
|
return;
|
|
801
801
|
} else if ((((d = a.onlyOfficeConfig) == null ? void 0 : d.accept) || a.onlyOfficeAccept).includes(w)) {
|
|
@@ -840,7 +840,7 @@ const ee = (o, a) => {
|
|
|
840
840
|
Ue,
|
|
841
841
|
{ key: 0 },
|
|
842
842
|
[
|
|
843
|
-
(d = i.value) != null && d.url && n.image ? (E(),
|
|
843
|
+
(d = i.value) != null && d.url && n.image ? (E(), ee(h, {
|
|
844
844
|
key: 0,
|
|
845
845
|
onClose: c[0] || (c[0] = (m) => l()),
|
|
846
846
|
ref: "previewImgRef",
|
|
@@ -849,12 +849,12 @@ const ee = (o, a) => {
|
|
|
849
849
|
}, null, 8, ["url-list"])) : q("v-if", !0),
|
|
850
850
|
q(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
851
851
|
q(" 文档类 "),
|
|
852
|
-
|
|
852
|
+
$(T(Qa), {
|
|
853
853
|
modelValue: n.video,
|
|
854
854
|
"onUpdate:modelValue": c[1] || (c[1] = (m) => n.video = m),
|
|
855
855
|
url: (p = i.value) == null ? void 0 : p.url
|
|
856
856
|
}, null, 8, ["modelValue", "url"]),
|
|
857
|
-
|
|
857
|
+
$(T(As), {
|
|
858
858
|
modelValue: n.office,
|
|
859
859
|
"onUpdate:modelValue": c[2] || (c[2] = (m) => n.office = m),
|
|
860
860
|
draggable: "",
|
|
@@ -872,7 +872,7 @@ const ee = (o, a) => {
|
|
|
872
872
|
default: X(() => {
|
|
873
873
|
var m;
|
|
874
874
|
return [
|
|
875
|
-
|
|
875
|
+
$(T(Ms), {
|
|
876
876
|
"config-options": e.value,
|
|
877
877
|
"document-server-url": ((m = o.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || o.onlyofficeServer
|
|
878
878
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -964,7 +964,7 @@ const ds = We(hs), gs = {
|
|
|
964
964
|
"i",
|
|
965
965
|
{
|
|
966
966
|
key: 0,
|
|
967
|
-
class:
|
|
967
|
+
class: he(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
968
968
|
[i.name]: t.value === "unocss",
|
|
969
969
|
"show-bg": r.value.showBg || r.value.bg,
|
|
970
970
|
default: r.value.size === "default",
|
|
@@ -985,7 +985,7 @@ const ds = We(hs), gs = {
|
|
|
985
985
|
"i",
|
|
986
986
|
{
|
|
987
987
|
key: 0,
|
|
988
|
-
class:
|
|
988
|
+
class: he(`iksig ${r.value.name}`),
|
|
989
989
|
style: De(e.value)
|
|
990
990
|
},
|
|
991
991
|
null,
|
|
@@ -1003,7 +1003,7 @@ const ds = We(hs), gs = {
|
|
|
1003
1003
|
"i",
|
|
1004
1004
|
{
|
|
1005
1005
|
key: 3,
|
|
1006
|
-
class:
|
|
1006
|
+
class: he(r.value.name),
|
|
1007
1007
|
style: De(e.value)
|
|
1008
1008
|
},
|
|
1009
1009
|
null,
|
|
@@ -1013,7 +1013,7 @@ const ds = We(hs), gs = {
|
|
|
1013
1013
|
],
|
|
1014
1014
|
6
|
|
1015
1015
|
/* CLASS, STYLE */
|
|
1016
|
-
)) : (E(),
|
|
1016
|
+
)) : (E(), ee(s, {
|
|
1017
1017
|
key: 1,
|
|
1018
1018
|
content: r.value.title,
|
|
1019
1019
|
placement: "top"
|
|
@@ -1022,7 +1022,7 @@ const ds = We(hs), gs = {
|
|
|
1022
1022
|
x(
|
|
1023
1023
|
"i",
|
|
1024
1024
|
{
|
|
1025
|
-
class:
|
|
1025
|
+
class: he(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1026
1026
|
[i.name]: t.value === "unocss",
|
|
1027
1027
|
"show-bg": r.value.showBg || r.value.bg,
|
|
1028
1028
|
default: r.value.size === "default",
|
|
@@ -1041,7 +1041,7 @@ const ds = We(hs), gs = {
|
|
|
1041
1041
|
"i",
|
|
1042
1042
|
{
|
|
1043
1043
|
key: 0,
|
|
1044
|
-
class:
|
|
1044
|
+
class: he(`iksig ${r.value.name}`),
|
|
1045
1045
|
style: De(e.value)
|
|
1046
1046
|
},
|
|
1047
1047
|
null,
|
|
@@ -1059,7 +1059,7 @@ const ds = We(hs), gs = {
|
|
|
1059
1059
|
"i",
|
|
1060
1060
|
{
|
|
1061
1061
|
key: 3,
|
|
1062
|
-
class:
|
|
1062
|
+
class: he(r.value.name),
|
|
1063
1063
|
style: De(e.value)
|
|
1064
1064
|
},
|
|
1065
1065
|
null,
|
|
@@ -1074,7 +1074,7 @@ const ds = We(hs), gs = {
|
|
|
1074
1074
|
_: 1
|
|
1075
1075
|
/* STABLE */
|
|
1076
1076
|
}, 8, ["content"]))
|
|
1077
|
-
])) : (E(),
|
|
1077
|
+
])) : (E(), ee(l, {
|
|
1078
1078
|
key: 1,
|
|
1079
1079
|
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
1080
1080
|
}, {
|
|
@@ -1104,15 +1104,25 @@ const ws = /* @__PURE__ */ ut(Cs, [["__scopeId", "data-v-52806adf"]]), ve = We(w
|
|
|
1104
1104
|
}
|
|
1105
1105
|
},
|
|
1106
1106
|
setup(o) {
|
|
1107
|
-
return (a, r) => (E(),
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1107
|
+
return (a, r) => (E(), D(
|
|
1108
|
+
"div",
|
|
1109
|
+
{
|
|
1110
|
+
class: he({ "exit-main-page-maximize": o.showBg && o.fullscreen })
|
|
1111
|
+
},
|
|
1112
|
+
[
|
|
1113
|
+
$(T(ve), {
|
|
1114
|
+
name: "iksvg_guanbidanchuang",
|
|
1115
|
+
title: "关闭",
|
|
1116
|
+
size: 20,
|
|
1117
|
+
error: ""
|
|
1118
|
+
})
|
|
1119
|
+
],
|
|
1120
|
+
2
|
|
1121
|
+
/* CLASS */
|
|
1122
|
+
));
|
|
1113
1123
|
}
|
|
1114
1124
|
});
|
|
1115
|
-
const Ts = /* @__PURE__ */ ut(bs, [["__scopeId", "data-v-
|
|
1125
|
+
const Ts = /* @__PURE__ */ ut(bs, [["__scopeId", "data-v-da39e979"]]), Es = { class: "base-header" }, Ss = /* @__PURE__ */ ie({
|
|
1116
1126
|
__name: "IkBaseDialog",
|
|
1117
1127
|
props: /* @__PURE__ */ it({
|
|
1118
1128
|
title: { default: "" },
|
|
@@ -1145,7 +1155,7 @@ const Ts = /* @__PURE__ */ ut(bs, [["__scopeId", "data-v-e27fb022"]]), Es = { cl
|
|
|
1145
1155
|
});
|
|
1146
1156
|
return (n, s) => {
|
|
1147
1157
|
const l = at("el-dialog");
|
|
1148
|
-
return E(),
|
|
1158
|
+
return E(), ee(l, qt({
|
|
1149
1159
|
modelValue: r.value,
|
|
1150
1160
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
|
|
1151
1161
|
}, n.$attrs, {
|
|
@@ -1173,7 +1183,7 @@ const Ts = /* @__PURE__ */ ut(bs, [["__scopeId", "data-v-e27fb022"]]), Es = { cl
|
|
|
1173
1183
|
)
|
|
1174
1184
|
])
|
|
1175
1185
|
]),
|
|
1176
|
-
n.$attrs.showClose ? (E(),
|
|
1186
|
+
n.$attrs.showClose ? (E(), ee(T(ve), {
|
|
1177
1187
|
key: 0,
|
|
1178
1188
|
onClick: e,
|
|
1179
1189
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -1540,7 +1550,7 @@ const Os = /* @__PURE__ */ ie({
|
|
|
1540
1550
|
style: De({ height: a.officeHeight })
|
|
1541
1551
|
},
|
|
1542
1552
|
[
|
|
1543
|
-
|
|
1553
|
+
$(T(ri), {
|
|
1544
1554
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1545
1555
|
ref: "editorRef",
|
|
1546
1556
|
"document-server-url": o.documentServerUrl,
|
|
@@ -2559,7 +2569,7 @@ var Si = {
|
|
|
2559
2569
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
2560
2570
|
}
|
|
2561
2571
|
}
|
|
2562
|
-
),
|
|
2572
|
+
), pe = "play", oi = "playing", Ge = "ended", nt = "pause", ct = "error", It = "seeking", Ee = "seeked", ge = "timeupdate", ft = "waiting", Te = "canplay", Qs = "canplaythrough", Fe = "durationchange", un = "volumechange", Se = "loadeddata", eo = "loadedmetadata", cn = "ratechange", fn = "progress", ai = "loadstart", $e = "emptied", to = "stalled", io = "suspend", no = "abort", ro = "bufferedChange", li = "focus", hn = "blur", ui = "ready", dn = "urlNull", je = "autoplay_started", ci = "autoplay_was_prevented", Pt = "complete", _t = "replay", fi = "destroy", Dt = "urlchange", ei = "download_speed_change", gn = "leaveplayer", pn = "enterplayer", vn = "loading", Ce = "fullscreen_change", kt = "cssFullscreen_change", Ct = "mini_state_change", hi = "definition_change", so = "before_definition_change", ti = "after_definition_change", oo = "SEI_PARSED", ao = "retry", Re = "video_resize", ii = "pip_change", mn = "rotate", yn = "screenShot", wt = "playnext", _n = "shortcut", kn = "xglog", bt = "user_action", Lt = "reset", Cn = "source_error", wn = "source_success", lo = "switch_subtitle", bn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Tn = {
|
|
2563
2573
|
STATS_INFO: "stats_info",
|
|
2564
2574
|
STATS_DOWNLOAD: "stats_download",
|
|
2565
2575
|
STATS_RESET: "stats_reset"
|
|
@@ -2594,7 +2604,7 @@ const uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2594
2604
|
MINI_STATE_CHANGE: Ct,
|
|
2595
2605
|
PAUSE: nt,
|
|
2596
2606
|
PIP_CHANGE: ii,
|
|
2597
|
-
PLAY:
|
|
2607
|
+
PLAY: pe,
|
|
2598
2608
|
PLAYER_BLUR: hn,
|
|
2599
2609
|
PLAYER_FOCUS: li,
|
|
2600
2610
|
PLAYING: oi,
|
|
@@ -2617,7 +2627,7 @@ const uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2617
2627
|
STATS_EVENTS: Tn,
|
|
2618
2628
|
SUSPEND: io,
|
|
2619
2629
|
SWITCH_SUBTITLE: lo,
|
|
2620
|
-
TIME_UPDATE:
|
|
2630
|
+
TIME_UPDATE: ge,
|
|
2621
2631
|
URL_CHANGE: Dt,
|
|
2622
2632
|
URL_NULL: dn,
|
|
2623
2633
|
USER_ACTION: bt,
|
|
@@ -4464,7 +4474,7 @@ var Io = function(a, r) {
|
|
|
4464
4474
|
FORWARD: "forward",
|
|
4465
4475
|
LIVE_TIP: "Live"
|
|
4466
4476
|
}
|
|
4467
|
-
},
|
|
4477
|
+
}, de = {
|
|
4468
4478
|
lang: {},
|
|
4469
4479
|
langKeys: [],
|
|
4470
4480
|
textKeys: []
|
|
@@ -4480,13 +4490,13 @@ function lt(o, a) {
|
|
|
4480
4490
|
}), o;
|
|
4481
4491
|
}
|
|
4482
4492
|
function xn() {
|
|
4483
|
-
Object.keys(
|
|
4484
|
-
|
|
4493
|
+
Object.keys(de.lang.en).map(function(o) {
|
|
4494
|
+
de.textKeys[o] = o;
|
|
4485
4495
|
});
|
|
4486
4496
|
}
|
|
4487
4497
|
function Lo(o, a) {
|
|
4488
4498
|
var r = [];
|
|
4489
|
-
if (a || (a =
|
|
4499
|
+
if (a || (a = de), !!a.lang) {
|
|
4490
4500
|
f.typeOf(o) !== "Array" ? r = Object.keys(o).map(function(i) {
|
|
4491
4501
|
var n = i === "zh" ? "zh-cn" : i;
|
|
4492
4502
|
return {
|
|
@@ -4502,7 +4512,7 @@ function Lo(o, a) {
|
|
|
4502
4512
|
}
|
|
4503
4513
|
function di(o, a) {
|
|
4504
4514
|
var r = o.LANG;
|
|
4505
|
-
if (a || (a =
|
|
4515
|
+
if (a || (a = de), !!a.lang) {
|
|
4506
4516
|
var t = o.TEXT || {};
|
|
4507
4517
|
r === "zh" && (r = "zh-cn"), a.lang[r] ? lt(a.lang[r], t) : (a.langKeys.push(r), a.lang[r] = t), xn();
|
|
4508
4518
|
}
|
|
@@ -4514,21 +4524,21 @@ function Ro(o) {
|
|
|
4514
4524
|
textKeys: {},
|
|
4515
4525
|
pId: o
|
|
4516
4526
|
};
|
|
4517
|
-
return lt(r.lang,
|
|
4527
|
+
return lt(r.lang, de.lang), (a = r.langKeys).push.apply(a, me(de.langKeys)), lt(r.textKeys, de.textKeys), r;
|
|
4518
4528
|
}
|
|
4519
4529
|
di(Do);
|
|
4520
4530
|
var tt = {
|
|
4521
4531
|
get textKeys() {
|
|
4522
|
-
return
|
|
4532
|
+
return de.textKeys;
|
|
4523
4533
|
},
|
|
4524
4534
|
get langKeys() {
|
|
4525
|
-
return
|
|
4535
|
+
return de.langKeys;
|
|
4526
4536
|
},
|
|
4527
4537
|
get lang() {
|
|
4528
4538
|
var o = {};
|
|
4529
|
-
return
|
|
4530
|
-
o[a] =
|
|
4531
|
-
}),
|
|
4539
|
+
return de.langKeys.map(function(a) {
|
|
4540
|
+
o[a] = de.lang[a];
|
|
4541
|
+
}), de.lang["zh-cn"] && (o.zh = de.lang["zh-cn"] || {}), o;
|
|
4532
4542
|
},
|
|
4533
4543
|
extend: Lo,
|
|
4534
4544
|
use: di,
|
|
@@ -4800,7 +4810,7 @@ var Fo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, xe = null, Rt = /
|
|
|
4800
4810
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
4801
4811
|
}), N.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Se, this.resize), this.playFunc = function() {
|
|
4802
4812
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
4803
|
-
}, this.once(
|
|
4813
|
+
}, this.once(pe, this.playFunc);
|
|
4804
4814
|
}
|
|
4805
4815
|
}, {
|
|
4806
4816
|
key: "_unbindEvents",
|
|
@@ -4808,7 +4818,7 @@ var Fo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, xe = null, Rt = /
|
|
|
4808
4818
|
var e = this;
|
|
4809
4819
|
this.root.removeEventListener("mousemove", this.mousemoveFunc), Ii.forEach(function(i) {
|
|
4810
4820
|
document.removeEventListener(i, e.onFullscreenChange);
|
|
4811
|
-
}), this.playFunc && this.off(
|
|
4821
|
+
}), this.playFunc && this.off(pe, this.playFunc), this.off(Te, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
|
|
4812
4822
|
}
|
|
4813
4823
|
}, {
|
|
4814
4824
|
key: "_clearUserTimer",
|
|
@@ -5913,7 +5923,7 @@ var Ie = {
|
|
|
5913
5923
|
}, {
|
|
5914
5924
|
key: "_initOnceEvents",
|
|
5915
5925
|
value: function() {
|
|
5916
|
-
this.off(je, this._onAutoplayStart), this.off(
|
|
5926
|
+
this.off(je, this._onAutoplayStart), this.off(ge, this._onTimeupdate), this.once(je, this._onAutoplayStart), this.once(ge, this._onTimeupdate);
|
|
5917
5927
|
}
|
|
5918
5928
|
}, {
|
|
5919
5929
|
key: "_sendFF",
|
|
@@ -6034,7 +6044,7 @@ var Bo = /* @__PURE__ */ function(o) {
|
|
|
6034
6044
|
i.setAttribute("transform", n);
|
|
6035
6045
|
}
|
|
6036
6046
|
}
|
|
6037
|
-
}), this.on(
|
|
6047
|
+
}), this.on(pe, function() {
|
|
6038
6048
|
e.hide();
|
|
6039
6049
|
});
|
|
6040
6050
|
}
|
|
@@ -6118,13 +6128,13 @@ var Bo = /* @__PURE__ */ function(o) {
|
|
|
6118
6128
|
var e = this;
|
|
6119
6129
|
this.on(Ge, function() {
|
|
6120
6130
|
e.isEndedShow && f.removeClass(e.root, "hide");
|
|
6121
|
-
}), this.config.hideCanplay ? (this.once(
|
|
6131
|
+
}), this.config.hideCanplay ? (this.once(ge, function() {
|
|
6122
6132
|
e.onTimeUpdate();
|
|
6123
6133
|
}), this.on(Dt, function() {
|
|
6124
|
-
f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(
|
|
6134
|
+
f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(ge, function() {
|
|
6125
6135
|
e.onTimeUpdate();
|
|
6126
6136
|
});
|
|
6127
|
-
})) : this.on(
|
|
6137
|
+
})) : this.on(pe, function() {
|
|
6128
6138
|
f.addClass(e.root, "hide");
|
|
6129
6139
|
});
|
|
6130
6140
|
}
|
|
@@ -6142,7 +6152,7 @@ var Bo = /* @__PURE__ */ function(o) {
|
|
|
6142
6152
|
key: "onTimeUpdate",
|
|
6143
6153
|
value: function() {
|
|
6144
6154
|
var e = this;
|
|
6145
|
-
this.player.currentTime ? f.removeClass(this.root, "xg-showplay") : this.once(
|
|
6155
|
+
this.player.currentTime ? f.removeClass(this.root, "xg-showplay") : this.once(ge, function() {
|
|
6146
6156
|
e.onTimeUpdate();
|
|
6147
6157
|
});
|
|
6148
6158
|
}
|
|
@@ -6251,7 +6261,7 @@ var zo = /* @__PURE__ */ function(o) {
|
|
|
6251
6261
|
}), this.on(je, this.onAutoplayStart), n.autoplay || this.show(), this.on(ci, function() {
|
|
6252
6262
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6253
6263
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
6254
|
-
}), this.on(
|
|
6264
|
+
}), this.on(pe, function() {
|
|
6255
6265
|
e.onPlayPause("play");
|
|
6256
6266
|
}), this.on(nt, function() {
|
|
6257
6267
|
e.onPlayPause("pause");
|
|
@@ -6797,7 +6807,7 @@ var Wt = {
|
|
|
6797
6807
|
var e = this;
|
|
6798
6808
|
this.initIcons(), this.on(nt, function() {
|
|
6799
6809
|
e.setAttr("data-state", "pause");
|
|
6800
|
-
}), this.on(
|
|
6810
|
+
}), this.on(pe, function() {
|
|
6801
6811
|
e.setAttr("data-state", "play");
|
|
6802
6812
|
});
|
|
6803
6813
|
}
|
|
@@ -8307,7 +8317,7 @@ var ta = /* @__PURE__ */ function(o) {
|
|
|
8307
8317
|
style: this.playerConfig.commonStyle || {}
|
|
8308
8318
|
}), N.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(Fe, function() {
|
|
8309
8319
|
e.onMouseLeave();
|
|
8310
|
-
}), this.on(
|
|
8320
|
+
}), this.on(ge, function() {
|
|
8311
8321
|
e.onTimeupdate();
|
|
8312
8322
|
}), this.on(Ee, function() {
|
|
8313
8323
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
@@ -8601,7 +8611,7 @@ var ta = /* @__PURE__ */ function(o) {
|
|
|
8601
8611
|
var i = this.player, n = this.config;
|
|
8602
8612
|
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([nt, ct, $e], function() {
|
|
8603
8613
|
e.animate(i.paused);
|
|
8604
|
-
}), this.on(
|
|
8614
|
+
}), this.on(pe, function() {
|
|
8605
8615
|
e.animate(i.paused);
|
|
8606
8616
|
}), this.animate(!0));
|
|
8607
8617
|
}
|
|
@@ -8919,7 +8929,7 @@ var ca = /* @__PURE__ */ function(o) {
|
|
|
8919
8929
|
key: "afterCreate",
|
|
8920
8930
|
value: function() {
|
|
8921
8931
|
var e = this, i = this.player.controls.config.mode;
|
|
8922
|
-
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Fe, Ee,
|
|
8932
|
+
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Fe, Ee, ge], function(n) {
|
|
8923
8933
|
n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
8924
8934
|
}), this.on(Ge, function() {
|
|
8925
8935
|
e.onTimeUpdate(!0);
|
|
@@ -9097,7 +9107,7 @@ var ca = /* @__PURE__ */ function(o) {
|
|
|
9097
9107
|
return P(r, [{
|
|
9098
9108
|
key: "afterCreate",
|
|
9099
9109
|
value: function() {
|
|
9100
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Fe, this._onDurationChange), this.on(Se, this._onLoadedData), this.on(
|
|
9110
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Fe, this._onDurationChange), this.on(Se, this._onLoadedData), this.on(ge, this._onTimeupdate), this.on(It, this._onSeeking), this.on(pe, this._onPlay);
|
|
9101
9111
|
}
|
|
9102
9112
|
}, {
|
|
9103
9113
|
key: "setConfig",
|
|
@@ -11406,7 +11416,7 @@ var Ua = /* @__PURE__ */ function(o) {
|
|
|
11406
11416
|
key: "afterCreate",
|
|
11407
11417
|
value: function() {
|
|
11408
11418
|
var e = this;
|
|
11409
|
-
this.root && (this.on(
|
|
11419
|
+
this.root && (this.on(ge, this.onTimeupdate), this.on($e, function() {
|
|
11410
11420
|
e.reset();
|
|
11411
11421
|
}));
|
|
11412
11422
|
}
|
|
@@ -11488,14 +11498,14 @@ var gt = null, ja = /* @__PURE__ */ function(o) {
|
|
|
11488
11498
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
11489
11499
|
i[n] = arguments[n];
|
|
11490
11500
|
return t = a.call.apply(a, [this].concat(i)), y(v(t), "onLoadedData", function(s) {
|
|
11491
|
-
t.player && (t._frameCount = t.config.startFrameCount, t.stop(), t.renderOnTimeupdate(s), t.off(
|
|
11501
|
+
t.player && (t._frameCount = t.config.startFrameCount, t.stop(), t.renderOnTimeupdate(s), t.off(ge, t.renderOnTimeupdate), t.on(ge, t.renderOnTimeupdate));
|
|
11492
11502
|
}), y(v(t), "onVisibilitychange", function(s) {
|
|
11493
11503
|
document.visibilityState === "visible" ? t._checkIfCanStart() && t.start() : document.visibilityState === "hidden" && t.stop();
|
|
11494
11504
|
}), y(v(t), "renderOnTimeupdate", function(s) {
|
|
11495
11505
|
if (t._frameCount > 0)
|
|
11496
11506
|
t.renderOnce(), t._frameCount--;
|
|
11497
11507
|
else {
|
|
11498
|
-
t._isLoaded = !0, t.off(
|
|
11508
|
+
t._isLoaded = !0, t.off(ge, t.renderOnTimeupdate);
|
|
11499
11509
|
var l = t.config.startInterval;
|
|
11500
11510
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
11501
11511
|
}
|
|
@@ -11524,7 +11534,7 @@ var gt = null, ja = /* @__PURE__ */ function(o) {
|
|
|
11524
11534
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
11525
11535
|
}), s !== Qe.POSTER && (s !== Qe.FIRST_FRAME && (this.on($e, function() {
|
|
11526
11536
|
e.stop();
|
|
11527
|
-
}), this.on(
|
|
11537
|
+
}), this.on(pe, function() {
|
|
11528
11538
|
var u = e.config.startInterval;
|
|
11529
11539
|
e._checkIfCanStart() && e.start(0, u);
|
|
11530
11540
|
}), this.on(nt, function() {
|
|
@@ -11941,7 +11951,7 @@ var gt = null, ja = /* @__PURE__ */ function(o) {
|
|
|
11941
11951
|
key: "afterCreate",
|
|
11942
11952
|
value: function() {
|
|
11943
11953
|
var e = this, i = this.config.useGapJump;
|
|
11944
|
-
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(ft, this.onGapJump), this.on(
|
|
11954
|
+
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(ft, this.onGapJump), this.on(pe, function() {
|
|
11945
11955
|
e.hasPlayed = !0;
|
|
11946
11956
|
}), this.on(It, function() {
|
|
11947
11957
|
e.seekingEventReceived = !0;
|
|
@@ -12016,7 +12026,7 @@ var $a = /* @__PURE__ */ function(o) {
|
|
|
12016
12026
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
12017
12027
|
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(ft, this.onWaiting), this.on([oi, Te], function() {
|
|
12018
12028
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
12019
|
-
}), this.on(
|
|
12029
|
+
}), this.on(pe, function() {
|
|
12020
12030
|
e.hasPlayed = !0;
|
|
12021
12031
|
}));
|
|
12022
12032
|
}
|
|
@@ -12174,7 +12184,7 @@ var $a = /* @__PURE__ */ function(o) {
|
|
|
12174
12184
|
var e = this, i = this.player, n = this.config, s = i.media || i.video;
|
|
12175
12185
|
if (this.timer = null, this._lastDecodedFrames = 0, this._currentStuckCount = 0, this._lastCheckPoint = null, this._payload = [], !n.disabled) {
|
|
12176
12186
|
var l = s.getVideoPlaybackQuality;
|
|
12177
|
-
l && (this.on(
|
|
12187
|
+
l && (this.on(pe, function() {
|
|
12178
12188
|
e._startTick();
|
|
12179
12189
|
}), this.on(nt, function() {
|
|
12180
12190
|
e._stopTick();
|
|
@@ -12372,11 +12382,11 @@ const qa = ["id"], Za = /* @__PURE__ */ ie({
|
|
|
12372
12382
|
});
|
|
12373
12383
|
}), (g, p) => {
|
|
12374
12384
|
const m = at("el-icon");
|
|
12375
|
-
return u.value ? (E(),
|
|
12385
|
+
return u.value ? (E(), ee(Mn, {
|
|
12376
12386
|
key: 0,
|
|
12377
12387
|
to: "body"
|
|
12378
12388
|
}, [
|
|
12379
|
-
|
|
12389
|
+
$(Nn, {
|
|
12380
12390
|
name: "viewer-fade",
|
|
12381
12391
|
appear: ""
|
|
12382
12392
|
}, {
|
|
@@ -12386,14 +12396,14 @@ const qa = ["id"], Za = /* @__PURE__ */ ie({
|
|
|
12386
12396
|
{
|
|
12387
12397
|
ref: "wrapper",
|
|
12388
12398
|
tabindex: -1,
|
|
12389
|
-
class:
|
|
12399
|
+
class: he(T(h).e("wrapper")),
|
|
12390
12400
|
style: De({ zIndex: o.zIndex })
|
|
12391
12401
|
},
|
|
12392
12402
|
[
|
|
12393
12403
|
x(
|
|
12394
12404
|
"div",
|
|
12395
12405
|
{
|
|
12396
|
-
class:
|
|
12406
|
+
class: he(T(h).e("mask"))
|
|
12397
12407
|
},
|
|
12398
12408
|
null,
|
|
12399
12409
|
2
|
|
@@ -12403,7 +12413,7 @@ const qa = ["id"], Za = /* @__PURE__ */ ie({
|
|
|
12403
12413
|
x(
|
|
12404
12414
|
"div",
|
|
12405
12415
|
{
|
|
12406
|
-
class:
|
|
12416
|
+
class: he(T(h).e("canvas"))
|
|
12407
12417
|
},
|
|
12408
12418
|
[
|
|
12409
12419
|
x("div", { id: T(c) }, null, 8, qa),
|
|
@@ -12411,13 +12421,13 @@ const qa = ["id"], Za = /* @__PURE__ */ ie({
|
|
|
12411
12421
|
x(
|
|
12412
12422
|
"span",
|
|
12413
12423
|
{
|
|
12414
|
-
class:
|
|
12424
|
+
class: he([T(h).e("btn"), T(h).e("close")]),
|
|
12415
12425
|
onClick: d
|
|
12416
12426
|
},
|
|
12417
12427
|
[
|
|
12418
|
-
|
|
12428
|
+
$(m, { onClick: d }, {
|
|
12419
12429
|
default: X(() => [
|
|
12420
|
-
|
|
12430
|
+
$(T(Xn))
|
|
12421
12431
|
]),
|
|
12422
12432
|
_: 1
|
|
12423
12433
|
/* STABLE */
|
|
@@ -12443,7 +12453,7 @@ const qa = ["id"], Za = /* @__PURE__ */ ie({
|
|
|
12443
12453
|
};
|
|
12444
12454
|
}
|
|
12445
12455
|
});
|
|
12446
|
-
const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(Ja), el = (o) => (zn("data-v-
|
|
12456
|
+
const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(Ja), el = (o) => (zn("data-v-caab4924"), o = o(), Vn(), o), tl = { class: "ik-flie-list" }, il = { class: "name" }, nl = { key: 1 }, rl = ["src"], sl = { class: "file-icon" }, ol = { class: "file-name-loading" }, al = { class: "file-name" }, ll = { key: 0 }, ul = {
|
|
12447
12457
|
key: 0,
|
|
12448
12458
|
class: "file-size"
|
|
12449
12459
|
}, cl = { class: "name" }, fl = { class: "file-name-loading" }, hl = { class: "file-name" }, dl = { class: "file-size" }, gl = { class: "operate-btn" }, pl = { class: "card" }, vl = { class: "title" }, ml = /* @__PURE__ */ el(() => /* @__PURE__ */ x(
|
|
@@ -12571,7 +12581,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12571
12581
|
// 是否需要onlyoffice预览
|
|
12572
12582
|
isOnlyOfficePreview: {
|
|
12573
12583
|
type: Boolean,
|
|
12574
|
-
default: !
|
|
12584
|
+
default: !0
|
|
12575
12585
|
},
|
|
12576
12586
|
// 需要onlyoffice预览的文件类型
|
|
12577
12587
|
onlyOfficeAccept: {
|
|
@@ -12600,7 +12610,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12600
12610
|
},
|
|
12601
12611
|
modelModifiers: {}
|
|
12602
12612
|
}),
|
|
12603
|
-
emits: /* @__PURE__ */ it(["delete", "exceed", "success", "error", "outSize"], ["update:modelValue"]),
|
|
12613
|
+
emits: /* @__PURE__ */ it(["delete", "exceed", "handPreview", "success", "error", "outSize"], ["update:modelValue"]),
|
|
12604
12614
|
setup(o, { emit: a }) {
|
|
12605
12615
|
const r = o, t = a, e = xt(o, "modelValue"), n = {
|
|
12606
12616
|
...{
|
|
@@ -12622,11 +12632,11 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12622
12632
|
const { accept: S } = r;
|
|
12623
12633
|
return S === "*" ? "*" : `${S.toLowerCase()},${S.toUpperCase()}`;
|
|
12624
12634
|
}), C = (S, U) => {
|
|
12625
|
-
var
|
|
12635
|
+
var K, Ae;
|
|
12626
12636
|
if (S.size / 1024 / 1024 < c.value || vt(() => {
|
|
12627
12637
|
e.value.pop();
|
|
12628
12638
|
}), r.accept !== "*") {
|
|
12629
|
-
const Ne = (
|
|
12639
|
+
const Ne = (K = _.value) == null ? void 0 : K.split(",");
|
|
12630
12640
|
!Ne.includes((Ae = S == null ? void 0 : S.raw) == null ? void 0 : Ae.type) && !Ne.includes(`.${S.name.split(".").pop()}`) && (Ot({
|
|
12631
12641
|
message: `不允许的上传文件格式(${S.name}),请重新选择`,
|
|
12632
12642
|
type: "warning",
|
|
@@ -12642,9 +12652,9 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12642
12652
|
}, V = (S, U) => {
|
|
12643
12653
|
var Ae, Ne;
|
|
12644
12654
|
const Z = e.value.length, A = r.limit - Z;
|
|
12645
|
-
let
|
|
12646
|
-
for (;
|
|
12647
|
-
(Ae = h.value) == null || Ae.handleStart(S[
|
|
12655
|
+
let K = 0;
|
|
12656
|
+
for (; K < A && K < S.length; )
|
|
12657
|
+
(Ae = h.value) == null || Ae.handleStart(S[K]), (Ne = h.value) == null || Ne.submit(), K++;
|
|
12648
12658
|
Ot({
|
|
12649
12659
|
message: (r == null ? void 0 : r.limitText) || `最大可上传${r.limit}个文件,已忽略超出文件`,
|
|
12650
12660
|
type: "warning",
|
|
@@ -12664,7 +12674,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12664
12674
|
s.value,
|
|
12665
12675
|
S[n.url] || ((Z = (U = S == null ? void 0 : S.response) == null ? void 0 : U.data) == null ? void 0 : Z.id)
|
|
12666
12676
|
)
|
|
12667
|
-
}, p.value = !0;
|
|
12677
|
+
}, r.isOnlyOfficePreview && (p.value = !0), t("handPreview", g.value);
|
|
12668
12678
|
}, ne = (S) => {
|
|
12669
12679
|
$n.downloadByOnlineUrl(
|
|
12670
12680
|
S[n.url],
|
|
@@ -12678,7 +12688,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12678
12688
|
try {
|
|
12679
12689
|
S.status !== "success" && te(S), (U = h.value) == null || U.handleRemove(S), e.value = e.value.filter((A) => A.uid !== S.uid), t("delete", S);
|
|
12680
12690
|
} catch (A) {
|
|
12681
|
-
(Z = h.value) == null || Z.handleRemove(S), e.value = e.value.filter((
|
|
12691
|
+
(Z = h.value) == null || Z.handleRemove(S), e.value = e.value.filter((K) => K.uid !== S.uid), t("delete", S), console.error(A);
|
|
12682
12692
|
}
|
|
12683
12693
|
}, se = (S, U) => {
|
|
12684
12694
|
d.value.splice(U, 1);
|
|
@@ -12695,7 +12705,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12695
12705
|
Ue,
|
|
12696
12706
|
{ key: 0 },
|
|
12697
12707
|
[
|
|
12698
|
-
o.type === "button" ? (E(),
|
|
12708
|
+
o.type === "button" ? (E(), ee(T(mi), qt({
|
|
12699
12709
|
key: 0,
|
|
12700
12710
|
class: "ik-file-upload"
|
|
12701
12711
|
}, S.$attrs, {
|
|
@@ -12716,7 +12726,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12716
12726
|
"on-error": G
|
|
12717
12727
|
}), {
|
|
12718
12728
|
trigger: X(() => [
|
|
12719
|
-
S.$slots.trigger ? be(S.$slots, "trigger", { key: 0 }, void 0, !0) : (E(),
|
|
12729
|
+
S.$slots.trigger ? be(S.$slots, "trigger", { key: 0 }, void 0, !0) : (E(), ee(T(Wn), {
|
|
12720
12730
|
key: 1,
|
|
12721
12731
|
disabled: oe.value
|
|
12722
12732
|
}, en({
|
|
@@ -12733,7 +12743,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12733
12743
|
o.showIcon ? {
|
|
12734
12744
|
name: "icon",
|
|
12735
12745
|
fn: X(() => [
|
|
12736
|
-
|
|
12746
|
+
$(T(ve), {
|
|
12737
12747
|
name: "iksvg_daoru",
|
|
12738
12748
|
disabled: oe.value
|
|
12739
12749
|
}, null, 8, ["disabled"])
|
|
@@ -12745,21 +12755,21 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12745
12755
|
file: X(({ file: A }) => [
|
|
12746
12756
|
x("div", tl, [
|
|
12747
12757
|
x("div", il, [
|
|
12748
|
-
!S.$slots.fileIcon && (!o.customIconData[T(
|
|
12758
|
+
!S.$slots.fileIcon && (!o.customIconData[T(Q)(A, n)] || !o.customIconData[T(Q)(A, n)][o.customIconFields.icon]) ? (E(), ee(T(wi), {
|
|
12749
12759
|
key: 0,
|
|
12750
|
-
type: T(
|
|
12751
|
-
}, null, 8, ["type"])) : !S.$slots.fileIcon && o.customIconData[T(
|
|
12752
|
-
o.customIconData[T(
|
|
12760
|
+
type: T(Q)(A, n)
|
|
12761
|
+
}, null, 8, ["type"])) : !S.$slots.fileIcon && o.customIconData[T(Q)(A, n)] && o.customIconData[T(Q)(A, n)][o.customIconFields.icon] ? (E(), D("div", nl, [
|
|
12762
|
+
o.customIconData[T(Q)(A, n)][o.customIconFields.type] === "img" ? (E(), D("img", {
|
|
12753
12763
|
key: 0,
|
|
12754
|
-
src: o.customIconData[T(
|
|
12764
|
+
src: o.customIconData[T(Q)(A, n)][o.customIconFields.icon],
|
|
12755
12765
|
alt: "",
|
|
12756
12766
|
class: "file-img-icon"
|
|
12757
12767
|
}, null, 8, rl)) : (E(), D(
|
|
12758
12768
|
"span",
|
|
12759
12769
|
{
|
|
12760
12770
|
key: 1,
|
|
12761
|
-
class:
|
|
12762
|
-
o.customIconData[T(
|
|
12771
|
+
class: he([
|
|
12772
|
+
o.customIconData[T(Q)(A, n)][o.customIconFields.icon],
|
|
12763
12773
|
"file-icon-size"
|
|
12764
12774
|
])
|
|
12765
12775
|
},
|
|
@@ -12793,7 +12803,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12793
12803
|
1
|
|
12794
12804
|
/* TEXT */
|
|
12795
12805
|
)) : q("v-if", !0),
|
|
12796
|
-
A.percentage && A.status === "uploading" ? (E(),
|
|
12806
|
+
A.percentage && A.status === "uploading" ? (E(), ee(T(yi), {
|
|
12797
12807
|
key: 1,
|
|
12798
12808
|
"text-inside": "",
|
|
12799
12809
|
percentage: A.percentage,
|
|
@@ -12807,15 +12817,15 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12807
12817
|
Ue,
|
|
12808
12818
|
{ key: 0 },
|
|
12809
12819
|
[
|
|
12810
|
-
|
|
12811
|
-
onClick: (
|
|
12820
|
+
$(T(ve), {
|
|
12821
|
+
onClick: (K) => F(A),
|
|
12812
12822
|
name: "iksvg_yulan",
|
|
12813
12823
|
title: "预览",
|
|
12814
12824
|
bg: "",
|
|
12815
12825
|
size: "default"
|
|
12816
12826
|
}, null, 8, ["onClick"]),
|
|
12817
|
-
|
|
12818
|
-
onClick: (
|
|
12827
|
+
$(T(ve), {
|
|
12828
|
+
onClick: (K) => H(A),
|
|
12819
12829
|
error: "",
|
|
12820
12830
|
name: "iksvg_shanchu",
|
|
12821
12831
|
title: "删除",
|
|
@@ -12825,9 +12835,9 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12825
12835
|
],
|
|
12826
12836
|
64
|
|
12827
12837
|
/* STABLE_FRAGMENT */
|
|
12828
|
-
)) : (E(),
|
|
12838
|
+
)) : (E(), ee(T(ve), {
|
|
12829
12839
|
key: 1,
|
|
12830
|
-
onClick: (
|
|
12840
|
+
onClick: (K) => H(A),
|
|
12831
12841
|
error: "",
|
|
12832
12842
|
name: "iksvg_guanbi",
|
|
12833
12843
|
size: "default",
|
|
@@ -12840,19 +12850,19 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12840
12850
|
default: X(() => {
|
|
12841
12851
|
var A;
|
|
12842
12852
|
return [
|
|
12843
|
-
!o.preview && o.tip ? (E(),
|
|
12853
|
+
!o.preview && o.tip ? (E(), ee(T(_i), {
|
|
12844
12854
|
key: 0,
|
|
12845
12855
|
effect: "dark",
|
|
12846
12856
|
content: r.tipText || "",
|
|
12847
12857
|
"popper-class": "_ik_web_ui_file-help-tooltip"
|
|
12848
12858
|
}, {
|
|
12849
12859
|
default: X(() => [
|
|
12850
|
-
|
|
12860
|
+
$(T(Be), {
|
|
12851
12861
|
size: 23,
|
|
12852
12862
|
class: "_ik_web_ui_file_help_icon"
|
|
12853
12863
|
}, {
|
|
12854
12864
|
default: X(() => [
|
|
12855
|
-
|
|
12865
|
+
$(T(ki))
|
|
12856
12866
|
]),
|
|
12857
12867
|
_: 1
|
|
12858
12868
|
/* STABLE */
|
|
@@ -12864,18 +12874,18 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12864
12874
|
(A = d.value) != null && A.length ? (E(!0), D(
|
|
12865
12875
|
Ue,
|
|
12866
12876
|
{ key: 1 },
|
|
12867
|
-
Bn(d.value, (
|
|
12877
|
+
Bn(d.value, (K, Ae) => (E(), D("div", {
|
|
12868
12878
|
class: "ik-error-flie-list",
|
|
12869
|
-
key:
|
|
12879
|
+
key: K.uid
|
|
12870
12880
|
}, [
|
|
12871
12881
|
x("div", cl, [
|
|
12872
|
-
|
|
12882
|
+
$(T(Be), {
|
|
12873
12883
|
size: 32,
|
|
12874
12884
|
class: "info",
|
|
12875
12885
|
style: { "vertical-align": "middle" }
|
|
12876
12886
|
}, {
|
|
12877
12887
|
default: X(() => [
|
|
12878
|
-
|
|
12888
|
+
$(T(or))
|
|
12879
12889
|
]),
|
|
12880
12890
|
_: 1
|
|
12881
12891
|
/* STABLE */
|
|
@@ -12884,14 +12894,14 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12884
12894
|
x(
|
|
12885
12895
|
"p",
|
|
12886
12896
|
hl,
|
|
12887
|
-
fe(
|
|
12897
|
+
fe(K[n.name] || K.name),
|
|
12888
12898
|
1
|
|
12889
12899
|
/* TEXT */
|
|
12890
12900
|
),
|
|
12891
12901
|
x(
|
|
12892
12902
|
"p",
|
|
12893
12903
|
dl,
|
|
12894
|
-
fe(T(Ft)(
|
|
12904
|
+
fe(T(Ft)(K.size / 1024 / 1024)) + "MB ",
|
|
12895
12905
|
1
|
|
12896
12906
|
/* TEXT */
|
|
12897
12907
|
)
|
|
@@ -12901,25 +12911,25 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12901
12911
|
"div",
|
|
12902
12912
|
gl,
|
|
12903
12913
|
[
|
|
12904
|
-
|
|
12914
|
+
$(T(Be), {
|
|
12905
12915
|
style: { "vertical-align": "middle" },
|
|
12906
|
-
onClick: (Ne) => w(
|
|
12916
|
+
onClick: (Ne) => w(K, Ae),
|
|
12907
12917
|
title: "重新上传",
|
|
12908
12918
|
class: "primary"
|
|
12909
12919
|
}, {
|
|
12910
12920
|
default: X(() => [
|
|
12911
|
-
|
|
12921
|
+
$(T(ir))
|
|
12912
12922
|
]),
|
|
12913
12923
|
_: 2
|
|
12914
12924
|
/* DYNAMIC */
|
|
12915
12925
|
}, 1032, ["onClick"]),
|
|
12916
|
-
|
|
12926
|
+
$(T(Be), {
|
|
12917
12927
|
class: "error",
|
|
12918
|
-
onClick: (Ne) => se(
|
|
12928
|
+
onClick: (Ne) => se(K, Ae),
|
|
12919
12929
|
title: "删除"
|
|
12920
12930
|
}, {
|
|
12921
12931
|
default: X(() => [
|
|
12922
|
-
|
|
12932
|
+
$(T(Zn))
|
|
12923
12933
|
]),
|
|
12924
12934
|
_: 2
|
|
12925
12935
|
/* DYNAMIC */
|
|
@@ -12928,7 +12938,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12928
12938
|
512
|
|
12929
12939
|
/* NEED_PATCH */
|
|
12930
12940
|
), [
|
|
12931
|
-
[Un, (
|
|
12941
|
+
[Un, (K == null ? void 0 : K.status) === "fail"]
|
|
12932
12942
|
])
|
|
12933
12943
|
]))),
|
|
12934
12944
|
128
|
|
@@ -12938,7 +12948,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12938
12948
|
}),
|
|
12939
12949
|
_: 3
|
|
12940
12950
|
/* FORWARDED */
|
|
12941
|
-
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (E(),
|
|
12951
|
+
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (E(), ee(T(mi), qt({
|
|
12942
12952
|
key: 1,
|
|
12943
12953
|
"file-list": e.value,
|
|
12944
12954
|
"onUpdate:fileList": U[1] || (U[1] = (A) => e.value = A),
|
|
@@ -12962,21 +12972,21 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
12962
12972
|
file: X(({ file: A }) => [
|
|
12963
12973
|
x("div", yl, [
|
|
12964
12974
|
x("div", _l, [
|
|
12965
|
-
!S.$slots.fileIcon && (!o.customIconData[T(
|
|
12975
|
+
!S.$slots.fileIcon && (!o.customIconData[T(Q)(A, n)] || !o.customIconData[T(Q)(A, n)][o.customIconFields.icon]) ? (E(), ee(T(wi), {
|
|
12966
12976
|
key: 0,
|
|
12967
|
-
type: T(
|
|
12968
|
-
}, null, 8, ["type"])) : !S.$slots.fileIcon && o.customIconData[T(
|
|
12969
|
-
o.customIconData[T(
|
|
12977
|
+
type: T(Q)(A, n)
|
|
12978
|
+
}, null, 8, ["type"])) : !S.$slots.fileIcon && o.customIconData[T(Q)(A, n)] && o.customIconData[T(Q)(A, n)][o.customIconFields.icon] ? (E(), D("div", kl, [
|
|
12979
|
+
o.customIconData[T(Q)(A, n)][o.customIconFields.type] === "img" ? (E(), D("img", {
|
|
12970
12980
|
key: 0,
|
|
12971
|
-
src: o.customIconData[T(
|
|
12981
|
+
src: o.customIconData[T(Q)(A, n)][o.customIconFields.icon],
|
|
12972
12982
|
alt: "",
|
|
12973
12983
|
class: "file-img-icon"
|
|
12974
12984
|
}, null, 8, Cl)) : (E(), D(
|
|
12975
12985
|
"span",
|
|
12976
12986
|
{
|
|
12977
12987
|
key: 1,
|
|
12978
|
-
class:
|
|
12979
|
-
o.customIconData[T(
|
|
12988
|
+
class: he([
|
|
12989
|
+
o.customIconData[T(Q)(A, n)][o.customIconFields.icon],
|
|
12980
12990
|
"file-icon-size"
|
|
12981
12991
|
])
|
|
12982
12992
|
},
|
|
@@ -13010,7 +13020,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
13010
13020
|
1
|
|
13011
13021
|
/* TEXT */
|
|
13012
13022
|
)) : q("v-if", !0),
|
|
13013
|
-
A.percentage && A.status === "uploading" ? (E(),
|
|
13023
|
+
A.percentage && A.status === "uploading" ? (E(), ee(T(yi), {
|
|
13014
13024
|
key: 1,
|
|
13015
13025
|
"text-inside": "",
|
|
13016
13026
|
percentage: A.percentage,
|
|
@@ -13023,7 +13033,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
13023
13033
|
Ue,
|
|
13024
13034
|
{ key: 1 },
|
|
13025
13035
|
[
|
|
13026
|
-
o.preview || A.percentage === 100 ? (E(),
|
|
13036
|
+
o.preview || A.percentage === 100 ? (E(), ee(
|
|
13027
13037
|
T(Be),
|
|
13028
13038
|
{
|
|
13029
13039
|
key: 0,
|
|
@@ -13032,8 +13042,8 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
13032
13042
|
},
|
|
13033
13043
|
{
|
|
13034
13044
|
default: X(() => [
|
|
13035
|
-
|
|
13036
|
-
onClick: (
|
|
13045
|
+
$(T(rr), {
|
|
13046
|
+
onClick: (K) => F(A)
|
|
13037
13047
|
}, null, 8, ["onClick"])
|
|
13038
13048
|
]),
|
|
13039
13049
|
_: 2
|
|
@@ -13042,7 +13052,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
13042
13052
|
1024
|
|
13043
13053
|
/* DYNAMIC_SLOTS */
|
|
13044
13054
|
)) : q("v-if", !0),
|
|
13045
|
-
|
|
13055
|
+
$(
|
|
13046
13056
|
T(Be),
|
|
13047
13057
|
{
|
|
13048
13058
|
title: "下载",
|
|
@@ -13050,8 +13060,8 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
13050
13060
|
},
|
|
13051
13061
|
{
|
|
13052
13062
|
default: X(() => [
|
|
13053
|
-
|
|
13054
|
-
onClick: (
|
|
13063
|
+
$(T(Qn), {
|
|
13064
|
+
onClick: (K) => ne(A)
|
|
13055
13065
|
}, null, 8, ["onClick"])
|
|
13056
13066
|
]),
|
|
13057
13067
|
_: 2
|
|
@@ -13068,15 +13078,15 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
13068
13078
|
Ue,
|
|
13069
13079
|
{ key: 0 },
|
|
13070
13080
|
[
|
|
13071
|
-
|
|
13072
|
-
onClick: (
|
|
13081
|
+
$(T(ve), {
|
|
13082
|
+
onClick: (K) => F(A),
|
|
13073
13083
|
name: "iksvg_yulan",
|
|
13074
13084
|
title: "预览",
|
|
13075
13085
|
bg: "",
|
|
13076
13086
|
size: "default"
|
|
13077
13087
|
}, null, 8, ["onClick"]),
|
|
13078
|
-
|
|
13079
|
-
onClick: (
|
|
13088
|
+
$(T(ve), {
|
|
13089
|
+
onClick: (K) => H(A),
|
|
13080
13090
|
error: "",
|
|
13081
13091
|
name: "iksvg_shanchu",
|
|
13082
13092
|
title: "删除",
|
|
@@ -13086,9 +13096,9 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
13086
13096
|
],
|
|
13087
13097
|
64
|
|
13088
13098
|
/* STABLE_FRAGMENT */
|
|
13089
|
-
)) : (E(),
|
|
13099
|
+
)) : (E(), ee(T(ve), {
|
|
13090
13100
|
key: 1,
|
|
13091
|
-
onClick: (
|
|
13101
|
+
onClick: (K) => H(A),
|
|
13092
13102
|
error: "",
|
|
13093
13103
|
name: "iksvg_guanbi",
|
|
13094
13104
|
size: "default",
|
|
@@ -13103,7 +13113,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
13103
13113
|
x("div", vl, [
|
|
13104
13114
|
o.imageMode ? be(S.$slots, "image", { key: 0 }, () => [
|
|
13105
13115
|
ml
|
|
13106
|
-
], !0) : o.showIcon ? (E(),
|
|
13116
|
+
], !0) : o.showIcon ? (E(), ee(T(ve), {
|
|
13107
13117
|
key: 1,
|
|
13108
13118
|
name: "iksvg_img_shangchuanhetongfujianbeifen",
|
|
13109
13119
|
type: "primary",
|
|
@@ -13116,19 +13126,19 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
13116
13126
|
1
|
|
13117
13127
|
/* TEXT */
|
|
13118
13128
|
),
|
|
13119
|
-
!o.preview && o.tip ? (E(),
|
|
13129
|
+
!o.preview && o.tip ? (E(), ee(T(_i), {
|
|
13120
13130
|
key: 0,
|
|
13121
13131
|
effect: "dark",
|
|
13122
13132
|
content: r.tipText || "",
|
|
13123
13133
|
"popper-class": "_ik_web_ui_file-help-tooltip"
|
|
13124
13134
|
}, {
|
|
13125
13135
|
default: X(() => [
|
|
13126
|
-
|
|
13136
|
+
$(T(Be), {
|
|
13127
13137
|
size: 23,
|
|
13128
13138
|
class: "_ik_web_ui_file_help_icon"
|
|
13129
13139
|
}, {
|
|
13130
13140
|
default: X(() => [
|
|
13131
|
-
|
|
13141
|
+
$(T(ki))
|
|
13132
13142
|
]),
|
|
13133
13143
|
_: 1
|
|
13134
13144
|
/* STABLE */
|
|
@@ -13139,7 +13149,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
13139
13149
|
}, 8, ["content"])) : q("v-if", !0)
|
|
13140
13150
|
])
|
|
13141
13151
|
]),
|
|
13142
|
-
|
|
13152
|
+
$(T(ve), {
|
|
13143
13153
|
name: "iksvg_daoru",
|
|
13144
13154
|
bg: "",
|
|
13145
13155
|
size: 24,
|
|
@@ -13155,7 +13165,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
13155
13165
|
64
|
|
13156
13166
|
/* STABLE_FRAGMENT */
|
|
13157
13167
|
)),
|
|
13158
|
-
|
|
13168
|
+
$(T(ds), {
|
|
13159
13169
|
show: p.value,
|
|
13160
13170
|
"onUpdate:show": U[2] || (U[2] = (A) => p.value = A),
|
|
13161
13171
|
loadUrl: T(s),
|
|
@@ -13170,7 +13180,7 @@ const Ja = /* @__PURE__ */ ut(Za, [["__scopeId", "data-v-b301aa7d"]]), Qa = We(J
|
|
|
13170
13180
|
};
|
|
13171
13181
|
}
|
|
13172
13182
|
});
|
|
13173
|
-
const Il = /* @__PURE__ */ ut(xl, [["__scopeId", "data-v-
|
|
13183
|
+
const Il = /* @__PURE__ */ ut(xl, [["__scopeId", "data-v-caab4924"]]), Rl = We(Il);
|
|
13174
13184
|
export {
|
|
13175
13185
|
Rl as IkUploadFile,
|
|
13176
13186
|
Rl as default
|