@form-create/element-ui 3.2.31 → 3.2.32

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @form-create/element-ui v3.2.31
2
+ * @form-create/element-ui v3.2.32
3
3
  * (c) 2018-2025 xaboy
4
4
  * Github https://github.com/xaboy/form-create
5
5
  * Released under the MIT License.
@@ -6452,7 +6452,7 @@
6452
6452
  return this.$manager.adapterValidate({
6453
6453
  required: validate.required,
6454
6454
  message: validate.message,
6455
- target: validate.trigger
6455
+ trigger: validate.trigger
6456
6456
  }, validator);
6457
6457
  },
6458
6458
  getValidateMessage: function getValidateMessage(ctx, invalid) {
@@ -6701,9 +6701,10 @@
6701
6701
  var one = item.group[i];
6702
6702
  var flag = void 0;
6703
6703
  var field = null;
6704
+ var variableVal = null;
6704
6705
 
6705
6706
  if (one.variable) {
6706
- field = JSON.stringify(_this4.fc.getLoadData(one.variable)) || '';
6707
+ variableVal = _this4.fc.getLoadData(one.variable);
6707
6708
  } else if (one.field) {
6708
6709
  field = convertFieldToConditions(one.field || '');
6709
6710
  } else if (!one.mode) {
@@ -6712,6 +6713,12 @@
6712
6713
  };
6713
6714
  }
6714
6715
 
6716
+ if (!one.variable && !one.field) {
6717
+ return {
6718
+ v: false
6719
+ };
6720
+ }
6721
+
6715
6722
  var compare = one.compare;
6716
6723
 
6717
6724
  if (compare) {
@@ -6728,7 +6735,7 @@
6728
6735
  });
6729
6736
  } else {
6730
6737
  flag = invoke(function () {
6731
- return new Function('$condition', '$val', '$form', '$scope', '$group', '$rule', "with($form){with($scope){with(this){with($group){ return $condition['".concat(one.condition, "'](").concat(field, ", ").concat(compare ? compare : '$val', "); }}}}")).call(_this4.api.form, condition, one.value, _this4.api.top.form, _this4.api.top === _this4.api.scope ? {} : _this4.api.scope.form, group ? _this4.subRuleData[group.id] || {} : {}, ctx.rule);
6738
+ return new Function('$condition', '$variableVal', '$val', '$form', '$scope', '$group', '$rule', "with($form){with($scope){with(this){with($group){ return $condition['".concat(one.condition, "'](").concat(one.variable ? '$variableVal' : field, ", ").concat(compare ? compare : '$val', "); }}}}")).call(_this4.api.form, condition, variableVal, one.value, _this4.api.top.form, _this4.api.top === _this4.api.scope ? {} : _this4.api.scope.form, group ? _this4.subRuleData[group.id] || {} : {}, ctx.rule);
6732
6739
  });
6733
6740
  }
6734
6741
 
@@ -9847,7 +9854,7 @@
9847
9854
  function elmFormCreate() {
9848
9855
  return FormCreateFactory({
9849
9856
  ui: 'element-ui',
9850
- version: '3.2.31',
9857
+ version: '3.2.32',
9851
9858
  manager: manager,
9852
9859
  extendApi: extendApi,
9853
9860
  install: install,