iking-web-ui-pro 1.0.6 → 1.0.7

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.
@@ -1035,9 +1035,14 @@ const Ft = (o, a) => {
1035
1035
  showFileSize: {
1036
1036
  type: Boolean,
1037
1037
  default: !1
1038
+ },
1039
+ /**是否自定义下载 */
1040
+ customDownLoad: {
1041
+ type: Boolean,
1042
+ default: !1
1038
1043
  }
1039
1044
  },
1040
- emits: ["handPreview"],
1045
+ emits: ["handPreview", "downLoad"],
1041
1046
  setup(o, { emit: a }) {
1042
1047
  const r = o, t = Z(() => r.simple ? "simple" : r.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: n } = mi(r), s = a, l = Z(() => ({
1043
1048
  name: "name",
@@ -1056,7 +1061,7 @@ const Ft = (o, a) => {
1056
1061
  )
1057
1062
  }, r.isOnlyOfficePreview && (c.value = !0), s("handPreview", u.value);
1058
1063
  }, g = (v) => {
1059
- wr.downloadFile(
1064
+ r.customDownLoad ? s("downLoad", v) : wr.downloadFile(
1060
1065
  lt(
1061
1066
  e.value,
1062
1067
  v[l.value.url] || v.attachmentId || v.id
@@ -925,9 +925,14 @@ const Mt = (a, o) => {
925
925
  showFileSize: {
926
926
  type: Boolean,
927
927
  default: !1
928
+ },
929
+ /**是否自定义下载 */
930
+ customDownLoad: {
931
+ type: Boolean,
932
+ default: !1
928
933
  }
929
934
  },
930
- emits: ["handPreview"],
935
+ emits: ["handPreview", "downLoad"],
931
936
  setup(a, { emit: o }) {
932
937
  const r = a, t = X(() => r.simple ? "simple" : r.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: n } = On(r), s = o, l = X(() => ({
933
938
  name: "name",
@@ -946,7 +951,7 @@ const Mt = (a, o) => {
946
951
  )
947
952
  }, r.isOnlyOfficePreview && (c.value = !0), s("handPreview", u.value);
948
953
  }, d = (v) => {
949
- Sr.downloadFile(
954
+ r.customDownLoad ? s("downLoad", v) : Sr.downloadFile(
950
955
  dt(
951
956
  e.value,
952
957
  v[l.value.url] || v.attachmentId || v.id
@@ -925,9 +925,14 @@ const Ot = (a, o) => {
925
925
  showFileSize: {
926
926
  type: Boolean,
927
927
  default: !1
928
+ },
929
+ /**是否自定义下载 */
930
+ customDownLoad: {
931
+ type: Boolean,
932
+ default: !1
928
933
  }
929
934
  },
930
- emits: ["handPreview"],
935
+ emits: ["handPreview", "downLoad"],
931
936
  setup(a, { emit: o }) {
932
937
  const r = a, t = X(() => r.simple ? "simple" : r.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: n } = On(r), s = o, l = X(() => ({
933
938
  name: "name",
@@ -946,7 +951,7 @@ const Ot = (a, o) => {
946
951
  )
947
952
  }, r.isOnlyOfficePreview && (c.value = !0), s("handPreview", u.value);
948
953
  }, d = (v) => {
949
- wr.downloadFile(
954
+ r.customDownLoad ? s("downLoad", v) : wr.downloadFile(
950
955
  ht(
951
956
  e.value,
952
957
  v[l.value.url] || v.attachmentId || v.id
@@ -13246,9 +13246,14 @@ const el = ["id"], tl = /* @__PURE__ */ Q({
13246
13246
  showFileSize: {
13247
13247
  type: Boolean,
13248
13248
  default: !1
13249
+ },
13250
+ /**是否自定义下载 */
13251
+ customDownLoad: {
13252
+ type: Boolean,
13253
+ default: !1
13249
13254
  }
13250
13255
  },
13251
- emits: ["handPreview"],
13256
+ emits: ["handPreview", "downLoad"],
13252
13257
  setup(a, { emit: o }) {
13253
13258
  const r = a, t = X(() => r.simple ? "simple" : r.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: n } = On(r), s = o, l = X(() => ({
13254
13259
  name: "name",
@@ -13267,7 +13272,7 @@ const el = ["id"], tl = /* @__PURE__ */ Q({
13267
13272
  )
13268
13273
  }, r.isOnlyOfficePreview && (c.value = !0), s("handPreview", u.value);
13269
13274
  }, d = (v) => {
13270
- br.downloadFile(
13275
+ r.customDownLoad ? s("downLoad", v) : br.downloadFile(
13271
13276
  ct(
13272
13277
  e.value,
13273
13278
  v[l.value.url] || v.attachmentId || v.id
package/dist/index.es.js CHANGED
@@ -12604,9 +12604,14 @@ const X_e = { class: "demo-app" }, Q_e = { class: "demo-app-main" }, J_e = { cla
12604
12604
  showFileSize: {
12605
12605
  type: Boolean,
12606
12606
  default: !1
12607
+ },
12608
+ /**是否自定义下载 */
12609
+ customDownLoad: {
12610
+ type: Boolean,
12611
+ default: !1
12607
12612
  }
12608
12613
  },
12609
- emits: ["handPreview"],
12614
+ emits: ["handPreview", "downLoad"],
12610
12615
  setup(a, { emit: n }) {
12611
12616
  const s = a, r = co(() => s.simple ? "simple" : s.showType), { cLoadUrl: i, cOnlyofficeConfig: u, cOnlyofficePreviewType: h } = I0(s), m = n, w = co(() => ({
12612
12617
  name: "name",
@@ -12625,7 +12630,7 @@ const X_e = { class: "demo-app" }, Q_e = { class: "demo-app-main" }, J_e = { cla
12625
12630
  )
12626
12631
  }, s.isOnlyOfficePreview && (A.value = !0), m("handPreview", S.value);
12627
12632
  }, I = (W) => {
12628
- ese.downloadFile(
12633
+ s.customDownLoad ? m("downLoad", W) : ese.downloadFile(
12629
12634
  e3(
12630
12635
  i.value,
12631
12636
  W[w.value.url] || W.attachmentId || W.id