form-custom-test 3.0.176 → 3.0.178

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
@@ -26511,13 +26511,13 @@ function registerIcon(app) {
26511
26511
  if (typeof window !== "undefined") {
26512
26512
  let loadSvg = function() {
26513
26513
  var body = document.body;
26514
- var svgDom = document.getElementById("__svg__icons__dom__1780041143793__");
26514
+ var svgDom = document.getElementById("__svg__icons__dom__1780301578192__");
26515
26515
  if (!svgDom) {
26516
26516
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
26517
26517
  svgDom.style.position = "absolute";
26518
26518
  svgDom.style.width = "0";
26519
26519
  svgDom.style.height = "0";
26520
- svgDom.id = "__svg__icons__dom__1780041143793__";
26520
+ svgDom.id = "__svg__icons__dom__1780301578192__";
26521
26521
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
26522
26522
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
26523
26523
  }
@@ -63890,52 +63890,7 @@ const _sfc_main$4 = {
63890
63890
  },
63891
63891
  data() {
63892
63892
  return {
63893
- fieldModel: [
63894
- {
63895
- enterpriseName: "\u516C\u53F81",
63896
- enterpriseProjectCount: "100",
63897
- projectName: "\u9879\u76EEA",
63898
- projectStage: "\u9636\u6BB51",
63899
- totalPlannedInvestment: "500",
63900
- completedInvestment: "200",
63901
- currentYearPlannedInvestment: "100",
63902
- enterpriseTotalPlannedInvestment: "300",
63903
- remark: "\u5907\u6CE81"
63904
- },
63905
- {
63906
- enterpriseName: "\u516C\u53F81",
63907
- enterpriseProjectCount: "200",
63908
- projectName: "\u9879\u76EEB",
63909
- projectStage: "\u9636\u6BB52",
63910
- totalPlannedInvestment: "800",
63911
- completedInvestment: "300",
63912
- currentYearPlannedInvestment: "150",
63913
- enterpriseTotalPlannedInvestment: "450",
63914
- remark: "\u5907\u6CE82"
63915
- },
63916
- {
63917
- enterpriseName: "\u516C\u53F81",
63918
- enterpriseProjectCount: "150",
63919
- projectName: "\u9879\u76EEC",
63920
- projectStage: "\u9636\u6BB53",
63921
- totalPlannedInvestment: "600",
63922
- completedInvestment: "250",
63923
- currentYearPlannedInvestment: "120",
63924
- enterpriseTotalPlannedInvestment: "380",
63925
- remark: "\u5907\u6CE83"
63926
- },
63927
- {
63928
- enterpriseName: "\u516C\u53F82",
63929
- enterpriseProjectCount: "300",
63930
- projectName: "\u9879\u76EED",
63931
- projectStage: "\u9636\u6BB51",
63932
- totalPlannedInvestment: "1000",
63933
- completedInvestment: "400",
63934
- currentYearPlannedInvestment: "200",
63935
- enterpriseTotalPlannedInvestment: "600",
63936
- remark: "\u5907\u6CE84"
63937
- }
63938
- ],
63893
+ fieldModel: [],
63939
63894
  oldFieldValue: null,
63940
63895
  rules: [],
63941
63896
  detailDialogVisible: false,
@@ -64023,10 +63978,11 @@ const _sfc_main$4 = {
64023
63978
  this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
64024
63979
  },
64025
63980
  updateRowData(row) {
64026
- const index2 = this.fieldModel.findIndex((item) => item.assetId === row.assetId);
63981
+ const index2 = this.fieldModel.findIndex((item) => item.id === row.id);
64027
63982
  if (index2 === -1)
64028
63983
  return;
64029
63984
  this.fieldModel[index2] = __spreadValues(__spreadValues({}, this.fieldModel[index2]), row);
63985
+ this.detailDialogData = lodash.exports.cloneDeep(this.fieldModel[index2]);
64030
63986
  },
64031
63987
  triggerEvent(eventName, ...args) {
64032
63988
  var _a, _b;
@@ -64064,7 +64020,7 @@ const _sfc_main$4 = {
64064
64020
  }
64065
64021
  },
64066
64022
  handleRow(row) {
64067
- const index2 = this.fieldModel.findIndex((item) => item.assetId === row.assetId);
64023
+ const index2 = this.fieldModel.findIndex((item) => item.id === row.id);
64068
64024
  if (index2 === -1)
64069
64025
  return;
64070
64026
  this.triggerEvent("onOpen", this.fieldModel[index2]);
@@ -64084,7 +64040,7 @@ const _sfc_main$4 = {
64084
64040
  this.detailDialogData = null;
64085
64041
  },
64086
64042
  handleConfirm(formData) {
64087
- const index2 = this.fieldModel.findIndex((item) => item.assetId === this.detailDialogData.assetId);
64043
+ const index2 = this.fieldModel.findIndex((item) => item.id === this.detailDialogData.id);
64088
64044
  if (index2 === -1)
64089
64045
  return;
64090
64046
  const oldValue = lodash.exports.cloneDeep(this.fieldModel);
@@ -64243,7 +64199,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
64243
64199
  _: 1
64244
64200
  }, 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"]);
64245
64201
  }
64246
- var FixedTableWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-efede3a6"]]);
64202
+ var FixedTableWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-688ddc79"]]);
64247
64203
  var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
64248
64204
  const _sfc_main$3 = {
64249
64205
  name: "equity-table-widget",
@@ -64281,56 +64237,7 @@ const _sfc_main$3 = {
64281
64237
  },
64282
64238
  data() {
64283
64239
  return {
64284
- fieldModel: [
64285
- {
64286
- enterpriseName: "\u516C\u53F81",
64287
- enterpriseProjectCount: "100",
64288
- projectName: "\u9879\u76EEA",
64289
- registeredCapital: "\u9636\u6BB51",
64290
- subscribedCapital: "500",
64291
- paidInCapital: "200",
64292
- currentYearPlannedInvestment: "100",
64293
- enterpriseTotalPlannedInvestment: "300",
64294
- label9: "\u81EA\u6709\u8D44\u91D1",
64295
- remark: "\u5907\u6CE81"
64296
- },
64297
- {
64298
- enterpriseName: "\u516C\u53F81",
64299
- enterpriseProjectCount: "200",
64300
- projectName: "\u9879\u76EEB",
64301
- registeredCapital: "\u9636\u6BB52",
64302
- subscribedCapital: "800",
64303
- paidInCapital: "300",
64304
- currentYearPlannedInvestment: "150",
64305
- enterpriseTotalPlannedInvestment: "450",
64306
- label9: "\u94F6\u884C\u8D37\u6B3E",
64307
- remark: "\u5907\u6CE82"
64308
- },
64309
- {
64310
- enterpriseName: "\u516C\u53F81",
64311
- enterpriseProjectCount: "150",
64312
- projectName: "\u9879\u76EEC",
64313
- registeredCapital: "\u9636\u6BB53",
64314
- subscribedCapital: "600",
64315
- paidInCapital: "250",
64316
- currentYearPlannedInvestment: "120",
64317
- enterpriseTotalPlannedInvestment: "380",
64318
- label9: "\u653F\u5E9C\u62E8\u6B3E",
64319
- remark: "\u5907\u6CE83"
64320
- },
64321
- {
64322
- enterpriseName: "\u516C\u53F82",
64323
- enterpriseProjectCount: "300",
64324
- projectName: "\u9879\u76EED",
64325
- registeredCapital: "\u9636\u6BB51",
64326
- subscribedCapital: "1000",
64327
- paidInCapital: "400",
64328
- currentYearPlannedInvestment: "200",
64329
- enterpriseTotalPlannedInvestment: "600",
64330
- label9: "\u81EA\u6709\u8D44\u91D1",
64331
- remark: "\u5907\u6CE84"
64332
- }
64333
- ],
64240
+ fieldModel: [],
64334
64241
  oldFieldValue: null,
64335
64242
  rules: [],
64336
64243
  detailDialogVisible: false,
@@ -64418,10 +64325,11 @@ const _sfc_main$3 = {
64418
64325
  this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
64419
64326
  },
64420
64327
  updateRowData(row) {
64421
- const index2 = this.fieldModel.findIndex((item) => item.assetId === row.assetId);
64328
+ const index2 = this.fieldModel.findIndex((item) => item.id === row.id);
64422
64329
  if (index2 === -1)
64423
64330
  return;
64424
64331
  this.fieldModel[index2] = __spreadValues(__spreadValues({}, this.fieldModel[index2]), row);
64332
+ this.detailDialogData = lodash.exports.cloneDeep(this.fieldModel[index2]);
64425
64333
  },
64426
64334
  triggerEvent(eventName, ...args) {
64427
64335
  var _a, _b;
@@ -64459,7 +64367,7 @@ const _sfc_main$3 = {
64459
64367
  }
64460
64368
  },
64461
64369
  handleRow(row) {
64462
- const index2 = this.fieldModel.findIndex((item) => item.assetId === row.assetId);
64370
+ const index2 = this.fieldModel.findIndex((item) => item.id === row.id);
64463
64371
  if (index2 === -1)
64464
64372
  return;
64465
64373
  this.triggerEvent("onOpen", this.fieldModel[index2]);
@@ -64479,7 +64387,7 @@ const _sfc_main$3 = {
64479
64387
  this.detailDialogData = null;
64480
64388
  },
64481
64389
  handleConfirm(formData) {
64482
- const index2 = this.fieldModel.findIndex((item) => item.assetId === this.detailDialogData.assetId);
64390
+ const index2 = this.fieldModel.findIndex((item) => item.id === this.detailDialogData.id);
64483
64391
  if (index2 === -1)
64484
64392
  return;
64485
64393
  const oldValue = lodash.exports.cloneDeep(this.fieldModel);
@@ -64649,7 +64557,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
64649
64557
  _: 1
64650
64558
  }, 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"]);
64651
64559
  }
64652
- var EquityTableSchema = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-2a519ee3"]]);
64560
+ var EquityTableSchema = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-61bec177"]]);
64653
64561
  const AssetTypeEnum = {
64654
64562
  "0": "equity",
64655
64563
  "1": "house",