diff --git a/src/base/combination/tab.js b/src/base/combination/tab.js index 637ee95f3..1aa075870 100644 --- a/src/base/combination/tab.js +++ b/src/base/combination/tab.js @@ -83,10 +83,10 @@ BI.Tab = BI.inherit(BI.Widget, { } }, - setSelect: function (v) { + setSelect: function (v, action, callback) { this.tab && this.tab.setValue(v); this._assertCard(v); - this.layout.showCardByName(v); + this.layout.showCardByName(v, action, callback); this._deleteOtherCards(v); if (this.curr !== v) { this.curr = v; diff --git a/typescript/base/combination/tab.ts b/typescript/base/combination/tab.ts index db241022e..0469a2f59 100644 --- a/typescript/base/combination/tab.ts +++ b/typescript/base/combination/tab.ts @@ -1,11 +1,12 @@ import { Widget } from "../../core/widget"; +import { Action } from "../../core/action/action"; export declare class Tab extends Widget { static xtype: string; static EVENT_CHANGE: string; - setSelect(v: string | number): void; + setSelect(v: string | number, action?: Action, callback?: Function): void; removeTab(v: string | number): void;