Browse Source

Pull request #1762: REPORT-47884 pane加上EVENT_LOADING事件

Merge in VISUAL/fineui from ~YOUKI/fineui:master to master

* commit 'f0c195f3c2928b2cbf5eedb1b712e36739793ba9':
  REPORT-47884 feat: pane加上EVENT_LOADING事件
es6
Youki 4 years ago
parent
commit
42788431ba
  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