iking-web-ui-pro 0.2.0 → 0.2.1

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,4 +1,4 @@
1
- import { defineComponent as F, openBlock as s, createElementBlock as h, createElementVNode as c, computed as O, mergeModels as j, useModel as e3, ref as $, reactive as A3, watch as g3, nextTick as K, resolveComponent as P, Fragment as E, createBlock as z, createCommentVNode as k, createVNode as A, unref as u, withCtx as y, normalizeClass as V, normalizeStyle as H, createTextVNode as U, toDisplayString as C, h as w3, mergeProps as X, createSlots as h3, renderSlot as R, renderList as y3, withDirectives as _3, vShow as k3, pushScopeId as z3, popScopeId as b3 } from "vue";
1
+ import { defineComponent as F, openBlock as s, createElementBlock as h, createElementVNode as c, computed as U, mergeModels as j, useModel as e3, ref as $, reactive as A3, watch as g3, nextTick as K, resolveComponent as P, Fragment as E, createBlock as b, createCommentVNode as k, createVNode as A, unref as u, withCtx as w, normalizeClass as V, normalizeStyle as H, createTextVNode as O, toDisplayString as C, h as y3, mergeProps as X, createSlots as h3, renderSlot as R, renderList as w3, withDirectives as _3, vShow as k3, pushScopeId as b3, popScopeId as z3 } from "vue";
2
2
  import { ElUpload as l3, ElButton as F3, ElProgress as a3, ElTooltip as c3, ElIcon as M, ElMessage as Q } from "element-plus";
3
3
  import { buildUUID as C3, ikColor as x3, ikFile as S3 } from "iking-utils-pro";
4
4
  const q = (e, t) => {
@@ -81,7 +81,7 @@ var I3 = /* @__PURE__ */ F({
81
81
  })
82
82
  ]));
83
83
  }
84
- }), U3 = H3, O3 = /* @__PURE__ */ F({
84
+ }), O3 = H3, U3 = /* @__PURE__ */ F({
85
85
  name: "WarningFilled",
86
86
  __name: "warning-filled",
87
87
  setup(e) {
@@ -95,8 +95,8 @@ var I3 = /* @__PURE__ */ F({
95
95
  })
96
96
  ]));
97
97
  }
98
- }), q3 = O3;
99
- const b = (e, t) => {
98
+ }), q3 = U3;
99
+ const z = (e, t) => {
100
100
  var a, l, g, m;
101
101
  const o = (a = e == null ? void 0 : e.response) != null && a.data ? d3((g = (l = e == null ? void 0 : e.response) == null ? void 0 : l.data) == null ? void 0 : g.suffix) : ((m = e.raw) == null ? void 0 : m.type) || d3(e[t.suffix]), r = o == null ? void 0 : o.toLowerCase(), n = {
102
102
  sheet: "excel",
@@ -462,7 +462,7 @@ const b = (e, t) => {
462
462
  ), g6 = [
463
463
  m6,
464
464
  A6
465
- ], w6 = {
465
+ ], y6 = {
466
466
  key: 7,
467
467
  t: "1686300225262",
468
468
  class: "icon",
@@ -472,7 +472,7 @@ const b = (e, t) => {
472
472
  "p-id": "8912",
473
473
  width: "200",
474
474
  height: "200"
475
- }, y6 = /* @__PURE__ */ c(
475
+ }, w6 = /* @__PURE__ */ c(
476
476
  "path",
477
477
  {
478
478
  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 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",
@@ -493,9 +493,9 @@ const b = (e, t) => {
493
493
  -1
494
494
  /* HOISTED */
495
495
  ), k6 = [
496
- y6,
496
+ w6,
497
497
  _6
498
- ], z6 = {
498
+ ], b6 = {
499
499
  key: 8,
500
500
  t: "1692251753690",
501
501
  class: "icon",
@@ -505,7 +505,7 @@ const b = (e, t) => {
505
505
  "p-id": "4336",
506
506
  width: "200",
507
507
  height: "200"
508
- }, b6 = /* @__PURE__ */ c(
508
+ }, z6 = /* @__PURE__ */ c(
509
509
  "path",
510
510
  {
511
511
  d: "M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",
@@ -537,7 +537,7 @@ const b = (e, t) => {
537
537
  -1
538
538
  /* HOISTED */
539
539
  ), x6 = [
540
- b6,
540
+ z6,
541
541
  F6,
542
542
  C6
543
543
  ], S6 = {
@@ -637,11 +637,11 @@ const b = (e, t) => {
637
637
  null,
638
638
  -1
639
639
  /* HOISTED */
640
- ), U6 = [
640
+ ), O6 = [
641
641
  M6,
642
642
  E6,
643
643
  H6
644
- ], O6 = {
644
+ ], U6 = {
645
645
  key: 11,
646
646
  t: "1686300037564",
647
647
  class: "icon",
@@ -706,8 +706,8 @@ const b = (e, t) => {
706
706
  }
707
707
  },
708
708
  setup(e) {
709
- const t = e, o = O(() => t.file ? b(t.file, t.fields) : t.type);
710
- return (r, n) => o.value === "image" ? (s(), h("svg", j3, Z3)) : o.value === "zip" ? (s(), h("svg", Q3, X3)) : o.value === "ppt" ? (s(), h("svg", Y3, n6)) : o.value === "word" ? (s(), h("svg", o6, l6)) : o.value === "pdf" ? (s(), h("svg", a6, d6)) : o.value === "txt" ? (s(), h("svg", u6, v6)) : o.value === "audio" ? (s(), h("svg", f6, g6)) : o.value === "video" ? (s(), h("svg", w6, k6)) : o.value === "excel" ? (s(), h("svg", z6, x6)) : o.value === "exe" ? (s(), h("svg", S6, $6)) : o.value === "json" ? (s(), h("svg", R6, U6)) : (s(), h("svg", O6, j6));
709
+ const t = e, o = U(() => t.file ? z(t.file, t.fields) : t.type);
710
+ return (r, n) => o.value === "image" ? (s(), h("svg", j3, Z3)) : o.value === "zip" ? (s(), h("svg", Q3, X3)) : o.value === "ppt" ? (s(), h("svg", Y3, n6)) : o.value === "word" ? (s(), h("svg", o6, l6)) : o.value === "pdf" ? (s(), h("svg", a6, d6)) : o.value === "txt" ? (s(), h("svg", u6, v6)) : o.value === "audio" ? (s(), h("svg", f6, g6)) : o.value === "video" ? (s(), h("svg", y6, k6)) : o.value === "excel" ? (s(), h("svg", b6, x6)) : o.value === "exe" ? (s(), h("svg", S6, $6)) : o.value === "json" ? (s(), h("svg", R6, O6)) : (s(), h("svg", U6, j6));
711
711
  }
712
712
  }), W = (e, t) => {
713
713
  const o = e.__vccOpts || e;
@@ -751,7 +751,7 @@ const b = (e, t) => {
751
751
  }),
752
752
  emits: ["update:show"],
753
753
  setup(e) {
754
- const t = e, o = e3(e, "show"), r = O(() => ({
754
+ const t = e, o = e3(e, "show"), r = U(() => ({
755
755
  name: "name",
756
756
  url: "url",
757
757
  suffix: "suffix",
@@ -762,14 +762,14 @@ const b = (e, t) => {
762
762
  office: !1,
763
763
  video: !1
764
764
  }), g = (d) => {
765
- var w, x;
765
+ var y, x;
766
766
  try {
767
- const _ = ((w = d == null ? void 0 : d.response) == null ? void 0 : w.data) || d, D = _[r.value.url] || (_ == null ? void 0 : _.id) || _.attachmentId, I = (x = _[r.value.suffix] || _.attachmentSuffix) == null ? void 0 : x.toLowerCase(), N = _[r.value.name] || (_ == null ? void 0 : _.attachmentName);
767
+ const _ = ((y = d == null ? void 0 : d.response) == null ? void 0 : y.data) || d, D = _[r.value.url] || (_ == null ? void 0 : _.id) || _.attachmentId, I = (x = _[r.value.suffix] || _.attachmentSuffix) == null ? void 0 : x.toLowerCase(), N = _[r.value.name] || (_ == null ? void 0 : _.attachmentName);
768
768
  if (a.value = {
769
769
  ...d,
770
770
  name: d[r.value.name],
771
771
  url: Y(t.loadUrl, D)
772
- }, d && b(d, r.value) === "image") {
772
+ }, d && z(d, r.value) === "image") {
773
773
  l.image = !0;
774
774
  return;
775
775
  } else if (t.onlyOfficeAccept.includes(I)) {
@@ -796,7 +796,7 @@ const b = (e, t) => {
796
796
  console.info("预览错误: ", _);
797
797
  }
798
798
  };
799
- g3([o, t.file], ([d, w]) => {
799
+ g3([o, t.file], ([d, y]) => {
800
800
  d && K(() => {
801
801
  g(t.file);
802
802
  });
@@ -804,16 +804,16 @@ const b = (e, t) => {
804
804
  const m = () => {
805
805
  o.value = !1, l.office = !1, l.image = !1, l.video = !1;
806
806
  };
807
- return (d, w) => {
807
+ return (d, y) => {
808
808
  var _, D;
809
809
  const x = P("el-image-viewer");
810
810
  return o.value ? (s(), h(
811
811
  E,
812
812
  { key: 0 },
813
813
  [
814
- (_ = a.value) != null && _.url && l.image ? (s(), z(x, {
814
+ (_ = a.value) != null && _.url && l.image ? (s(), b(x, {
815
815
  key: 0,
816
- onClose: w[0] || (w[0] = (I) => {
816
+ onClose: y[0] || (y[0] = (I) => {
817
817
  a.value = null, l.image = !1;
818
818
  }),
819
819
  ref: "previewImgRef",
@@ -822,7 +822,7 @@ const b = (e, t) => {
822
822
  k(" 文档类 "),
823
823
  A(u(le), {
824
824
  modelValue: l.office,
825
- "onUpdate:modelValue": w[1] || (w[1] = (I) => l.office = I),
825
+ "onUpdate:modelValue": y[1] || (y[1] = (I) => l.office = I),
826
826
  draggable: "",
827
827
  "no-footer": "",
828
828
  "no-header": "",
@@ -835,7 +835,7 @@ const b = (e, t) => {
835
835
  onClose: m,
836
836
  "modal-class": "ik-only-preview-dialog"
837
837
  }, {
838
- default: y(() => [
838
+ default: w(() => [
839
839
  A(u(ve), {
840
840
  configOptions: n.value,
841
841
  documentServerUrl: e.onlyofficeServer,
@@ -890,10 +890,10 @@ const W6 = q(P6), N6 = {
890
890
  tableIconType: { default: "icon" }
891
891
  },
892
892
  setup(e) {
893
- const t = e, o = O(() => {
893
+ const t = e, o = U(() => {
894
894
  var n, a, l;
895
895
  return /^http?:\/\//.test(t.name) ? "img" : /i-[^:]+:[^:]+/.test(t.name) ? "unocss" : (n = t.name) != null && n.startsWith("iksig") ? "iksig" : (a = t.name) != null && a.includes(":") ? "iconify" : (l = t.name) != null && l.startsWith("iksvg") ? "svg" : "i";
896
- }), r = O(() => {
896
+ }), r = U(() => {
897
897
  const n = [];
898
898
  if (t.flip)
899
899
  switch (t.flip) {
@@ -976,12 +976,12 @@ const W6 = q(P6), N6 = {
976
976
  ],
977
977
  6
978
978
  /* CLASS, STYLE */
979
- )) : (s(), z(l, {
979
+ )) : (s(), b(l, {
980
980
  key: 1,
981
981
  content: n.title,
982
982
  placement: "top"
983
983
  }, {
984
- default: y(() => [
984
+ default: w(() => [
985
985
  c(
986
986
  "i",
987
987
  {
@@ -1037,12 +1037,12 @@ const W6 = q(P6), N6 = {
1037
1037
  _: 1
1038
1038
  /* STABLE */
1039
1039
  }, 8, ["content"]))
1040
- ])) : (s(), z(g, {
1040
+ ])) : (s(), b(g, {
1041
1041
  key: 1,
1042
1042
  type: ["warning", "error"].includes(n.type) ? "danger" : ""
1043
1043
  }, {
1044
- default: y(() => [
1045
- U(
1044
+ default: w(() => [
1045
+ O(
1046
1046
  C(n.title),
1047
1047
  1
1048
1048
  /* TEXT */
@@ -1078,7 +1078,7 @@ const ee = /* @__PURE__ */ W(Y6, [["__scopeId", "data-v-7d95dbf5"]]), B = q(ee),
1078
1078
  size: 20,
1079
1079
  error: ""
1080
1080
  })
1081
- ])) : (s(), z(u(B), {
1081
+ ])) : (s(), b(u(B), {
1082
1082
  key: 1,
1083
1083
  error: "",
1084
1084
  name: "iksvg_guanbidanchuang",
@@ -1113,7 +1113,7 @@ const oe = /* @__PURE__ */ W(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
1113
1113
  r.value = !r.value;
1114
1114
  }, a = F({
1115
1115
  setup() {
1116
- return () => w3(oe, {
1116
+ return () => y3(oe, {
1117
1117
  showBg: t.showCloseBg,
1118
1118
  fullscreen: t.fullscreen
1119
1119
  });
@@ -1121,7 +1121,7 @@ const oe = /* @__PURE__ */ W(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
1121
1121
  });
1122
1122
  return (l, g) => {
1123
1123
  const m = P("el-dialog");
1124
- return s(), z(m, X({
1124
+ return s(), b(m, X({
1125
1125
  modelValue: o.value,
1126
1126
  "onUpdate:modelValue": g[0] || (g[0] = (d) => o.value = d)
1127
1127
  }, l.$attrs, {
@@ -1130,26 +1130,26 @@ const oe = /* @__PURE__ */ W(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
1130
1130
  fullscreen: r.value,
1131
1131
  "modal-class": "baseDialog"
1132
1132
  }), h3({
1133
- icon: y(() => [
1133
+ icon: w(() => [
1134
1134
  R(l.$slots, "title", {}, () => [
1135
- U(
1135
+ O(
1136
1136
  C(l.title),
1137
1137
  1
1138
1138
  /* TEXT */
1139
1139
  )
1140
1140
  ])
1141
1141
  ]),
1142
- header: y(() => [
1142
+ header: w(() => [
1143
1143
  c("div", ie, [
1144
1144
  R(l.$slots, "header", {}, () => [
1145
- U(
1145
+ O(
1146
1146
  C(l.title),
1147
1147
  1
1148
1148
  /* TEXT */
1149
1149
  )
1150
1150
  ])
1151
1151
  ]),
1152
- l.$attrs.showClose ? (s(), z(u(B), {
1152
+ l.$attrs.showClose ? (s(), b(u(B), {
1153
1153
  key: 0,
1154
1154
  onClick: n,
1155
1155
  name: r.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
@@ -1157,7 +1157,7 @@ const oe = /* @__PURE__ */ W(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
1157
1157
  title: r.value ? "退出全屏" : "全屏"
1158
1158
  }, null, 8, ["name", "title"])) : k("v-if", !0)
1159
1159
  ]),
1160
- default: y(() => [
1160
+ default: w(() => [
1161
1161
  R(l.$slots, "default")
1162
1162
  ]),
1163
1163
  _: 2
@@ -1165,7 +1165,7 @@ const oe = /* @__PURE__ */ W(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
1165
1165
  }, [
1166
1166
  l.$slots.footer ? {
1167
1167
  name: "footer",
1168
- fn: y(() => [
1168
+ fn: w(() => [
1169
1169
  R(l.$slots, "footer")
1170
1170
  ]),
1171
1171
  key: "0"
@@ -1182,22 +1182,22 @@ function ae(e, t, o, r) {
1182
1182
  });
1183
1183
  }
1184
1184
  return new (o || (o = Promise))(function(a, l) {
1185
- function g(w) {
1185
+ function g(y) {
1186
1186
  try {
1187
- d(r.next(w));
1187
+ d(r.next(y));
1188
1188
  } catch (x) {
1189
1189
  l(x);
1190
1190
  }
1191
1191
  }
1192
- function m(w) {
1192
+ function m(y) {
1193
1193
  try {
1194
- d(r.throw(w));
1194
+ d(r.throw(y));
1195
1195
  } catch (x) {
1196
1196
  l(x);
1197
1197
  }
1198
1198
  }
1199
- function d(w) {
1200
- w.done ? a(w.value) : n(w.value).then(g, m);
1199
+ function d(y) {
1200
+ y.done ? a(y.value) : n(y.value).then(g, m);
1201
1201
  }
1202
1202
  d((r = r.apply(e, t || [])).next());
1203
1203
  });
@@ -1212,8 +1212,8 @@ function ce(e, t) {
1212
1212
  return this;
1213
1213
  }), l;
1214
1214
  function g(d) {
1215
- return function(w) {
1216
- return m([d, w]);
1215
+ return function(y) {
1216
+ return m([d, y]);
1217
1217
  };
1218
1218
  }
1219
1219
  function m(d) {
@@ -1257,8 +1257,8 @@ function ce(e, t) {
1257
1257
  continue;
1258
1258
  }
1259
1259
  d = t.call(e, o);
1260
- } catch (w) {
1261
- d = [6, w], n = 0;
1260
+ } catch (y) {
1261
+ d = [6, y], n = 0;
1262
1262
  } finally {
1263
1263
  r = a = 0;
1264
1264
  }
@@ -1571,7 +1571,7 @@ const pe = /* @__PURE__ */ F({
1571
1571
  ));
1572
1572
  }
1573
1573
  });
1574
- const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he), fe = (e) => (z3("data-v-7e9f70c8"), e = e(), b3(), e), me = { class: "ik-flie-list" }, Ae = { class: "name" }, ge = { key: 1 }, we = ["src"], ye = { class: "file-icon" }, _e = { class: "file-name-loading" }, ke = { class: "file-name" }, ze = { key: 0 }, be = {
1574
+ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he), fe = (e) => (b3("data-v-10a62ee9"), e = e(), z3(), e), me = { class: "ik-flie-list" }, Ae = { class: "name" }, ge = { key: 1 }, ye = ["src"], we = { class: "file-icon" }, _e = { class: "file-name-loading" }, ke = { class: "file-name" }, be = { key: 0 }, ze = {
1575
1575
  key: 0,
1576
1576
  class: "file-size"
1577
1577
  }, Fe = { class: "name" }, Ce = { class: "file-name-loading" }, xe = { class: "file-name" }, Se = { class: "file-size" }, Be = { class: "operate-btn" }, Ie = { class: "card" }, De = { class: "title" }, Ve = /* @__PURE__ */ fe(() => /* @__PURE__ */ c(
@@ -1583,7 +1583,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1583
1583
  null,
1584
1584
  -1
1585
1585
  /* HOISTED */
1586
- )), $e = { class: "ik-flie-list" }, Re = { class: "name" }, Me = { key: 1 }, Ee = ["src"], He = { class: "file-icon" }, Ue = { class: "file-name-loading" }, Oe = { class: "file-name" }, qe = { key: 0 }, Le = {
1586
+ )), $e = { class: "ik-flie-list" }, Re = { class: "name" }, Me = { key: 1 }, Ee = ["src"], He = { class: "file-icon" }, Oe = { class: "file-name-loading" }, Ue = { class: "file-name" }, qe = { key: 0 }, Le = {
1587
1587
  key: 0,
1588
1588
  class: "file-size"
1589
1589
  }, Te = { key: 0 }, je = /* @__PURE__ */ F({
@@ -1711,6 +1711,11 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1711
1711
  type: String,
1712
1712
  default: ""
1713
1713
  },
1714
+ // onlyoffice公共配置
1715
+ onlyOfficeConfig: {
1716
+ type: Object,
1717
+ default: () => ({})
1718
+ },
1714
1719
  // onlyOffice的加密token
1715
1720
  jwtToken: {
1716
1721
  type: String,
@@ -1733,7 +1738,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1733
1738
  size: "size"
1734
1739
  },
1735
1740
  ...o.defaultFileds
1736
- }, g = O(() => o.size), m = $(null), d = $([]), w = $({}), x = $(!1), _ = (p) => {
1741
+ }, g = U(() => o.size), m = $(null), d = $([]), y = $({}), x = $(!1), _ = (p) => {
1737
1742
  const v = p.size / 1024 / 1024;
1738
1743
  return v < g.value ? !0 : (r("outSize"), Q({
1739
1744
  message: `上传文件大小(${v.toFixed(4)}MB)超出允许最大值(${o.size}MB),请重新选择`,
@@ -1774,7 +1779,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1774
1779
  d.value.push(v), r("error", p, v, i);
1775
1780
  }, G = (p) => {
1776
1781
  var v, i;
1777
- w.value = {
1782
+ y.value = {
1778
1783
  ...p,
1779
1784
  name: p[l.name],
1780
1785
  url: Y(
@@ -1799,7 +1804,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1799
1804
  }
1800
1805
  }, m3 = (p, v) => {
1801
1806
  d.value.splice(v, 1);
1802
- }, Z = O(
1807
+ }, Z = U(
1803
1808
  () => n.value.length >= o.limit || o.disabled
1804
1809
  );
1805
1810
  return (p, v) => (s(), h(
@@ -1810,7 +1815,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1810
1815
  E,
1811
1816
  { key: 0 },
1812
1817
  [
1813
- e.type === "button" ? (s(), z(u(l3), X({
1818
+ e.type === "button" ? (s(), b(u(l3), X({
1814
1819
  key: 0,
1815
1820
  class: "ik-file-upload"
1816
1821
  }, p.$attrs, {
@@ -1830,13 +1835,13 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1830
1835
  "on-success": o3,
1831
1836
  "on-error": i3
1832
1837
  }), {
1833
- trigger: y(() => [
1834
- p.$slots.trigger ? R(p.$slots, "trigger", { key: 0 }, void 0, !0) : (s(), z(u(F3), {
1838
+ trigger: w(() => [
1839
+ p.$slots.trigger ? R(p.$slots, "trigger", { key: 0 }, void 0, !0) : (s(), b(u(F3), {
1835
1840
  key: 1,
1836
1841
  disabled: Z.value
1837
1842
  }, h3({
1838
- default: y(() => [
1839
- U(
1843
+ default: w(() => [
1844
+ O(
1840
1845
  " " + C(e.title),
1841
1846
  1
1842
1847
  /* TEXT */
@@ -1847,7 +1852,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1847
1852
  }, [
1848
1853
  e.showIcon ? {
1849
1854
  name: "icon",
1850
- fn: y(() => [
1855
+ fn: w(() => [
1851
1856
  A(u(B), {
1852
1857
  name: "iksvg_daoru",
1853
1858
  disabled: Z.value
@@ -1857,24 +1862,24 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1857
1862
  } : void 0
1858
1863
  ]), 1032, ["disabled"]))
1859
1864
  ]),
1860
- file: y(({ file: i }) => [
1865
+ file: w(({ file: i }) => [
1861
1866
  c("div", me, [
1862
1867
  c("div", Ae, [
1863
- !p.$slots.fileIcon && (!e.customIconData[u(b)(i, l)] || !e.customIconData[u(b)(i, l)][e.customIconFields.icon]) ? (s(), z(u3, {
1868
+ !p.$slots.fileIcon && (!e.customIconData[u(z)(i, l)] || !e.customIconData[u(z)(i, l)][e.customIconFields.icon]) ? (s(), b(u3, {
1864
1869
  key: 0,
1865
- type: u(b)(i, l)
1866
- }, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(b)(i, l)] && e.customIconData[u(b)(i, l)][e.customIconFields.icon] ? (s(), h("div", ge, [
1867
- e.customIconData[u(b)(i, l)][e.customIconFields.type] === "img" ? (s(), h("img", {
1870
+ type: u(z)(i, l)
1871
+ }, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(z)(i, l)] && e.customIconData[u(z)(i, l)][e.customIconFields.icon] ? (s(), h("div", ge, [
1872
+ e.customIconData[u(z)(i, l)][e.customIconFields.type] === "img" ? (s(), h("img", {
1868
1873
  key: 0,
1869
- src: e.customIconData[u(b)(i, l)][e.customIconFields.icon],
1874
+ src: e.customIconData[u(z)(i, l)][e.customIconFields.icon],
1870
1875
  alt: "",
1871
1876
  class: "file-img-icon"
1872
- }, null, 8, we)) : (s(), h(
1877
+ }, null, 8, ye)) : (s(), h(
1873
1878
  "span",
1874
1879
  {
1875
1880
  key: 1,
1876
1881
  class: V([
1877
- e.customIconData[u(b)(i, l)][e.customIconFields.icon],
1882
+ e.customIconData[u(z)(i, l)][e.customIconFields.icon],
1878
1883
  "file-icon-size"
1879
1884
  ])
1880
1885
  },
@@ -1883,19 +1888,19 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1883
1888
  /* CLASS */
1884
1889
  ))
1885
1890
  ])) : k("v-if", !0),
1886
- c("div", ye, [
1891
+ c("div", we, [
1887
1892
  R(p.$slots, "fileIcon", { file: i }, void 0, !0)
1888
1893
  ]),
1889
1894
  c("div", _e, [
1890
1895
  c("p", ke, [
1891
- U(
1896
+ O(
1892
1897
  C(i[l.name] || i.name) + " ",
1893
1898
  1
1894
1899
  /* TEXT */
1895
1900
  ),
1896
1901
  i.percentage && i.status === "uploading" ? (s(), h(
1897
1902
  "span",
1898
- ze,
1903
+ be,
1899
1904
  "(" + C(i.percentage) + "%)",
1900
1905
  1
1901
1906
  /* TEXT */
@@ -1903,12 +1908,12 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1903
1908
  ]),
1904
1909
  i.status === "success" ? (s(), h(
1905
1910
  "p",
1906
- be,
1911
+ ze,
1907
1912
  C(u(J)(i.size / 1024 / 1024)) + "MB ",
1908
1913
  1
1909
1914
  /* TEXT */
1910
1915
  )) : k("v-if", !0),
1911
- i.percentage && i.status === "uploading" ? (s(), z(u(a3), {
1916
+ i.percentage && i.status === "uploading" ? (s(), b(u(a3), {
1912
1917
  key: 1,
1913
1918
  "text-inside": "",
1914
1919
  percentage: i.percentage,
@@ -1940,7 +1945,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1940
1945
  ],
1941
1946
  64
1942
1947
  /* STABLE_FRAGMENT */
1943
- )) : (s(), z(u(B), {
1948
+ )) : (s(), b(u(B), {
1944
1949
  key: 1,
1945
1950
  onClick: (f) => L(i),
1946
1951
  error: "",
@@ -1952,21 +1957,21 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1952
1957
  ])
1953
1958
  ])
1954
1959
  ]),
1955
- default: y(() => {
1960
+ default: w(() => {
1956
1961
  var i;
1957
1962
  return [
1958
- !e.preview && e.tip ? (s(), z(u(c3), {
1963
+ !e.preview && e.tip ? (s(), b(u(c3), {
1959
1964
  key: 0,
1960
1965
  effect: "dark",
1961
1966
  content: o.tipText || "",
1962
1967
  "popper-class": "_ik_web_ui_file-help-tooltip"
1963
1968
  }, {
1964
- default: y(() => [
1969
+ default: w(() => [
1965
1970
  A(u(M), {
1966
1971
  size: 23,
1967
1972
  class: "_ik_web_ui_file_help_icon"
1968
1973
  }, {
1969
- default: y(() => [
1974
+ default: w(() => [
1970
1975
  A(u(r3))
1971
1976
  ]),
1972
1977
  _: 1
@@ -1979,7 +1984,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1979
1984
  (i = d.value) != null && i.length ? (s(!0), h(
1980
1985
  E,
1981
1986
  { key: 1 },
1982
- y3(d.value, (f, S) => (s(), h("div", {
1987
+ w3(d.value, (f, S) => (s(), h("div", {
1983
1988
  class: "ik-error-flie-list",
1984
1989
  key: f.uid
1985
1990
  }, [
@@ -1989,7 +1994,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
1989
1994
  class: "info",
1990
1995
  style: { "vertical-align": "middle" }
1991
1996
  }, {
1992
- default: y(() => [
1997
+ default: w(() => [
1993
1998
  A(u(q3))
1994
1999
  ]),
1995
2000
  _: 1
@@ -2022,7 +2027,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2022
2027
  title: "重新上传",
2023
2028
  class: "primary"
2024
2029
  }, {
2025
- default: y(() => [
2030
+ default: w(() => [
2026
2031
  A(u(E3))
2027
2032
  ]),
2028
2033
  _: 2
@@ -2033,7 +2038,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2033
2038
  onClick: (T) => m3(f, S),
2034
2039
  title: "删除"
2035
2040
  }, {
2036
- default: y(() => [
2041
+ default: w(() => [
2037
2042
  A(u(D3))
2038
2043
  ]),
2039
2044
  _: 2
@@ -2053,7 +2058,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2053
2058
  }),
2054
2059
  _: 3
2055
2060
  /* FORWARDED */
2056
- }, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(), z(u(l3), X({
2061
+ }, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(), b(u(l3), X({
2057
2062
  key: 1,
2058
2063
  "file-list": n.value,
2059
2064
  "onUpdate:fileList": v[1] || (v[1] = (i) => n.value = i),
@@ -2074,16 +2079,16 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2074
2079
  "on-error": i3,
2075
2080
  "on-change": D
2076
2081
  }), {
2077
- file: y(({ file: i }) => [
2082
+ file: w(({ file: i }) => [
2078
2083
  c("div", $e, [
2079
2084
  c("div", Re, [
2080
- !p.$slots.fileIcon && (!e.customIconData[u(b)(i, l)] || !e.customIconData[u(b)(i, l)][e.customIconFields.icon]) ? (s(), z(u3, {
2085
+ !p.$slots.fileIcon && (!e.customIconData[u(z)(i, l)] || !e.customIconData[u(z)(i, l)][e.customIconFields.icon]) ? (s(), b(u3, {
2081
2086
  key: 0,
2082
- type: u(b)(i, l)
2083
- }, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(b)(i, l)] && e.customIconData[u(b)(i, l)][e.customIconFields.icon] ? (s(), h("div", Me, [
2084
- e.customIconData[u(b)(i, l)][e.customIconFields.type] === "img" ? (s(), h("img", {
2087
+ type: u(z)(i, l)
2088
+ }, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(z)(i, l)] && e.customIconData[u(z)(i, l)][e.customIconFields.icon] ? (s(), h("div", Me, [
2089
+ e.customIconData[u(z)(i, l)][e.customIconFields.type] === "img" ? (s(), h("img", {
2085
2090
  key: 0,
2086
- src: e.customIconData[u(b)(i, l)][e.customIconFields.icon],
2091
+ src: e.customIconData[u(z)(i, l)][e.customIconFields.icon],
2087
2092
  alt: "",
2088
2093
  class: "file-img-icon"
2089
2094
  }, null, 8, Ee)) : (s(), h(
@@ -2091,7 +2096,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2091
2096
  {
2092
2097
  key: 1,
2093
2098
  class: V([
2094
- e.customIconData[u(b)(i, l)][e.customIconFields.icon],
2099
+ e.customIconData[u(z)(i, l)][e.customIconFields.icon],
2095
2100
  "file-icon-size"
2096
2101
  ])
2097
2102
  },
@@ -2103,9 +2108,9 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2103
2108
  c("div", He, [
2104
2109
  R(p.$slots, "fileIcon", { file: i }, void 0, !0)
2105
2110
  ]),
2106
- c("div", Ue, [
2107
- c("p", Oe, [
2108
- U(
2111
+ c("div", Oe, [
2112
+ c("p", Ue, [
2113
+ O(
2109
2114
  C(i[l.name] || i.name) + " ",
2110
2115
  1
2111
2116
  /* TEXT */
@@ -2125,7 +2130,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2125
2130
  1
2126
2131
  /* TEXT */
2127
2132
  )) : k("v-if", !0),
2128
- i.percentage && i.status === "uploading" ? (s(), z(u(a3), {
2133
+ i.percentage && i.status === "uploading" ? (s(), b(u(a3), {
2129
2134
  key: 1,
2130
2135
  "text-inside": "",
2131
2136
  percentage: i.percentage,
@@ -2138,7 +2143,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2138
2143
  E,
2139
2144
  { key: 1 },
2140
2145
  [
2141
- e.preview || i.percentage === 100 ? (s(), z(
2146
+ e.preview || i.percentage === 100 ? (s(), b(
2142
2147
  u(M),
2143
2148
  {
2144
2149
  key: 0,
@@ -2146,8 +2151,8 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2146
2151
  class: "primary"
2147
2152
  },
2148
2153
  {
2149
- default: y(() => [
2150
- A(u(U3), {
2154
+ default: w(() => [
2155
+ A(u(O3), {
2151
2156
  onClick: (f) => G(i)
2152
2157
  }, null, 8, ["onClick"])
2153
2158
  ]),
@@ -2164,7 +2169,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2164
2169
  class: "primary"
2165
2170
  },
2166
2171
  {
2167
- default: y(() => [
2172
+ default: w(() => [
2168
2173
  A(u($3), {
2169
2174
  onClick: (f) => v3(i)
2170
2175
  }, null, 8, ["onClick"])
@@ -2201,7 +2206,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2201
2206
  ],
2202
2207
  64
2203
2208
  /* STABLE_FRAGMENT */
2204
- )) : (s(), z(u(B), {
2209
+ )) : (s(), b(u(B), {
2205
2210
  key: 1,
2206
2211
  onClick: (f) => L(i),
2207
2212
  error: "",
@@ -2213,12 +2218,12 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2213
2218
  ]))
2214
2219
  ])
2215
2220
  ]),
2216
- default: y(() => [
2221
+ default: w(() => [
2217
2222
  c("div", Ie, [
2218
2223
  c("div", De, [
2219
2224
  e.imageMode ? R(p.$slots, "image", { key: 0 }, () => [
2220
2225
  Ve
2221
- ], !0) : e.showIcon ? (s(), z(u(B), {
2226
+ ], !0) : e.showIcon ? (s(), b(u(B), {
2222
2227
  key: 1,
2223
2228
  name: "iksvg_img_shangchuanhetongfujianbeifen",
2224
2229
  type: "primary",
@@ -2226,23 +2231,23 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2226
2231
  size: 40
2227
2232
  })) : k("v-if", !0),
2228
2233
  c("span", null, [
2229
- U(
2234
+ O(
2230
2235
  C(e.title) + " ",
2231
2236
  1
2232
2237
  /* TEXT */
2233
2238
  ),
2234
- !e.preview && e.tip ? (s(), z(u(c3), {
2239
+ !e.preview && e.tip ? (s(), b(u(c3), {
2235
2240
  key: 0,
2236
2241
  effect: "dark",
2237
2242
  content: o.tipText || "",
2238
2243
  "popper-class": "_ik_web_ui_file-help-tooltip"
2239
2244
  }, {
2240
- default: y(() => [
2245
+ default: w(() => [
2241
2246
  A(u(M), {
2242
2247
  size: 23,
2243
2248
  class: "_ik_web_ui_file_help_icon"
2244
2249
  }, {
2245
- default: y(() => [
2250
+ default: w(() => [
2246
2251
  A(u(r3))
2247
2252
  ]),
2248
2253
  _: 1
@@ -2273,16 +2278,17 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
2273
2278
  show: x.value,
2274
2279
  "onUpdate:show": v[2] || (v[2] = (i) => x.value = i),
2275
2280
  loadUrl: e.loadUrl,
2276
- file: w.value,
2277
- onlyofficeServer: e.onlyofficeServer
2278
- }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer"])
2281
+ file: y.value,
2282
+ onlyofficeServer: e.onlyofficeServer,
2283
+ onlyOfficeConfig: e.onlyOfficeConfig
2284
+ }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig"])
2279
2285
  ],
2280
2286
  64
2281
2287
  /* STABLE_FRAGMENT */
2282
2288
  ));
2283
2289
  }
2284
2290
  });
2285
- const Pe = /* @__PURE__ */ W(je, [["__scopeId", "data-v-7e9f70c8"]]), Ze = q(Pe);
2291
+ const Pe = /* @__PURE__ */ W(je, [["__scopeId", "data-v-10a62ee9"]]), Ze = q(Pe);
2286
2292
  export {
2287
2293
  Ze as IkUploadFile,
2288
2294
  Ze as default