Browse Source

REPORT-47884 feat: pane加上EVENT_LOADING事件

es6
youki 4 years ago
parent
commit
f0c195f3c2
  1. 4
      src/base/pane.js
  2. 1
      typescript/base/pane.ts

4
src/base/pane.js

@ -86,6 +86,7 @@ BI.Pane = BI.inherit(BI.Widget, {
items: this._getLoadingTipItems(this._loading)
});
}
self.fireEvent(BI.Pane.EVENT_LOADING);
this.element.addClass("loading-status");
},
@ -143,4 +144,5 @@ BI.Pane = BI.inherit(BI.Widget, {
}
});
BI.Pane.EVENT_LOADED = "EVENT_LOADED";
BI.Pane.EVENT_LOADED = "EVENT_LOADED";
BI.Pane.EVENT_LOADING = "EVENT_LOADING";

1
typescript/base/pane.ts

@ -2,6 +2,7 @@ import { Widget } from "../core/widget";
export declare class Pane extends Widget {
static EVENT_LOADED: string;
static EVENT_LOADING: string;
_assertTip(..._args: any[]): void;
loading(): void;

Loading…
Cancel
Save