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.

54 lines
1.0 KiB

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