Browse Source

Pull request #1884: REPORT-51051 setSelect支持actions

Merge in VISUAL/fineui from ~TELLER/fineui:bugfix to master

* commit 'cdb67e51b5316ba40576456ee149422b0a0f6c3b':
  REPORT-51051 feat: setSelect支持actions
es6
Teller 4 years ago
parent
commit
06a6f17431
  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.tab && this.tab.setValue(v);
this._assertCard(v); this._assertCard(v);
this.layout.showCardByName(v); this.layout.showCardByName(v, action, callback);
this._deleteOtherCards(v); this._deleteOtherCards(v);
if (this.curr !== v) { if (this.curr !== v) {
this.curr = v; this.curr = v;

3
typescript/base/combination/tab.ts

@ -1,11 +1,12 @@
import { Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
import { Action } from "../../core/action/action";
export declare class Tab extends Widget { export declare class Tab extends Widget {
static xtype: string; static xtype: string;
static EVENT_CHANGE: string; static EVENT_CHANGE: string;
setSelect(v: string | number): void; setSelect(v: string | number, action?: Action, callback?: Function): void;
removeTab(v: string | number): void; removeTab(v: string | number): void;

Loading…
Cancel
Save