form-custom-test 3.0.47 → 3.0.48

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.
@@ -67778,13 +67778,13 @@ function registerIcon(app) {
67778
67778
  if (typeof window !== "undefined") {
67779
67779
  let loadSvg = function() {
67780
67780
  var body = document.body;
67781
- var svgDom = document.getElementById("__svg__icons__dom__1772587452631__");
67781
+ var svgDom = document.getElementById("__svg__icons__dom__1772592991983__");
67782
67782
  if (!svgDom) {
67783
67783
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
67784
67784
  svgDom.style.position = "absolute";
67785
67785
  svgDom.style.width = "0";
67786
67786
  svgDom.style.height = "0";
67787
- svgDom.id = "__svg__icons__dom__1772587452631__";
67787
+ svgDom.id = "__svg__icons__dom__1772592991983__";
67788
67788
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
67789
67789
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
67790
67790
  }
@@ -76348,6 +76348,10 @@ const _sfc_main$2 = {
76348
76348
  };
76349
76349
  },
76350
76350
  computed: {
76351
+ formModel() {
76352
+ var _a2, _b2;
76353
+ return ((_b2 = (_a2 = this.globalModel) == null ? void 0 : _a2.formModel) == null ? void 0 : _b2[this.widget.options.name]) || [];
76354
+ },
76351
76355
  customClass() {
76352
76356
  return this.widget.options.customClass || "";
76353
76357
  },
@@ -76363,7 +76367,6 @@ const _sfc_main$2 = {
76363
76367
  watch: {
76364
76368
  formModel: {
76365
76369
  handler(newVal) {
76366
- console.log(newVal, "newVal");
76367
76370
  if (newVal && Array.isArray(newVal)) {
76368
76371
  this.tableData = deepClone(newVal);
76369
76372
  } else if (!newVal) {
@@ -76383,6 +76386,7 @@ const _sfc_main$2 = {
76383
76386
  }
76384
76387
  },
76385
76388
  created() {
76389
+ this.initFieldModel();
76386
76390
  this.initRefList();
76387
76391
  this.initTableData();
76388
76392
  },
@@ -76393,10 +76397,6 @@ const _sfc_main$2 = {
76393
76397
  this.unregisterFromRefList();
76394
76398
  },
76395
76399
  methods: {
76396
- get formModel() {
76397
- var _a2, _b2;
76398
- return ((_b2 = (_a2 = this.globalModel) == null ? void 0 : _a2.formModel) == null ? void 0 : _b2[this.widget.options.name]) || [];
76399
- },
76400
76400
  updateFormModel(data2) {
76401
76401
  if (this.globalModel && this.globalModel.formModel) {
76402
76402
  this.globalModel.formModel[this.widget.options.name] = deepClone(data2);
@@ -76408,8 +76408,8 @@ const _sfc_main$2 = {
76408
76408
  }
76409
76409
  },
76410
76410
  initTableData() {
76411
- if (this.formModel && Array.isArray(this.formModel)) {
76412
- this.tableData = deepClone(this.formModel);
76411
+ if (this.fieldModel && Array.isArray(this.fieldModel)) {
76412
+ this.tableData = deepClone(this.fieldModel);
76413
76413
  } else if (this.widget.options.defaultValue && Array.isArray(this.widget.options.defaultValue)) {
76414
76414
  this.tableData = deepClone(this.widget.options.defaultValue);
76415
76415
  this.updateFormModel(this.tableData);
@@ -76945,7 +76945,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
76945
76945
  _: 1
76946
76946
  }, 8, ["widget"]);
76947
76947
  }
76948
- var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-5dac9ba0"]]);
76948
+ var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-22c76baf"]]);
76949
76949
  var subTableColumnsEditor_vue_vue_type_style_index_0_scoped_true_lang = "";
76950
76950
  const _sfc_main$1 = {
76951
76951
  name: "sub-table-columns-editor",