Browse Source

REPORT-51051 feat: setSelect支持actions

master
iapyang 4 years ago
parent
commit
cdb67e51b5
  1. 4
      src/base/combination/tab.js
  2. 3
      typescript/base/combination/tab.ts

4
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;

3
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;

Loading…
Cancel
Save