@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.
- package/dist/form-create.esm.js +12 -5
- package/dist/form-create.esm.min.js +2 -2
- package/dist/form-create.js +12 -5
- package/dist/form-create.min.js +2 -2
- package/package.json +3 -3
package/dist/form-create.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @form-create/element-ui v3.2.
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
9857
|
+
version: '3.2.32',
|
|
9851
9858
|
manager: manager,
|
|
9852
9859
|
extendApi: extendApi,
|
|
9853
9860
|
install: install,
|