iov-pro-components 0.0.80 → 0.0.82

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.
@@ -8865,20 +8865,21 @@ var script$o = {
8865
8865
  console.warn('【iov-pro-request】请传入api字段');
8866
8866
  return _context.abrupt("return");
8867
8867
  case 3:
8868
+ // 拷贝当前入参数据
8869
+ _this.oldParams = cloneDeep(_this.params);
8870
+ // 如果必填参数不全,则不可请求接口
8868
8871
  if (!(_this.requiredFields && _this.requiredFields.some(function (fieldKey) {
8869
8872
  return isNil$1(_this.params[fieldKey]);
8870
8873
  }))) {
8871
- _context.next = 7;
8874
+ _context.next = 8;
8872
8875
  break;
8873
8876
  }
8874
8877
  _this.respData = _this.default || _this.value;
8875
8878
  console.warn('【iov-pro-request】请填写必填参数');
8876
8879
  return _context.abrupt("return");
8877
- case 7:
8880
+ case 8:
8878
8881
  // 标记当前正在加载新接口
8879
8882
  _this.loading = !_this.hideLoading;
8880
- // 前拷贝当前入参数据
8881
- _this.oldParams = cloneDeep(_this.params);
8882
8883
  _context.prev = 9;
8883
8884
  _context.next = 12;
8884
8885
  return _this.api(_this.params);
@@ -9117,16 +9118,10 @@ var script$n = {
9117
9118
  if (fieldName) {
9118
9119
  value[fieldName] = value[fieldName] || _this.modelValue[key];
9119
9120
  } else {
9120
- value[key] = value[key] || _this.modelValue[key];
9121
+ value[key] = _this.modelValue[key];
9121
9122
  }
9122
9123
  }
9123
9124
  });
9124
- // 如果2个对象相等,则不处理
9125
- if (isEqual(this.prevState.value, value)) {
9126
- return;
9127
- }
9128
- // 触发值改变钩子函数
9129
- this.triggerHooks(HOOKS.VALUE_CHANGE, value);
9130
9125
  // 上一次value的值
9131
9126
  var prevStateValue = this.prevState.value;
9132
9127
  // 记录当前双向绑定的数据(当前组件内部均使用此数据,减少render数量)
@@ -9134,6 +9129,12 @@ var script$n = {
9134
9129
  // 触发watch对应的方法,并且深拷贝一份数据
9135
9130
  // 表单值改变后,触发对应的影响
9136
9131
  this.triggerEffect();
9132
+ // 如果2个对象相等,则不处理
9133
+ if (isEqual(prevStateValue, value)) {
9134
+ return;
9135
+ }
9136
+ // 触发值改变钩子函数
9137
+ this.triggerHooks(HOOKS.VALUE_CHANGE, value);
9137
9138
  // 开始双向绑定
9138
9139
  this.$emit('input', value);
9139
9140
  // 触发change,返回新老数据
@@ -22513,7 +22514,7 @@ var install = function install(Vue, componentConfig) {
22513
22514
  };
22514
22515
  var index = {
22515
22516
  install: install,
22516
- version: '0.0.80',
22517
+ version: '0.0.82',
22517
22518
  ColumnTooltip: __vue_component__$y,
22518
22519
  Description: __vue_component__$v,
22519
22520
  DialogItemsSelect: __vue_component__$u,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iov-pro-components",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
4
4
  "description": "IOV Pro Components for Vue.js",
5
5
  "main": "lib/iov-pro-components.min.js",
6
6
  "files": [