lib/kissy/5.0.0-alpha.3/build/tabs-debug.js
function (panel) {
                var self = this, bar = self.get('bar'), body = self.get('body'), selectedPanelIndex = util.indexOf(panel, body.get('children'));
                body.set('selectedPanelIndex', selectedPanelIndex);
                bar.set('selectedTab', self.getTabAt(selectedPanelIndex));
                return this;
            }
function (panel) {
                var self = this, bar = self.get('bar'), body = self.get('body'), selectedPanelIndex = util.indexOf(panel, body.get('children'));
                body.set('selectedPanelIndex', selectedPanelIndex);
                bar.set('selectedTab', self.getTabAt(selectedPanelIndex));
                return this;
            }
function ( panel ) { var self = this , bar = self . get ( 'bar' ) , body = self . get ( 'body' ) , selectedPanelIndex = util . indexOf ( panel , body . get ( 'children' ) ) ; body . set ( 'selectedPanelIndex' , selectedPanelIndex ) ; bar . set ( 'selectedTab' , self . getTabAt ( selectedPanelIndex ) ) ; return this ; }
set panel as selected
@param {KISSY.Tabs.Panel} panel
@chainable
set panel as selected