|
|
|
@ -86,15 +86,18 @@ BI.Tab = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
created: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
if (o.showIndex !== false) { |
|
|
|
|
|
|
|
|
|
var showIndex; |
|
|
|
|
if (BI.isFunction(o.showIndex)) { |
|
|
|
|
var v = this.__watch(o.showIndex, function (context, newValue) { |
|
|
|
|
showIndex = this.__watch(o.showIndex, function (context, newValue) { |
|
|
|
|
self.setSelect(newValue); |
|
|
|
|
}); |
|
|
|
|
this.setSelect(v); |
|
|
|
|
} else { |
|
|
|
|
this.setSelect(o.showIndex); |
|
|
|
|
showIndex = o.showIndex; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (showIndex !== false) { |
|
|
|
|
this.setSelect(showIndex); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|