form-custom-test 3.0.142 → 3.0.144

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,9 +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
- let rowIds = subFormRef.getRowIdData();
25831
+ let rowIds = typeof subFormRef.getRowIdData === "function" ? subFormRef.getRowIdData() : Array.isArray(subFormRef.rowIdData) ? subFormRef.rowIdData : [];
25832
25832
  if (!!rowIds && rowIds.length > 0) {
25833
25833
  rowIds.forEach((rid) => {
25834
25834
  result.push(widgetName + "@row" + rid);
@@ -26275,7 +26275,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
26275
26275
  _: 3
26276
26276
  }, 8, ["label-position", "size", "class", "label-width", "model"]);
26277
26277
  }
26278
- var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$v], ["__scopeId", "data-v-4626d18a"]]);
26278
+ var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$v], ["__scopeId", "data-v-6e3bb628"]]);
26279
26279
  function registerIcon(app) {
26280
26280
  app.component("el-icon-edit", edit);
26281
26281
  app.component("el-icon-minus", minus);
@@ -26290,13 +26290,13 @@ function registerIcon(app) {
26290
26290
  if (typeof window !== "undefined") {
26291
26291
  let loadSvg = function() {
26292
26292
  var body = document.body;
26293
- var svgDom = document.getElementById("__svg__icons__dom__1778807781249__");
26293
+ var svgDom = document.getElementById("__svg__icons__dom__1778809718329__");
26294
26294
  if (!svgDom) {
26295
26295
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
26296
26296
  svgDom.style.position = "absolute";
26297
26297
  svgDom.style.width = "0";
26298
26298
  svgDom.style.height = "0";
26299
- svgDom.id = "__svg__icons__dom__1778807781249__";
26299
+ svgDom.id = "__svg__icons__dom__1778809718329__";
26300
26300
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
26301
26301
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
26302
26302
  }
@@ -34645,6 +34645,9 @@ const _sfc_main$g = {
34645
34645
  deleteFromRowIdData(rowIndex) {
34646
34646
  this.rowIdData.splice(rowIndex, 1);
34647
34647
  },
34648
+ getRowIdData() {
34649
+ return this.rowIdData;
34650
+ },
34648
34651
  disableSubFormRow(rowIndex) {
34649
34652
  if (!this.widget.widgetList || !this.rowIdData[rowIndex])
34650
34653
  return;
@@ -35022,7 +35025,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
35022
35025
  _: 1
35023
35026
  }, 8, ["widget"]);
35024
35027
  }
35025
- 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-6bd07e4e"]]);
35026
35029
  var customTableCellWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
35027
35030
  const _sfc_main$f = {
35028
35031
  name: "custom-table-cell-widget",
@@ -35533,6 +35536,9 @@ const _sfc_main$c = {
35533
35536
  deleteFromRowIdData(rowIndex) {
35534
35537
  this.rowIdData.splice(rowIndex, 1);
35535
35538
  },
35539
+ getRowIdData() {
35540
+ return this.rowIdData;
35541
+ },
35536
35542
  cloneCellWithFields(cellWidget, rowId) {
35537
35543
  const newCell = deepClone(cellWidget);
35538
35544
  newCell.id = "custom-table-cell-" + generateId();
@@ -35750,7 +35756,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
35750
35756
  _: 1
35751
35757
  }, 8, ["widget"]);
35752
35758
  }
35753
- 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-0624b520"]]);
35754
35760
  var subTableWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
35755
35761
  const _sfc_main$b = {
35756
35762
  name: "sub-table-widget",