iking-web-ui-pro 0.2.13 → 0.2.15

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,38 +1,38 @@
1
- import { inject as I, computed as m, defineComponent as F, mergeModels as Y, useModel as Z, ref as D, reactive as J, watch as Q, nextTick as e3, resolveComponent as E, openBlock as r, createElementBlock as u, Fragment as O, createBlock as R, createCommentVNode as V, createVNode as k, unref as g, withCtx as S, createElementVNode as c, normalizeClass as z, normalizeStyle as x, createTextVNode as U, toDisplayString as $, h as t3, mergeProps as o3, createSlots as n3, renderSlot as M, renderList as W, withModifiers as G } from "vue";
1
+ import { inject as I, computed as m, defineComponent as F, mergeModels as Y, useModel as Z, ref as D, reactive as J, watch as Q, nextTick as e3, resolveComponent as E, openBlock as r, createElementBlock as u, Fragment as O, createBlock as R, createCommentVNode as V, createVNode as k, unref as g, withCtx as S, createElementVNode as c, normalizeClass as z, normalizeStyle as x, createTextVNode as U, toDisplayString as $, h as t3, mergeProps as n3, createSlots as o3, renderSlot as M, renderList as W, withModifiers as G } from "vue";
2
2
  import { buildUUID as i3, ikColor as s3, paramType as l3, ikFile as a3 } from "iking-utils-pro";
3
- const A = (t, o) => {
4
- if (t.install = (n) => {
5
- for (const e of [t, ...Object.values(o ?? {})])
6
- n.component(e.name, e);
7
- }, o)
8
- for (const [n, e] of Object.entries(o))
9
- t[n] = e;
3
+ const A = (t, n) => {
4
+ if (t.install = (o) => {
5
+ for (const e of [t, ...Object.values(n ?? {})])
6
+ o.component(e.name, e);
7
+ }, n)
8
+ for (const [o, e] of Object.entries(n))
9
+ t[o] = e;
10
10
  return t;
11
- }, L = (t, o) => {
12
- const n = t.__vccOpts || t;
13
- for (const [e, l] of o)
14
- n[e] = l;
15
- return n;
16
- }, c3 = (t, o = 2) => {
11
+ }, L = (t, n) => {
12
+ const o = t.__vccOpts || t;
13
+ for (const [e, l] of n)
14
+ o[e] = l;
15
+ return o;
16
+ }, c3 = (t, n = 2) => {
17
17
  if (t === void 0)
18
18
  return "";
19
19
  if (t === 0)
20
20
  return "0 B";
21
- const n = ["B", "KB", "MB", "GB", "TB"], e = Math.floor(Math.log(t) / Math.log(1024));
21
+ const o = ["B", "KB", "MB", "GB", "TB"], e = Math.floor(Math.log(t) / Math.log(1024));
22
22
  let l = t / Math.pow(1024, e);
23
- return (l % 1 === 0 ? l.toFixed(o || 0) : l.toFixed(o)) + " " + n[e];
24
- }, T = (t, o) => o ? o.startsWith("http") ? o : `${t || location.origin}${o}` : "", r3 = (t) => {
25
- const o = I("loadUrl"), n = m(() => t.loadUrl || t.fileUrl || (o == null ? void 0 : o.value)), e = I("uploadUrl"), l = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = I("token"), s = m(() => t.token || (i == null ? void 0 : i.value)), h = I("onlyofficeConfig"), f = m(() => t.onlyofficeConfig || (h == null ? void 0 : h.value)), a = I("userInfo"), p = m(() => t.userInfo || (a == null ? void 0 : a.value));
23
+ return (l % 1 === 0 ? l.toFixed(n || 0) : l.toFixed(n)) + " " + o[e];
24
+ }, T = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "", r3 = (t) => {
25
+ const n = I("loadUrl"), o = m(() => t.loadUrl || t.fileUrl || (n == null ? void 0 : n.value)), e = I("uploadUrl"), l = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = I("token"), s = m(() => t.token || (i == null ? void 0 : i.value)), h = I("onlyofficeConfig"), f = m(() => t.onlyofficeConfig || (h == null ? void 0 : h.value)), a = I("userInfo"), p = m(() => t.userInfo || (a == null ? void 0 : a.value));
26
26
  return {
27
- cLoadUrl: n,
27
+ cLoadUrl: o,
28
28
  cUploadUrl: l,
29
29
  cToken: s,
30
30
  cOnlyofficeConfig: f,
31
31
  cUserInfo: p
32
32
  };
33
- }, d3 = r3, j = (t, o) => {
33
+ }, d3 = r3, j = (t, n) => {
34
34
  var i, s, h, f;
35
- const n = (i = t == null ? void 0 : t.response) != null && i.data ? K((h = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : h.suffix) : ((f = t.raw) == null ? void 0 : f.type) || K(t[o.suffix]), e = n == null ? void 0 : n.toLowerCase(), l = {
35
+ const o = (i = t == null ? void 0 : t.response) != null && i.data ? K((h = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : h.suffix) : ((f = t.raw) == null ? void 0 : f.type) || K(t[n.suffix]), e = o == null ? void 0 : o.toLowerCase(), l = {
36
36
  sheet: "excel",
37
37
  excel: "excel",
38
38
  zip: "zip",
@@ -138,11 +138,11 @@ const A = (t, o) => {
138
138
  ".txt": "txt",
139
139
  ".pdf": "pdf"
140
140
  }, K = (t) => {
141
- const o = t == null ? void 0 : t.toLocaleLowerCase(), n = o != null && o.startsWith(".") ? o : `.${o}`;
142
- return n && u3[n] || "unknow";
141
+ const n = t == null ? void 0 : t.toLocaleLowerCase(), o = n != null && n.startsWith(".") ? n : `.${n}`;
142
+ return o && u3[o] || "unknow";
143
143
  }, v3 = (t) => {
144
- let o = "", n = ["doc", "docx"], e = ["xls", "xlsx"], l = ["ppt", "pptx"], i = ["pdf"];
145
- return n.includes(t) && (o = "word"), e.includes(t) && (o = "cell"), l.includes(t) && (o = "slide"), i.includes(t) && (o = "text-pdf"), o;
144
+ let n = "", o = ["doc", "docx"], e = ["xls", "xlsx"], l = ["ppt", "pptx"], i = ["pdf"];
145
+ return o.includes(t) && (n = "word"), e.includes(t) && (n = "cell"), l.includes(t) && (n = "slide"), i.includes(t) && (n = "text-pdf"), n;
146
146
  }, h3 = /* @__PURE__ */ F({
147
147
  __name: "IkPreviewFileDialog",
148
148
  props: /* @__PURE__ */ Y({
@@ -180,12 +180,12 @@ const A = (t, o) => {
180
180
  }),
181
181
  emits: ["update:show"],
182
182
  setup(t) {
183
- const o = t, n = Z(t, "show"), e = m(() => ({
183
+ const n = t, o = Z(t, "show"), e = m(() => ({
184
184
  name: "name",
185
185
  url: "url",
186
186
  suffix: "suffix",
187
187
  size: "fileSize",
188
- ...o.field
188
+ ...n.field
189
189
  })), l = D(null), i = D(null), s = J({
190
190
  image: !1,
191
191
  office: !1,
@@ -197,20 +197,20 @@ const A = (t, o) => {
197
197
  if (i.value = {
198
198
  ...a,
199
199
  name: a[e.value.name],
200
- url: T(o.loadUrl, b)
200
+ url: T(n.loadUrl, b)
201
201
  }, a && j(a, e.value) === "image") {
202
202
  s.image = !0;
203
203
  return;
204
204
  } else if (a && j(a, e.value) === "video") {
205
- s.video = !0, console.log("modal.video = true;", s.video);
205
+ s.video = !0;
206
206
  return;
207
- } else if ((((w = o.onlyOfficeConfig) == null ? void 0 : w.accept) || o.onlyOfficeAccept).includes(C)) {
207
+ } else if ((((w = n.onlyOfficeConfig) == null ? void 0 : w.accept) || n.onlyOfficeAccept).includes(C)) {
208
208
  s.office = !0, l.value = {
209
- ...o.onlyOfficeConfig,
209
+ ...n.onlyOfficeConfig,
210
210
  editorConfig: {
211
- ...((y = o.onlyOfficeConfig) == null ? void 0 : y.editorConfig) || {},
211
+ ...((y = n.onlyOfficeConfig) == null ? void 0 : y.editorConfig) || {},
212
212
  customization: {
213
- ...((H = (_ = o.onlyOfficeConfig) == null ? void 0 : _.editorConfig) == null ? void 0 : H.customization) || {},
213
+ ...((H = (_ = n.onlyOfficeConfig) == null ? void 0 : _.editorConfig) == null ? void 0 : H.customization) || {},
214
214
  review: {
215
215
  reviewDisplay: "final"
216
216
  }
@@ -219,9 +219,9 @@ const A = (t, o) => {
219
219
  document: {
220
220
  key: i3(),
221
221
  title: P,
222
- url: T(o.loadUrl, b),
222
+ url: T(n.loadUrl, b),
223
223
  fileType: C,
224
- ...((q = o.onlyOfficeConfig) == null ? void 0 : q.document) || {}
224
+ ...((q = n.onlyOfficeConfig) == null ? void 0 : q.document) || {}
225
225
  },
226
226
  documentType: v3(C)
227
227
  };
@@ -231,18 +231,18 @@ const A = (t, o) => {
231
231
  console.info("预览错误: ", v);
232
232
  }
233
233
  };
234
- Q([n, o.file], ([a, p]) => {
234
+ Q([o, n.file], ([a, p]) => {
235
235
  a && e3(() => {
236
- h(o.file);
236
+ h(n.file);
237
237
  });
238
238
  });
239
239
  const f = () => {
240
- n.value = !1, s.office = !1, s.image = !1, s.video = !1, i.value = null;
240
+ o.value = !1, s.office = !1, s.image = !1, s.video = !1, i.value = null;
241
241
  };
242
242
  return (a, p) => {
243
243
  var w, y;
244
244
  const d = E("el-image-viewer");
245
- return n.value ? (r(), u(
245
+ return o.value ? (r(), u(
246
246
  O,
247
247
  { key: 0 },
248
248
  [
@@ -640,7 +640,7 @@ const p3 = A(h3), f3 = {
640
640
  null,
641
641
  -1
642
642
  /* HOISTED */
643
- ), o6 = /* @__PURE__ */ c(
643
+ ), n6 = /* @__PURE__ */ c(
644
644
  "path",
645
645
  {
646
646
  d: "M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",
@@ -650,7 +650,7 @@ const p3 = A(h3), f3 = {
650
650
  null,
651
651
  -1
652
652
  /* HOISTED */
653
- ), n6 = /* @__PURE__ */ c(
653
+ ), o6 = /* @__PURE__ */ c(
654
654
  "path",
655
655
  {
656
656
  d: "M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",
@@ -673,8 +673,8 @@ const p3 = A(h3), f3 = {
673
673
  /* HOISTED */
674
674
  ), s6 = [
675
675
  t6,
676
- o6,
677
676
  n6,
677
+ o6,
678
678
  i6
679
679
  ], l6 = {
680
680
  key: 10,
@@ -786,8 +786,8 @@ const p3 = A(h3), f3 = {
786
786
  }
787
787
  },
788
788
  setup(t) {
789
- const o = t, n = m(() => o.file ? j(o.file, o.fields) : o.type);
790
- return (e, l) => n.value === "image" ? (r(), u("svg", f3, y3)) : n.value === "zip" ? (r(), u("svg", k3, F3)) : n.value === "ppt" ? (r(), u("svg", b3, V3)) : n.value === "word" ? (r(), u("svg", B3, M3)) : n.value === "pdf" ? (r(), u("svg", $3, q3)) : n.value === "txt" ? (r(), u("svg", O3, T3)) : n.value === "audio" ? (r(), u("svg", P3, L3)) : n.value === "video" ? (r(), u("svg", N3, K3)) : n.value === "excel" ? (r(), u("svg", X3, Q3)) : n.value === "exe" ? (r(), u("svg", e6, s6)) : n.value === "json" ? (r(), u("svg", l6, d6)) : (r(), u("svg", u6, f6));
789
+ const n = t, o = m(() => n.file ? j(n.file, n.fields) : n.type);
790
+ return (e, l) => o.value === "image" ? (r(), u("svg", f3, y3)) : o.value === "zip" ? (r(), u("svg", k3, F3)) : o.value === "ppt" ? (r(), u("svg", b3, V3)) : o.value === "word" ? (r(), u("svg", B3, M3)) : o.value === "pdf" ? (r(), u("svg", $3, q3)) : o.value === "txt" ? (r(), u("svg", O3, T3)) : o.value === "audio" ? (r(), u("svg", P3, L3)) : o.value === "video" ? (r(), u("svg", N3, K3)) : o.value === "excel" ? (r(), u("svg", X3, Q3)) : o.value === "exe" ? (r(), u("svg", e6, s6)) : o.value === "json" ? (r(), u("svg", l6, d6)) : (r(), u("svg", u6, f6));
791
791
  }
792
792
  }), m6 = {
793
793
  key: 0,
@@ -827,9 +827,9 @@ const p3 = A(h3), f3 = {
827
827
  tableIconType: {}
828
828
  },
829
829
  setup(t) {
830
- const o = t, n = I("iconConfig"), e = m(() => ({
831
- ...(n == null ? void 0 : n.value) || {},
832
- ...o
830
+ const n = t, o = I("iconConfig"), e = m(() => ({
831
+ ...(o == null ? void 0 : o.value) || {},
832
+ ...n
833
833
  })), l = m(() => {
834
834
  const { name: s } = e.value;
835
835
  return /^http?:\/\//.test(s) ? "img" : /i-[^:]+:[^:]+/.test(s) ? "unocss" : s != null && s.startsWith("iksig") ? "iksig" : s != null && s.includes(":") ? "iconify" : s != null && s.startsWith("iksvg") ? "svg" : "i";
@@ -1010,7 +1010,7 @@ const b6 = /* @__PURE__ */ L(F6, [["__scopeId", "data-v-76d7e119"]]), B = A(b6),
1010
1010
  }
1011
1011
  },
1012
1012
  setup(t) {
1013
- return (o, n) => (r(), u("div", null, [
1013
+ return (n, o) => (r(), u("div", null, [
1014
1014
  t.showBg && t.fullscreen ? (r(), u("div", C6, [
1015
1015
  k(g(B), {
1016
1016
  name: "iksvg_guanbidanchuang",
@@ -1049,27 +1049,27 @@ const V6 = /* @__PURE__ */ L(S6, [["__scopeId", "data-v-79f49df8"]]), B6 = { cla
1049
1049
  }),
1050
1050
  emits: ["update:modelValue"],
1051
1051
  setup(t) {
1052
- const o = t, n = Z(t, "modelValue"), e = D(o.fullscreen), l = () => {
1052
+ const n = t, o = Z(t, "modelValue"), e = D(n.fullscreen), l = () => {
1053
1053
  e.value = !e.value;
1054
1054
  }, i = F({
1055
1055
  setup() {
1056
1056
  return () => t3(V6, {
1057
- showBg: o.showCloseBg,
1058
- fullscreen: o.fullscreen
1057
+ showBg: n.showCloseBg,
1058
+ fullscreen: n.fullscreen
1059
1059
  });
1060
1060
  }
1061
1061
  });
1062
1062
  return (s, h) => {
1063
1063
  const f = E("el-dialog");
1064
- return r(), R(f, o3({
1065
- modelValue: n.value,
1066
- "onUpdate:modelValue": h[0] || (h[0] = (a) => n.value = a)
1064
+ return r(), R(f, n3({
1065
+ modelValue: o.value,
1066
+ "onUpdate:modelValue": h[0] || (h[0] = (a) => o.value = a)
1067
1067
  }, s.$attrs, {
1068
1068
  "close-icon": g(i),
1069
1069
  class: `ik-base-dialog ${s.noHeader ? "no-header" : ""} ${s.noFooter ? "no-footer" : ""}`,
1070
1070
  fullscreen: e.value,
1071
1071
  "modal-class": "baseDialog"
1072
- }), n3({
1072
+ }), o3({
1073
1073
  icon: S(() => [
1074
1074
  M(s.$slots, "title", {}, () => [
1075
1075
  U(
@@ -1115,13 +1115,13 @@ const V6 = /* @__PURE__ */ L(S6, [["__scopeId", "data-v-79f49df8"]]), B6 = { cla
1115
1115
  }
1116
1116
  });
1117
1117
  const I6 = A(R6);
1118
- function M6(t, o, n, e) {
1118
+ function M6(t, n, o, e) {
1119
1119
  function l(i) {
1120
- return i instanceof n ? i : new n(function(s) {
1120
+ return i instanceof o ? i : new o(function(s) {
1121
1121
  s(i);
1122
1122
  });
1123
1123
  }
1124
- return new (n || (n = Promise))(function(i, s) {
1124
+ return new (o || (o = Promise))(function(i, s) {
1125
1125
  function h(p) {
1126
1126
  try {
1127
1127
  a(e.next(p));
@@ -1139,11 +1139,11 @@ function M6(t, o, n, e) {
1139
1139
  function a(p) {
1140
1140
  p.done ? i(p.value) : l(p.value).then(h, f);
1141
1141
  }
1142
- a((e = e.apply(t, o || [])).next());
1142
+ a((e = e.apply(t, n || [])).next());
1143
1143
  });
1144
1144
  }
1145
- function $6(t, o) {
1146
- var n = { label: 0, sent: function() {
1145
+ function $6(t, n) {
1146
+ var o = { label: 0, sent: function() {
1147
1147
  if (i[0] & 1)
1148
1148
  throw i[1];
1149
1149
  return i[1];
@@ -1159,7 +1159,7 @@ function $6(t, o) {
1159
1159
  function f(a) {
1160
1160
  if (e)
1161
1161
  throw new TypeError("Generator is already executing.");
1162
- for (; s && (s = 0, a[0] && (n = 0)), n; )
1162
+ for (; s && (s = 0, a[0] && (o = 0)), o; )
1163
1163
  try {
1164
1164
  if (e = 1, l && (i = a[0] & 2 ? l.return : a[0] ? l.throw || ((i = l.return) && i.call(l), 0) : l.next) && !(i = i.call(l, a[1])).done)
1165
1165
  return i;
@@ -1169,34 +1169,34 @@ function $6(t, o) {
1169
1169
  i = a;
1170
1170
  break;
1171
1171
  case 4:
1172
- return n.label++, { value: a[1], done: !1 };
1172
+ return o.label++, { value: a[1], done: !1 };
1173
1173
  case 5:
1174
- n.label++, l = a[1], a = [0];
1174
+ o.label++, l = a[1], a = [0];
1175
1175
  continue;
1176
1176
  case 7:
1177
- a = n.ops.pop(), n.trys.pop();
1177
+ a = o.ops.pop(), o.trys.pop();
1178
1178
  continue;
1179
1179
  default:
1180
- if (i = n.trys, !(i = i.length > 0 && i[i.length - 1]) && (a[0] === 6 || a[0] === 2)) {
1181
- n = 0;
1180
+ if (i = o.trys, !(i = i.length > 0 && i[i.length - 1]) && (a[0] === 6 || a[0] === 2)) {
1181
+ o = 0;
1182
1182
  continue;
1183
1183
  }
1184
1184
  if (a[0] === 3 && (!i || a[1] > i[0] && a[1] < i[3])) {
1185
- n.label = a[1];
1185
+ o.label = a[1];
1186
1186
  break;
1187
1187
  }
1188
- if (a[0] === 6 && n.label < i[1]) {
1189
- n.label = i[1], i = a;
1188
+ if (a[0] === 6 && o.label < i[1]) {
1189
+ o.label = i[1], i = a;
1190
1190
  break;
1191
1191
  }
1192
- if (i && n.label < i[2]) {
1193
- n.label = i[2], n.ops.push(a);
1192
+ if (i && o.label < i[2]) {
1193
+ o.label = i[2], o.ops.push(a);
1194
1194
  break;
1195
1195
  }
1196
- i[2] && n.ops.pop(), n.trys.pop();
1196
+ i[2] && o.ops.pop(), o.trys.pop();
1197
1197
  continue;
1198
1198
  }
1199
- a = o.call(t, n);
1199
+ a = n.call(t, o);
1200
1200
  } catch (p) {
1201
1201
  a = [6, p], l = 0;
1202
1202
  } finally {
@@ -1207,26 +1207,26 @@ function $6(t, o) {
1207
1207
  return { value: a[0] ? a[1] : void 0, done: !0 };
1208
1208
  }
1209
1209
  }
1210
- var D6 = function(t, o) {
1210
+ var D6 = function(t, n) {
1211
1211
  return M6(void 0, void 0, void 0, function() {
1212
- return $6(this, function(n) {
1212
+ return $6(this, function(o) {
1213
1213
  return [2, new Promise(function(e, l) {
1214
1214
  try {
1215
1215
  if (window.DocsAPI)
1216
1216
  return e(null);
1217
- var i = document.getElementById(o);
1217
+ var i = document.getElementById(n);
1218
1218
  if (i)
1219
1219
  var s = setInterval(function() {
1220
1220
  var f = i.getAttribute("loading");
1221
1221
  if (!f) {
1222
1222
  if (clearInterval(s), window.DocsAPI)
1223
1223
  return e(null);
1224
- var a = X(o, t, e, l);
1224
+ var a = X(n, t, e, l);
1225
1225
  i.remove(), document.body.appendChild(a);
1226
1226
  }
1227
1227
  }, 500);
1228
1228
  else {
1229
- var h = X(o, t, e, l);
1229
+ var h = X(n, t, e, l);
1230
1230
  document.body.appendChild(h);
1231
1231
  }
1232
1232
  } catch (f) {
@@ -1235,10 +1235,10 @@ var D6 = function(t, o) {
1235
1235
  })];
1236
1236
  });
1237
1237
  });
1238
- }, X = function(t, o, n, e) {
1238
+ }, X = function(t, n, o, e) {
1239
1239
  var l = document.createElement("script");
1240
- return l.id = t, l.type = "text/javascript", l.src = o, l.async = !0, l.onload = function() {
1241
- l.removeAttribute("loading"), n(null);
1240
+ return l.id = t, l.type = "text/javascript", l.src = n, l.async = !0, l.onload = function() {
1241
+ l.removeAttribute("loading"), o(null);
1242
1242
  }, l.onerror = function(i) {
1243
1243
  l.removeAttribute("loading"), e(i);
1244
1244
  }, l.setAttribute("loading", ""), l;
@@ -1294,58 +1294,58 @@ var D6 = function(t, o) {
1294
1294
  events_onRequestSelectDocument: Function
1295
1295
  },
1296
1296
  mounted: function() {
1297
- var t = this, o = this.documentServerUrl;
1298
- o.endsWith("/") || (o += "/");
1299
- var n = "".concat(o, "web-apps/apps/api/documents/api.js");
1300
- D6(n, "onlyoffice-api-script").then(function() {
1297
+ var t = this, n = this.documentServerUrl;
1298
+ n.endsWith("/") || (n += "/");
1299
+ var o = "".concat(n, "web-apps/apps/api/documents/api.js");
1300
+ D6(o, "onlyoffice-api-script").then(function() {
1301
1301
  return t.onLoad();
1302
1302
  }).catch(function() {
1303
1303
  t.onError(-2);
1304
1304
  });
1305
1305
  },
1306
1306
  unmounted: function() {
1307
- var t, o = this.id || "";
1308
- !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[o] && (window.DocEditor.instances[o].destroyEditor(), window.DocEditor.instances[o] = void 0);
1307
+ var t, n = this.id || "";
1308
+ !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0);
1309
1309
  },
1310
1310
  watch: {
1311
1311
  config: {
1312
- handler: function(t, o) {
1312
+ handler: function(t, n) {
1313
1313
  this.onChangeProps();
1314
1314
  },
1315
1315
  deep: !0
1316
1316
  },
1317
- document_fileType: function(t, o) {
1317
+ document_fileType: function(t, n) {
1318
1318
  this.onChangeProps();
1319
1319
  },
1320
- document_title: function(t, o) {
1320
+ document_title: function(t, n) {
1321
1321
  this.onChangeProps();
1322
1322
  },
1323
- documentType: function(t, o) {
1323
+ documentType: function(t, n) {
1324
1324
  this.onChangeProps();
1325
1325
  },
1326
- editorConfig_lang: function(t, o) {
1326
+ editorConfig_lang: function(t, n) {
1327
1327
  this.onChangeProps();
1328
1328
  },
1329
- height: function(t, o) {
1329
+ height: function(t, n) {
1330
1330
  this.onChangeProps();
1331
1331
  },
1332
- type: function(t, o) {
1332
+ type: function(t, n) {
1333
1333
  this.onChangeProps();
1334
1334
  },
1335
- width: function(t, o) {
1335
+ width: function(t, n) {
1336
1336
  this.onChangeProps();
1337
1337
  }
1338
1338
  },
1339
1339
  methods: {
1340
1340
  onLoad: function() {
1341
- var t, o;
1341
+ var t, n;
1342
1342
  try {
1343
- var n = this.id || "";
1344
- if (window.DocsAPI || this.onError(-3), !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[n]) {
1345
- console.log("Skip loading. Instance already exists", n);
1343
+ var o = this.id || "";
1344
+ if (window.DocsAPI || this.onError(-3), !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[o]) {
1345
+ console.log("Skip loading. Instance already exists", o);
1346
1346
  return;
1347
1347
  }
1348
- !((o = window == null ? void 0 : window.DocEditor) === null || o === void 0) && o.instances || (window.DocEditor = { instances: {} });
1348
+ !((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances || (window.DocEditor = { instances: {} });
1349
1349
  var e = Object.assign({
1350
1350
  document: {
1351
1351
  fileType: this.document_fileType,
@@ -1381,38 +1381,38 @@ var D6 = function(t, o) {
1381
1381
  height: this.height,
1382
1382
  type: this.type,
1383
1383
  width: this.width
1384
- }, this.config || {}), l = window.DocsAPI.DocEditor(n, e);
1385
- window.DocEditor.instances[n] = l;
1384
+ }, this.config || {}), l = window.DocsAPI.DocEditor(o, e);
1385
+ window.DocEditor.instances[o] = l;
1386
1386
  } catch (i) {
1387
1387
  console.error(i), this.onError(-1);
1388
1388
  }
1389
1389
  },
1390
1390
  onError: function(t) {
1391
- var o;
1391
+ var n;
1392
1392
  switch (t) {
1393
1393
  case -2:
1394
- o = "Error load DocsAPI from " + this.documentServerUrl;
1394
+ n = "Error load DocsAPI from " + this.documentServerUrl;
1395
1395
  break;
1396
1396
  case -3:
1397
- o = "DocsAPI is not defined";
1397
+ n = "DocsAPI is not defined";
1398
1398
  break;
1399
1399
  default:
1400
- o = "Unknown error loading component", t = -1;
1400
+ n = "Unknown error loading component", t = -1;
1401
1401
  }
1402
- typeof this.onLoadComponentError > "u" ? console.error(o) : this.onLoadComponentError(t, o);
1402
+ typeof this.onLoadComponentError > "u" ? console.error(n) : this.onLoadComponentError(t, n);
1403
1403
  },
1404
1404
  onAppReady: function() {
1405
1405
  var t = this.id || "";
1406
1406
  this.events_onAppReady(window.DocEditor.instances[t]);
1407
1407
  },
1408
1408
  onChangeProps: function() {
1409
- var t, o = this.id || "";
1410
- !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[o] && (window.DocEditor.instances[o].destroyEditor(), window.DocEditor.instances[o] = void 0, console.log("Important props have been changed. Load new Editor."), this.onLoad());
1409
+ var t, n = this.id || "";
1410
+ !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0, console.log("Important props have been changed. Load new Editor."), this.onLoad());
1411
1411
  }
1412
1412
  }
1413
1413
  });
1414
1414
  const H6 = ["id"];
1415
- function q6(t, o, n, e, l, i) {
1415
+ function q6(t, n, o, e, l, i) {
1416
1416
  return r(), u("div", { id: t.id }, null, 8, H6);
1417
1417
  }
1418
1418
  N.render = q6;
@@ -1438,25 +1438,25 @@ const O6 = /* @__PURE__ */ F({
1438
1438
  }
1439
1439
  },
1440
1440
  setup(t) {
1441
- const o = t, n = D({
1441
+ const n = t, o = D({
1442
1442
  width: "100%",
1443
1443
  height: "100%",
1444
- ...o.configOptions || {},
1445
- ...o.configOptions
1444
+ ...n.configOptions || {},
1445
+ ...n.configOptions
1446
1446
  }), e = () => {
1447
- console.info("文档加载完成", o.configOptions);
1447
+ console.info("文档加载完成", n.configOptions);
1448
1448
  };
1449
1449
  return (l, i) => (r(), u(
1450
1450
  "div",
1451
1451
  {
1452
- style: x({ height: o.officeHeight })
1452
+ style: x({ height: n.officeHeight })
1453
1453
  },
1454
1454
  [
1455
1455
  k(g(N), {
1456
1456
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1457
1457
  ref: "editorRef",
1458
1458
  "document-server-url": t.documentServerUrl,
1459
- config: n.value,
1459
+ config: o.value,
1460
1460
  events_onDocumentReady: e
1461
1461
  }, null, 8, ["id", "document-server-url", "config"])
1462
1462
  ],
@@ -1540,31 +1540,31 @@ const E6 = /* @__PURE__ */ L(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = A(E6)
1540
1540
  }
1541
1541
  },
1542
1542
  setup(t) {
1543
- const o = t, { cLoadUrl: n, cOnlyofficeConfig: e } = d3(o), l = m(() => ({
1543
+ const n = t, { cLoadUrl: o, cOnlyofficeConfig: e } = d3(n), l = m(() => ({
1544
1544
  name: "name",
1545
1545
  url: "url",
1546
1546
  suffix: "suffix",
1547
1547
  size: "size",
1548
- ...o.field
1548
+ ...n.field
1549
1549
  })), i = D({}), s = D(!1), h = (d) => {
1550
1550
  var w, y;
1551
1551
  i.value = {
1552
1552
  ...d,
1553
1553
  name: d.name,
1554
1554
  url: T(
1555
- n.value,
1555
+ o.value,
1556
1556
  d.url || ((y = (w = d == null ? void 0 : d.response) == null ? void 0 : w.data) == null ? void 0 : y.id) || (d == null ? void 0 : d.id)
1557
1557
  )
1558
1558
  }, s.value = !0;
1559
1559
  }, f = (d) => {
1560
1560
  a3.downloadFile(
1561
1561
  T(
1562
- n.value,
1562
+ o.value,
1563
1563
  d[l.value.url] || d.attachmentId || d.id
1564
1564
  ),
1565
1565
  d[l.value.name] || d.attachmentName
1566
1566
  );
1567
- }, a = m(() => l3.isNumber(o.width) ? `${o.width}px` : o.width), p = m(() => o.list.map((d) => ({
1567
+ }, a = m(() => l3.isNumber(n.width) ? `${n.width}px` : n.width), p = m(() => n.list.map((d) => ({
1568
1568
  ...d,
1569
1569
  name: d[l.value.name] || d.attachmentName,
1570
1570
  size: d[l.value.size] || d.fileSize || d.attachmentSize,
@@ -1713,7 +1713,7 @@ const E6 = /* @__PURE__ */ L(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = A(E6)
1713
1713
  k(g(p3), {
1714
1714
  show: s.value,
1715
1715
  "onUpdate:show": w[0] || (w[0] = (v) => s.value = v),
1716
- loadUrl: g(n),
1716
+ loadUrl: g(o),
1717
1717
  file: i.value,
1718
1718
  onlyofficeServer: ((H = g(e)) == null ? void 0 : H.serverUrl) || t.onlyofficeServer,
1719
1719
  onlyOfficeConfig: g(e),