form-custom-test 3.0.76 → 3.0.78

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.
package/dist/render.es.js CHANGED
@@ -10646,7 +10646,11 @@ const _sfc_main$M = {
10646
10646
  if (!fileId) {
10647
10647
  throw new Error("\u6587\u4EF6ID\u4E0D\u80FD\u4E3A\u7A7A");
10648
10648
  }
10649
- const { data: previewData } = await filePreview(fileId);
10649
+ const { data: previewData } = await await service({
10650
+ method: "get",
10651
+ url: "unified-file/sys-file/kkfile-url",
10652
+ params: { fileId }
10653
+ });
10650
10654
  window.open(previewData);
10651
10655
  }
10652
10656
  } catch (error) {
@@ -10674,7 +10678,8 @@ const _sfc_main$M = {
10674
10678
  const { data: downloadData } = await service({
10675
10679
  method: "post",
10676
10680
  url: "unified-file/sys-file/download",
10677
- params: { fileId }
10681
+ params: { fileId },
10682
+ responseType: "blob"
10678
10683
  });
10679
10684
  downloadMethod(downloadData, name || fileName);
10680
10685
  }
@@ -10759,12 +10764,12 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
10759
10764
  _ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
10760
10765
  key: 1,
10761
10766
  onClick: withModifiers(($event) => $options.handlePreview(file), ["stop"]),
10762
- class: "pr-8px color-primary cursor-pointer"
10767
+ class: "pr-8px color-primary cursor-pointer file-action-right"
10763
10768
  }, " \u9884\u89C8 ", 8, _hoisted_9$4)) : createCommentVNode("", true),
10764
10769
  _ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
10765
10770
  key: 2,
10766
10771
  onClick: withModifiers(($event) => $options.handleDownload(file), ["stop"]),
10767
- class: "pr-8px color-primary cursor-pointer"
10772
+ class: "pr-8px color-primary cursor-pointer file-action-right"
10768
10773
  }, " \u4E0B\u8F7D ", 8, _hoisted_10$3)) : createCommentVNode("", true)
10769
10774
  ])
10770
10775
  ])
@@ -10806,7 +10811,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
10806
10811
  _: 1
10807
10812
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
10808
10813
  }
10809
- var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-ad2b4116"]]);
10814
+ var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-34876f37"]]);
10810
10815
  var __glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10811
10816
  __proto__: null,
10812
10817
  "default": fileUploadWidget
@@ -25981,13 +25986,13 @@ function registerIcon(app) {
25981
25986
  if (typeof window !== "undefined") {
25982
25987
  let loadSvg = function() {
25983
25988
  var body = document.body;
25984
- var svgDom = document.getElementById("__svg__icons__dom__1774332276728__");
25989
+ var svgDom = document.getElementById("__svg__icons__dom__1774345841103__");
25985
25990
  if (!svgDom) {
25986
25991
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
25987
25992
  svgDom.style.position = "absolute";
25988
25993
  svgDom.style.width = "0";
25989
25994
  svgDom.style.height = "0";
25990
- svgDom.id = "__svg__icons__dom__1774332276728__";
25995
+ svgDom.id = "__svg__icons__dom__1774345841103__";
25991
25996
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
25992
25997
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
25993
25998
  }
@@ -32323,7 +32328,8 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
32323
32328
  title: $props.field.options.dialogTitle || "\u4EBA\u5458\u6811",
32324
32329
  width: "480px",
32325
32330
  onClose: $options.handleClose,
32326
- "body-class": "person-tree-dialog-body"
32331
+ "body-class": "person-tree-dialog-body",
32332
+ "header-class": "person-tree-dialog-header"
32327
32333
  }, createSlots({
32328
32334
  default: withCtx(() => [
32329
32335
  createVNode(_component_el_input, {
@@ -32391,7 +32397,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
32391
32397
  _: 1
32392
32398
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
32393
32399
  }
32394
- var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-4e20d7f6"]]);
32400
+ var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-562382c6"]]);
32395
32401
  const _sfc_main$i = {
32396
32402
  name: "radio-other-widget",
32397
32403
  componentName: "FieldWidget",