form-custom-test 3.0.52 → 3.0.54

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.
@@ -10155,6 +10155,12 @@ var lodash = { exports: {} };
10155
10155
  })(lodash, lodash.exports);
10156
10156
  var fieldMixin = {
10157
10157
  inject: ["refList", "sfRefList", "getFormConfig", "getGlobalDsv", "globalOptionData", "globalModel", "getOptionData"],
10158
+ props: {
10159
+ subFormDisabled: {
10160
+ type: Boolean,
10161
+ default: false
10162
+ }
10163
+ },
10158
10164
  computed: {
10159
10165
  formConfig() {
10160
10166
  return this.getFormConfig();
@@ -10176,6 +10182,9 @@ var fieldMixin = {
10176
10182
  }
10177
10183
  },
10178
10184
  methods: {
10185
+ getDisabled() {
10186
+ return this.subFormDisabled === true || !!this.field && !!this.field.options && !!this.field.options.disabled;
10187
+ },
10179
10188
  getPropName() {
10180
10189
  if (this.subFormItemFlag && !this.designState) {
10181
10190
  return this.subFormName + "." + this.subFormRowIndex + "." + this.field.options.name + "";
@@ -10493,8 +10502,27 @@ var fieldMixin = {
10493
10502
  return formRef && typeof formRef.findColByName === "function" ? formRef.findColByName(null, colName) : null;
10494
10503
  },
10495
10504
  setColHidden(colName, hidden) {
10496
- const formRef = this.getFormRef();
10497
- return formRef && typeof formRef.setColHidden === "function" ? formRef.setColHidden(colName, hidden) : false;
10505
+ const hiddenVal = !!hidden;
10506
+ console.log("colName", colName);
10507
+ if (Array.isArray(colName)) {
10508
+ let anySet = false;
10509
+ colName.forEach((cName) => {
10510
+ console.log("cName", cName);
10511
+ const col2 = this.findColByName(cName);
10512
+ console.log("col", col2);
10513
+ if (col2 && col2.options) {
10514
+ col2.options.hidden = hiddenVal;
10515
+ console.log("col.options.hidden", col2.options.hidden);
10516
+ anySet = true;
10517
+ }
10518
+ });
10519
+ return anySet;
10520
+ }
10521
+ const col = this.findColByName(colName);
10522
+ if (!col || !col.options)
10523
+ return false;
10524
+ col.options.hidden = hiddenVal;
10525
+ return true;
10498
10526
  },
10499
10527
  getWidgetRef(widgetName, showError, rowId) {
10500
10528
  let foundRef = null;
@@ -10732,7 +10760,7 @@ function _sfc_render$3q(_ctx, _cache, $props, $setup, $data, $options) {
10732
10760
  round: $props.field.options.round,
10733
10761
  circle: $props.field.options.circle,
10734
10762
  icon: $props.field.options.icon,
10735
- disabled: $props.field.options.disabled,
10763
+ disabled: _ctx.getDisabled(),
10736
10764
  onClick: _ctx.handleButtonWidgetClick
10737
10765
  }, {
10738
10766
  default: withCtx(() => [
@@ -10744,7 +10772,7 @@ function _sfc_render$3q(_ctx, _cache, $props, $setup, $data, $options) {
10744
10772
  _: 1
10745
10773
  }, 8, ["designer", "field", "design-state", "display-style", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
10746
10774
  }
10747
- var buttonWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3q, [["render", _sfc_render$3q], ["__scopeId", "data-v-1ba2a127"]]);
10775
+ var buttonWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3q, [["render", _sfc_render$3q], ["__scopeId", "data-v-78bf6014"]]);
10748
10776
  var __glob_0_0$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10749
10777
  __proto__: null,
10750
10778
  "default": buttonWidget
@@ -11103,7 +11131,7 @@ function _sfc_render$3o(_ctx, _cache, $props, $setup, $data, $options) {
11103
11131
  options: $props.field.options.optionItems,
11104
11132
  modelValue: $data.fieldModel,
11105
11133
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
11106
- disabled: $props.field.options.disabled,
11134
+ disabled: _ctx.getDisabled(),
11107
11135
  size: _ctx.widgetSize,
11108
11136
  clearable: $props.field.options.clearable,
11109
11137
  filterable: $props.field.options.filterable,
@@ -11119,7 +11147,7 @@ function _sfc_render$3o(_ctx, _cache, $props, $setup, $data, $options) {
11119
11147
  _: 1
11120
11148
  }, 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"]);
11121
11149
  }
11122
- var cascaderWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3o, [["render", _sfc_render$3o], ["__scopeId", "data-v-ec070d7c"]]);
11150
+ var cascaderWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3o, [["render", _sfc_render$3o], ["__scopeId", "data-v-7c3dbd57"]]);
11123
11151
  var __glob_0_1$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11124
11152
  __proto__: null,
11125
11153
  "default": cascaderWidget
@@ -11203,7 +11231,7 @@ function _sfc_render$3n(_ctx, _cache, $props, $setup, $data, $options) {
11203
11231
  ref: "fieldEditor",
11204
11232
  modelValue: $data.fieldModel,
11205
11233
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
11206
- disabled: $props.field.options.disabled,
11234
+ disabled: _ctx.getDisabled(),
11207
11235
  size: _ctx.widgetSize,
11208
11236
  onChange: _ctx.handleChangeEvent
11209
11237
  }, {
@@ -11242,7 +11270,7 @@ function _sfc_render$3n(_ctx, _cache, $props, $setup, $data, $options) {
11242
11270
  _: 1
11243
11271
  }, 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"]);
11244
11272
  }
11245
- var checkboxWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3n, [["render", _sfc_render$3n], ["__scopeId", "data-v-716b0a6b"]]);
11273
+ var checkboxWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3n, [["render", _sfc_render$3n], ["__scopeId", "data-v-3944f5f4"]]);
11246
11274
  var __glob_0_2$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11247
11275
  __proto__: null,
11248
11276
  "default": checkboxWidget
@@ -11324,14 +11352,14 @@ function _sfc_render$3m(_ctx, _cache, $props, $setup, $data, $options) {
11324
11352
  modelValue: $data.fieldModel,
11325
11353
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
11326
11354
  size: _ctx.widgetSize,
11327
- disabled: $props.field.options.disabled,
11355
+ disabled: _ctx.getDisabled(),
11328
11356
  onChange: _ctx.handleChangeEvent
11329
11357
  }, null, 8, ["modelValue", "size", "disabled", "onChange"])
11330
11358
  ]),
11331
11359
  _: 1
11332
11360
  }, 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"]);
11333
11361
  }
11334
- var colorWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3m, [["render", _sfc_render$3m], ["__scopeId", "data-v-8d04bd98"]]);
11362
+ var colorWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3m, [["render", _sfc_render$3m], ["__scopeId", "data-v-52b66ef1"]]);
11335
11363
  var __glob_0_3$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11336
11364
  __proto__: null,
11337
11365
  "default": colorWidget
@@ -11413,7 +11441,7 @@ function _sfc_render$3l(_ctx, _cache, $props, $setup, $data, $options) {
11413
11441
  type: $props.field.options.type,
11414
11442
  modelValue: $data.fieldModel,
11415
11443
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
11416
- disabled: $props.field.options.disabled,
11444
+ disabled: _ctx.getDisabled(),
11417
11445
  readonly: $props.field.options.readonly,
11418
11446
  size: _ctx.widgetSize,
11419
11447
  clearable: $props.field.options.clearable,
@@ -11430,7 +11458,7 @@ function _sfc_render$3l(_ctx, _cache, $props, $setup, $data, $options) {
11430
11458
  _: 1
11431
11459
  }, 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"]);
11432
11460
  }
11433
- var dateRangeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3l, [["render", _sfc_render$3l], ["__scopeId", "data-v-1c70f5c8"]]);
11461
+ var dateRangeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3l, [["render", _sfc_render$3l], ["__scopeId", "data-v-e50300fe"]]);
11434
11462
  var __glob_0_4$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11435
11463
  __proto__: null,
11436
11464
  "default": dateRangeWidget
@@ -11514,7 +11542,7 @@ function _sfc_render$3k(_ctx, _cache, $props, $setup, $data, $options) {
11514
11542
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
11515
11543
  class: normalizeClass([!!$props.field.options.autoFullWidth ? "auto-full-width" : ""]),
11516
11544
  readonly: $props.field.options.readonly,
11517
- disabled: $props.field.options.disabled,
11545
+ disabled: _ctx.getDisabled(),
11518
11546
  size: _ctx.widgetSize,
11519
11547
  clearable: $props.field.options.clearable,
11520
11548
  editable: $props.field.options.editable,
@@ -11529,7 +11557,7 @@ function _sfc_render$3k(_ctx, _cache, $props, $setup, $data, $options) {
11529
11557
  _: 1
11530
11558
  }, 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"]);
11531
11559
  }
11532
- var dateWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3k, [["render", _sfc_render$3k], ["__scopeId", "data-v-75b85548"]]);
11560
+ var dateWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3k, [["render", _sfc_render$3k], ["__scopeId", "data-v-89ff4bae"]]);
11533
11561
  var __glob_0_5$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11534
11562
  __proto__: null,
11535
11563
  "default": dateWidget
@@ -12265,7 +12293,7 @@ function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) {
12265
12293
  createElementVNode("div", _hoisted_1$B, [
12266
12294
  createVNode(_component_el_upload, {
12267
12295
  ref: "fieldEditor",
12268
- disabled: $props.field.options.disabled,
12296
+ disabled: _ctx.getDisabled(),
12269
12297
  style: normalizeStyle($data.styleVariables),
12270
12298
  class: normalizeClass(["dynamicPseudoAfter", { hideUploadDiv: $data.uploadBtnHidden }]),
12271
12299
  action: $options.realUploadURL,
@@ -12342,7 +12370,7 @@ function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) {
12342
12370
  _: 1
12343
12371
  }, 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"]);
12344
12372
  }
12345
- var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$37, [["render", _sfc_render$37], ["__scopeId", "data-v-4ae90317"]]);
12373
+ var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$37, [["render", _sfc_render$37], ["__scopeId", "data-v-6d3ed7e0"]]);
12346
12374
  var __glob_0_7$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12347
12375
  __proto__: null,
12348
12376
  "default": fileUploadWidget
@@ -12508,7 +12536,7 @@ function _sfc_render$35(_ctx, _cache, $props, $setup, $data, $options) {
12508
12536
  ref: "fieldEditor",
12509
12537
  modelValue: $data.fieldModel,
12510
12538
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
12511
- disabled: $props.field.options.disabled,
12539
+ disabled: _ctx.getDisabled(),
12512
12540
  readonly: $props.field.options.readonly,
12513
12541
  size: _ctx.widgetSize,
12514
12542
  class: "hide-spin-button",
@@ -12530,7 +12558,7 @@ function _sfc_render$35(_ctx, _cache, $props, $setup, $data, $options) {
12530
12558
  name: "append",
12531
12559
  fn: withCtx(() => [
12532
12560
  createVNode(_component_el_button, {
12533
- disabled: $props.field.options.disabled || $props.field.options.appendButtonDisabled,
12561
+ disabled: _ctx.getDisabled() || $props.field.options.appendButtonDisabled,
12534
12562
  onClick: _ctx.emitAppendButtonClick
12535
12563
  }, {
12536
12564
  default: withCtx(() => [
@@ -12548,7 +12576,7 @@ function _sfc_render$35(_ctx, _cache, $props, $setup, $data, $options) {
12548
12576
  _: 1
12549
12577
  }, 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"]);
12550
12578
  }
12551
- var inputWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$35, [["render", _sfc_render$35], ["__scopeId", "data-v-0aad1a31"]]);
12579
+ var inputWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$35, [["render", _sfc_render$35], ["__scopeId", "data-v-0346e877"]]);
12552
12580
  var __glob_0_10$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12553
12581
  __proto__: null,
12554
12582
  "default": inputWidget
@@ -12630,7 +12658,7 @@ function _sfc_render$34(_ctx, _cache, $props, $setup, $data, $options) {
12630
12658
  modelValue: $data.fieldModel,
12631
12659
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
12632
12660
  class: "full-width-input",
12633
- disabled: $props.field.options.disabled,
12661
+ disabled: _ctx.getDisabled(),
12634
12662
  size: _ctx.widgetSize,
12635
12663
  "controls-position": $props.field.options.controlsPosition,
12636
12664
  placeholder: $props.field.options.placeholder,
@@ -12646,7 +12674,7 @@ function _sfc_render$34(_ctx, _cache, $props, $setup, $data, $options) {
12646
12674
  _: 1
12647
12675
  }, 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"]);
12648
12676
  }
12649
- var numberWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$34, [["render", _sfc_render$34], ["__scopeId", "data-v-0b9bc82f"]]);
12677
+ var numberWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$34, [["render", _sfc_render$34], ["__scopeId", "data-v-30c98522"]]);
12650
12678
  var __glob_0_11$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12651
12679
  __proto__: null,
12652
12680
  "default": numberWidget
@@ -12882,7 +12910,7 @@ function _sfc_render$33(_ctx, _cache, $props, $setup, $data, $options) {
12882
12910
  default: withCtx(() => [
12883
12911
  createVNode(_component_el_upload, {
12884
12912
  ref: "fieldEditor",
12885
- disabled: $props.field.options.disabled,
12913
+ disabled: _ctx.getDisabled(),
12886
12914
  action: $options.realUploadURL,
12887
12915
  headers: $data.uploadHeaders,
12888
12916
  data: $data.uploadData,
@@ -12947,7 +12975,7 @@ function _sfc_render$33(_ctx, _cache, $props, $setup, $data, $options) {
12947
12975
  _: 1
12948
12976
  }, 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"]);
12949
12977
  }
12950
- var pictureUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$33, [["render", _sfc_render$33], ["__scopeId", "data-v-062b2766"]]);
12978
+ var pictureUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$33, [["render", _sfc_render$33], ["__scopeId", "data-v-4d09ba72"]]);
12951
12979
  var __glob_0_12$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12952
12980
  __proto__: null,
12953
12981
  "default": pictureUploadWidget
@@ -13032,7 +13060,7 @@ function _sfc_render$32(_ctx, _cache, $props, $setup, $data, $options) {
13032
13060
  modelValue: $data.fieldModel,
13033
13061
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
13034
13062
  class: normalizeClass({ "radio-group-block": $props.field.options.displayStyle === "block" }),
13035
- disabled: $props.field.options.disabled,
13063
+ disabled: _ctx.getDisabled(),
13036
13064
  size: _ctx.widgetSize,
13037
13065
  onChange: _ctx.handleChangeEvent
13038
13066
  }, {
@@ -13071,7 +13099,7 @@ function _sfc_render$32(_ctx, _cache, $props, $setup, $data, $options) {
13071
13099
  _: 1
13072
13100
  }, 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"]);
13073
13101
  }
13074
- var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$32, [["render", _sfc_render$32], ["__scopeId", "data-v-253adc5e"]]);
13102
+ var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$32, [["render", _sfc_render$32], ["__scopeId", "data-v-2579b66d"]]);
13075
13103
  var __glob_0_13$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13076
13104
  __proto__: null,
13077
13105
  "default": radioWidget
@@ -13152,7 +13180,7 @@ function _sfc_render$31(_ctx, _cache, $props, $setup, $data, $options) {
13152
13180
  ref: "fieldEditor",
13153
13181
  modelValue: $data.fieldModel,
13154
13182
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
13155
- disabled: $props.field.options.disabled,
13183
+ disabled: _ctx.getDisabled(),
13156
13184
  max: $props.field.options.max,
13157
13185
  "low-threshold": $props.field.options.lowThreshold,
13158
13186
  "high-threshold": $props.field.options.highThreshold,
@@ -13165,7 +13193,7 @@ function _sfc_render$31(_ctx, _cache, $props, $setup, $data, $options) {
13165
13193
  _: 1
13166
13194
  }, 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"]);
13167
13195
  }
13168
- var rateWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$31, [["render", _sfc_render$31], ["__scopeId", "data-v-409c0e8b"]]);
13196
+ var rateWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$31, [["render", _sfc_render$31], ["__scopeId", "data-v-3c7d82fe"]]);
13169
13197
  var __glob_0_14$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13170
13198
  __proto__: null,
13171
13199
  "default": rateWidget
@@ -24714,7 +24742,7 @@ function _sfc_render$2$(_ctx, _cache, $props, $setup, $data, $options) {
24714
24742
  value: $data.fieldModel,
24715
24743
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
24716
24744
  options: $options.editorOption,
24717
- disabled: $props.field.options.disabled,
24745
+ disabled: _ctx.getDisabled(),
24718
24746
  onBlur: $options.handleRichEditorBlurEvent,
24719
24747
  onFocus: $options.handleRichEditorFocusEvent,
24720
24748
  onChange: $options.handleRichEditorChangeEvent,
@@ -24725,7 +24753,7 @@ function _sfc_render$2$(_ctx, _cache, $props, $setup, $data, $options) {
24725
24753
  _: 1
24726
24754
  }, 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"]);
24727
24755
  }
24728
- var richEditorWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2$, [["render", _sfc_render$2$], ["__scopeId", "data-v-a23436fa"]]);
24756
+ var richEditorWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2$, [["render", _sfc_render$2$], ["__scopeId", "data-v-6f719fd1"]]);
24729
24757
  var __glob_0_15$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24730
24758
  __proto__: null,
24731
24759
  "default": richEditorWidget
@@ -24816,7 +24844,7 @@ function _sfc_render$2_(_ctx, _cache, $props, $setup, $data, $options) {
24816
24844
  "node-key": "value",
24817
24845
  "default-expand-all": true,
24818
24846
  "expand-on-click-node": false,
24819
- disabled: $props.field.options.disabled,
24847
+ disabled: _ctx.getDisabled(),
24820
24848
  size: _ctx.widgetSize,
24821
24849
  clearable: $props.field.options.clearable,
24822
24850
  filterable: $props.field.options.filterable,
@@ -24943,7 +24971,7 @@ function _sfc_render$2Z(_ctx, _cache, $props, $setup, $data, $options) {
24943
24971
  modelValue: $data.fieldModel,
24944
24972
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
24945
24973
  class: "full-width-input",
24946
- disabled: $props.field.options.disabled,
24974
+ disabled: _ctx.getDisabled(),
24947
24975
  size: _ctx.widgetSize,
24948
24976
  clearable: $props.field.options.clearable,
24949
24977
  filterable: $props.field.options.filterable,
@@ -24975,7 +25003,7 @@ function _sfc_render$2Z(_ctx, _cache, $props, $setup, $data, $options) {
24975
25003
  _: 1
24976
25004
  }, 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"]);
24977
25005
  }
24978
- var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Z, [["render", _sfc_render$2Z], ["__scopeId", "data-v-70a357a0"]]);
25006
+ var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Z, [["render", _sfc_render$2Z], ["__scopeId", "data-v-97221160"]]);
24979
25007
  var __glob_0_17$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24980
25008
  __proto__: null,
24981
25009
  "default": selectWidget
@@ -25056,7 +25084,7 @@ function _sfc_render$2Y(_ctx, _cache, $props, $setup, $data, $options) {
25056
25084
  ref: "fieldEditor",
25057
25085
  modelValue: $data.fieldModel,
25058
25086
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
25059
- disabled: $props.field.options.disabled,
25087
+ disabled: _ctx.getDisabled(),
25060
25088
  "show-stops": $props.field.options.showStops,
25061
25089
  min: $props.field.options.min,
25062
25090
  max: $props.field.options.max,
@@ -25069,7 +25097,7 @@ function _sfc_render$2Y(_ctx, _cache, $props, $setup, $data, $options) {
25069
25097
  _: 1
25070
25098
  }, 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"]);
25071
25099
  }
25072
- var sliderWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Y, [["render", _sfc_render$2Y], ["__scopeId", "data-v-92a76556"]]);
25100
+ var sliderWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Y, [["render", _sfc_render$2Y], ["__scopeId", "data-v-c9a31970"]]);
25073
25101
  var __glob_0_18$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25074
25102
  __proto__: null,
25075
25103
  "default": sliderWidget
@@ -25334,7 +25362,7 @@ function _sfc_render$2V(_ctx, _cache, $props, $setup, $data, $options) {
25334
25362
  ref: "fieldEditor",
25335
25363
  modelValue: $data.fieldModel,
25336
25364
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
25337
- disabled: $props.field.options.disabled,
25365
+ disabled: _ctx.getDisabled(),
25338
25366
  "active-text": $props.field.options.activeText,
25339
25367
  "inactive-text": $props.field.options.inactiveText,
25340
25368
  "active-color": $props.field.options.activeColor,
@@ -25346,7 +25374,7 @@ function _sfc_render$2V(_ctx, _cache, $props, $setup, $data, $options) {
25346
25374
  _: 1
25347
25375
  }, 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"]);
25348
25376
  }
25349
- var switchWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2V, [["render", _sfc_render$2V], ["__scopeId", "data-v-3529e848"]]);
25377
+ var switchWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2V, [["render", _sfc_render$2V], ["__scopeId", "data-v-2e8d2d0a"]]);
25350
25378
  var __glob_0_22$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25351
25379
  __proto__: null,
25352
25380
  "default": switchWidget
@@ -25428,7 +25456,7 @@ function _sfc_render$2U(_ctx, _cache, $props, $setup, $data, $options) {
25428
25456
  ref: "fieldEditor",
25429
25457
  modelValue: $data.fieldModel,
25430
25458
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
25431
- disabled: $props.field.options.disabled,
25459
+ disabled: _ctx.getDisabled(),
25432
25460
  readonly: $props.field.options.readonly,
25433
25461
  size: _ctx.widgetSize,
25434
25462
  placeholder: $props.field.options.placeholder,
@@ -25445,7 +25473,7 @@ function _sfc_render$2U(_ctx, _cache, $props, $setup, $data, $options) {
25445
25473
  _: 1
25446
25474
  }, 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"]);
25447
25475
  }
25448
- var textareaWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2U, [["render", _sfc_render$2U], ["__scopeId", "data-v-072d98c8"]]);
25476
+ var textareaWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2U, [["render", _sfc_render$2U], ["__scopeId", "data-v-687fedce"]]);
25449
25477
  var __glob_0_23$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25450
25478
  __proto__: null,
25451
25479
  "default": textareaWidget
@@ -25531,7 +25559,7 @@ function _sfc_render$2T(_ctx, _cache, $props, $setup, $data, $options) {
25531
25559
  modelValue: $data.fieldModel,
25532
25560
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
25533
25561
  class: normalizeClass([!!$props.field.options.autoFullWidth ? "full-width-input" : ""]),
25534
- disabled: $props.field.options.disabled,
25562
+ disabled: _ctx.getDisabled(),
25535
25563
  readonly: $props.field.options.readonly,
25536
25564
  size: _ctx.widgetSize,
25537
25565
  clearable: $props.field.options.clearable,
@@ -25549,7 +25577,7 @@ function _sfc_render$2T(_ctx, _cache, $props, $setup, $data, $options) {
25549
25577
  _: 1
25550
25578
  }, 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"]);
25551
25579
  }
25552
- var timeRangeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2T, [["render", _sfc_render$2T], ["__scopeId", "data-v-2cee4a68"]]);
25580
+ var timeRangeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2T, [["render", _sfc_render$2T], ["__scopeId", "data-v-f78e9b46"]]);
25553
25581
  var __glob_0_24$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25554
25582
  __proto__: null,
25555
25583
  "default": timeRangeWidget
@@ -25631,7 +25659,7 @@ function _sfc_render$2S(_ctx, _cache, $props, $setup, $data, $options) {
25631
25659
  modelValue: $data.fieldModel,
25632
25660
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
25633
25661
  class: normalizeClass([!!$props.field.options.autoFullWidth ? "auto-full-width" : ""]),
25634
- disabled: $props.field.options.disabled,
25662
+ disabled: _ctx.getDisabled(),
25635
25663
  readonly: $props.field.options.readonly,
25636
25664
  size: _ctx.widgetSize,
25637
25665
  clearable: $props.field.options.clearable,
@@ -25647,7 +25675,7 @@ function _sfc_render$2S(_ctx, _cache, $props, $setup, $data, $options) {
25647
25675
  _: 1
25648
25676
  }, 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"]);
25649
25677
  }
25650
- var timeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2S, [["render", _sfc_render$2S], ["__scopeId", "data-v-417e0c7c"]]);
25678
+ var timeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2S, [["render", _sfc_render$2S], ["__scopeId", "data-v-60cd3a6a"]]);
25651
25679
  var __glob_0_25$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25652
25680
  __proto__: null,
25653
25681
  "default": timeWidget
@@ -25688,6 +25716,10 @@ const _sfc_main$2R = {
25688
25716
  fieldSchemaData: {
25689
25717
  type: Array,
25690
25718
  default: void 0
25719
+ },
25720
+ subFormDisabled: {
25721
+ type: Boolean,
25722
+ default: false
25691
25723
  }
25692
25724
  },
25693
25725
  inject: ["refList", "globalModel", "getFormConfig", "previewState"],
@@ -25789,7 +25821,9 @@ function _sfc_render$2R(_ctx, _cache, $props, $setup, $data, $options) {
25789
25821
  "parent-widget": $props.widget,
25790
25822
  "sub-form-row-index": $props.subFormRowIndex,
25791
25823
  "sub-form-row-id": $props.subFormRowId,
25792
- "sub-form-col-index": $props.subFormColIndex
25824
+ "sub-form-col-index": $props.subFormColIndex,
25825
+ "sub-form-disabled": $props.subFormDisabled,
25826
+ disabled: _ctx.disabled || $props.widget.options.disabled
25793
25827
  }, createSlots({ _: 2 }, [
25794
25828
  renderList(Object.keys(_ctx.$slots), (slot) => {
25795
25829
  return {
@@ -25799,7 +25833,7 @@ function _sfc_render$2R(_ctx, _cache, $props, $setup, $data, $options) {
25799
25833
  ])
25800
25834
  };
25801
25835
  })
25802
- ]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-index", "sub-form-row-id", "sub-form-col-index"])) : (openBlock(), createBlock(resolveDynamicComponent(subWidget.type + "-widget"), {
25836
+ ]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-index", "sub-form-row-id", "sub-form-col-index", "sub-form-disabled", "disabled"])) : (openBlock(), createBlock(resolveDynamicComponent(subWidget.type + "-widget"), {
25803
25837
  field: $props.fieldSchemaData && $props.fieldSchemaData[swIdx] ? $props.fieldSchemaData[swIdx] : subWidget,
25804
25838
  designer: null,
25805
25839
  key: $props.fieldSchemaData && $props.fieldSchemaData[swIdx] ? $props.fieldSchemaData[swIdx].id : swIdx,
@@ -25808,6 +25842,7 @@ function _sfc_render$2R(_ctx, _cache, $props, $setup, $data, $options) {
25808
25842
  "parent-widget": $props.parentWidget,
25809
25843
  "sub-form-row-index": $props.subFormRowIndex,
25810
25844
  "sub-form-row-id": $props.subFormRowId,
25845
+ "sub-form-disabled": $props.subFormDisabled,
25811
25846
  "sub-form-col-index": $props.subFormColIndex
25812
25847
  }, createSlots({ _: 2 }, [
25813
25848
  renderList(Object.keys(_ctx.$slots), (slot) => {
@@ -25818,7 +25853,7 @@ function _sfc_render$2R(_ctx, _cache, $props, $setup, $data, $options) {
25818
25853
  ])
25819
25854
  };
25820
25855
  })
25821
- ]), 1032, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-index", "sub-form-row-id", "sub-form-col-index"]))
25856
+ ]), 1032, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-index", "sub-form-row-id", "sub-form-disabled", "sub-form-col-index"]))
25822
25857
  ], 64);
25823
25858
  }), 256)) : (openBlock(), createBlock(_component_el_col, { key: 1 }, {
25824
25859
  default: withCtx(() => [
@@ -25834,7 +25869,7 @@ function _sfc_render$2R(_ctx, _cache, $props, $setup, $data, $options) {
25834
25869
  [vShow, $options.colVisible]
25835
25870
  ]) : createCommentVNode("", true);
25836
25871
  }
25837
- var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2R, [["render", _sfc_render$2R], ["__scopeId", "data-v-76952447"]]);
25872
+ var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2R, [["render", _sfc_render$2R], ["__scopeId", "data-v-bc1d425a"]]);
25838
25873
  var __glob_0_1$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25839
25874
  __proto__: null,
25840
25875
  "default": GridColItem
@@ -26054,6 +26089,10 @@ const _sfc_main$2Q = {
26054
26089
  fieldSchemaData: {
26055
26090
  type: Object,
26056
26091
  default: void 0
26092
+ },
26093
+ subFormDisabled: {
26094
+ type: Boolean,
26095
+ default: false
26057
26096
  }
26058
26097
  },
26059
26098
  inject: ["refList", "sfRefList", "globalModel"],
@@ -26091,6 +26130,7 @@ function _sfc_render$2Q(_ctx, _cache, $props, $setup, $data, $options) {
26091
26130
  "sub-form-row-index": $props.subFormRowIndex,
26092
26131
  "sub-form-row-id": $props.subFormRowId,
26093
26132
  "sub-form-col-index": $props.subFormColIndex,
26133
+ "sub-form-disabled": $props.subFormDisabled,
26094
26134
  "field-schema-data": $props.fieldSchemaData
26095
26135
  }, createSlots({ _: 2 }, [
26096
26136
  renderList(Object.keys(_ctx.$slots), (slot) => {
@@ -26101,7 +26141,7 @@ function _sfc_render$2Q(_ctx, _cache, $props, $setup, $data, $options) {
26101
26141
  ])
26102
26142
  };
26103
26143
  })
26104
- ]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "col-height", "sub-form-row-index", "sub-form-row-id", "sub-form-col-index", "field-schema-data"]);
26144
+ ]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "col-height", "sub-form-row-index", "sub-form-row-id", "sub-form-col-index", "sub-form-disabled", "field-schema-data"]);
26105
26145
  }), 128))
26106
26146
  ]),
26107
26147
  _: 3
@@ -63719,10 +63759,27 @@ function createDesigner(vueInstance) {
63719
63759
  return null;
63720
63760
  },
63721
63761
  setColHidden(colName, hidden) {
63722
- const col = this.findColByName(null, colName);
63762
+ const hiddenVal = !!hidden;
63763
+ console.log("colName", colName);
63764
+ if (Array.isArray(colName)) {
63765
+ let anySet = false;
63766
+ colName.forEach((cName) => {
63767
+ console.log("cName", cName);
63768
+ const col2 = this.findColByName(cName);
63769
+ console.log("col", col2);
63770
+ if (col2 && col2.options) {
63771
+ col2.options.hidden = hiddenVal;
63772
+ anySet = true;
63773
+ }
63774
+ });
63775
+ if (anySet)
63776
+ this.saveCurrentHistoryStep();
63777
+ return anySet;
63778
+ }
63779
+ const col = this.findColByName(colName);
63723
63780
  if (!col || !col.options)
63724
63781
  return false;
63725
- col.options.hidden = !!hidden;
63782
+ col.options.hidden = hiddenVal;
63726
63783
  this.saveCurrentHistoryStep();
63727
63784
  return true;
63728
63785
  },
@@ -67908,13 +67965,13 @@ function registerIcon(app) {
67908
67965
  if (typeof window !== "undefined") {
67909
67966
  let loadSvg = function() {
67910
67967
  var body = document.body;
67911
- var svgDom = document.getElementById("__svg__icons__dom__1772611245574__");
67968
+ var svgDom = document.getElementById("__svg__icons__dom__1772675911510__");
67912
67969
  if (!svgDom) {
67913
67970
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
67914
67971
  svgDom.style.position = "absolute";
67915
67972
  svgDom.style.width = "0";
67916
67973
  svgDom.style.height = "0";
67917
- svgDom.id = "__svg__icons__dom__1772611245574__";
67974
+ svgDom.id = "__svg__icons__dom__1772675911510__";
67918
67975
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
67919
67976
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
67920
67977
  }
@@ -74800,6 +74857,7 @@ const customSubFormSchema = {
74800
74857
  labelAlign: "",
74801
74858
  labelWidth: null,
74802
74859
  hidden: false,
74860
+ disabled: false,
74803
74861
  showBlankRow: true,
74804
74862
  showRowNumber: true,
74805
74863
  customClass: "",
@@ -75346,7 +75404,7 @@ const _sfc_main$8 = {
75346
75404
  return void 0;
75347
75405
  }
75348
75406
  if (containerSchema.widgetList && Array.isArray(containerSchema.widgetList)) {
75349
- return containerSchema.widgetList;
75407
+ return __spreadProps(__spreadValues({}, containerSchema.widgetList), { disabled: this.widget.options.disabled });
75350
75408
  }
75351
75409
  return void 0;
75352
75410
  }
@@ -75437,9 +75495,9 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
75437
75495
  "sub-form-row-index": sfrIdx,
75438
75496
  "sub-form-row-id": subFormRowId,
75439
75497
  "sub-form-col-index": swIdx,
75440
- disabled: $props.widget.options.disabled,
75498
+ subFormDisabled: $props.widget.options.disabled,
75441
75499
  "field-schema-data": $options.getFieldSchemaDataForContainer(subWidget, sfrIdx, swIdx)
75442
- }, null, 8, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-index", "sub-form-row-id", "sub-form-col-index", "disabled", "field-schema-data"])) : subWidget ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
75500
+ }, null, 8, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-index", "sub-form-row-id", "sub-form-col-index", "subFormDisabled", "field-schema-data"])) : subWidget ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
75443
75501
  $data.fieldSchemaData && $data.fieldSchemaData[sfrIdx] && $data.fieldSchemaData[sfrIdx][swIdx] ? (openBlock(), createBlock(resolveDynamicComponent($options.getComponentName(subWidget)), {
75444
75502
  key: 0,
75445
75503
  field: $data.fieldSchemaData[sfrIdx][swIdx],
@@ -75449,8 +75507,8 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
75449
75507
  "sub-form-row-id": subFormRowId,
75450
75508
  "sub-form-row-index": sfrIdx,
75451
75509
  "sub-form-col-index": swIdx,
75452
- disabled: $props.widget.options.disabled
75453
- }, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "disabled"])) : (openBlock(), createElementBlock("div", _hoisted_9, " \u5B57\u6BB5\u52A0\u8F7D\u4E2D... "))
75510
+ "sub-form-disabled": $props.widget.options.disabled
75511
+ }, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "sub-form-disabled"])) : (openBlock(), createElementBlock("div", _hoisted_9, " \u5B57\u6BB5\u52A0\u8F7D\u4E2D... "))
75454
75512
  ], 64)) : createCommentVNode("", true)
75455
75513
  ], 64);
75456
75514
  }), 128)) : (openBlock(), createElementBlock("div", _hoisted_10, [
@@ -75481,7 +75539,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
75481
75539
  _: 1
75482
75540
  }, 8, ["widget"]);
75483
75541
  }
75484
- var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-5993b6a5"]]);
75542
+ var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-3754189c"]]);
75485
75543
  const customTableCellSchema = {
75486
75544
  type: "custom-table-cell",
75487
75545
  category: "container",