iking-web-ui-pro 0.1.21 → 0.1.22

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.
@@ -1,21 +1,21 @@
1
- import { defineComponent as x, openBlock as o, createElementBlock as r, createElementVNode as n, computed as L, ref as B, watch as _3, createBlock as y, unref as c, withCtx as w, createCommentVNode as _, resolveComponent as d3, normalizeClass as D, normalizeStyle as T, mergeModels as t3, useModel as w3, Fragment as M, mergeProps as s3, renderSlot as P, createTextVNode as q, toDisplayString as b, createVNode as m, renderList as y3, withDirectives as k3, vShow as z3 } from "vue";
2
- import { ElDialog as x3, ElUpload as l3, ElButton as b3, ElProgress as a3, ElTooltip as F3, ElIcon as S, ElMessage as o3 } from "element-plus";
1
+ import { defineComponent as b, openBlock as a, createElementBlock as r, createElementVNode as n, computed as L, ref as B, watch as _3, createBlock as y, unref as c, withCtx as w, createCommentVNode as f, resolveComponent as d3, normalizeClass as D, normalizeStyle as T, mergeModels as t3, useModel as w3, Fragment as M, mergeProps as l3, renderSlot as q, createTextVNode as O, toDisplayString as x, createVNode as m, renderList as y3, withDirectives as k3, vShow as z3 } from "vue";
2
+ import { ElDialog as x3, ElUpload as s3, ElButton as b3, ElProgress as a3, ElTooltip as F3, ElIcon as S, ElMessage as o3 } from "element-plus";
3
3
  import { ikColor as $3, ikFile as V3 } from "iking-utils-pro";
4
4
  const X = (e, t) => {
5
- if (e.install = (s) => {
5
+ if (e.install = (l) => {
6
6
  for (const d of [e, ...Object.values(t ?? {})])
7
- s.component(d.name, d);
7
+ l.component(d.name, d);
8
8
  }, t)
9
- for (const [s, d] of Object.entries(t))
10
- e[s] = d;
9
+ for (const [l, d] of Object.entries(t))
10
+ e[l] = d;
11
11
  return e;
12
12
  };
13
13
  /*! Element Plus Icons Vue v2.3.1 */
14
- var C3 = /* @__PURE__ */ x({
14
+ var C3 = /* @__PURE__ */ b({
15
15
  name: "Delete",
16
16
  __name: "delete",
17
17
  setup(e) {
18
- return (t, s) => (o(), r("svg", {
18
+ return (t, l) => (a(), r("svg", {
19
19
  xmlns: "http://www.w3.org/2000/svg",
20
20
  viewBox: "0 0 1024 1024"
21
21
  }, [
@@ -25,11 +25,11 @@ var C3 = /* @__PURE__ */ x({
25
25
  })
26
26
  ]));
27
27
  }
28
- }), B3 = C3, I3 = /* @__PURE__ */ x({
28
+ }), B3 = C3, I3 = /* @__PURE__ */ b({
29
29
  name: "Download",
30
30
  __name: "download",
31
31
  setup(e) {
32
- return (t, s) => (o(), r("svg", {
32
+ return (t, l) => (a(), r("svg", {
33
33
  xmlns: "http://www.w3.org/2000/svg",
34
34
  viewBox: "0 0 1024 1024"
35
35
  }, [
@@ -39,11 +39,11 @@ var C3 = /* @__PURE__ */ x({
39
39
  })
40
40
  ]));
41
41
  }
42
- }), M3 = I3, S3 = /* @__PURE__ */ x({
42
+ }), M3 = I3, S3 = /* @__PURE__ */ b({
43
43
  name: "QuestionFilled",
44
44
  __name: "question-filled",
45
45
  setup(e) {
46
- return (t, s) => (o(), r("svg", {
46
+ return (t, l) => (a(), r("svg", {
47
47
  xmlns: "http://www.w3.org/2000/svg",
48
48
  viewBox: "0 0 1024 1024"
49
49
  }, [
@@ -53,11 +53,11 @@ var C3 = /* @__PURE__ */ x({
53
53
  })
54
54
  ]));
55
55
  }
56
- }), D3 = S3, H3 = /* @__PURE__ */ x({
56
+ }), D3 = S3, H3 = /* @__PURE__ */ b({
57
57
  name: "Refresh",
58
58
  __name: "refresh",
59
59
  setup(e) {
60
- return (t, s) => (o(), r("svg", {
60
+ return (t, l) => (a(), r("svg", {
61
61
  xmlns: "http://www.w3.org/2000/svg",
62
62
  viewBox: "0 0 1024 1024"
63
63
  }, [
@@ -67,11 +67,11 @@ var C3 = /* @__PURE__ */ x({
67
67
  })
68
68
  ]));
69
69
  }
70
- }), U3 = H3, A3 = /* @__PURE__ */ x({
70
+ }), U3 = H3, A3 = /* @__PURE__ */ b({
71
71
  name: "Upload",
72
72
  __name: "upload",
73
73
  setup(e) {
74
- return (t, s) => (o(), r("svg", {
74
+ return (t, l) => (a(), r("svg", {
75
75
  xmlns: "http://www.w3.org/2000/svg",
76
76
  viewBox: "0 0 1024 1024"
77
77
  }, [
@@ -81,11 +81,11 @@ var C3 = /* @__PURE__ */ x({
81
81
  })
82
82
  ]));
83
83
  }
84
- }), E3 = A3, L3 = /* @__PURE__ */ x({
84
+ }), E3 = A3, L3 = /* @__PURE__ */ b({
85
85
  name: "View",
86
86
  __name: "view",
87
87
  setup(e) {
88
- return (t, s) => (o(), r("svg", {
88
+ return (t, l) => (a(), r("svg", {
89
89
  xmlns: "http://www.w3.org/2000/svg",
90
90
  viewBox: "0 0 1024 1024"
91
91
  }, [
@@ -95,11 +95,11 @@ var C3 = /* @__PURE__ */ x({
95
95
  })
96
96
  ]));
97
97
  }
98
- }), j3 = L3, T3 = /* @__PURE__ */ x({
98
+ }), j3 = L3, T3 = /* @__PURE__ */ b({
99
99
  name: "WarningFilled",
100
100
  __name: "warning-filled",
101
101
  setup(e) {
102
- return (t, s) => (o(), r("svg", {
102
+ return (t, l) => (a(), r("svg", {
103
103
  xmlns: "http://www.w3.org/2000/svg",
104
104
  viewBox: "0 0 1024 1024"
105
105
  }, [
@@ -110,10 +110,11 @@ var C3 = /* @__PURE__ */ x({
110
110
  ]));
111
111
  }
112
112
  }), O3 = T3;
113
- const p = (e, t) => {
114
- var l, f, u, k, z;
115
- const s = (l = e == null ? void 0 : e.response) != null && l.data ? n3((u = (f = e == null ? void 0 : e.response) == null ? void 0 : f.data) == null ? void 0 : u.suffix) : ((k = e.raw) == null ? void 0 : k.type) || n3(e[t.suffix]), d = ((z = e.raw) == null ? void 0 : z.name) || e[t.name];
116
- return s != null && s.includes("sheet") || s != null && s.includes("excel") ? "excel" : s != null && s.includes("zip") || s === "application/x-compressed" ? "zip" : s != null && s.includes("image") ? "image" : s != null && s.includes("video") ? "video" : s != null && s.includes("audio") ? "audio" : s != null && s.includes("pdf") ? "pdf" : s != null && s.includes("text") || s != null && s.includes("txt") ? "txt" : s != null && s.includes("word") ? "word" : d != null && d.includes("ppt") ? "ppt" : d != null && d.includes("exe") ? "exe" : d != null && d.includes("json") ? "json" : "unknow";
113
+ const v = (e, t) => {
114
+ var s, g, u, k, z;
115
+ console.log("file: ", e, t);
116
+ const l = (s = e == null ? void 0 : e.response) != null && s.data ? n3((u = (g = e == null ? void 0 : e.response) == null ? void 0 : g.data) == null ? void 0 : u.suffix) : ((k = e.raw) == null ? void 0 : k.type) || n3(e[t.suffix]), d = ((z = e.raw) == null ? void 0 : z.name) || e[t.name];
117
+ return l != null && l.includes("sheet") || l != null && l.includes("excel") ? "excel" : l != null && l.includes("zip") || l === "application/x-compressed" ? "zip" : l != null && l.includes("image") ? "image" : l != null && l.includes("video") ? "video" : l != null && l.includes("audio") ? "audio" : l != null && l.includes("pdf") ? "pdf" : l != null && l.includes("text") || l != null && l.includes("txt") ? "txt" : l != null && l.includes("word") ? "word" : d != null && d.includes("ppt") ? "ppt" : d != null && d.includes("exe") ? "exe" : d != null && d.includes("json") ? "json" : "unknow";
117
118
  }, n3 = (e) => {
118
119
  const t = e == null ? void 0 : e.toLocaleLowerCase();
119
120
  switch (t != null && t.startsWith(".") ? t : `.${t}`) {
@@ -337,7 +338,7 @@ const p = (e, t) => {
337
338
  ), t6 = [
338
339
  K3,
339
340
  e6
340
- ], s6 = {
341
+ ], l6 = {
341
342
  key: 3,
342
343
  t: "1686300157181",
343
344
  class: "icon",
@@ -347,7 +348,7 @@ const p = (e, t) => {
347
348
  "p-id": "8292",
348
349
  width: "200",
349
350
  height: "200"
350
- }, l6 = /* @__PURE__ */ n(
351
+ }, s6 = /* @__PURE__ */ n(
351
352
  "path",
352
353
  {
353
354
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",
@@ -368,7 +369,7 @@ const p = (e, t) => {
368
369
  -1
369
370
  /* HOISTED */
370
371
  ), o6 = [
371
- l6,
372
+ s6,
372
373
  a6
373
374
  ], n6 = {
374
375
  key: 4,
@@ -692,7 +693,7 @@ const p = (e, t) => {
692
693
  j6,
693
694
  T6,
694
695
  O6
695
- ], i3 = /* @__PURE__ */ x({
696
+ ], i3 = /* @__PURE__ */ b({
696
697
  __name: "FileIcon",
697
698
  props: {
698
699
  type: {
@@ -713,37 +714,37 @@ const p = (e, t) => {
713
714
  }
714
715
  },
715
716
  setup(e) {
716
- const t = e, s = L(() => t.file ? p(t.file, t.fields) : t.type);
717
- return (d, l) => s.value === "image" ? (o(), r("svg", N3, X3)) : s.value === "zip" ? (o(), r("svg", Y3, G3)) : s.value === "ppt" ? (o(), r("svg", J3, t6)) : s.value === "word" ? (o(), r("svg", s6, o6)) : s.value === "pdf" ? (o(), r("svg", n6, r6)) : s.value === "txt" ? (o(), r("svg", d6, v6)) : s.value === "audio" ? (o(), r("svg", p6, g6)) : s.value === "video" ? (o(), r("svg", _6, k6)) : s.value === "excel" ? (o(), r("svg", z6, $6)) : s.value === "exe" ? (o(), r("svg", V6, S6)) : s.value === "json" ? (o(), r("svg", D6, E6)) : (o(), r("svg", L6, N6));
717
+ const t = e, l = L(() => (console.log(v(t.file, t.fields)), t.file ? v(t.file, t.fields) : t.type));
718
+ return (d, s) => l.value === "image" ? (a(), r("svg", N3, X3)) : l.value === "zip" ? (a(), r("svg", Y3, G3)) : l.value === "ppt" ? (a(), r("svg", J3, t6)) : l.value === "word" ? (a(), r("svg", l6, o6)) : l.value === "pdf" ? (a(), r("svg", n6, r6)) : l.value === "txt" ? (a(), r("svg", d6, v6)) : l.value === "audio" ? (a(), r("svg", p6, g6)) : l.value === "video" ? (a(), r("svg", _6, k6)) : l.value === "excel" ? (a(), r("svg", z6, $6)) : l.value === "exe" ? (a(), r("svg", V6, S6)) : l.value === "json" ? (a(), r("svg", D6, E6)) : (a(), r("svg", L6, N6));
718
719
  }
719
720
  }), R6 = (e, t) => {
720
- const s = e.__vccOpts || e;
721
- for (const [d, l] of t)
722
- s[d] = l;
723
- return s;
721
+ const l = e.__vccOpts || e;
722
+ for (const [d, s] of t)
723
+ l[d] = s;
724
+ return l;
724
725
  }, W = (e) => e % 1 === 0 ? e.toString() : e.toFixed(2), P6 = typeof btoa == "function", Y = typeof Buffer == "function";
725
726
  typeof TextDecoder == "function" && new TextDecoder();
726
727
  const c3 = typeof TextEncoder == "function" ? new TextEncoder() : void 0, q6 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", E = Array.prototype.slice.call(q6);
727
728
  ((e) => {
728
729
  let t = {};
729
- return e.forEach((s, d) => t[s] = d), t;
730
+ return e.forEach((l, d) => t[l] = d), t;
730
731
  })(E);
731
732
  const F = String.fromCharCode.bind(String);
732
733
  typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
733
734
  const W6 = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), X6 = (e) => {
734
- let t, s, d, l, f = "";
735
+ let t, l, d, s, g = "";
735
736
  const u = e.length % 3;
736
737
  for (let k = 0; k < e.length; ) {
737
- if ((s = e.charCodeAt(k++)) > 255 || (d = e.charCodeAt(k++)) > 255 || (l = e.charCodeAt(k++)) > 255)
738
+ if ((l = e.charCodeAt(k++)) > 255 || (d = e.charCodeAt(k++)) > 255 || (s = e.charCodeAt(k++)) > 255)
738
739
  throw new TypeError("invalid character found");
739
- t = s << 16 | d << 8 | l, f += E[t >> 18 & 63] + E[t >> 12 & 63] + E[t >> 6 & 63] + E[t & 63];
740
+ t = l << 16 | d << 8 | s, g += E[t >> 18 & 63] + E[t >> 12 & 63] + E[t >> 6 & 63] + E[t & 63];
740
741
  }
741
- return u ? f.slice(0, u - 3) + "===".substring(u) : f;
742
+ return u ? g.slice(0, u - 3) + "===".substring(u) : g;
742
743
  }, u3 = P6 ? (e) => btoa(e) : Y ? (e) => Buffer.from(e, "binary").toString("base64") : X6, Y6 = Y ? (e) => Buffer.from(e).toString("base64") : (e) => {
743
- let s = [];
744
- for (let d = 0, l = e.length; d < l; d += 4096)
745
- s.push(F.apply(null, e.subarray(d, d + 4096)));
746
- return u3(s.join(""));
744
+ let l = [];
745
+ for (let d = 0, s = e.length; d < s; d += 4096)
746
+ l.push(F.apply(null, e.subarray(d, d + 4096)));
747
+ return u3(l.join(""));
747
748
  }, Q6 = (e) => {
748
749
  if (e.length < 2) {
749
750
  var t = e.charCodeAt(0);
@@ -752,7 +753,7 @@ const W6 = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
752
753
  var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
753
754
  return F(240 | t >>> 18 & 7) + F(128 | t >>> 12 & 63) + F(128 | t >>> 6 & 63) + F(128 | t & 63);
754
755
  }
755
- }, Z6 = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, G6 = (e) => e.replace(Z6, Q6), r3 = Y ? (e) => Buffer.from(e, "utf8").toString("base64") : c3 ? (e) => Y6(c3.encode(e)) : (e) => u3(G6(e)), J6 = (e, t = !1) => t ? W6(r3(e)) : r3(e), K6 = ["src"], e1 = /* @__PURE__ */ x({
756
+ }, Z6 = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, G6 = (e) => e.replace(Z6, Q6), r3 = Y ? (e) => Buffer.from(e, "utf8").toString("base64") : c3 ? (e) => Y6(c3.encode(e)) : (e) => u3(G6(e)), J6 = (e, t = !1) => t ? W6(r3(e)) : r3(e), K6 = ["src"], e1 = /* @__PURE__ */ b({
756
757
  __name: "IkPreviewFileDialog",
757
758
  props: {
758
759
  modelValue: {
@@ -783,44 +784,44 @@ const W6 = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
783
784
  }
784
785
  },
785
786
  setup(e) {
786
- const t = e, s = B(null), d = L(() => {
787
+ const t = e, l = B(null), d = L(() => {
787
788
  if (!t.kkUrl || !t.url)
788
789
  return "";
789
- const f = t.loadUrl ? t.loadUrl : location.href;
790
+ const g = t.loadUrl ? t.loadUrl : location.href;
790
791
  return `${t.kkUrl}/onlinePreview?url=${encodeURIComponent(
791
- J6(`${f}${t.url}${t.fileName ? `&fullfilename=${t.fileName}` : ""}`)
792
+ J6(`${g}${t.url}${t.fileName ? `&fullfilename=${t.fileName}` : ""}`)
792
793
  )}`;
793
- }), l = B(t.modelValue);
794
- return _3(() => t.modelValue, (f) => {
795
- l.value = f;
796
- }), (f, u) => (o(), y(c(x3), {
794
+ }), s = B(t.modelValue);
795
+ return _3(() => t.modelValue, (g) => {
796
+ s.value = g;
797
+ }), (g, u) => (a(), y(c(x3), {
797
798
  fullscreen: "",
798
- modelValue: l.value,
799
- "onUpdate:modelValue": u[0] || (u[0] = (k) => l.value = k),
799
+ modelValue: s.value,
800
+ "onUpdate:modelValue": u[0] || (u[0] = (k) => s.value = k),
800
801
  "destroy-on-close": "",
801
802
  "append-to-body": "",
802
803
  "modal-class": "ik-file-preview-modal",
803
- onClose: u[1] || (u[1] = (k) => f.$emit("update:modelValue", !1)),
804
+ onClose: u[1] || (u[1] = (k) => g.$emit("update:modelValue", !1)),
804
805
  class: "ik-file-preview"
805
806
  }, {
806
807
  default: w(() => [
807
- d.value ? (o(), r("iframe", {
808
+ d.value ? (a(), r("iframe", {
808
809
  key: 0,
809
810
  ref_key: "freamRef",
810
- ref: s,
811
+ ref: l,
811
812
  "cross-origin": "",
812
813
  src: d.value,
813
814
  frameborder: "0",
814
815
  allowfullscreen: "",
815
816
  seamless: ""
816
- }, null, 8, K6)) : _("v-if", !0)
817
+ }, null, 8, K6)) : f("v-if", !0)
817
818
  ]),
818
819
  _: 1
819
820
  /* STABLE */
820
821
  }, 8, ["modelValue"]));
821
822
  }
822
823
  });
823
- const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex justify-center line-height-[0]" }, l1 = {
824
+ const t1 = X(e1), l1 = { class: "ik-svg-icon ik-icon inline-block inline-flex justify-center line-height-[0]" }, s1 = {
824
825
  key: 1,
825
826
  class: "h-[1em] w-[1em]",
826
827
  "aria-hidden": "true"
@@ -828,7 +829,7 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
828
829
  key: 1,
829
830
  class: "h-[1em] w-[1em]",
830
831
  "aria-hidden": "true"
831
- }, i1 = ["xlink:href"], c1 = ["src"], r1 = /* @__PURE__ */ x({
832
+ }, i1 = ["xlink:href"], c1 = ["src"], r1 = /* @__PURE__ */ b({
832
833
  name: "IkSvgIcon",
833
834
  __name: "index",
834
835
  props: {
@@ -850,29 +851,29 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
850
851
  disabled: { type: Boolean, default: !1 }
851
852
  },
852
853
  setup(e) {
853
- const t = e, s = L(() => {
854
- var l, f;
855
- return /^http?:\/\//.test(t.name) ? "img" : /i-[^:]+:[^:]+/.test(t.name) ? "unocss" : (l = t.name) != null && l.startsWith("iksig") ? "iksig" : (f = t.name) != null && f.includes(":") ? "iconify" : "svg";
854
+ const t = e, l = L(() => {
855
+ var s, g;
856
+ return /^http?:\/\//.test(t.name) ? "img" : /i-[^:]+:[^:]+/.test(t.name) ? "unocss" : (s = t.name) != null && s.startsWith("iksig") ? "iksig" : (g = t.name) != null && g.includes(":") ? "iconify" : "svg";
856
857
  }), d = L(() => {
857
- const l = [];
858
+ const s = [];
858
859
  if (t.flip)
859
860
  switch (t.flip) {
860
861
  case "horizontal":
861
- l.push("rotateY(180deg)");
862
+ s.push("rotateY(180deg)");
862
863
  break;
863
864
  case "vertical":
864
- l.push("rotateX(180deg)");
865
+ s.push("rotateX(180deg)");
865
866
  break;
866
867
  case "both":
867
- l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
868
+ s.push("rotateX(180deg)"), s.push("rotateY(180deg)");
868
869
  break;
869
870
  }
870
- return t.rotate && l.push(`rotate(${t.rotate % 360}deg)`), {
871
+ return t.rotate && s.push(`rotate(${t.rotate % 360}deg)`), {
871
872
  ...t.color && { color: t.color },
872
873
  ...t.size && { fontSize: typeof t.size == "number" ? `${t.size}px` : t.size },
873
- ...l.length && { transform: l.join(" ") },
874
+ ...s.length && { transform: s.join(" ") },
874
875
  padding: t.padding,
875
- ...t.color && s.value !== "iksig" ? {
876
+ ...t.color && l.value !== "iksig" ? {
876
877
  "--ik-color-icon-dark": t.color,
877
878
  "--ik-color-icon-light": $3.setOpacity(t.color, t.opacity || 0.4)
878
879
  } : {},
@@ -887,53 +888,53 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
887
888
  } : {}
888
889
  };
889
890
  });
890
- return (l, f) => {
891
+ return (s, g) => {
891
892
  const u = d3("el-tooltip");
892
- return o(), r("span", s1, [
893
- l.notip || !l.title ? (o(), r(
893
+ return a(), r("span", l1, [
894
+ s.notip || !s.title ? (a(), r(
894
895
  "i",
895
896
  {
896
897
  key: 0,
897
898
  class: D(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
898
- [l.name]: s.value === "unocss",
899
- "show-bg": l.showBg || l.bg,
900
- default: l.size === "default",
901
- small: l.size === "small",
902
- big: l.size === "big",
903
- warning: l.warning,
904
- primary: l.primary,
905
- active: l.active,
906
- disabled: l.disabled
899
+ [s.name]: l.value === "unocss",
900
+ "show-bg": s.showBg || s.bg,
901
+ default: s.size === "default",
902
+ small: s.size === "small",
903
+ big: s.size === "big",
904
+ warning: s.warning,
905
+ primary: s.primary,
906
+ active: s.active,
907
+ disabled: s.disabled
907
908
  }]),
908
909
  style: T(d.value)
909
910
  },
910
911
  [
911
- _(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
912
- s.value === "iksig" ? (o(), r(
912
+ f(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
913
+ l.value === "iksig" ? (a(), r(
913
914
  "i",
914
915
  {
915
916
  key: 0,
916
- class: D(`iksig ${l.name}`),
917
+ class: D(`iksig ${s.name}`),
917
918
  style: T(d.value)
918
919
  },
919
920
  null,
920
921
  6
921
922
  /* CLASS, STYLE */
922
- )) : s.value === "svg" ? (o(), r("svg", l1, [
923
+ )) : l.value === "svg" ? (a(), r("svg", s1, [
923
924
  n("use", {
924
- "xlink:href": `#${l.name}`
925
+ "xlink:href": `#${s.name}`
925
926
  }, null, 8, a1)
926
- ])) : s.value === "img" ? (o(), r("img", {
927
+ ])) : l.value === "img" ? (a(), r("img", {
927
928
  key: 2,
928
- src: l.name,
929
+ src: s.name,
929
930
  class: "h-[1em] w-[1em]"
930
- }, null, 8, o1)) : _("v-if", !0)
931
+ }, null, 8, o1)) : f("v-if", !0)
931
932
  ],
932
933
  6
933
934
  /* CLASS, STYLE */
934
- )) : (o(), y(u, {
935
+ )) : (a(), y(u, {
935
936
  key: 1,
936
- content: l.title,
937
+ content: s.title,
937
938
  placement: "right"
938
939
  }, {
939
940
  default: w(() => [
@@ -941,37 +942,37 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
941
942
  "i",
942
943
  {
943
944
  class: D(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
944
- [l.name]: s.value === "unocss",
945
- "show-bg": l.showBg || l.bg,
946
- default: l.size === "default",
947
- primary: l.primary,
948
- small: l.size === "small",
949
- big: l.size === "big",
950
- warning: l.warning,
951
- active: l.active
945
+ [s.name]: l.value === "unocss",
946
+ "show-bg": s.showBg || s.bg,
947
+ default: s.size === "default",
948
+ primary: s.primary,
949
+ small: s.size === "small",
950
+ big: s.size === "big",
951
+ warning: s.warning,
952
+ active: s.active
952
953
  }]),
953
954
  style: T(d.value)
954
955
  },
955
956
  [
956
- s.value === "iksig" ? (o(), r(
957
+ l.value === "iksig" ? (a(), r(
957
958
  "i",
958
959
  {
959
960
  key: 0,
960
- class: D(`iksig ${l.name}`),
961
+ class: D(`iksig ${s.name}`),
961
962
  style: T(d.value)
962
963
  },
963
964
  null,
964
965
  6
965
966
  /* CLASS, STYLE */
966
- )) : s.value === "svg" ? (o(), r("svg", n1, [
967
+ )) : l.value === "svg" ? (a(), r("svg", n1, [
967
968
  n("use", {
968
- "xlink:href": `#${l.name}`
969
+ "xlink:href": `#${s.name}`
969
970
  }, null, 8, i1)
970
- ])) : s.value === "img" ? (o(), r("img", {
971
+ ])) : l.value === "img" ? (a(), r("img", {
971
972
  key: 2,
972
- src: l.name,
973
+ src: s.name,
973
974
  class: "h-[1em] w-[1em]"
974
- }, null, 8, c1)) : _("v-if", !0)
975
+ }, null, 8, c1)) : f("v-if", !0)
975
976
  ],
976
977
  6
977
978
  /* CLASS, STYLE */
@@ -986,10 +987,13 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
986
987
  }), C = X(r1), d1 = { class: "ik-flie-list" }, u1 = { class: "name" }, h1 = { key: 1 }, v1 = ["src"], p1 = { class: "file-icon" }, m1 = { class: "file-name-loading" }, f1 = { class: "file-name" }, g1 = { key: 0 }, _1 = {
987
988
  key: 0,
988
989
  class: "file-size"
989
- }, w1 = { class: "name" }, y1 = { class: "file-name-loading" }, k1 = { class: "file-name" }, z1 = { class: "file-size" }, x1 = { class: "operate-btn" }, b1 = { class: "card" }, F1 = { class: "title" }, $1 = { class: "ik-flie-list" }, V1 = { class: "name" }, C1 = { key: 1 }, B1 = ["src"], I1 = { class: "file-icon" }, M1 = { class: "file-name-loading" }, S1 = { class: "file-name" }, D1 = { key: 0 }, H1 = {
990
+ }, w1 = { class: "name" }, y1 = { class: "file-name-loading" }, k1 = { class: "file-name" }, z1 = { class: "file-size" }, x1 = { class: "operate-btn" }, b1 = { class: "card" }, F1 = { class: "title" }, $1 = {
991
+ key: 0,
992
+ class: "tip"
993
+ }, V1 = { class: "ik-flie-list" }, C1 = { class: "name" }, B1 = { key: 1 }, I1 = ["src"], M1 = { class: "file-icon" }, S1 = { class: "file-name-loading" }, D1 = { class: "file-name" }, H1 = { key: 0 }, U1 = {
990
994
  key: 0,
991
995
  class: "file-size"
992
- }, U1 = { key: 0 }, A1 = /* @__PURE__ */ x({
996
+ }, A1 = { key: 0 }, E1 = /* @__PURE__ */ b({
993
997
  __name: "index",
994
998
  props: /* @__PURE__ */ t3({
995
999
  // 显示的文字
@@ -1097,82 +1101,82 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1097
1101
  }),
1098
1102
  emits: /* @__PURE__ */ t3(["delete", "exceed", "success", "error", "outSize"], ["update:modelValue"]),
1099
1103
  setup(e, { emit: t }) {
1100
- const s = e, d = t, l = w3(e, "modelValue"), u = {
1104
+ const l = e, d = t, s = w3(e, "modelValue"), u = {
1101
1105
  ...{
1102
1106
  name: "name",
1103
1107
  url: "url",
1104
1108
  suffix: "suffix",
1105
1109
  size: "size"
1106
1110
  },
1107
- ...s.defaultFileds
1108
- }, k = L(() => s.size), z = B(null), h3 = B(null), H = B([]), O = B(!1), N = B(!1), I = B(null), Q = (i) => {
1111
+ ...l.defaultFileds
1112
+ }, k = L(() => l.size), z = B(null), h3 = B(null), H = B([]), N = B(!1), R = B(!1), I = B(null), Q = (i) => {
1109
1113
  const h = i.size / 1024 / 1024;
1110
1114
  if (!(h < k.value)) {
1111
1115
  d("outSize"), o3({
1112
- message: `上传文件大小(${h.toFixed(4)}MB)超出允许最大值(${s.size}MB),请重新选择`,
1116
+ message: `上传文件大小(${h.toFixed(4)}MB)超出允许最大值(${l.size}MB),请重新选择`,
1113
1117
  type: "warning",
1114
1118
  showClose: !0,
1115
1119
  duration: 5e3
1116
1120
  });
1117
- const $ = l.value.findIndex((V) => V.uid === i.uid);
1118
- return l.value.splice($, 1), !1;
1121
+ const $ = s.value.findIndex((V) => V.uid === i.uid);
1122
+ return s.value.splice($, 1), !1;
1119
1123
  }
1120
1124
  return !0;
1121
1125
  }, Z = () => !1, v3 = (i, h) => {
1122
- var v, $;
1123
- i.status = "ready", h !== void 0 && H.value.splice(h, 1), (v = z.value) == null || v.handleStart(i.raw), ($ = z.value) == null || $.submit();
1126
+ var p, $;
1127
+ i.status = "ready", h !== void 0 && H.value.splice(h, 1), (p = z.value) == null || p.handleStart(i.raw), ($ = z.value) == null || $.submit();
1124
1128
  }, G = (i, h) => {
1125
1129
  var U, A;
1126
- const v = l.value.length, $ = s.limit - v;
1130
+ const p = s.value.length, $ = l.limit - p;
1127
1131
  let V = 0;
1128
1132
  for (; V < $ && V < i.length; )
1129
1133
  (U = z.value) == null || U.handleStart(i[V]), (A = z.value) == null || A.submit(), V++;
1130
1134
  o3({
1131
- message: (s == null ? void 0 : s.limitText) || `最大可上传${s.limit}个文件,已忽略超出文件`,
1135
+ message: (l == null ? void 0 : l.limitText) || `最大可上传${l.limit}个文件,已忽略超出文件`,
1132
1136
  type: "warning",
1133
1137
  showClose: !0,
1134
1138
  duration: 5e3
1135
1139
  }), d("exceed", i);
1136
- }, J = (i, h, v) => {
1137
- d("success", i, h, v);
1138
- }, K = (i, h, v) => {
1139
- H.value.push(h), d("error", i, h, v);
1140
- }, R = (i) => {
1141
- var h, v;
1140
+ }, J = (i, h, p) => {
1141
+ d("success", i, h, p);
1142
+ }, K = (i, h, p) => {
1143
+ H.value.push(h), d("error", i, h, p);
1144
+ }, P = (i) => {
1145
+ var h, p;
1142
1146
  I.value = {
1143
1147
  ...i,
1144
1148
  name: i[u.name],
1145
- url: i[u.url] || ((v = (h = i == null ? void 0 : i.response) == null ? void 0 : h.data) == null ? void 0 : v.id)
1146
- }, i && p(i, u) === "video" || i && p(i, u) === "image" ? N.value = !0 : O.value = !0;
1149
+ url: i[u.url] || ((p = (h = i == null ? void 0 : i.response) == null ? void 0 : h.data) == null ? void 0 : p.id)
1150
+ }, i && v(i, u) === "video" || i && v(i, u) === "image" ? R.value = !0 : N.value = !0;
1147
1151
  }, p3 = (i) => {
1148
1152
  V3.downloadByOnlineUrl(
1149
1153
  i[u.url],
1150
1154
  i[u.name]
1151
1155
  );
1152
1156
  }, m3 = (i, h = !1) => {
1153
- var v;
1154
- (v = z.value) == null || v.abort(i);
1157
+ var p;
1158
+ (p = z.value) == null || p.abort(i);
1155
1159
  }, j = (i) => {
1156
1160
  var h;
1157
- i.status !== "success" && m3(i), (h = z.value) == null || h.handleRemove(i), l.value = l.value.filter((v) => v.uid !== i.uid), d("delete", i);
1161
+ i.status !== "success" && m3(i), (h = z.value) == null || h.handleRemove(i), s.value = s.value.filter((p) => p.uid !== i.uid), d("delete", i);
1158
1162
  }, f3 = (i, h) => {
1159
1163
  H.value.splice(h, 1);
1160
1164
  };
1161
1165
  return (i, h) => {
1162
1166
  var $, V, U, A;
1163
- const v = d3("el-image-viewer");
1164
- return o(), r(
1167
+ const p = d3("el-image-viewer");
1168
+ return a(), r(
1165
1169
  M,
1166
1170
  null,
1167
1171
  [
1168
- e.preview ? _("v-if", !0) : (o(), r(
1172
+ e.preview ? f("v-if", !0) : (a(), r(
1169
1173
  M,
1170
1174
  { key: 0 },
1171
1175
  [
1172
- e.type === "button" ? (o(), y(c(l3), s3({
1176
+ e.type === "button" ? (a(), y(c(s3), l3({
1173
1177
  key: 0,
1174
- "file-list": l.value,
1175
- "onUpdate:fileList": h[0] || (h[0] = (a) => l.value = a),
1178
+ "file-list": s.value,
1179
+ "onUpdate:fileList": h[0] || (h[0] = (o) => s.value = o),
1176
1180
  class: "ik-file-upload"
1177
1181
  }, i.$attrs, {
1178
1182
  accept: e.accept,
@@ -1190,15 +1194,15 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1190
1194
  "on-error": K
1191
1195
  }), {
1192
1196
  trigger: w(() => [
1193
- i.$slots.trigger ? P(i.$slots, "trigger", { key: 0 }, void 0, !0) : (o(), y(c(b3), {
1197
+ i.$slots.trigger ? q(i.$slots, "trigger", { key: 0 }, void 0, !0) : (a(), y(c(b3), {
1194
1198
  key: 1,
1195
1199
  type: "primary",
1196
- disabled: l.value.length === e.limit,
1200
+ disabled: s.value.length >= e.limit,
1197
1201
  icon: c(E3)
1198
1202
  }, {
1199
1203
  default: w(() => [
1200
- q(
1201
- b(e.title),
1204
+ O(
1205
+ x(e.title),
1202
1206
  1
1203
1207
  /* TEXT */
1204
1208
  )
@@ -1207,24 +1211,24 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1207
1211
  /* STABLE */
1208
1212
  }, 8, ["disabled", "icon"]))
1209
1213
  ]),
1210
- file: w(({ file: a }) => [
1214
+ file: w(({ file: o }) => [
1211
1215
  n("div", d1, [
1212
1216
  n("div", u1, [
1213
- !i.$slots.fileIcon && (!e.customIconData[c(p)(a, u)] || !e.customIconData[c(p)(a, u)][e.customIconFields.icon]) ? (o(), y(i3, {
1217
+ !i.$slots.fileIcon && (!e.customIconData[c(v)(o, u)] || !e.customIconData[c(v)(o, u)][e.customIconFields.icon]) ? (a(), y(i3, {
1214
1218
  key: 0,
1215
- type: c(p)(a, u)
1216
- }, null, 8, ["type"])) : !i.$slots.fileIcon && e.customIconData[c(p)(a, u)] && e.customIconData[c(p)(a, u)][e.customIconFields.icon] ? (o(), r("div", h1, [
1217
- e.customIconData[c(p)(a, u)][e.customIconFields.type] === "img" ? (o(), r("img", {
1219
+ type: c(v)(o, u)
1220
+ }, null, 8, ["type"])) : !i.$slots.fileIcon && e.customIconData[c(v)(o, u)] && e.customIconData[c(v)(o, u)][e.customIconFields.icon] ? (a(), r("div", h1, [
1221
+ e.customIconData[c(v)(o, u)][e.customIconFields.type] === "img" ? (a(), r("img", {
1218
1222
  key: 0,
1219
- src: e.customIconData[c(p)(a, u)][e.customIconFields.icon],
1223
+ src: e.customIconData[c(v)(o, u)][e.customIconFields.icon],
1220
1224
  alt: "",
1221
1225
  class: "file-img-icon"
1222
- }, null, 8, v1)) : (o(), r(
1226
+ }, null, 8, v1)) : (a(), r(
1223
1227
  "span",
1224
1228
  {
1225
1229
  key: 1,
1226
1230
  class: D([
1227
- e.customIconData[c(p)(a, u)][e.customIconFields.icon],
1231
+ e.customIconData[c(v)(o, u)][e.customIconFields.icon],
1228
1232
  "file-icon-size"
1229
1233
  ])
1230
1234
  },
@@ -1232,57 +1236,57 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1232
1236
  2
1233
1237
  /* CLASS */
1234
1238
  ))
1235
- ])) : _("v-if", !0),
1239
+ ])) : f("v-if", !0),
1236
1240
  n("div", p1, [
1237
- P(i.$slots, "fileIcon", { file: a }, void 0, !0)
1241
+ q(i.$slots, "fileIcon", { file: o }, void 0, !0)
1238
1242
  ]),
1239
1243
  n("div", m1, [
1240
1244
  n("p", f1, [
1241
- q(
1242
- b(a[u.name] || a.name) + " ",
1245
+ O(
1246
+ x(o[u.name] || o.name) + " ",
1243
1247
  1
1244
1248
  /* TEXT */
1245
1249
  ),
1246
- a.percentage && a.percentage !== 100 ? (o(), r(
1250
+ o.percentage && o.percentage !== 100 ? (a(), r(
1247
1251
  "span",
1248
1252
  g1,
1249
- "(" + b(a.percentage) + "%)",
1253
+ "(" + x(o.percentage) + "%)",
1250
1254
  1
1251
1255
  /* TEXT */
1252
- )) : _("v-if", !0)
1256
+ )) : f("v-if", !0)
1253
1257
  ]),
1254
- a.percentage === 100 ? (o(), r(
1258
+ o.percentage === 100 ? (a(), r(
1255
1259
  "p",
1256
1260
  _1,
1257
- b(c(W)(a.size / 1024 / 1024)) + "MB ",
1261
+ x(c(W)(o.size / 1024 / 1024)) + "MB ",
1258
1262
  1
1259
1263
  /* TEXT */
1260
- )) : _("v-if", !0),
1261
- a.percentage && a.percentage !== 100 ? (o(), y(c(a3), {
1264
+ )) : f("v-if", !0),
1265
+ o.percentage && o.percentage !== 100 ? (a(), y(c(a3), {
1262
1266
  key: 1,
1263
1267
  "text-inside": "",
1264
- percentage: a.percentage,
1268
+ percentage: o.percentage,
1265
1269
  color: "var(--el-color-primary)",
1266
1270
  "striped-flow": "",
1267
1271
  striped: "",
1268
1272
  "show-text": !1
1269
- }, null, 8, ["percentage"])) : _("v-if", !0)
1273
+ }, null, 8, ["percentage"])) : f("v-if", !0)
1270
1274
  ])
1271
1275
  ]),
1272
1276
  n("div", null, [
1273
- a.status === "success" ? (o(), r(
1277
+ o.status === "success" ? (a(), r(
1274
1278
  M,
1275
1279
  { key: 0 },
1276
1280
  [
1277
1281
  m(c(C), {
1278
- onClick: (g) => R(a),
1282
+ onClick: (_) => P(o),
1279
1283
  name: "iksvg_yulan",
1280
1284
  title: "预览",
1281
1285
  bg: "",
1282
1286
  size: "default"
1283
1287
  }, null, 8, ["onClick"]),
1284
1288
  m(c(C), {
1285
- onClick: (g) => j(a),
1289
+ onClick: (_) => j(o),
1286
1290
  warning: "",
1287
1291
  name: "iksvg_shanchu",
1288
1292
  title: "删除",
@@ -1292,9 +1296,9 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1292
1296
  ],
1293
1297
  64
1294
1298
  /* STABLE_FRAGMENT */
1295
- )) : (o(), y(c(C), {
1299
+ )) : (a(), y(c(C), {
1296
1300
  key: 1,
1297
- onClick: (g) => j(a),
1301
+ onClick: (_) => j(o),
1298
1302
  warning: "",
1299
1303
  name: "iksvg_guanbi",
1300
1304
  size: "default",
@@ -1305,12 +1309,12 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1305
1309
  ])
1306
1310
  ]),
1307
1311
  default: w(() => {
1308
- var a;
1312
+ var o;
1309
1313
  return [
1310
- !e.preview && e.tip ? (o(), y(c(F3), {
1314
+ !e.preview && e.tip ? (a(), y(c(F3), {
1311
1315
  key: 0,
1312
1316
  effect: "dark",
1313
- content: s.tipText || "",
1317
+ content: l.tipText || "",
1314
1318
  "popper-class": "_ik_web_ui_file-help-tooltip"
1315
1319
  }, {
1316
1320
  default: w(() => [
@@ -1327,13 +1331,13 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1327
1331
  ]),
1328
1332
  _: 1
1329
1333
  /* STABLE */
1330
- }, 8, ["content"])) : _("v-if", !0),
1331
- (a = H.value) != null && a.length ? (o(!0), r(
1334
+ }, 8, ["content"])) : f("v-if", !0),
1335
+ (o = H.value) != null && o.length ? (a(!0), r(
1332
1336
  M,
1333
1337
  { key: 1 },
1334
- y3(H.value, (g, e3) => (o(), r("div", {
1338
+ y3(H.value, (_, e3) => (a(), r("div", {
1335
1339
  class: "ik-error-flie-list",
1336
- key: g.uid
1340
+ key: _.uid
1337
1341
  }, [
1338
1342
  n("div", w1, [
1339
1343
  m(c(S), {
@@ -1351,14 +1355,14 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1351
1355
  n(
1352
1356
  "p",
1353
1357
  k1,
1354
- b(g[u.name] || g.name),
1358
+ x(_[u.name] || _.name),
1355
1359
  1
1356
1360
  /* TEXT */
1357
1361
  ),
1358
1362
  n(
1359
1363
  "p",
1360
1364
  z1,
1361
- b(c(W)(g.size / 1024 / 1024)) + "MB ",
1365
+ x(c(W)(_.size / 1024 / 1024)) + "MB ",
1362
1366
  1
1363
1367
  /* TEXT */
1364
1368
  )
@@ -1370,7 +1374,7 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1370
1374
  [
1371
1375
  m(c(S), {
1372
1376
  style: { "vertical-align": "middle" },
1373
- onClick: (g3) => v3(g, e3),
1377
+ onClick: (g3) => v3(_, e3),
1374
1378
  title: "重新上传",
1375
1379
  class: "primary"
1376
1380
  }, {
@@ -1382,7 +1386,7 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1382
1386
  }, 1032, ["onClick"]),
1383
1387
  m(c(S), {
1384
1388
  class: "error",
1385
- onClick: (g3) => f3(g, e3),
1389
+ onClick: (g3) => f3(_, e3),
1386
1390
  title: "删除"
1387
1391
  }, {
1388
1392
  default: w(() => [
@@ -1395,24 +1399,25 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1395
1399
  512
1396
1400
  /* NEED_PATCH */
1397
1401
  ), [
1398
- [z3, (g == null ? void 0 : g.status) === "fail"]
1402
+ [z3, (_ == null ? void 0 : _.status) === "fail"]
1399
1403
  ])
1400
1404
  ]))),
1401
1405
  128
1402
1406
  /* KEYED_FRAGMENT */
1403
- )) : _("v-if", !0)
1407
+ )) : f("v-if", !0)
1404
1408
  ];
1405
1409
  }),
1406
1410
  _: 3
1407
1411
  /* FORWARDED */
1408
- }, 16, ["file-list", "accept", "action", "on-change", "multiple", "headers", "limit"])) : (o(), y(c(l3), s3({
1412
+ }, 16, ["file-list", "accept", "action", "on-change", "multiple", "headers", "limit"])) : (a(), y(c(s3), l3({
1409
1413
  key: 1,
1410
- "file-list": l.value,
1411
- "onUpdate:fileList": h[1] || (h[1] = (a) => l.value = a),
1414
+ "file-list": s.value,
1415
+ "onUpdate:fileList": h[1] || (h[1] = (o) => s.value = o),
1412
1416
  class: "ik-file-pload-card"
1413
1417
  }, i.$attrs, {
1414
1418
  accept: e.accept,
1415
1419
  action: e.action,
1420
+ disabled: s.value.length >= e.limit,
1416
1421
  ref_key: "refUpload",
1417
1422
  ref: z,
1418
1423
  "on-change": i.handleChange,
@@ -1425,24 +1430,24 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1425
1430
  "on-success": J,
1426
1431
  "on-error": K
1427
1432
  }), {
1428
- file: w(({ file: a }) => [
1429
- n("div", $1, [
1430
- n("div", V1, [
1431
- !i.$slots.fileIcon && (!e.customIconData[c(p)(a, u)] || !e.customIconData[c(p)(a, u)][e.customIconFields.icon]) ? (o(), y(i3, {
1433
+ file: w(({ file: o }) => [
1434
+ n("div", V1, [
1435
+ n("div", C1, [
1436
+ !i.$slots.fileIcon && (!e.customIconData[c(v)(o, u)] || !e.customIconData[c(v)(o, u)][e.customIconFields.icon]) ? (a(), y(i3, {
1432
1437
  key: 0,
1433
- type: c(p)(a, u)
1434
- }, null, 8, ["type"])) : !i.$slots.fileIcon && e.customIconData[c(p)(a, u)] && e.customIconData[c(p)(a, u)][e.customIconFields.icon] ? (o(), r("div", C1, [
1435
- e.customIconData[c(p)(a, u)][e.customIconFields.type] === "img" ? (o(), r("img", {
1438
+ type: c(v)(o, u)
1439
+ }, null, 8, ["type"])) : !i.$slots.fileIcon && e.customIconData[c(v)(o, u)] && e.customIconData[c(v)(o, u)][e.customIconFields.icon] ? (a(), r("div", B1, [
1440
+ e.customIconData[c(v)(o, u)][e.customIconFields.type] === "img" ? (a(), r("img", {
1436
1441
  key: 0,
1437
- src: e.customIconData[c(p)(a, u)][e.customIconFields.icon],
1442
+ src: e.customIconData[c(v)(o, u)][e.customIconFields.icon],
1438
1443
  alt: "",
1439
1444
  class: "file-img-icon"
1440
- }, null, 8, B1)) : (o(), r(
1445
+ }, null, 8, I1)) : (a(), r(
1441
1446
  "span",
1442
1447
  {
1443
1448
  key: 1,
1444
1449
  class: D([
1445
- e.customIconData[c(p)(a, u)][e.customIconFields.icon],
1450
+ e.customIconData[c(v)(o, u)][e.customIconFields.icon],
1446
1451
  "file-icon-size"
1447
1452
  ])
1448
1453
  },
@@ -1450,48 +1455,48 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1450
1455
  2
1451
1456
  /* CLASS */
1452
1457
  ))
1453
- ])) : _("v-if", !0),
1454
- n("div", I1, [
1455
- P(i.$slots, "fileIcon", { file: a }, void 0, !0)
1456
- ]),
1458
+ ])) : f("v-if", !0),
1457
1459
  n("div", M1, [
1458
- n("p", S1, [
1459
- q(
1460
- b(a[u.name] || a.name) + " ",
1460
+ q(i.$slots, "fileIcon", { file: o }, void 0, !0)
1461
+ ]),
1462
+ n("div", S1, [
1463
+ n("p", D1, [
1464
+ O(
1465
+ x(o[u.name] || o.name) + " ",
1461
1466
  1
1462
1467
  /* TEXT */
1463
1468
  ),
1464
- a.percentage && a.percentage !== 100 ? (o(), r(
1469
+ o.percentage && o.percentage !== 100 ? (a(), r(
1465
1470
  "span",
1466
- D1,
1467
- "(" + b(a.percentage) + "%)",
1471
+ H1,
1472
+ "(" + x(o.percentage) + "%)",
1468
1473
  1
1469
1474
  /* TEXT */
1470
- )) : _("v-if", !0)
1475
+ )) : f("v-if", !0)
1471
1476
  ]),
1472
- a.percentage === 100 ? (o(), r(
1477
+ o.percentage === 100 ? (a(), r(
1473
1478
  "p",
1474
- H1,
1475
- b(c(W)(a.size / 1024 / 1024)) + "MB ",
1479
+ U1,
1480
+ x(c(W)(o.size / 1024 / 1024)) + "MB ",
1476
1481
  1
1477
1482
  /* TEXT */
1478
- )) : _("v-if", !0),
1479
- a.percentage && a.percentage !== 100 ? (o(), y(c(a3), {
1483
+ )) : f("v-if", !0),
1484
+ o.percentage && o.percentage !== 100 ? (a(), y(c(a3), {
1480
1485
  key: 1,
1481
1486
  "text-inside": "",
1482
- percentage: a.percentage,
1487
+ percentage: o.percentage,
1483
1488
  color: "var(--el-color-primary)",
1484
1489
  "striped-flow": "",
1485
1490
  striped: "",
1486
1491
  "show-text": !1
1487
- }, null, 8, ["percentage"])) : _("v-if", !0)
1492
+ }, null, 8, ["percentage"])) : f("v-if", !0)
1488
1493
  ])
1489
1494
  ]),
1490
- e.preview ? (o(), r(
1495
+ e.preview ? (a(), r(
1491
1496
  M,
1492
1497
  { key: 1 },
1493
1498
  [
1494
- e.preview || a.percentage === 100 ? (o(), y(
1499
+ e.preview || o.percentage === 100 ? (a(), y(
1495
1500
  c(S),
1496
1501
  {
1497
1502
  key: 0,
@@ -1501,7 +1506,7 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1501
1506
  {
1502
1507
  default: w(() => [
1503
1508
  m(c(j3), {
1504
- onClick: (g) => R(a)
1509
+ onClick: (_) => P(o)
1505
1510
  }, null, 8, ["onClick"])
1506
1511
  ]),
1507
1512
  _: 2
@@ -1509,7 +1514,7 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1509
1514
  },
1510
1515
  1024
1511
1516
  /* DYNAMIC_SLOTS */
1512
- )) : _("v-if", !0),
1517
+ )) : f("v-if", !0),
1513
1518
  m(
1514
1519
  c(S),
1515
1520
  {
@@ -1519,7 +1524,7 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1519
1524
  {
1520
1525
  default: w(() => [
1521
1526
  m(c(M3), {
1522
- onClick: (g) => p3(a)
1527
+ onClick: (_) => p3(o)
1523
1528
  }, null, 8, ["onClick"])
1524
1529
  ]),
1525
1530
  _: 2
@@ -1531,20 +1536,20 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1531
1536
  ],
1532
1537
  64
1533
1538
  /* STABLE_FRAGMENT */
1534
- )) : (o(), r("div", U1, [
1535
- a.status === "success" ? (o(), r(
1539
+ )) : (a(), r("div", A1, [
1540
+ o.status === "success" ? (a(), r(
1536
1541
  M,
1537
1542
  { key: 0 },
1538
1543
  [
1539
1544
  m(c(C), {
1540
- onClick: (g) => R(a),
1545
+ onClick: (_) => P(o),
1541
1546
  name: "iksvg_yulan",
1542
1547
  title: "预览",
1543
1548
  bg: "",
1544
1549
  size: "default"
1545
1550
  }, null, 8, ["onClick"]),
1546
1551
  m(c(C), {
1547
- onClick: (g) => j(a),
1552
+ onClick: (_) => j(o),
1548
1553
  warning: "",
1549
1554
  name: "iksvg_shanchu",
1550
1555
  title: "删除",
@@ -1554,9 +1559,9 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1554
1559
  ],
1555
1560
  64
1556
1561
  /* STABLE_FRAGMENT */
1557
- )) : (o(), y(c(C), {
1562
+ )) : (a(), y(c(C), {
1558
1563
  key: 1,
1559
- onClick: (g) => j(a),
1564
+ onClick: (_) => j(o),
1560
1565
  warning: "",
1561
1566
  name: "iksvg_guanbi",
1562
1567
  size: "default",
@@ -1575,13 +1580,20 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1575
1580
  bg: "",
1576
1581
  size: 40
1577
1582
  }),
1578
- n(
1579
- "span",
1580
- null,
1581
- b(e.title),
1582
- 1
1583
- /* TEXT */
1584
- )
1583
+ n("span", null, [
1584
+ O(
1585
+ x(e.title) + " ",
1586
+ 1
1587
+ /* TEXT */
1588
+ ),
1589
+ s.value.length >= e.limit ? (a(), r(
1590
+ "span",
1591
+ $1,
1592
+ "已达到上传最大文件数量限制(" + x(e.limit) + "个)",
1593
+ 1
1594
+ /* TEXT */
1595
+ )) : f("v-if", !0)
1596
+ ])
1585
1597
  ]),
1586
1598
  m(c(C), {
1587
1599
  name: "iksvg_daoru",
@@ -1593,26 +1605,26 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1593
1605
  ]),
1594
1606
  _: 3
1595
1607
  /* FORWARDED */
1596
- }, 16, ["file-list", "accept", "action", "on-change", "multiple", "headers", "limit"]))
1608
+ }, 16, ["file-list", "accept", "action", "disabled", "on-change", "multiple", "headers", "limit"]))
1597
1609
  ],
1598
1610
  64
1599
1611
  /* STABLE_FRAGMENT */
1600
1612
  )),
1601
1613
  m(c(t1), {
1602
- modelValue: O.value,
1603
- "onUpdate:modelValue": h[2] || (h[2] = (a) => O.value = a),
1614
+ modelValue: N.value,
1615
+ "onUpdate:modelValue": h[2] || (h[2] = (o) => N.value = o),
1604
1616
  "load-url": e.loadUrl,
1605
1617
  url: ($ = I.value) == null ? void 0 : $.url,
1606
1618
  "kk-url": e.kkUrl,
1607
1619
  "file-name": (V = I.value) == null ? void 0 : V.name
1608
1620
  }, null, 8, ["modelValue", "load-url", "url", "kk-url", "file-name"]),
1609
- (U = I.value) != null && U.url && N.value ? (o(), y(v, {
1621
+ (U = I.value) != null && U.url && R.value ? (a(), y(p, {
1610
1622
  key: 1,
1611
- onClose: h[3] || (h[3] = (a) => (I.value = null, N.value = !1)),
1623
+ onClose: h[3] || (h[3] = (o) => (I.value = null, R.value = !1)),
1612
1624
  ref_key: "previewImgRef",
1613
1625
  ref: h3,
1614
1626
  "url-list": [(A = I.value) == null ? void 0 : A.url]
1615
- }, null, 8, ["url-list"])) : _("v-if", !0)
1627
+ }, null, 8, ["url-list"])) : f("v-if", !0)
1616
1628
  ],
1617
1629
  64
1618
1630
  /* STABLE_FRAGMENT */
@@ -1620,8 +1632,8 @@ const t1 = X(e1), s1 = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
1620
1632
  };
1621
1633
  }
1622
1634
  });
1623
- const E1 = /* @__PURE__ */ R6(A1, [["__scopeId", "data-v-3f17754e"]]), O1 = X(E1);
1635
+ const L1 = /* @__PURE__ */ R6(E1, [["__scopeId", "data-v-67b5cebe"]]), N1 = X(L1);
1624
1636
  export {
1625
- O1 as IkUploadFile,
1626
- O1 as default
1637
+ N1 as IkUploadFile,
1638
+ N1 as default
1627
1639
  };