iking-web-ui-pro 0.1.92 → 0.1.93

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 k, computed as C, openBlock as c, createElementBlock as u, createElementVNode as r, ref as z, Fragment as D, renderList as H, normalizeClass as F, normalizeStyle as _, createVNode as y, toDisplayString as V, unref as w, withModifiers as W, renderSlot as $, createCommentVNode as x, mergeModels as P, useModel as L, reactive as K, watch as j, nextTick as X, resolveComponent as M, createBlock as I, withCtx as S, createTextVNode as O, h as Y, mergeProps as Z, createSlots as J, pushScopeId as Q, popScopeId as e3 } from "vue";
1
+ import { defineComponent as k, computed as C, openBlock as c, createElementBlock as u, createElementVNode as r, ref as z, Fragment as M, renderList as H, normalizeClass as F, normalizeStyle as _, createVNode as y, toDisplayString as V, unref as w, withModifiers as W, renderSlot as $, createCommentVNode as x, mergeModels as P, useModel as L, reactive as K, watch as j, nextTick as X, resolveComponent as D, createBlock as I, withCtx as S, createTextVNode as O, h as Y, mergeProps as Z, createSlots as J, pushScopeId as Q, popScopeId as e3 } from "vue";
2
2
  import { paramType as t3, ikFile as n3, buildUUID as o3, ikColor as i3, ikUrl as s3 } from "iking-utils-pro";
3
3
  const R = (n, e) => {
4
4
  if (n.install = (i) => {
@@ -738,11 +738,11 @@ const G = (n, e) => {
738
738
  return (t, d) => {
739
739
  var v;
740
740
  return c(), u(
741
- D,
741
+ M,
742
742
  null,
743
743
  [
744
744
  (v = n.list) != null && v.length ? (c(!0), u(
745
- D,
745
+ M,
746
746
  { key: 0 },
747
747
  H(g.value, (p, m) => {
748
748
  var f;
@@ -816,7 +816,7 @@ const G = (n, e) => {
816
816
  128
817
817
  /* KEYED_FRAGMENT */
818
818
  )) : x("v-if", !0),
819
- y(w(w6), {
819
+ y(w(y6), {
820
820
  show: o.value,
821
821
  "onUpdate:show": d[0] || (d[0] = (p) => o.value = p),
822
822
  loadUrl: n.loadUrl,
@@ -832,7 +832,7 @@ const G = (n, e) => {
832
832
  };
833
833
  }
834
834
  });
835
- const g6 = R(v6), m6 = /* @__PURE__ */ k({
835
+ const g6 = R(v6), m6 = { key: 0 }, w6 = /* @__PURE__ */ k({
836
836
  __name: "IkPreviewFileDialog",
837
837
  props: /* @__PURE__ */ P({
838
838
  file: {
@@ -869,7 +869,9 @@ const g6 = R(v6), m6 = /* @__PURE__ */ k({
869
869
  }),
870
870
  emits: ["update:show"],
871
871
  setup(n) {
872
- const e = n, i = L(n, "show"), l = C(() => ({
872
+ const e = n, i = L(n, "show");
873
+ console.log("props", e);
874
+ const l = C(() => ({
873
875
  name: "name",
874
876
  url: "url",
875
877
  suffix: "suffix",
@@ -915,7 +917,7 @@ const g6 = R(v6), m6 = /* @__PURE__ */ k({
915
917
  }
916
918
  };
917
919
  j([i, e.file], ([t, d]) => {
918
- t && X(() => {
920
+ console.log(t, d), t && X(() => {
919
921
  h(e.file);
920
922
  });
921
923
  });
@@ -924,64 +926,58 @@ const g6 = R(v6), m6 = /* @__PURE__ */ k({
924
926
  };
925
927
  return (t, d) => {
926
928
  var p, m;
927
- const v = M("el-image-viewer");
928
- return i.value ? (c(), u(
929
- D,
930
- { key: 0 },
931
- [
932
- (p = s.value) != null && p.url && a.image ? (c(), I(v, {
933
- key: 0,
934
- onClose: d[0] || (d[0] = (f) => {
935
- s.value = null, a.image = !1;
936
- }),
937
- ref: "previewImgRef",
938
- "url-list": [(m = s.value) == null ? void 0 : m.url]
939
- }, null, 8, ["url-list"])) : x("v-if", !0),
940
- x(" 文档类 "),
941
- y(w(D6), {
942
- modelValue: a.office,
943
- "onUpdate:modelValue": d[1] || (d[1] = (f) => a.office = f),
944
- draggable: "",
945
- "no-footer": "",
946
- "no-header": "",
947
- fullscreen: "",
948
- "show-close-bg": "",
949
- "destroy-on-close": "",
950
- "close-on-click-modal": "",
951
- "close-on-press-escape": !1,
952
- "append-to-body": "",
953
- onClose: g,
954
- "modal-class": "ik-only-preview-dialog"
955
- }, {
956
- default: S(() => [
957
- y(w(T6), {
958
- configOptions: o.value,
959
- documentServerUrl: n.onlyofficeServer,
960
- mode: "view"
961
- }, null, 8, ["configOptions", "documentServerUrl"])
962
- ]),
963
- _: 1
964
- /* STABLE */
965
- }, 8, ["modelValue"])
966
- ],
967
- 64
968
- /* STABLE_FRAGMENT */
969
- )) : x("v-if", !0);
929
+ const v = D("el-image-viewer");
930
+ return i.value ? (c(), u("div", m6, [
931
+ (p = s.value) != null && p.url && a.image ? (c(), I(v, {
932
+ key: 0,
933
+ onClose: d[0] || (d[0] = (f) => {
934
+ s.value = null, a.image = !1;
935
+ }),
936
+ ref: "previewImgRef",
937
+ "url-list": [(m = s.value) == null ? void 0 : m.url]
938
+ }, null, 8, ["url-list"])) : x("v-if", !0),
939
+ x(" 文档类 "),
940
+ y(w(M6), {
941
+ modelValue: a.office,
942
+ "onUpdate:modelValue": d[1] || (d[1] = (f) => a.office = f),
943
+ draggable: "",
944
+ "no-footer": "",
945
+ "no-header": "",
946
+ fullscreen: "",
947
+ "show-close-bg": "",
948
+ "destroy-on-close": "",
949
+ "close-on-click-modal": "",
950
+ "close-on-press-escape": !1,
951
+ "append-to-body": "",
952
+ onClose: g,
953
+ "modal-class": "ik-only-preview-dialog"
954
+ }, {
955
+ default: S(() => [
956
+ y(w(P6), {
957
+ configOptions: o.value,
958
+ documentServerUrl: n.onlyofficeServer,
959
+ mode: "view"
960
+ }, null, 8, ["configOptions", "documentServerUrl"])
961
+ ]),
962
+ _: 1
963
+ /* STABLE */
964
+ }, 8, ["modelValue"])
965
+ ])) : x("v-if", !0);
970
966
  };
971
967
  }
972
968
  });
973
- const w6 = R(m6), y6 = {
969
+ const y6 = R(w6), _6 = {
974
970
  key: 0,
975
971
  class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
976
- }, _6 = {
972
+ }, k6 = {
977
973
  key: 1,
978
974
  class: "h-[1em] w-[1em]",
979
975
  "aria-hidden": "true"
980
- }, k6 = ["xlink:href"], z6 = ["src"], F6 = {
976
+ }, z6 = ["xlink:href"], F6 = ["src"], x6 = {
981
977
  key: 1,
982
978
  class: "h-[1em] w-[1em]",
983
979
  "aria-hidden": "true"
984
- }, x6 = ["xlink:href"], b6 = ["src"], S6 = /* @__PURE__ */ k({
980
+ }, b6 = ["xlink:href"], S6 = ["src"], C6 = /* @__PURE__ */ k({
985
981
  name: "IkSvgIcon",
986
982
  __name: "index",
987
983
  props: {
@@ -1039,8 +1035,8 @@ const w6 = R(m6), y6 = {
1039
1035
  return e.width && (s.width = s.height = typeof e.width == "number" ? `${e.width}px` : e.width), s;
1040
1036
  });
1041
1037
  return (o, s) => {
1042
- const a = M("el-tooltip"), h = M("el-button");
1043
- return o.tableIconType === "icon" ? (c(), u("span", y6, [
1038
+ const a = D("el-tooltip"), h = D("el-button");
1039
+ return o.tableIconType === "icon" ? (c(), u("span", _6, [
1044
1040
  o.notip || !o.title ? (c(), u(
1045
1041
  "i",
1046
1042
  {
@@ -1072,15 +1068,15 @@ const w6 = R(m6), y6 = {
1072
1068
  null,
1073
1069
  6
1074
1070
  /* CLASS, STYLE */
1075
- )) : i.value === "svg" ? (c(), u("svg", _6, [
1071
+ )) : i.value === "svg" ? (c(), u("svg", k6, [
1076
1072
  r("use", {
1077
1073
  "xlink:href": `#${o.name}`
1078
- }, null, 8, k6)
1074
+ }, null, 8, z6)
1079
1075
  ])) : i.value === "img" ? (c(), u("img", {
1080
1076
  key: 2,
1081
1077
  src: o.name,
1082
1078
  class: "h-[1em] w-[1em]"
1083
- }, null, 8, z6)) : (c(), u(
1079
+ }, null, 8, F6)) : (c(), u(
1084
1080
  "i",
1085
1081
  {
1086
1082
  key: 3,
@@ -1128,15 +1124,15 @@ const w6 = R(m6), y6 = {
1128
1124
  null,
1129
1125
  6
1130
1126
  /* CLASS, STYLE */
1131
- )) : i.value === "svg" ? (c(), u("svg", F6, [
1127
+ )) : i.value === "svg" ? (c(), u("svg", x6, [
1132
1128
  r("use", {
1133
1129
  "xlink:href": `#${o.name}`
1134
- }, null, 8, x6)
1130
+ }, null, 8, b6)
1135
1131
  ])) : i.value === "img" ? (c(), u("img", {
1136
1132
  key: 2,
1137
1133
  src: o.name,
1138
1134
  class: "h-[1em] w-[1em]"
1139
- }, null, 8, b6)) : (c(), u(
1135
+ }, null, 8, S6)) : (c(), u(
1140
1136
  "i",
1141
1137
  {
1142
1138
  key: 3,
@@ -1172,10 +1168,10 @@ const w6 = R(m6), y6 = {
1172
1168
  };
1173
1169
  }
1174
1170
  });
1175
- const C6 = /* @__PURE__ */ E(S6, [["__scopeId", "data-v-7d95dbf5"]]), B = R(C6), V6 = {
1171
+ const V6 = /* @__PURE__ */ E(C6, [["__scopeId", "data-v-7d95dbf5"]]), B = R(V6), B6 = {
1176
1172
  key: 0,
1177
1173
  class: "exit-main-page-maximize"
1178
- }, B6 = /* @__PURE__ */ k({
1174
+ }, I6 = /* @__PURE__ */ k({
1179
1175
  __name: "CloseIcon",
1180
1176
  props: {
1181
1177
  showBg: {
@@ -1189,7 +1185,7 @@ const C6 = /* @__PURE__ */ E(S6, [["__scopeId", "data-v-7d95dbf5"]]), B = R(C6),
1189
1185
  },
1190
1186
  setup(n) {
1191
1187
  return (e, i) => (c(), u("div", null, [
1192
- n.showBg && n.fullscreen ? (c(), u("div", V6, [
1188
+ n.showBg && n.fullscreen ? (c(), u("div", B6, [
1193
1189
  y(w(B), {
1194
1190
  name: "iksvg_guanbidanchuang",
1195
1191
  title: "关闭",
@@ -1206,7 +1202,7 @@ const C6 = /* @__PURE__ */ E(S6, [["__scopeId", "data-v-7d95dbf5"]]), B = R(C6),
1206
1202
  ]));
1207
1203
  }
1208
1204
  });
1209
- const I6 = /* @__PURE__ */ E(B6, [["__scopeId", "data-v-79f49df8"]]), R6 = { class: "base-header" }, $6 = /* @__PURE__ */ k({
1205
+ const R6 = /* @__PURE__ */ E(I6, [["__scopeId", "data-v-79f49df8"]]), $6 = { class: "base-header" }, D6 = /* @__PURE__ */ k({
1210
1206
  __name: "IkBaseDialog",
1211
1207
  props: /* @__PURE__ */ P({
1212
1208
  title: { default: "" },
@@ -1231,14 +1227,14 @@ const I6 = /* @__PURE__ */ E(B6, [["__scopeId", "data-v-79f49df8"]]), R6 = { cla
1231
1227
  l.value = !l.value;
1232
1228
  }, s = k({
1233
1229
  setup() {
1234
- return () => Y(I6, {
1230
+ return () => Y(R6, {
1235
1231
  showBg: e.showCloseBg,
1236
1232
  fullscreen: e.fullscreen
1237
1233
  });
1238
1234
  }
1239
1235
  });
1240
1236
  return (a, h) => {
1241
- const g = M("el-dialog");
1237
+ const g = D("el-dialog");
1242
1238
  return c(), I(g, Z({
1243
1239
  modelValue: i.value,
1244
1240
  "onUpdate:modelValue": h[0] || (h[0] = (t) => i.value = t)
@@ -1258,7 +1254,7 @@ const I6 = /* @__PURE__ */ E(B6, [["__scopeId", "data-v-79f49df8"]]), R6 = { cla
1258
1254
  ])
1259
1255
  ]),
1260
1256
  header: S(() => [
1261
- r("div", R6, [
1257
+ r("div", $6, [
1262
1258
  $(a.$slots, "header", {}, () => [
1263
1259
  O(
1264
1260
  V(a.title),
@@ -1292,8 +1288,8 @@ const I6 = /* @__PURE__ */ E(B6, [["__scopeId", "data-v-79f49df8"]]), R6 = { cla
1292
1288
  };
1293
1289
  }
1294
1290
  });
1295
- const D6 = R($6);
1296
- function M6(n, e, i, l) {
1291
+ const M6 = R(D6);
1292
+ function q6(n, e, i, l) {
1297
1293
  function o(s) {
1298
1294
  return s instanceof i ? s : new i(function(a) {
1299
1295
  a(s);
@@ -1320,7 +1316,7 @@ function M6(n, e, i, l) {
1320
1316
  t((l = l.apply(n, e || [])).next());
1321
1317
  });
1322
1318
  }
1323
- function q6(n, e) {
1319
+ function E6(n, e) {
1324
1320
  var i = { label: 0, sent: function() {
1325
1321
  if (s[0] & 1)
1326
1322
  throw s[1];
@@ -1385,9 +1381,9 @@ function q6(n, e) {
1385
1381
  return { value: t[0] ? t[1] : void 0, done: !0 };
1386
1382
  }
1387
1383
  }
1388
- var E6 = function(n, e) {
1389
- return M6(void 0, void 0, void 0, function() {
1390
- return q6(this, function(i) {
1384
+ var H6 = function(n, e) {
1385
+ return q6(void 0, void 0, void 0, function() {
1386
+ return E6(this, function(i) {
1391
1387
  return [2, new Promise(function(l, o) {
1392
1388
  try {
1393
1389
  if (window.DocsAPI)
@@ -1475,7 +1471,7 @@ var E6 = function(n, e) {
1475
1471
  var n = this, e = this.documentServerUrl;
1476
1472
  e.endsWith("/") || (e += "/");
1477
1473
  var i = "".concat(e, "web-apps/apps/api/documents/api.js");
1478
- E6(i, "onlyoffice-api-script").then(function() {
1474
+ H6(i, "onlyoffice-api-script").then(function() {
1479
1475
  return n.onLoad();
1480
1476
  }).catch(function() {
1481
1477
  n.onError(-2);
@@ -1589,13 +1585,13 @@ var E6 = function(n, e) {
1589
1585
  }
1590
1586
  }
1591
1587
  });
1592
- const H6 = ["id"];
1593
- function O6(n, e, i, l, o, s) {
1594
- return c(), u("div", { id: n.id }, null, 8, H6);
1588
+ const O6 = ["id"];
1589
+ function A6(n, e, i, l, o, s) {
1590
+ return c(), u("div", { id: n.id }, null, 8, O6);
1595
1591
  }
1596
- A.render = O6;
1592
+ A.render = A6;
1597
1593
  A.__file = "src/components/DocumentEditor.vue";
1598
- const A6 = /* @__PURE__ */ k({
1594
+ const U6 = /* @__PURE__ */ k({
1599
1595
  __name: "IkOnlyOffice",
1600
1596
  props: {
1601
1597
  // 文件服务器的服务的地址
@@ -1689,22 +1685,22 @@ const A6 = /* @__PURE__ */ k({
1689
1685
  ));
1690
1686
  }
1691
1687
  });
1692
- const U6 = /* @__PURE__ */ E(A6, [["__scopeId", "data-v-ea0a8f6d"]]), T6 = R(U6), P6 = (n) => (Q("data-v-170abcfc"), n = n(), e3(), n), L6 = {
1688
+ const T6 = /* @__PURE__ */ E(U6, [["__scopeId", "data-v-ea0a8f6d"]]), P6 = R(T6), L6 = (n) => (Q("data-v-170abcfc"), n = n(), e3(), n), j6 = {
1693
1689
  key: 0,
1694
1690
  class: "preview-files"
1695
- }, j6 = {
1691
+ }, G6 = {
1696
1692
  class: "flex",
1697
1693
  style: { width: "80%", "align-items": "center" }
1698
- }, G6 = ["onClick"], N6 = ["title"], W6 = { style: { color: "#b8c6d9" } }, K6 = ["onClick"], X6 = /* @__PURE__ */ P6(() => /* @__PURE__ */ r(
1694
+ }, N6 = ["onClick"], W6 = ["title"], K6 = { style: { color: "#b8c6d9" } }, X6 = ["onClick"], Y6 = /* @__PURE__ */ L6(() => /* @__PURE__ */ r(
1699
1695
  "span",
1700
1696
  null,
1701
1697
  "预览",
1702
1698
  -1
1703
1699
  /* HOISTED */
1704
- )), Y6 = {
1700
+ )), Z6 = {
1705
1701
  key: 1,
1706
1702
  class: "flex preview-img"
1707
- }, Z6 = /* @__PURE__ */ k({
1703
+ }, J6 = /* @__PURE__ */ k({
1708
1704
  __name: "IKDetailPreviewFiles",
1709
1705
  props: {
1710
1706
  // 文件列表 [{originName:'',path:'',fileSize:''}] //文件大小
@@ -1760,11 +1756,11 @@ const U6 = /* @__PURE__ */ E(A6, [["__scopeId", "data-v-ea0a8f6d"]]), T6 = R(U6)
1760
1756
  };
1761
1757
  return (t, d) => {
1762
1758
  var p, m;
1763
- const v = M("el-image");
1759
+ const v = D("el-image");
1764
1760
  return c(), u("div", null, [
1765
- e.fileType === "file" ? (c(), u("div", L6, [
1761
+ e.fileType === "file" ? (c(), u("div", j6, [
1766
1762
  (c(!0), u(
1767
- D,
1763
+ M,
1768
1764
  null,
1769
1765
  H(i.value, (f, b) => (c(), u(
1770
1766
  "div",
@@ -1777,7 +1773,7 @@ const U6 = /* @__PURE__ */ E(A6, [["__scopeId", "data-v-ea0a8f6d"]]), T6 = R(U6)
1777
1773
  })
1778
1774
  },
1779
1775
  [
1780
- r("div", j6, [
1776
+ r("div", G6, [
1781
1777
  y(w(B), {
1782
1778
  name: a(f),
1783
1779
  style: _(`color:${h(f)}`),
@@ -1789,23 +1785,23 @@ const U6 = /* @__PURE__ */ E(A6, [["__scopeId", "data-v-ea0a8f6d"]]), T6 = R(U6)
1789
1785
  }, [
1790
1786
  r("p", {
1791
1787
  title: f.name
1792
- }, V(f.name), 9, N6),
1788
+ }, V(f.name), 9, W6),
1793
1789
  r(
1794
1790
  "p",
1795
- W6,
1791
+ K6,
1796
1792
  V((f.size / 1024).toFixed(2)) + "KB",
1797
1793
  1
1798
1794
  /* TEXT */
1799
1795
  )
1800
- ], 8, G6)
1796
+ ], 8, N6)
1801
1797
  ]),
1802
1798
  r("div", {
1803
1799
  class: "file-preview",
1804
1800
  onClick: (N) => s(f)
1805
1801
  }, [
1806
1802
  y(w(B), { name: "iksvg_yulan" }),
1807
- X6
1808
- ], 8, K6)
1803
+ Y6
1804
+ ], 8, X6)
1809
1805
  ],
1810
1806
  4
1811
1807
  /* STYLE */
@@ -1814,9 +1810,9 @@ const U6 = /* @__PURE__ */ E(A6, [["__scopeId", "data-v-ea0a8f6d"]]), T6 = R(U6)
1814
1810
  /* KEYED_FRAGMENT */
1815
1811
  ))
1816
1812
  ])) : x("v-if", !0),
1817
- e.fileType === "img" ? (c(), u("div", Y6, [
1813
+ e.fileType === "img" ? (c(), u("div", Z6, [
1818
1814
  (c(!0), u(
1819
- D,
1815
+ M,
1820
1816
  null,
1821
1817
  H(i.value, (f, b) => (c(), u("div", {
1822
1818
  key: b,
@@ -1845,8 +1841,8 @@ const U6 = /* @__PURE__ */ E(A6, [["__scopeId", "data-v-ea0a8f6d"]]), T6 = R(U6)
1845
1841
  };
1846
1842
  }
1847
1843
  });
1848
- const J6 = /* @__PURE__ */ E(Z6, [["__scopeId", "data-v-170abcfc"]]), te = R(J6);
1844
+ const Q6 = /* @__PURE__ */ E(J6, [["__scopeId", "data-v-170abcfc"]]), ne = R(Q6);
1849
1845
  export {
1850
- te as IKDetailPreviewFiles,
1851
- te as default
1846
+ ne as IKDetailPreviewFiles,
1847
+ ne as default
1852
1848
  };