Browse Source

Pull request #3178: 无JIRA fix: tab

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '0752357a47c980d092ba5caa91b052afdeff1b22':
  无jira fix: tab
  无JIRA fix: tab
es6
Dailer-刘荣歆 2 years ago
parent
commit
b4e4e9deb0
  1. 4
      src/base/combination/tab.js

4
src/base/combination/tab.js

@ -44,7 +44,7 @@ BI.Tab = BI.inherit(BI.Widget, {
cardLayout: this.layout, cardLayout: this.layout,
cardCreator: function (v) { cardCreator: function (v) {
BI.Widget.execWithContext(self, function () { BI.Widget.execWithContext(self, function () {
self.cardMap[v] = o.cardCreator.apply(self, arguments); self.cardMap[v] = o.cardCreator(v);
}); });
return self.cardMap[v]; return self.cardMap[v];
@ -75,7 +75,7 @@ BI.Tab = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
if (!this.layout.isCardExisted(v)) { if (!this.layout.isCardExisted(v)) {
BI.Widget.execWithContext(this, function () { BI.Widget.execWithContext(this, function () {
self.cardMap[v] = o.cardCreator.apply(self, arguments); self.cardMap[v] = o.cardCreator(v);
}); });
this.layout.addCardByName(v, this.cardMap[v]); this.layout.addCardByName(v, this.cardMap[v]);
} }

Loading…
Cancel
Save