form-custom-test 3.0.203 → 3.0.204

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
@@ -26517,13 +26517,13 @@ function registerIcon(app) {
26517
26517
  if (typeof window !== "undefined") {
26518
26518
  let loadSvg = function() {
26519
26519
  var body = document.body;
26520
- var svgDom = document.getElementById("__svg__icons__dom__1780883721094__");
26520
+ var svgDom = document.getElementById("__svg__icons__dom__1780883984113__");
26521
26521
  if (!svgDom) {
26522
26522
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
26523
26523
  svgDom.style.position = "absolute";
26524
26524
  svgDom.style.width = "0";
26525
26525
  svgDom.style.height = "0";
26526
- svgDom.id = "__svg__icons__dom__1780883721094__";
26526
+ svgDom.id = "__svg__icons__dom__1780883984113__";
26527
26527
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
26528
26528
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
26529
26529
  }
@@ -36318,10 +36318,6 @@ const _sfc_main$d = {
36318
36318
  this.dialogTitle = "\u65B0\u589E";
36319
36319
  this.initDialogFormData();
36320
36320
  this.dialogVisible = true;
36321
- this.$nextTick(() => {
36322
- var _a;
36323
- (_a = this.$refs.dialogFormRef) == null ? void 0 : _a.clearValidate();
36324
- });
36325
36321
  },
36326
36322
  handleEditRow(index2, row) {
36327
36323
  this.editingIndex = index2;
@@ -36488,14 +36484,15 @@ const _sfc_main$d = {
36488
36484
  }
36489
36485
  });
36490
36486
  },
36487
+ handleDialogOpened() {
36488
+ var _a;
36489
+ (_a = this.$refs.dialogFormRef) == null ? void 0 : _a.clearValidate();
36490
+ },
36491
36491
  handleDialogClose() {
36492
36492
  var _a;
36493
- (_a = this.$refs.dialogFormRef) == null ? void 0 : _a.resetFields();
36493
+ (_a = this.$refs.dialogFormRef) == null ? void 0 : _a.clearValidate();
36494
36494
  this.dialogFormData = {};
36495
36495
  this.editingIndex = -1;
36496
- if (this.dialogFormData._columnOptions) {
36497
- this.dialogFormData._columnOptions = {};
36498
- }
36499
36496
  },
36500
36497
  isTextColumn(col) {
36501
36498
  return !col.type || col.type === "input" || col.type === "textarea";
@@ -36748,7 +36745,8 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
36748
36745
  title: $data.dialogTitle,
36749
36746
  width: "800px",
36750
36747
  "close-on-click-modal": false,
36751
- onClose: $options.handleDialogClose
36748
+ onClose: $options.handleDialogClose,
36749
+ onOpened: $options.handleDialogOpened
36752
36750
  }, {
36753
36751
  footer: withCtx(() => [
36754
36752
  createElementVNode("span", _hoisted_4$5, [
@@ -36778,6 +36776,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
36778
36776
  ref: "dialogFormRef",
36779
36777
  model: $data.dialogFormData,
36780
36778
  rules: $data.dialogFormRules,
36779
+ "validate-on-rule-change": false,
36781
36780
  "label-width": "auto"
36782
36781
  }, {
36783
36782
  default: withCtx(() => [
@@ -36883,7 +36882,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
36883
36882
  }, 8, ["model", "rules"])
36884
36883
  ]),
36885
36884
  _: 1
36886
- }, 8, ["modelValue", "title", "onClose"])
36885
+ }, 8, ["modelValue", "title", "onClose", "onOpened"])
36887
36886
  ], 2)), [
36888
36887
  [vShow, $props.widget && $props.widget.options && !$props.widget.options.hidden]
36889
36888
  ]) : createCommentVNode("", true)
@@ -36891,7 +36890,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
36891
36890
  _: 1
36892
36891
  }, 8, ["widget"]);
36893
36892
  }
36894
- var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-0b06cc4d"]]);
36893
+ var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-7ee123a5"]]);
36895
36894
  var ace$2 = { exports: {} };
36896
36895
  (function(module, exports) {
36897
36896
  (function() {