Browse Source

Pull request #1558: BI-75571 fix:原来根据数组的变化强制刷新,加下对象判断,保证如果根据这个数组计算得到的计算属性是基本类型且无变化不刷新

Merge in VISUAL/fineui from ~IMP/fineui_fui:master to master

* commit '0a4f2c30b3a24a5514dd22377d51d6310c6a12db':
  BI-75571 fix:原来根据数组的变化强制刷新,加下对象判断,保证如果根据这个数组计算得到的计算属性是基本类型且无变化不刷新
master
imp 4 years ago
parent
commit
038f6ae6eb
  1. 2
      dist/fix/fix.js

2
dist/fix/fix.js vendored

@ -850,7 +850,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
// Deep watchers and watchers on Object/Arrays should fire even
// when the value is the same, because the value may
// have mutated.
options && options.refresh || this.deep) {
_.isObject(value) && options && options.refresh || this.deep) {
// set new value
var oldValue = this.value;
this.value = value;

Loading…
Cancel
Save