form-custom-test 3.0.239 → 3.0.241

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/dist/render.es.js CHANGED
@@ -26663,13 +26663,13 @@ function registerIcon(app) {
26663
26663
  if (typeof window !== "undefined") {
26664
26664
  let loadSvg = function() {
26665
26665
  var body = document.body;
26666
- var svgDom = document.getElementById("__svg__icons__dom__1784509962286__");
26666
+ var svgDom = document.getElementById("__svg__icons__dom__1785820489183__");
26667
26667
  if (!svgDom) {
26668
26668
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
26669
26669
  svgDom.style.position = "absolute";
26670
26670
  svgDom.style.width = "0";
26671
26671
  svgDom.style.height = "0";
26672
- svgDom.id = "__svg__icons__dom__1784509962286__";
26672
+ svgDom.id = "__svg__icons__dom__1785820489183__";
26673
26673
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
26674
26674
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
26675
26675
  }
@@ -65005,6 +65005,10 @@ const _sfc_main$d = {
65005
65005
  VFormRender
65006
65006
  },
65007
65007
  props: {
65008
+ title: {
65009
+ type: String,
65010
+ default: "\u67E5\u770B\u8BE6\u60C5"
65011
+ },
65008
65012
  visible: {
65009
65013
  type: Boolean,
65010
65014
  default: false
@@ -65248,7 +65252,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
65248
65252
  return openBlock(), createBlock(_component_el_dialog, {
65249
65253
  modelValue: $options.dialogVisible,
65250
65254
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.dialogVisible = $event),
65251
- title: "\u67E5\u770B\u8BE6\u60C5",
65255
+ title: $props.title,
65252
65256
  width: "1200px",
65253
65257
  onClose: $options.handleClose,
65254
65258
  "close-on-click-modal": false,
@@ -65287,9 +65291,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
65287
65291
  ])
65288
65292
  ]),
65289
65293
  _: 1
65290
- }, 8, ["modelValue", "onClose"]);
65294
+ }, 8, ["modelValue", "title", "onClose"]);
65291
65295
  }
65292
- var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-1129cf50"]]);
65296
+ var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-ad2f356c"]]);
65293
65297
  var index_vue_vue_type_style_index_0_lang$2 = "";
65294
65298
  const _sfc_main$c = {
65295
65299
  name: "asset-table-widget",
@@ -65916,7 +65920,20 @@ const _sfc_main$a = {
65916
65920
  disabled: true
65917
65921
  };
65918
65922
  },
65919
- computed: {},
65923
+ computed: {
65924
+ title() {
65925
+ var _a, _b, _c;
65926
+ if (((_b = (_a = this.field) == null ? void 0 : _a.options) == null ? void 0 : _b.disabled) || this.disabled) {
65927
+ return "\u67E5\u770B\u8BE6\u60C5";
65928
+ } else {
65929
+ if ((_c = this.detailDialogData) == null ? void 0 : _c.id) {
65930
+ return "\u4FEE\u6539\u5408\u540C\u76F8\u5173\u65B9";
65931
+ } else {
65932
+ return "\u65B0\u589E\u5408\u540C\u76F8\u5173\u65B9";
65933
+ }
65934
+ }
65935
+ }
65936
+ },
65920
65937
  watch: {
65921
65938
  "field.options.required"() {
65922
65939
  this.buildFieldRules();
@@ -65932,6 +65949,7 @@ const _sfc_main$a = {
65932
65949
  this.$nextTick(() => {
65933
65950
  this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
65934
65951
  });
65952
+ this.syncUpdateFormModel(newVal);
65935
65953
  },
65936
65954
  deep: true
65937
65955
  }
@@ -66043,10 +66061,12 @@ const _sfc_main$a = {
66043
66061
  if (!this.fieldModel) {
66044
66062
  this.fieldModel = [];
66045
66063
  }
66064
+ const oldValue = lodash.exports.cloneDeep(this.fieldModel);
66046
66065
  this.fieldModel.push(formData);
66047
66066
  this.fieldModel.forEach((item, index2) => {
66048
66067
  item.id = index2;
66049
66068
  });
66069
+ this.triggerEvent("onChange", this.fieldModel, oldValue);
66050
66070
  } else {
66051
66071
  const index2 = this.fieldModel.findIndex((item) => item.id === this.detailDialogData.id);
66052
66072
  if (index2 === -1)
@@ -66081,7 +66101,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
66081
66101
  class: "legal-table-widget",
66082
66102
  style: normalizeStyle(_ctx.widgetStyle)
66083
66103
  }, [
66084
- createVNode(_component_el_button, {
66104
+ !$props.field.options.disabled ? (openBlock(), createBlock(_component_el_button, {
66105
+ key: 0,
66085
66106
  class: "add-button",
66086
66107
  type: "primary",
66087
66108
  size: "small",
@@ -66091,7 +66112,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
66091
66112
  createTextVNode("\u65B0\u589E", -1)
66092
66113
  ])]),
66093
66114
  _: 1
66094
- }, 8, ["onClick"]),
66115
+ }, 8, ["onClick"])) : createCommentVNode("", true),
66095
66116
  createVNode(_component_el_table, {
66096
66117
  data: $data.fieldModel,
66097
66118
  "max-height": "500px",
@@ -66105,7 +66126,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
66105
66126
  default: withCtx(() => [
66106
66127
  createVNode(_component_el_table_column, {
66107
66128
  prop: "companyName",
66108
- label: "\u5408\u540C\u76F8\u5BF9\u65B9\u540D\u79F0"
66129
+ label: "\u5408\u540C\u76F8\u5173\u65B9\u540D\u79F0"
66109
66130
  }),
66110
66131
  createVNode(_component_el_table_column, {
66111
66132
  prop: "legalPersonName",
@@ -66138,7 +66159,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
66138
66159
  label: "\u64CD\u4F5C"
66139
66160
  }, {
66140
66161
  default: withCtx(({ row }) => [
66141
- createVNode(_component_el_button, {
66162
+ !$props.field.options.disabled ? (openBlock(), createBlock(_component_el_button, {
66163
+ key: 0,
66142
66164
  type: "primary",
66143
66165
  link: "",
66144
66166
  onClick: ($event) => $options.handleRow(row)
@@ -66147,7 +66169,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
66147
66169
  createTextVNode("\u4FEE\u6539", -1)
66148
66170
  ])]),
66149
66171
  _: 1
66150
- }, 8, ["onClick"]),
66172
+ }, 8, ["onClick"])) : createCommentVNode("", true),
66151
66173
  createVNode(_component_el_button, {
66152
66174
  type: "primary",
66153
66175
  link: "",
@@ -66158,7 +66180,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
66158
66180
  ])]),
66159
66181
  _: 1
66160
66182
  }, 8, ["onClick"]),
66161
- createVNode(_component_el_button, {
66183
+ !$props.field.options.disabled ? (openBlock(), createBlock(_component_el_button, {
66184
+ key: 1,
66162
66185
  type: "danger",
66163
66186
  link: "",
66164
66187
  onClick: ($event) => $options.deleteRow(row)
@@ -66167,7 +66190,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
66167
66190
  createTextVNode("\u5220\u9664", -1)
66168
66191
  ])]),
66169
66192
  _: 1
66170
- }, 8, ["onClick"])
66193
+ }, 8, ["onClick"])) : createCommentVNode("", true)
66171
66194
  ]),
66172
66195
  _: 1
66173
66196
  })
@@ -66182,8 +66205,9 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
66182
66205
  data: $data.detailDialogData,
66183
66206
  onClose: $options.handleCloseDetailDialog,
66184
66207
  onConfirm: $options.handleConfirm,
66185
- disabled: $props.field.options.disabled || $data.disabled
66186
- }, null, 8, ["visible", "typeJson", "data", "onClose", "onConfirm", "disabled"])
66208
+ disabled: $props.field.options.disabled || $data.disabled,
66209
+ title: $options.title
66210
+ }, null, 8, ["visible", "typeJson", "data", "onClose", "onConfirm", "disabled", "title"])
66187
66211
  ]),
66188
66212
  _: 1
66189
66213
  }, 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"]);