@form-create/element-ui 3.2.39 → 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.39
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(opt) {
4052
+ fetch: function fetch(_opt) {
4053
4053
  return new Promise(function (resolve, reject) {
4054
- opt = deepCopy(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 = deepCopy(opt);
4081
+ var _opt = _objectSpread2({}, opt);
4081
4082
 
4082
4083
  _opt = h.loadFetchVar(_opt, get);
4083
4084
 
@@ -4341,6 +4342,8 @@
4341
4342
  }
4342
4343
 
4343
4344
  vn = function vn() {
4345
+ var _prop$col;
4346
+
4344
4347
  for (var _len = arguments.length, slotValue = new Array(_len), _key = 0; _key < _len; _key++) {
4345
4348
  slotValue[_key] = arguments[_key];
4346
4349
  }
@@ -4403,7 +4406,7 @@
4403
4406
 
4404
4407
  _vn = _this4.renderSides(_vn, ctx);
4405
4408
 
4406
- if ((ctx.input || !is.Undef(prop["native"]) || prop.col.show !== false) && prop["native"] !== true) {
4409
+ if ((!(!ctx.input && is.Undef(prop["native"])) || ((_prop$col = prop.col) === null || _prop$col === void 0 ? void 0 : _prop$col.show) === true) && prop["native"] !== true) {
4407
4410
  _this4.fc.targetFormDriver('updateWrap', ctx);
4408
4411
 
4409
4412
  _vn = _this4.$manager.makeWrap(ctx, _vn);
@@ -4960,6 +4963,10 @@
4960
4963
  group = rule.__fc__.getParentGroup();
4961
4964
  }
4962
4965
 
4966
+ if (!group && options.targetRule && options.targetRule.__fc__) {
4967
+ group = options.targetRule.__fc__.getParentGroup();
4968
+ }
4969
+
4963
4970
  var loadVal = function loadVal(str) {
4964
4971
  return _this4.loadStrVar(str, get, group ? {
4965
4972
  rule: rule,
@@ -5246,6 +5253,7 @@
5246
5253
  },
5247
5254
  initProp: function initProp() {
5248
5255
  var _this3 = this,
5256
+ _rule$col,
5249
5257
  _this$refRule,
5250
5258
  _this$refRule$__$vali;
5251
5259
 
@@ -5256,6 +5264,11 @@
5256
5264
  this.prop = mergeRule({}, [rule].concat(_toConsumableArray(Object.keys(this.payload).map(function (k) {
5257
5265
  return _this3.payload[k];
5258
5266
  })), [this.computed]));
5267
+
5268
+ if (rule.col && ((_rule$col = rule.col) === null || _rule$col === void 0 ? void 0 : _rule$col.show) !== false) {
5269
+ this.prop.col.show = true;
5270
+ }
5271
+
5259
5272
  this.prop.validate = [].concat(_toConsumableArray(((_this$refRule = this.refRule) === null || _this$refRule === void 0 ? void 0 : (_this$refRule$__$vali = _this$refRule.__$validate) === null || _this$refRule$__$vali === void 0 ? void 0 : _this$refRule$__$vali.value) || []), _toConsumableArray(this.prop.validate || []));
5260
5273
  },
5261
5274
  initNone: function initNone() {
@@ -8781,7 +8794,7 @@
8781
8794
  },
8782
8795
  mergeOptions: function mergeOptions(target, opt, parent) {
8783
8796
  opt = _objectSpread2({}, opt || {});
8784
- 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) {
8785
8798
  delete opt[n];
8786
8799
  });
8787
8800
 
@@ -8810,6 +8823,10 @@
8810
8823
  unmount: function unmount() {
8811
8824
  var _this7 = this;
8812
8825
 
8826
+ invoke(function () {
8827
+ return _this7.$handle.lifecycle('beforeUnmount');
8828
+ });
8829
+
8813
8830
  if (this.name) {
8814
8831
  if (this.inFor) {
8815
8832
  var idx = instance[this.name].indexOf(this);
@@ -9435,7 +9452,9 @@
9435
9452
  return this.$r(_prop, children);
9436
9453
  },
9437
9454
  makeCol: function makeCol(rule, uni, children) {
9438
- var col = rule.col;
9455
+ var col = _objectSpread2({}, rule.col);
9456
+
9457
+ delete col.show;
9439
9458
  return this.$r({
9440
9459
  "class": this.$render.mergeClass(col["class"], 'fc-form-col'),
9441
9460
  type: 'col',
@@ -9906,7 +9925,7 @@
9906
9925
  function elmFormCreate() {
9907
9926
  return FormCreateFactory({
9908
9927
  ui: 'element-ui',
9909
- version: '3.2.39',
9928
+ version: '3.2.41',
9910
9929
  manager: manager,
9911
9930
  extendApi: extendApi,
9912
9931
  install: install,