37 lines
758 B
TypeScript
37 lines
758 B
TypeScript
|
/**
|
||
|
* 获取 top 属性值
|
||
|
* <p>
|
||
|
* @param elem dom
|
||
|
* */
|
||
|
export declare function getTop(elem: any): any;
|
||
|
/**
|
||
|
* 获取 left 属性值
|
||
|
* <p>
|
||
|
* @param elem dom
|
||
|
* */
|
||
|
export declare function getLeft(elem: any): any;
|
||
|
/**
|
||
|
* 事件绑定
|
||
|
* <p>
|
||
|
* @param elem dom
|
||
|
* @param events 事件
|
||
|
* @param handler 事件回调
|
||
|
* */
|
||
|
export declare function on(elem: any, events: any, handler: any): void;
|
||
|
/**
|
||
|
* 单次事件
|
||
|
* <p>
|
||
|
* @param elem dom
|
||
|
* @param events 事件
|
||
|
* @param handler 事件回调
|
||
|
* */
|
||
|
export declare function once(elem: any, events: any, handler: any): void;
|
||
|
/**
|
||
|
* 事件解除
|
||
|
* <p>
|
||
|
* @param elem dom
|
||
|
* @param events 事件
|
||
|
* @param handler 事件回调
|
||
|
* */
|
||
|
export declare function off(elem: any, events: any, handler: any): void;
|