form-custom-test 3.0.46 → 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.
@@ -27219,6 +27219,12 @@ const _sfc_main$2K = {
27219
27219
  }
27220
27220
  }
27221
27221
  },
27222
+ disableFields(fieldNames) {
27223
+ this.disableWidgets(fieldNames);
27224
+ },
27225
+ enableFields(fieldNames) {
27226
+ this.enableWidgets(fieldNames);
27227
+ },
27222
27228
  enableWidgets(widgetNames) {
27223
27229
  if (!!widgetNames) {
27224
27230
  if (typeof widgetNames === "string") {
@@ -27366,7 +27372,7 @@ function _sfc_render$2K(_ctx, _cache, $props, $setup, $data, $options) {
27366
27372
  _: 3
27367
27373
  }, 8, ["label-position", "size", "class", "label-width", "model"]);
27368
27374
  }
27369
- var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2K, [["render", _sfc_render$2K], ["__scopeId", "data-v-58149a88"]]);
27375
+ var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2K, [["render", _sfc_render$2K], ["__scopeId", "data-v-62d83c26"]]);
27370
27376
  var ace$2 = { exports: {} };
27371
27377
  (function(module, exports) {
27372
27378
  (function() {
@@ -67772,13 +67778,13 @@ function registerIcon(app) {
67772
67778
  if (typeof window !== "undefined") {
67773
67779
  let loadSvg = function() {
67774
67780
  var body = document.body;
67775
- var svgDom = document.getElementById("__svg__icons__dom__1772585317432__");
67781
+ var svgDom = document.getElementById("__svg__icons__dom__1772592991983__");
67776
67782
  if (!svgDom) {
67777
67783
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
67778
67784
  svgDom.style.position = "absolute";
67779
67785
  svgDom.style.width = "0";
67780
67786
  svgDom.style.height = "0";
67781
- svgDom.id = "__svg__icons__dom__1772585317432__";
67787
+ svgDom.id = "__svg__icons__dom__1772592991983__";
67782
67788
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
67783
67789
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
67784
67790
  }
@@ -73969,6 +73975,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
73969
73975
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.displayModel = $event),
73970
73976
  "tag-type": "success",
73971
73977
  "tag-effect": "light",
73978
+ disabled: $props.field.options.disabled,
73972
73979
  placeholder: "\u8BF7\u9009\u62E9\u4EBA\u5458",
73973
73980
  onClick: $options.handleClick,
73974
73981
  ref: "inputTagRef"
@@ -73979,7 +73986,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
73979
73986
  ])
73980
73987
  ]),
73981
73988
  _: 1
73982
- }, 8, ["modelValue", "onClick"])
73989
+ }, 8, ["modelValue", "disabled", "onClick"])
73983
73990
  ]),
73984
73991
  createVNode(_component_el_dialog, {
73985
73992
  modelValue: $data.dialogVisible,
@@ -74054,7 +74061,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
74054
74061
  _: 1
74055
74062
  }, 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"]);
74056
74063
  }
74057
- var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-26dbf941"]]);
74064
+ var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-0f7a3e8a"]]);
74058
74065
  const _sfc_main$c = {
74059
74066
  name: "radio-other-widget",
74060
74067
  componentName: "FieldWidget",
@@ -76341,6 +76348,10 @@ const _sfc_main$2 = {
76341
76348
  };
76342
76349
  },
76343
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
+ },
76344
76355
  customClass() {
76345
76356
  return this.widget.options.customClass || "";
76346
76357
  },
@@ -76375,6 +76386,7 @@ const _sfc_main$2 = {
76375
76386
  }
76376
76387
  },
76377
76388
  created() {
76389
+ this.initFieldModel();
76378
76390
  this.initRefList();
76379
76391
  this.initTableData();
76380
76392
  },
@@ -76385,10 +76397,6 @@ const _sfc_main$2 = {
76385
76397
  this.unregisterFromRefList();
76386
76398
  },
76387
76399
  methods: {
76388
- get formModel() {
76389
- var _a2, _b2;
76390
- return ((_b2 = (_a2 = this.globalModel) == null ? void 0 : _a2.formModel) == null ? void 0 : _b2[this.widget.options.name]) || [];
76391
- },
76392
76400
  updateFormModel(data2) {
76393
76401
  if (this.globalModel && this.globalModel.formModel) {
76394
76402
  this.globalModel.formModel[this.widget.options.name] = deepClone(data2);
@@ -76400,8 +76408,8 @@ const _sfc_main$2 = {
76400
76408
  }
76401
76409
  },
76402
76410
  initTableData() {
76403
- if (this.formModel && Array.isArray(this.formModel)) {
76404
- this.tableData = deepClone(this.formModel);
76411
+ if (this.fieldModel && Array.isArray(this.fieldModel)) {
76412
+ this.tableData = deepClone(this.fieldModel);
76405
76413
  } else if (this.widget.options.defaultValue && Array.isArray(this.widget.options.defaultValue)) {
76406
76414
  this.tableData = deepClone(this.widget.options.defaultValue);
76407
76415
  this.updateFormModel(this.tableData);
@@ -76937,7 +76945,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
76937
76945
  _: 1
76938
76946
  }, 8, ["widget"]);
76939
76947
  }
76940
- var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-021cc444"]]);
76948
+ var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-22c76baf"]]);
76941
76949
  var subTableColumnsEditor_vue_vue_type_style_index_0_scoped_true_lang = "";
76942
76950
  const _sfc_main$1 = {
76943
76951
  name: "sub-table-columns-editor",