@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.
@@ -6448,7 +6448,7 @@ function useContext(Handler) {
6448
6448
  return this.$manager.adapterValidate({
6449
6449
  required: validate.required,
6450
6450
  message: validate.message,
6451
- target: validate.trigger
6451
+ trigger: validate.trigger
6452
6452
  }, validator);
6453
6453
  },
6454
6454
  getValidateMessage: function getValidateMessage(ctx, invalid) {
@@ -6697,9 +6697,10 @@ function useContext(Handler) {
6697
6697
  var one = item.group[i];
6698
6698
  var flag = void 0;
6699
6699
  var field = null;
6700
+ var variableVal = null;
6700
6701
 
6701
6702
  if (one.variable) {
6702
- field = JSON.stringify(_this4.fc.getLoadData(one.variable)) || '';
6703
+ variableVal = _this4.fc.getLoadData(one.variable);
6703
6704
  } else if (one.field) {
6704
6705
  field = convertFieldToConditions(one.field || '');
6705
6706
  } else if (!one.mode) {
@@ -6708,6 +6709,12 @@ function useContext(Handler) {
6708
6709
  };
6709
6710
  }
6710
6711
 
6712
+ if (!one.variable && !one.field) {
6713
+ return {
6714
+ v: false
6715
+ };
6716
+ }
6717
+
6711
6718
  var compare = one.compare;
6712
6719
 
6713
6720
  if (compare) {
@@ -6724,7 +6731,7 @@ function useContext(Handler) {
6724
6731
  });
6725
6732
  } else {
6726
6733
  flag = invoke(function () {
6727
- 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);
6734
+ 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);
6728
6735
  });
6729
6736
  }
6730
6737
 
@@ -9843,7 +9850,7 @@ function install(FormCreate) {
9843
9850
  function elmFormCreate() {
9844
9851
  return FormCreateFactory({
9845
9852
  ui: 'element-ui',
9846
- version: '3.2.31',
9853
+ version: '3.2.32',
9847
9854
  manager: manager,
9848
9855
  extendApi: extendApi,
9849
9856
  install: install,