form-custom-test 3.0.143 → 3.0.145

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
@@ -25826,10 +25826,9 @@ const _sfc_main$v = {
25826
25826
  };
25827
25827
  traverseFieldWidgets(this.widgetList, handlerFn);
25828
25828
  if (!!subFormName) {
25829
- let subFormRef = this.getWidgetRef(subFormName);
25829
+ let subFormRef = this.subFormRefList[subFormName] || this.getWidgetRef(subFormName);
25830
25830
  if (!!subFormRef) {
25831
- console.log("subFormRef", subFormRef);
25832
- let rowIds = subFormRef == null ? void 0 : subFormRef.getRowIdData();
25831
+ let rowIds = typeof subFormRef.getRowIdData === "function" ? subFormRef.getRowIdData() : Array.isArray(subFormRef.rowIdData) ? subFormRef.rowIdData : [];
25833
25832
  if (!!rowIds && rowIds.length > 0) {
25834
25833
  rowIds.forEach((rid) => {
25835
25834
  result.push(widgetName + "@row" + rid);
@@ -26276,7 +26275,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
26276
26275
  _: 3
26277
26276
  }, 8, ["label-position", "size", "class", "label-width", "model"]);
26278
26277
  }
26279
- var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$v], ["__scopeId", "data-v-6e89fab2"]]);
26278
+ var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$v], ["__scopeId", "data-v-6e3bb628"]]);
26280
26279
  function registerIcon(app) {
26281
26280
  app.component("el-icon-edit", edit);
26282
26281
  app.component("el-icon-minus", minus);
@@ -26291,13 +26290,13 @@ function registerIcon(app) {
26291
26290
  if (typeof window !== "undefined") {
26292
26291
  let loadSvg = function() {
26293
26292
  var body = document.body;
26294
- var svgDom = document.getElementById("__svg__icons__dom__1778809278991__");
26293
+ var svgDom = document.getElementById("__svg__icons__dom__1779085356607__");
26295
26294
  if (!svgDom) {
26296
26295
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
26297
26296
  svgDom.style.position = "absolute";
26298
26297
  svgDom.style.width = "0";
26299
26298
  svgDom.style.height = "0";
26300
- svgDom.id = "__svg__icons__dom__1778809278991__";
26299
+ svgDom.id = "__svg__icons__dom__1779085356607__";
26301
26300
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
26302
26301
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
26303
26302
  }
@@ -34646,6 +34645,9 @@ const _sfc_main$g = {
34646
34645
  deleteFromRowIdData(rowIndex) {
34647
34646
  this.rowIdData.splice(rowIndex, 1);
34648
34647
  },
34648
+ getRowIdData() {
34649
+ return this.rowIdData;
34650
+ },
34649
34651
  disableSubFormRow(rowIndex) {
34650
34652
  if (!this.widget.widgetList || !this.rowIdData[rowIndex])
34651
34653
  return;
@@ -35023,7 +35025,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
35023
35025
  _: 1
35024
35026
  }, 8, ["widget"]);
35025
35027
  }
35026
- var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-3754189c"]]);
35028
+ var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-2aae0291"]]);
35027
35029
  var customTableCellWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
35028
35030
  const _sfc_main$f = {
35029
35031
  name: "custom-table-cell-widget",
@@ -35534,6 +35536,9 @@ const _sfc_main$c = {
35534
35536
  deleteFromRowIdData(rowIndex) {
35535
35537
  this.rowIdData.splice(rowIndex, 1);
35536
35538
  },
35539
+ getRowIdData() {
35540
+ return this.rowIdData;
35541
+ },
35537
35542
  cloneCellWithFields(cellWidget, rowId) {
35538
35543
  const newCell = deepClone(cellWidget);
35539
35544
  newCell.id = "custom-table-cell-" + generateId();
@@ -35751,7 +35756,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
35751
35756
  _: 1
35752
35757
  }, 8, ["widget"]);
35753
35758
  }
35754
- var CustomTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-1aff2bd9"]]);
35759
+ var CustomTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-6e251889"]]);
35755
35760
  var subTableWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
35756
35761
  const _sfc_main$b = {
35757
35762
  name: "sub-table-widget",
@@ -62141,6 +62146,8 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
62141
62146
  width: "1418px",
62142
62147
  onClose: $options.handleClose,
62143
62148
  "body-class": "asset-list-dialog-body",
62149
+ "close-on-click-modal": false,
62150
+ draggable: "",
62144
62151
  "header-class": "asset-list-dialog-header"
62145
62152
  }, {
62146
62153
  footer: withCtx(() => [
@@ -62436,7 +62443,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
62436
62443
  _: 1
62437
62444
  }, 8, ["modelValue", "onClose"]);
62438
62445
  }
62439
- var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-d9c3eebc"]]);
62446
+ var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-0603b722"]]);
62440
62447
  var index_vue_vue_type_style_index_0_lang$1 = "";
62441
62448
  const _sfc_main$5 = {
62442
62449
  name: "asset-select-widget",
@@ -62924,7 +62931,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
62924
62931
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.dialogVisible = $event),
62925
62932
  title: "\u5904\u7F6E\u8BE6\u60C5",
62926
62933
  width: "1200px",
62927
- onClose: $options.handleClose
62934
+ onClose: $options.handleClose,
62935
+ "close-on-click-modal": false,
62936
+ draggable: ""
62928
62937
  }, {
62929
62938
  footer: withCtx(() => [
62930
62939
  createElementVNode("div", _hoisted_3, [
@@ -62960,7 +62969,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
62960
62969
  _: 1
62961
62970
  }, 8, ["modelValue", "onClose"]);
62962
62971
  }
62963
- var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-f66d508c"]]);
62972
+ var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-3a7f7afa"]]);
62964
62973
  var index_vue_vue_type_style_index_0_lang = "";
62965
62974
  const _sfc_main$3 = {
62966
62975
  name: "asset-table-widget",