mooho-base-admin-plus 2.10.12 → 2.10.13

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/history.md CHANGED
@@ -183,3 +183,4 @@ mooho-base-admin-plus@2.10.9 - 优化流程查询性能,允许按需返回数
183
183
  mooho-base-admin-plus@2.10.10 - 修复默认筛选的bug
184
184
  mooho-base-admin-plus@2.10.11 - 增加弹出表单控件
185
185
  mooho-base-admin-plus@2.10.12 - 优化表格调整顺序功能
186
+ mooho-base-admin-plus@2.10.13 - 内嵌表格如果是必填,新增时默认一行
@@ -41454,8 +41454,11 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_r
41454
41454
  */
41455
41455
  setDefault(a) {
41456
41456
  if (this.data = this.getDefaultData(), a)
41457
- for (let r in a)
41458
- this.data[r] = a[r];
41457
+ for (let o in a)
41458
+ this.data[o] = a[o];
41459
+ let r = this.columns.filter((o) => o.controlType == "Table" && o.isRequired);
41460
+ for (let o of r)
41461
+ this.$refs["table_" + o.code][0].addNew();
41459
41462
  this.clearValidate();
41460
41463
  },
41461
41464
  /**