form-custom-test 3.0.112 → 3.0.114

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
@@ -10867,19 +10867,23 @@ const _sfc_main$R = {
10867
10867
  };
10868
10868
  const _hoisted_1$v = { class: "file-upload-widget-container" };
10869
10869
  const _hoisted_2$k = {
10870
+ key: 0,
10871
+ class: "no-data-wrap"
10872
+ };
10873
+ const _hoisted_3$g = {
10870
10874
  key: 0,
10871
10875
  class: "el-upload__tip"
10872
10876
  };
10873
- const _hoisted_3$g = { class: "main-tip" };
10874
- const _hoisted_4$d = { class: "sub-tip" };
10875
- const _hoisted_5$b = { class: "upload-file-list" };
10876
- const _hoisted_6$b = { class: "left-wrap" };
10877
- const _hoisted_7$9 = ["src"];
10878
- const _hoisted_8$6 = ["title"];
10879
- const _hoisted_9$5 = { class: "right-wrap" };
10880
- const _hoisted_10$4 = ["title", "onClick"];
10881
- const _hoisted_11$2 = ["onClick"];
10877
+ const _hoisted_4$d = { class: "main-tip" };
10878
+ const _hoisted_5$b = { class: "sub-tip" };
10879
+ const _hoisted_6$b = { class: "upload-file-list" };
10880
+ const _hoisted_7$9 = { class: "left-wrap" };
10881
+ const _hoisted_8$6 = ["src"];
10882
+ const _hoisted_9$5 = ["title"];
10883
+ const _hoisted_10$4 = { class: "right-wrap" };
10884
+ const _hoisted_11$2 = ["title", "onClick"];
10882
10885
  const _hoisted_12$1 = ["onClick"];
10886
+ const _hoisted_13$1 = ["onClick"];
10883
10887
  function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
10884
10888
  const _component_el_button = resolveComponent("el-button");
10885
10889
  const _component_el_upload = resolveComponent("el-upload");
@@ -10899,6 +10903,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
10899
10903
  }, {
10900
10904
  default: withCtx(() => [
10901
10905
  createElementVNode("div", _hoisted_1$v, [
10906
+ _ctx.getDisabled() && $data.fileList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2$k, " \u6682\u65E0\u6570\u636E ")) : createCommentVNode("", true),
10902
10907
  createVNode(_component_el_upload, {
10903
10908
  ref: "fieldEditor",
10904
10909
  disabled: _ctx.getDisabled(),
@@ -10920,22 +10925,22 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
10920
10925
  "on-progress": $options.handleProgress
10921
10926
  }, createSlots({
10922
10927
  tip: withCtx(() => [
10923
- !!$props.field.options.uploadTip && !_ctx.getDisabled() ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString($props.field.options.uploadTip), 1)) : createCommentVNode("", true)
10928
+ !!$props.field.options.uploadTip && !_ctx.getDisabled() ? (openBlock(), createElementBlock("div", _hoisted_3$g, toDisplayString($props.field.options.uploadTip), 1)) : createCommentVNode("", true)
10924
10929
  ]),
10925
10930
  file: withCtx(({ file }) => [
10926
- createElementVNode("div", _hoisted_5$b, [
10927
- createElementVNode("div", _hoisted_6$b, [
10931
+ createElementVNode("div", _hoisted_6$b, [
10932
+ createElementVNode("div", _hoisted_7$9, [
10928
10933
  createElementVNode("img", {
10929
10934
  src: $options.getFileIcon(file.name),
10930
10935
  alt: "",
10931
10936
  style: { "width": "18px", "height": "18px", "margin-right": "8px" }
10932
- }, null, 8, _hoisted_7$9),
10937
+ }, null, 8, _hoisted_8$6),
10933
10938
  createElementVNode("div", {
10934
10939
  class: "upload-file-name",
10935
10940
  title: file.name
10936
- }, toDisplayString(file.name), 9, _hoisted_8$6)
10941
+ }, toDisplayString(file.name), 9, _hoisted_9$5)
10937
10942
  ]),
10938
- createElementVNode("div", _hoisted_9$5, [
10943
+ createElementVNode("div", _hoisted_10$4, [
10939
10944
  !_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
10940
10945
  key: 0,
10941
10946
  class: "file-action",
@@ -10946,17 +10951,17 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
10946
10951
  src: _imports_1,
10947
10952
  alt: ""
10948
10953
  }, null, -1)
10949
- ])], 8, _hoisted_10$4)) : createCommentVNode("", true),
10954
+ ])], 8, _hoisted_11$2)) : createCommentVNode("", true),
10950
10955
  _ctx.getDisabled() && !$options.isZip(file.name) ? (openBlock(), createElementBlock("div", {
10951
10956
  key: 1,
10952
10957
  onClick: withModifiers(($event) => $options.handlePreview(file), ["stop"]),
10953
10958
  class: "pr-8px color-primary cursor-pointer file-action-right"
10954
- }, " \u9884\u89C8 ", 8, _hoisted_11$2)) : createCommentVNode("", true),
10959
+ }, " \u9884\u89C8 ", 8, _hoisted_12$1)) : createCommentVNode("", true),
10955
10960
  _ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
10956
10961
  key: 2,
10957
10962
  onClick: withModifiers(($event) => $options.handleDownload(file), ["stop"]),
10958
10963
  class: "pr-8px color-primary cursor-pointer file-action-right"
10959
- }, " \u4E0B\u8F7D ", 8, _hoisted_12$1)) : createCommentVNode("", true)
10964
+ }, " \u4E0B\u8F7D ", 8, _hoisted_13$1)) : createCommentVNode("", true)
10960
10965
  ])
10961
10966
  ])
10962
10967
  ]),
@@ -10970,8 +10975,8 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
10970
10975
  src: _imports_0,
10971
10976
  alt: ""
10972
10977
  }, null, -1)),
10973
- createElementVNode("div", _hoisted_3$g, toDisplayString($props.field.options.mainTip || "\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"), 1),
10974
- createElementVNode("div", _hoisted_4$d, toDisplayString($props.field.options.subTip || `\u652F\u6301\u4E0A\u4F20${$props.field.options.fileTypes.slice(0, 8).join("\uFF0C")}\u7B49\u683C\u5F0F\u6587\u4EF6`), 1)
10978
+ createElementVNode("div", _hoisted_4$d, toDisplayString($props.field.options.mainTip || "\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"), 1),
10979
+ createElementVNode("div", _hoisted_5$b, toDisplayString($props.field.options.subTip || `\u652F\u6301\u4E0A\u4F20${$props.field.options.fileTypes.slice(0, 8).join("\uFF0C")}\u7B49\u683C\u5F0F\u6587\u4EF6`), 1)
10975
10980
  ], 64)) : (openBlock(), createBlock(_component_el_button, {
10976
10981
  key: 1,
10977
10982
  type: "primary"
@@ -10997,7 +11002,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
10997
11002
  _: 1
10998
11003
  }, 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"]);
10999
11004
  }
11000
- var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$R], ["__scopeId", "data-v-7746136c"]]);
11005
+ var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$R], ["__scopeId", "data-v-497c69c8"]]);
11001
11006
  var __glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11002
11007
  __proto__: null,
11003
11008
  "default": fileUploadWidget
@@ -11682,7 +11687,6 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
11682
11687
  "sub-form-row-id": $props.subFormRowId
11683
11688
  }, {
11684
11689
  default: withCtx(() => [
11685
- createTextVNode(toDisplayString(_ctx.getDisabled()) + " ", 1),
11686
11690
  createVNode(_component_el_radio_group, {
11687
11691
  ref: "fieldEditor",
11688
11692
  modelValue: $data.fieldModel,
@@ -11727,7 +11731,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
11727
11731
  _: 1
11728
11732
  }, 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"]);
11729
11733
  }
11730
- var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-b9950f6a"]]);
11734
+ var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-05b877c5"]]);
11731
11735
  var __glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11732
11736
  __proto__: null,
11733
11737
  "default": radioWidget
@@ -26179,13 +26183,13 @@ function registerIcon(app) {
26179
26183
  if (typeof window !== "undefined") {
26180
26184
  let loadSvg = function() {
26181
26185
  var body = document.body;
26182
- var svgDom = document.getElementById("__svg__icons__dom__1777431103847__");
26186
+ var svgDom = document.getElementById("__svg__icons__dom__1777447139884__");
26183
26187
  if (!svgDom) {
26184
26188
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
26185
26189
  svgDom.style.position = "absolute";
26186
26190
  svgDom.style.width = "0";
26187
26191
  svgDom.style.height = "0";
26188
- svgDom.id = "__svg__icons__dom__1777431103847__";
26192
+ svgDom.id = "__svg__icons__dom__1777447139884__";
26189
26193
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
26190
26194
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
26191
26195
  }
@@ -62602,20 +62606,15 @@ const _sfc_main$2 = {
62602
62606
  if (ref2 && typeof ref2.setFormJson === "function") {
62603
62607
  ref2.setFormJson(lodash.exports.cloneDeep(this.formJson));
62604
62608
  this.$nextTick(() => {
62605
- this.syncFormDisabledStatus();
62606
62609
  this.flushPendingColHiddenOps();
62610
+ this.syncFormDisabledStatus();
62607
62611
  });
62608
62612
  }
62609
62613
  });
62610
62614
  },
62611
62615
  setColHidden(colNames, hidden) {
62612
62616
  const names = Array.isArray(colNames) ? colNames : [colNames];
62613
- const ref2 = this.$refs.detailFormRender;
62614
- if (!ref2 || typeof ref2.setColHidden !== "function") {
62615
- this.pendingColHiddenOps.push({ names, hidden });
62616
- return;
62617
- }
62618
- names.forEach((name) => ref2.setColHidden(name, hidden));
62617
+ this.pendingColHiddenOps.push({ names, hidden });
62619
62618
  },
62620
62619
  flushPendingColHiddenOps() {
62621
62620
  if (!this.pendingColHiddenOps.length) {
@@ -62756,7 +62755,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
62756
62755
  _: 1
62757
62756
  }, 8, ["modelValue", "onClose"]);
62758
62757
  }
62759
- var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-137c1c22"]]);
62758
+ var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-c6770b7c"]]);
62760
62759
  var index_vue_vue_type_style_index_0_lang = "";
62761
62760
  const _sfc_main$1 = {
62762
62761
  name: "asset-table-widget",
@@ -62835,10 +62834,6 @@ const _sfc_main$1 = {
62835
62834
  this.unregisterFromRefList();
62836
62835
  },
62837
62836
  methods: {
62838
- handleClick() {
62839
- this.dialogVisible = true;
62840
- this.triggerEvent("onOpen");
62841
- },
62842
62837
  handleClose() {
62843
62838
  this.dialogVisible = false;
62844
62839
  this.triggerEvent("onClose");