form-custom-test 3.0.234 → 3.0.236

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.
@@ -69322,13 +69322,13 @@ function registerIcon(app) {
69322
69322
  if (typeof window !== "undefined") {
69323
69323
  let loadSvg = function() {
69324
69324
  var body = document.body;
69325
- var svgDom = document.getElementById("__svg__icons__dom__1784188316301__");
69325
+ var svgDom = document.getElementById("__svg__icons__dom__1784190038190__");
69326
69326
  if (!svgDom) {
69327
69327
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
69328
69328
  svgDom.style.position = "absolute";
69329
69329
  svgDom.style.width = "0";
69330
69330
  svgDom.style.height = "0";
69331
- svgDom.id = "__svg__icons__dom__1784188316301__";
69331
+ svgDom.id = "__svg__icons__dom__1784190038190__";
69332
69332
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
69333
69333
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
69334
69334
  }
@@ -78654,7 +78654,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
78654
78654
  modelValue: $data.dialogFormData[col.prop],
78655
78655
  "onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
78656
78656
  placeholder: col.placeholder || `\u8BF7\u8F93\u5165${col.label}`,
78657
- disabled: $props.widget.options.disabled,
78657
+ disabled: !col.editable,
78658
78658
  maxlength: $options.getColMaxLength(col),
78659
78659
  "show-word-limit": !!col.showWordLimit && !!col.maxLength,
78660
78660
  onChange: ($event) => $options.handleInputChange(col),
@@ -78664,7 +78664,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
78664
78664
  modelValue: $data.dialogFormData[col.prop],
78665
78665
  "onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
78666
78666
  placeholder: col.placeholder || `\u8BF7\u8F93\u5165${col.label}`,
78667
- disabled: $props.widget.options.disabled,
78667
+ disabled: !col.editable,
78668
78668
  style: { "width": "100%" },
78669
78669
  onChange: ($event) => $options.handleInputChange(col),
78670
78670
  clearable: ""
@@ -78674,43 +78674,43 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
78674
78674
  "onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
78675
78675
  type: "date",
78676
78676
  placeholder: col.placeholder || `\u8BF7\u9009\u62E9${col.label}`,
78677
- disabled: $props.widget.options.disabled,
78678
78677
  style: { "width": "100%" },
78679
78678
  "value-format": "YYYY-MM-DD",
78680
78679
  onChange: ($event) => $options.handleInputChange(col),
78681
- clearable: ""
78682
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "onChange"])) : col.type === "datetime" ? (openBlock(), createBlock(_component_el_date_picker, {
78680
+ clearable: "",
78681
+ disabled: !col.editable
78682
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange", "disabled"])) : col.type === "datetime" ? (openBlock(), createBlock(_component_el_date_picker, {
78683
78683
  key: 3,
78684
78684
  modelValue: $data.dialogFormData[col.prop],
78685
78685
  "onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
78686
78686
  type: "datetime",
78687
78687
  placeholder: col.placeholder || `\u8BF7\u9009\u62E9${col.label}`,
78688
- disabled: $props.widget.options.disabled,
78689
78688
  clearable: "",
78690
78689
  style: { "width": "100%" },
78691
- "value-format": "YYYY-MM-DD HH:mm:ss"
78690
+ "value-format": "YYYY-MM-DD HH:mm:ss",
78691
+ disabled: !col.editable
78692
78692
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "month" ? (openBlock(), createBlock(_component_el_date_picker, {
78693
78693
  key: 4,
78694
78694
  modelValue: $data.dialogFormData[col.prop],
78695
78695
  "onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
78696
78696
  type: "month",
78697
78697
  placeholder: col.placeholder || `\u8BF7\u9009\u62E9${col.label}`,
78698
- disabled: $props.widget.options.disabled,
78699
78698
  style: { "width": "100%" },
78700
78699
  "value-format": "YYYY-MM",
78701
78700
  clearable: "",
78702
- onChange: ($event) => $options.handleInputChange(col)
78703
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "onChange"])) : col.type === "select" ? (openBlock(), createBlock(_component_el_select, {
78701
+ onChange: ($event) => $options.handleInputChange(col),
78702
+ disabled: !col.editable
78703
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange", "disabled"])) : col.type === "select" ? (openBlock(), createBlock(_component_el_select, {
78704
78704
  modelValue: $data.dialogFormData[col.prop],
78705
78705
  "onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
78706
78706
  placeholder: col.placeholder || `\u8BF7\u9009\u62E9${col.label}`,
78707
- disabled: $props.widget.options.disabled,
78708
78707
  clearable: "",
78709
78708
  style: { "width": "100%" },
78710
78709
  ref_for: true,
78711
78710
  ref: (el) => $options.handleSelectMounted(el, col),
78712
78711
  onChange: ($event) => $options.handleInputChange(col),
78713
- key: `select-${col.prop}-${$data.dialogFormData._columnOptions ? Object.keys($data.dialogFormData._columnOptions).length : 0}`
78712
+ key: `select-${col.prop}-${$data.dialogFormData._columnOptions ? Object.keys($data.dialogFormData._columnOptions).length : 0}`,
78713
+ disabled: !col.editable
78714
78714
  }, {
78715
78715
  default: withCtx(() => [
78716
78716
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.getColumnOptions(col), (option, optIdx) => {
@@ -78722,18 +78722,18 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
78722
78722
  }), 128))
78723
78723
  ]),
78724
78724
  _: 2
78725
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "onChange"])) : col.type === "textarea" ? (openBlock(), createBlock(_component_el_textarea, {
78725
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange", "disabled"])) : col.type === "textarea" ? (openBlock(), createBlock(_component_el_textarea, {
78726
78726
  key: 6,
78727
78727
  modelValue: $data.dialogFormData[col.prop],
78728
78728
  "onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
78729
78729
  placeholder: col.placeholder || `\u8BF7\u8F93\u5165${col.label}`,
78730
- disabled: $props.widget.options.disabled,
78731
78730
  rows: col.rows || 3,
78732
78731
  maxlength: $options.getColMaxLength(col),
78733
78732
  "show-word-limit": !!col.showWordLimit && !!col.maxLength,
78734
78733
  clearable: "",
78735
- onChange: ($event) => $options.handleInputChange(col)
78736
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "rows", "maxlength", "show-word-limit", "onChange"])) : createCommentVNode("", true)
78734
+ onChange: ($event) => $options.handleInputChange(col),
78735
+ disabled: !col.editable
78736
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "rows", "maxlength", "show-word-limit", "onChange", "disabled"])) : createCommentVNode("", true)
78737
78737
  ]),
78738
78738
  _: 2
78739
78739
  }, 1032, ["label", "prop", "required"]);
@@ -78751,7 +78751,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
78751
78751
  _: 1
78752
78752
  }, 8, ["widget"]);
78753
78753
  }
78754
- var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-758078c3"]]);
78754
+ var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-1498af31"]]);
78755
78755
  var subTableColumnsEditor_vue_vue_type_style_index_0_scoped_true_lang = "";
78756
78756
  const _sfc_main$k = {
78757
78757
  name: "sub-table-columns-editor",
@@ -78825,7 +78825,8 @@ const _sfc_main$k = {
78825
78825
  required: false,
78826
78826
  validation: "",
78827
78827
  validationHint: "",
78828
- defaultValue: ""
78828
+ defaultValue: "",
78829
+ editable: true
78829
78830
  };
78830
78831
  this.optionModel.columns.push(newColumn);
78831
78832
  this.designer.saveCurrentHistoryStep();
@@ -79181,6 +79182,16 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
79181
79182
  ]),
79182
79183
  _: 2
79183
79184
  }, 1032, ["label"])) : createCommentVNode("", true),
79185
+ createVNode(_component_el_form_item, { label: "\u662F\u5426\u53EF\u7F16\u8F91" }, {
79186
+ default: withCtx(() => [
79187
+ createVNode(_component_el_switch, {
79188
+ modelValue: col.editable,
79189
+ "onUpdate:modelValue": ($event) => col.editable = $event,
79190
+ onChange: $options.handleColumnChange
79191
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
79192
+ ]),
79193
+ _: 2
79194
+ }, 1024),
79184
79195
  createVNode(_component_el_form_item, { label: "\u662F\u5426\u5FC5\u586B" }, {
79185
79196
  default: withCtx(() => [
79186
79197
  createVNode(_component_el_switch, {
@@ -79474,7 +79485,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
79474
79485
  }, 8, ["modelValue", "title"])
79475
79486
  ], 64);
79476
79487
  }
79477
- var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-2401420e"]]);
79488
+ var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-c70bc6ae"]]);
79478
79489
  const _sfc_main$j = {
79479
79490
  name: "current-user-widget",
79480
79491
  componentName: "FieldWidget",