Browse Source

无JRIA tab在single:true状态下支持keepAlive

es6
zsmj 3 years ago
parent
commit
bc81cb3714
  1. 4
      src/base/combination/tab.js

4
src/base/combination/tab.js

@ -85,8 +85,8 @@ BI.Tab = BI.inherit(BI.Widget, {
_keepAlive: function (v) {
var o = this.options;
var keepAlives = BI.isFunction(o.keepAlives) ? o.keepAlives() : o.keepAlives;
return BI.contains(keepAlives, v);
return BI.isFunction(o.keepAlives) ? o.keepAlives(v) : BI.contains(o.keepAlives, v);
},
created: function () {

Loading…
Cancel
Save