fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

47 lines
1.0 KiB

export declare class _OB {
protected props: Props | (<T>(config: T) => Props & T);
protected options: Props;
private events?: {
[eventName: string]: Function[];
};
public init: Function | null;
public destroyed: Function | null;
protected _defaultConfig: (..._args: any[]) => { [key: string]: any } | {};
protected _init: () => void;
private _initListeners: () => void;
private _getEvents: () => { [eventName: string]: Function[] };
public on: (eventName: string, fn: Function) => void;
public once: (eventName: string, fn: Function) => void;
public un: (eName: string, fn: Function) => void;
protected _initRef: () => void;
protected _purgeRef: () => void;
public purgeListeners: () => void;
public fireEvent: (eName: string, ...args: any[]) => boolean;
public destroy: () => void;
}
interface Props {
listeners?: {
eventName: string;
action: (...args: any[]) => any;
target?: _OB;
once?: boolean;
}[];
[key: string]: any;
}