@form-create/element-ui 3.2.40 → 3.2.41
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 +16 -7
- package/dist/form-create.esm.min.js +2 -2
- package/dist/form-create.js +16 -7
- 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.41
|
|
3
3
|
* (c) 2018-2026 xaboy
|
|
4
4
|
* Github https://github.com/xaboy/form-create
|
|
5
5
|
* Released under the MIT License.
|
|
@@ -2913,7 +2913,7 @@
|
|
|
2913
2913
|
},
|
|
2914
2914
|
inFor: Boolean
|
|
2915
2915
|
},
|
|
2916
|
-
emits: ['update:api', 'update:modelValue', 'mounted', 'submit', 'reset', 'change', 'emit-event', 'control', 'remove-rule', 'remove-field', 'sync', 'reload', 'repeat-field', 'update', 'validate-field-fail', 'validate-fail', 'created'],
|
|
2916
|
+
emits: ['update:api', 'update:modelValue', 'mounted', 'beforeUnmount', 'submit', 'reset', 'change', 'emit-event', 'control', 'remove-rule', 'remove-field', 'sync', 'reload', 'repeat-field', 'update', 'validate-field-fail', 'validate-fail', 'created'],
|
|
2917
2917
|
render: function render() {
|
|
2918
2918
|
return this.fc.render();
|
|
2919
2919
|
},
|
|
@@ -4049,9 +4049,10 @@
|
|
|
4049
4049
|
|
|
4050
4050
|
return (_h$vm$setupState$getG = h.vm.setupState.getGroupInject()) === null || _h$vm$setupState$getG === void 0 ? void 0 : _h$vm$setupState$getG.rule;
|
|
4051
4051
|
},
|
|
4052
|
-
fetch: function fetch(
|
|
4052
|
+
fetch: function fetch(_opt) {
|
|
4053
4053
|
return new Promise(function (resolve, reject) {
|
|
4054
|
-
opt =
|
|
4054
|
+
var opt = _objectSpread2({}, _opt);
|
|
4055
|
+
|
|
4055
4056
|
opt = h.loadFetchVar(opt);
|
|
4056
4057
|
|
|
4057
4058
|
var fail = function fail(e) {
|
|
@@ -4077,7 +4078,7 @@
|
|
|
4077
4078
|
},
|
|
4078
4079
|
watchFetch: function watchFetch(opt, callback, error, beforeFetch) {
|
|
4079
4080
|
return h.fc.watchLoadData(function (get, change) {
|
|
4080
|
-
var _opt =
|
|
4081
|
+
var _opt = _objectSpread2({}, opt);
|
|
4081
4082
|
|
|
4082
4083
|
_opt = h.loadFetchVar(_opt, get);
|
|
4083
4084
|
|
|
@@ -4962,6 +4963,10 @@
|
|
|
4962
4963
|
group = rule.__fc__.getParentGroup();
|
|
4963
4964
|
}
|
|
4964
4965
|
|
|
4966
|
+
if (!group && options.targetRule && options.targetRule.__fc__) {
|
|
4967
|
+
group = options.targetRule.__fc__.getParentGroup();
|
|
4968
|
+
}
|
|
4969
|
+
|
|
4965
4970
|
var loadVal = function loadVal(str) {
|
|
4966
4971
|
return _this4.loadStrVar(str, get, group ? {
|
|
4967
4972
|
rule: rule,
|
|
@@ -8789,7 +8794,7 @@
|
|
|
8789
8794
|
},
|
|
8790
8795
|
mergeOptions: function mergeOptions(target, opt, parent) {
|
|
8791
8796
|
opt = _objectSpread2({}, opt || {});
|
|
8792
|
-
parent && ['page', 'onSubmit', 'onReset', 'onCreated', 'onChange', 'onMounted', 'mounted', 'onReload', 'reload', 'formData', 'el', 'globalClass', 'style'].forEach(function (n) {
|
|
8797
|
+
parent && ['page', 'onSubmit', 'onReset', 'onCreated', 'onChange', 'onMounted', 'mounted', 'beforeUnmount', 'onBeforeUnmount', 'onReload', 'reload', 'formData', 'el', 'globalClass', 'style'].forEach(function (n) {
|
|
8793
8798
|
delete opt[n];
|
|
8794
8799
|
});
|
|
8795
8800
|
|
|
@@ -8818,6 +8823,10 @@
|
|
|
8818
8823
|
unmount: function unmount() {
|
|
8819
8824
|
var _this7 = this;
|
|
8820
8825
|
|
|
8826
|
+
invoke(function () {
|
|
8827
|
+
return _this7.$handle.lifecycle('beforeUnmount');
|
|
8828
|
+
});
|
|
8829
|
+
|
|
8821
8830
|
if (this.name) {
|
|
8822
8831
|
if (this.inFor) {
|
|
8823
8832
|
var idx = instance[this.name].indexOf(this);
|
|
@@ -9916,7 +9925,7 @@
|
|
|
9916
9925
|
function elmFormCreate() {
|
|
9917
9926
|
return FormCreateFactory({
|
|
9918
9927
|
ui: 'element-ui',
|
|
9919
|
-
version: '3.2.
|
|
9928
|
+
version: '3.2.41',
|
|
9920
9929
|
manager: manager,
|
|
9921
9930
|
extendApi: extendApi,
|
|
9922
9931
|
install: install,
|