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.
@@ -12581,19 +12581,23 @@ const _sfc_main$3c = {
12581
12581
  };
12582
12582
  const _hoisted_1$G = { class: "file-upload-widget-container" };
12583
12583
  const _hoisted_2$p = {
12584
+ key: 0,
12585
+ class: "no-data-wrap"
12586
+ };
12587
+ const _hoisted_3$k = {
12584
12588
  key: 0,
12585
12589
  class: "el-upload__tip"
12586
12590
  };
12587
- const _hoisted_3$k = { class: "main-tip" };
12588
- const _hoisted_4$h = { class: "sub-tip" };
12589
- const _hoisted_5$e = { class: "upload-file-list" };
12590
- const _hoisted_6$e = { class: "left-wrap" };
12591
- const _hoisted_7$b = ["src"];
12592
- const _hoisted_8$8 = ["title"];
12593
- const _hoisted_9$7 = { class: "right-wrap" };
12594
- const _hoisted_10$6 = ["title", "onClick"];
12595
- const _hoisted_11$4 = ["onClick"];
12591
+ const _hoisted_4$h = { class: "main-tip" };
12592
+ const _hoisted_5$e = { class: "sub-tip" };
12593
+ const _hoisted_6$e = { class: "upload-file-list" };
12594
+ const _hoisted_7$b = { class: "left-wrap" };
12595
+ const _hoisted_8$8 = ["src"];
12596
+ const _hoisted_9$7 = ["title"];
12597
+ const _hoisted_10$6 = { class: "right-wrap" };
12598
+ const _hoisted_11$4 = ["title", "onClick"];
12596
12599
  const _hoisted_12$3 = ["onClick"];
12600
+ const _hoisted_13$3 = ["onClick"];
12597
12601
  function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
12598
12602
  const _component_el_button = resolveComponent("el-button");
12599
12603
  const _component_el_upload = resolveComponent("el-upload");
@@ -12613,6 +12617,7 @@ function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
12613
12617
  }, {
12614
12618
  default: withCtx(() => [
12615
12619
  createElementVNode("div", _hoisted_1$G, [
12620
+ _ctx.getDisabled() && $data.fileList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2$p, " \u6682\u65E0\u6570\u636E ")) : createCommentVNode("", true),
12616
12621
  createVNode(_component_el_upload, {
12617
12622
  ref: "fieldEditor",
12618
12623
  disabled: _ctx.getDisabled(),
@@ -12634,22 +12639,22 @@ function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
12634
12639
  "on-progress": $options.handleProgress
12635
12640
  }, createSlots({
12636
12641
  tip: withCtx(() => [
12637
- !!$props.field.options.uploadTip && !_ctx.getDisabled() ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString($props.field.options.uploadTip), 1)) : createCommentVNode("", true)
12642
+ !!$props.field.options.uploadTip && !_ctx.getDisabled() ? (openBlock(), createElementBlock("div", _hoisted_3$k, toDisplayString($props.field.options.uploadTip), 1)) : createCommentVNode("", true)
12638
12643
  ]),
12639
12644
  file: withCtx(({ file }) => [
12640
- createElementVNode("div", _hoisted_5$e, [
12641
- createElementVNode("div", _hoisted_6$e, [
12645
+ createElementVNode("div", _hoisted_6$e, [
12646
+ createElementVNode("div", _hoisted_7$b, [
12642
12647
  createElementVNode("img", {
12643
12648
  src: $options.getFileIcon(file.name),
12644
12649
  alt: "",
12645
12650
  style: { "width": "18px", "height": "18px", "margin-right": "8px" }
12646
- }, null, 8, _hoisted_7$b),
12651
+ }, null, 8, _hoisted_8$8),
12647
12652
  createElementVNode("div", {
12648
12653
  class: "upload-file-name",
12649
12654
  title: file.name
12650
- }, toDisplayString(file.name), 9, _hoisted_8$8)
12655
+ }, toDisplayString(file.name), 9, _hoisted_9$7)
12651
12656
  ]),
12652
- createElementVNode("div", _hoisted_9$7, [
12657
+ createElementVNode("div", _hoisted_10$6, [
12653
12658
  !_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
12654
12659
  key: 0,
12655
12660
  class: "file-action",
@@ -12660,17 +12665,17 @@ function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
12660
12665
  src: _imports_1,
12661
12666
  alt: ""
12662
12667
  }, null, -1)
12663
- ])], 8, _hoisted_10$6)) : createCommentVNode("", true),
12668
+ ])], 8, _hoisted_11$4)) : createCommentVNode("", true),
12664
12669
  _ctx.getDisabled() && !$options.isZip(file.name) ? (openBlock(), createElementBlock("div", {
12665
12670
  key: 1,
12666
12671
  onClick: withModifiers(($event) => $options.handlePreview(file), ["stop"]),
12667
12672
  class: "pr-8px color-primary cursor-pointer file-action-right"
12668
- }, " \u9884\u89C8 ", 8, _hoisted_11$4)) : createCommentVNode("", true),
12673
+ }, " \u9884\u89C8 ", 8, _hoisted_12$3)) : createCommentVNode("", true),
12669
12674
  _ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
12670
12675
  key: 2,
12671
12676
  onClick: withModifiers(($event) => $options.handleDownload(file), ["stop"]),
12672
12677
  class: "pr-8px color-primary cursor-pointer file-action-right"
12673
- }, " \u4E0B\u8F7D ", 8, _hoisted_12$3)) : createCommentVNode("", true)
12678
+ }, " \u4E0B\u8F7D ", 8, _hoisted_13$3)) : createCommentVNode("", true)
12674
12679
  ])
12675
12680
  ])
12676
12681
  ]),
@@ -12684,8 +12689,8 @@ function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
12684
12689
  src: _imports_0,
12685
12690
  alt: ""
12686
12691
  }, null, -1)),
12687
- createElementVNode("div", _hoisted_3$k, toDisplayString($props.field.options.mainTip || "\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"), 1),
12688
- createElementVNode("div", _hoisted_4$h, toDisplayString($props.field.options.subTip || `\u652F\u6301\u4E0A\u4F20${$props.field.options.fileTypes.slice(0, 8).join("\uFF0C")}\u7B49\u683C\u5F0F\u6587\u4EF6`), 1)
12692
+ createElementVNode("div", _hoisted_4$h, toDisplayString($props.field.options.mainTip || "\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"), 1),
12693
+ createElementVNode("div", _hoisted_5$e, toDisplayString($props.field.options.subTip || `\u652F\u6301\u4E0A\u4F20${$props.field.options.fileTypes.slice(0, 8).join("\uFF0C")}\u7B49\u683C\u5F0F\u6587\u4EF6`), 1)
12689
12694
  ], 64)) : (openBlock(), createBlock(_component_el_button, {
12690
12695
  key: 1,
12691
12696
  type: "primary"
@@ -12711,7 +12716,7 @@ function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
12711
12716
  _: 1
12712
12717
  }, 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"]);
12713
12718
  }
12714
- var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3c, [["render", _sfc_render$3c], ["__scopeId", "data-v-7746136c"]]);
12719
+ var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3c, [["render", _sfc_render$3c], ["__scopeId", "data-v-497c69c8"]]);
12715
12720
  var __glob_0_7$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12716
12721
  __proto__: null,
12717
12722
  "default": fileUploadWidget
@@ -13396,7 +13401,6 @@ function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) {
13396
13401
  "sub-form-row-id": $props.subFormRowId
13397
13402
  }, {
13398
13403
  default: withCtx(() => [
13399
- createTextVNode(toDisplayString(_ctx.getDisabled()) + " ", 1),
13400
13404
  createVNode(_component_el_radio_group, {
13401
13405
  ref: "fieldEditor",
13402
13406
  modelValue: $data.fieldModel,
@@ -13441,7 +13445,7 @@ function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) {
13441
13445
  _: 1
13442
13446
  }, 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"]);
13443
13447
  }
13444
- var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$37, [["render", _sfc_render$37], ["__scopeId", "data-v-b9950f6a"]]);
13448
+ var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$37, [["render", _sfc_render$37], ["__scopeId", "data-v-05b877c5"]]);
13445
13449
  var __glob_0_13$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13446
13450
  __proto__: null,
13447
13451
  "default": radioWidget
@@ -68444,13 +68448,13 @@ function registerIcon(app) {
68444
68448
  if (typeof window !== "undefined") {
68445
68449
  let loadSvg = function() {
68446
68450
  var body = document.body;
68447
- var svgDom = document.getElementById("__svg__icons__dom__1777431095506__");
68451
+ var svgDom = document.getElementById("__svg__icons__dom__1777447131638__");
68448
68452
  if (!svgDom) {
68449
68453
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
68450
68454
  svgDom.style.position = "absolute";
68451
68455
  svgDom.style.width = "0";
68452
68456
  svgDom.style.height = "0";
68453
- svgDom.id = "__svg__icons__dom__1777431095506__";
68457
+ svgDom.id = "__svg__icons__dom__1777447131638__";
68454
68458
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
68455
68459
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
68456
68460
  }
@@ -79320,20 +79324,15 @@ const _sfc_main$2 = {
79320
79324
  if (ref2 && typeof ref2.setFormJson === "function") {
79321
79325
  ref2.setFormJson(lodash.exports.cloneDeep(this.formJson));
79322
79326
  this.$nextTick(() => {
79323
- this.syncFormDisabledStatus();
79324
79327
  this.flushPendingColHiddenOps();
79328
+ this.syncFormDisabledStatus();
79325
79329
  });
79326
79330
  }
79327
79331
  });
79328
79332
  },
79329
79333
  setColHidden(colNames, hidden) {
79330
79334
  const names = Array.isArray(colNames) ? colNames : [colNames];
79331
- const ref2 = this.$refs.detailFormRender;
79332
- if (!ref2 || typeof ref2.setColHidden !== "function") {
79333
- this.pendingColHiddenOps.push({ names, hidden });
79334
- return;
79335
- }
79336
- names.forEach((name) => ref2.setColHidden(name, hidden));
79335
+ this.pendingColHiddenOps.push({ names, hidden });
79337
79336
  },
79338
79337
  flushPendingColHiddenOps() {
79339
79338
  if (!this.pendingColHiddenOps.length) {
@@ -79474,7 +79473,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
79474
79473
  _: 1
79475
79474
  }, 8, ["modelValue", "onClose"]);
79476
79475
  }
79477
- var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-137c1c22"]]);
79476
+ var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-c6770b7c"]]);
79478
79477
  var index_vue_vue_type_style_index_0_lang = "";
79479
79478
  const _sfc_main$1 = {
79480
79479
  name: "asset-table-widget",
@@ -79553,10 +79552,6 @@ const _sfc_main$1 = {
79553
79552
  this.unregisterFromRefList();
79554
79553
  },
79555
79554
  methods: {
79556
- handleClick() {
79557
- this.dialogVisible = true;
79558
- this.triggerEvent("onOpen");
79559
- },
79560
79555
  handleClose() {
79561
79556
  this.dialogVisible = false;
79562
79557
  this.triggerEvent("onClose");