@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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @form-create/element-ui v3.2.40
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.
@@ -2909,7 +2909,7 @@ function $FormCreate(FormCreate, components, directives) {
2909
2909
  },
2910
2910
  inFor: Boolean
2911
2911
  },
2912
- 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'],
2912
+ 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'],
2913
2913
  render: function render() {
2914
2914
  return this.fc.render();
2915
2915
  },
@@ -4045,9 +4045,10 @@ function Api(h) {
4045
4045
 
4046
4046
  return (_h$vm$setupState$getG = h.vm.setupState.getGroupInject()) === null || _h$vm$setupState$getG === void 0 ? void 0 : _h$vm$setupState$getG.rule;
4047
4047
  },
4048
- fetch: function fetch(opt) {
4048
+ fetch: function fetch(_opt) {
4049
4049
  return new Promise(function (resolve, reject) {
4050
- opt = deepCopy(opt);
4050
+ var opt = _objectSpread2({}, _opt);
4051
+
4051
4052
  opt = h.loadFetchVar(opt);
4052
4053
 
4053
4054
  var fail = function fail(e) {
@@ -4073,7 +4074,7 @@ function Api(h) {
4073
4074
  },
4074
4075
  watchFetch: function watchFetch(opt, callback, error, beforeFetch) {
4075
4076
  return h.fc.watchLoadData(function (get, change) {
4076
- var _opt = deepCopy(opt);
4077
+ var _opt = _objectSpread2({}, opt);
4077
4078
 
4078
4079
  _opt = h.loadFetchVar(_opt, get);
4079
4080
 
@@ -4958,6 +4959,10 @@ function useInject(Handler) {
4958
4959
  group = rule.__fc__.getParentGroup();
4959
4960
  }
4960
4961
 
4962
+ if (!group && options.targetRule && options.targetRule.__fc__) {
4963
+ group = options.targetRule.__fc__.getParentGroup();
4964
+ }
4965
+
4961
4966
  var loadVal = function loadVal(str) {
4962
4967
  return _this4.loadStrVar(str, get, group ? {
4963
4968
  rule: rule,
@@ -8785,7 +8790,7 @@ function FormCreateFactory(config) {
8785
8790
  },
8786
8791
  mergeOptions: function mergeOptions(target, opt, parent) {
8787
8792
  opt = _objectSpread2({}, opt || {});
8788
- parent && ['page', 'onSubmit', 'onReset', 'onCreated', 'onChange', 'onMounted', 'mounted', 'onReload', 'reload', 'formData', 'el', 'globalClass', 'style'].forEach(function (n) {
8793
+ parent && ['page', 'onSubmit', 'onReset', 'onCreated', 'onChange', 'onMounted', 'mounted', 'beforeUnmount', 'onBeforeUnmount', 'onReload', 'reload', 'formData', 'el', 'globalClass', 'style'].forEach(function (n) {
8789
8794
  delete opt[n];
8790
8795
  });
8791
8796
 
@@ -8814,6 +8819,10 @@ function FormCreateFactory(config) {
8814
8819
  unmount: function unmount() {
8815
8820
  var _this7 = this;
8816
8821
 
8822
+ invoke(function () {
8823
+ return _this7.$handle.lifecycle('beforeUnmount');
8824
+ });
8825
+
8817
8826
  if (this.name) {
8818
8827
  if (this.inFor) {
8819
8828
  var idx = instance[this.name].indexOf(this);
@@ -9912,7 +9921,7 @@ function install(FormCreate) {
9912
9921
  function elmFormCreate() {
9913
9922
  return FormCreateFactory({
9914
9923
  ui: 'element-ui',
9915
- version: '3.2.40',
9924
+ version: '3.2.41',
9916
9925
  manager: manager,
9917
9926
  extendApi: extendApi,
9918
9927
  install: install,