form-custom-test 3.0.162 → 3.0.163

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.
@@ -10561,29 +10561,11 @@ var fieldMixin = {
10561
10561
  this.fieldModel = this.field.options.defaultValue;
10562
10562
  }
10563
10563
  },
10564
- clearFieldValidate() {
10565
- var _a2;
10566
- if (this.designState || !((_a2 = this.field) == null ? void 0 : _a2.formItemFlag)) {
10567
- return;
10568
- }
10569
- const formRef = this.getFormRef();
10570
- if (!formRef || typeof formRef.clearValidate !== "function") {
10571
- return;
10572
- }
10573
- const prop = this.getPropName();
10574
- if (!prop) {
10575
- return;
10576
- }
10577
- this.$nextTick(() => {
10578
- formRef.clearValidate(prop);
10579
- });
10580
- },
10581
10564
  clearFieldRules() {
10582
10565
  if (!this.field.formItemFlag) {
10583
10566
  return;
10584
10567
  }
10585
10568
  this.rules.splice(0, this.rules.length);
10586
- this.clearFieldValidate();
10587
10569
  },
10588
10570
  buildFieldRules() {
10589
10571
  if (!this.field.formItemFlag) {
@@ -10591,7 +10573,6 @@ var fieldMixin = {
10591
10573
  }
10592
10574
  this.rules.splice(0, this.rules.length);
10593
10575
  if (!!this.field.options.hidden && !this.designState) {
10594
- this.clearFieldValidate();
10595
10576
  return;
10596
10577
  }
10597
10578
  if (!!this.field.options.required) {
@@ -10631,7 +10612,6 @@ var fieldMixin = {
10631
10612
  label: this.field.options.label
10632
10613
  });
10633
10614
  }
10634
- this.clearFieldValidate();
10635
10615
  },
10636
10616
  disableChangeValidate() {
10637
10617
  if (!this.rules) {
@@ -26290,8 +26270,6 @@ const _sfc_main$2Y = {
26290
26270
  if (!this.widget)
26291
26271
  return;
26292
26272
  const hiddenFlag = !!hidden;
26293
- const propsToClear = [];
26294
- const formRef = this.getFormRef();
26295
26273
  traverseFieldWidgetsOfContainer(this.widget, (fieldWidget2) => {
26296
26274
  if (!fieldWidget2.formItemFlag || !fieldWidget2.options || !fieldWidget2.options.name) {
26297
26275
  return;
@@ -26306,15 +26284,7 @@ const _sfc_main$2Y = {
26306
26284
  } else if (typeof fieldRef.buildFieldRules === "function") {
26307
26285
  fieldRef.buildFieldRules();
26308
26286
  }
26309
- if (typeof fieldRef.getPropName === "function") {
26310
- propsToClear.push(fieldRef.getPropName());
26311
- }
26312
26287
  });
26313
- if (propsToClear.length > 0 && formRef && typeof formRef.clearValidate === "function") {
26314
- this.$nextTick(() => {
26315
- formRef.clearValidate(propsToClear);
26316
- });
26317
- }
26318
26288
  },
26319
26289
  setHidden(flag) {
26320
26290
  if (this.widget && this.widget.options) {
@@ -26421,7 +26391,7 @@ function _sfc_render$2Y(_ctx, _cache, $props, $setup, $data, $options) {
26421
26391
  [vShow, $options.colVisible]
26422
26392
  ]) : createCommentVNode("", true);
26423
26393
  }
26424
- var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Y, [["render", _sfc_render$2Y], ["__scopeId", "data-v-54aa37b2"]]);
26394
+ var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Y, [["render", _sfc_render$2Y], ["__scopeId", "data-v-20705201"]]);
26425
26395
  var __glob_0_1$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26426
26396
  __proto__: null,
26427
26397
  "default": GridColItem
@@ -27714,6 +27684,9 @@ const _sfc_main$2S = {
27714
27684
  const fieldRef = this.getWidgetRef(fieldName);
27715
27685
  if (fieldRef && typeof fieldRef.setRequired === "function") {
27716
27686
  fieldRef.setRequired(flag);
27687
+ if (typeof fieldRef.buildFieldRules === "function") {
27688
+ fieldRef.buildFieldRules();
27689
+ }
27717
27690
  return true;
27718
27691
  }
27719
27692
  const fieldSchema = this.findFieldByName(fieldName);
@@ -27722,8 +27695,6 @@ const _sfc_main$2S = {
27722
27695
  const refAfter = this.getWidgetRef(fieldName);
27723
27696
  if (refAfter && typeof refAfter.buildFieldRules === "function") {
27724
27697
  refAfter.buildFieldRules();
27725
- } else {
27726
- this.$nextTick(() => this.clearValidate(fieldName));
27727
27698
  }
27728
27699
  return true;
27729
27700
  }
@@ -28010,11 +27981,7 @@ const _sfc_main$2S = {
28010
27981
  });
28011
27982
  },
28012
27983
  clearValidate(props) {
28013
- const form = this.$refs.renderForm;
28014
- if (!form || typeof form.clearValidate !== "function") {
28015
- return;
28016
- }
28017
- form.clearValidate(props);
27984
+ this.$refs.renderForm.clearValidate(props);
28018
27985
  },
28019
27986
  validateForm(callback2) {
28020
27987
  this.$refs["renderForm"].validate((valid) => {
@@ -28139,7 +28106,6 @@ const _sfc_main$2S = {
28139
28106
  if (!col)
28140
28107
  return;
28141
28108
  const hiddenFlag = !!hidden;
28142
- const propsToClear = [];
28143
28109
  traverseFieldWidgetsOfContainer(col, (fieldWidget2) => {
28144
28110
  if (!fieldWidget2.formItemFlag || !fieldWidget2.options || !fieldWidget2.options.name) {
28145
28111
  return;
@@ -28154,15 +28120,7 @@ const _sfc_main$2S = {
28154
28120
  } else if (typeof fieldRef.buildFieldRules === "function") {
28155
28121
  fieldRef.buildFieldRules();
28156
28122
  }
28157
- if (typeof fieldRef.getPropName === "function") {
28158
- propsToClear.push(fieldRef.getPropName());
28159
- }
28160
28123
  });
28161
- if (propsToClear.length > 0) {
28162
- this.$nextTick(() => {
28163
- this.clearValidate(propsToClear);
28164
- });
28165
- }
28166
28124
  },
28167
28125
  setColHidden(colName, hidden) {
28168
28126
  if (Array.isArray(colName)) {
@@ -28239,7 +28197,7 @@ function _sfc_render$2S(_ctx, _cache, $props, $setup, $data, $options) {
28239
28197
  _: 3
28240
28198
  }, 8, ["label-position", "size", "class", "label-width", "model"]);
28241
28199
  }
28242
- var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2S, [["render", _sfc_render$2S], ["__scopeId", "data-v-6ba86904"]]);
28200
+ var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2S, [["render", _sfc_render$2S], ["__scopeId", "data-v-3d429201"]]);
28243
28201
  var ace$2 = { exports: {} };
28244
28202
  (function(module, exports) {
28245
28203
  (function() {
@@ -68805,13 +68763,13 @@ function registerIcon(app) {
68805
68763
  if (typeof window !== "undefined") {
68806
68764
  let loadSvg = function() {
68807
68765
  var body = document.body;
68808
- var svgDom = document.getElementById("__svg__icons__dom__1779273892216__");
68766
+ var svgDom = document.getElementById("__svg__icons__dom__1779357201018__");
68809
68767
  if (!svgDom) {
68810
68768
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
68811
68769
  svgDom.style.position = "absolute";
68812
68770
  svgDom.style.width = "0";
68813
68771
  svgDom.style.height = "0";
68814
- svgDom.id = "__svg__icons__dom__1779273892216__";
68772
+ svgDom.id = "__svg__icons__dom__1779357201018__";
68815
68773
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
68816
68774
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
68817
68775
  }
@@ -79078,7 +79036,7 @@ const _sfc_main$6 = {
79078
79036
  this.handleGetAssetTypeOptions();
79079
79037
  }
79080
79038
  };
79081
- const _hoisted_1$4 = { class: "asset-body-wrap" };
79039
+ const _hoisted_1$4 = { class: "asset-bodybody-wrap" };
79082
79040
  const _hoisted_2$2 = { class: "bottom-wrap" };
79083
79041
  const _hoisted_3$1 = { class: "left-wrap" };
79084
79042
  const _hoisted_4 = { class: "filter-wrap" };
@@ -79410,7 +79368,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
79410
79368
  _: 1
79411
79369
  }, 8, ["modelValue", "onClose"]);
79412
79370
  }
79413
- var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-4c34c6a0"]]);
79371
+ var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-d26bfe7c"]]);
79414
79372
  var index_vue_vue_type_style_index_0_lang$1 = "";
79415
79373
  const _sfc_main$5 = {
79416
79374
  name: "asset-select-widget",