snail.view 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/snail.view.d.ts +1 -1
- package/package.json +1 -1
package/dist/snail.view.d.ts
CHANGED
|
@@ -421,7 +421,7 @@ interface IObserver {
|
|
|
421
421
|
* @param fn 事件处理方法
|
|
422
422
|
* @returns 作用域,可销毁监听
|
|
423
423
|
*/
|
|
424
|
-
onEvent(target: Element | Window, name: string, fn:
|
|
424
|
+
onEvent(target: Element | Window, name: string, fn: (...args: any[]) => void): IScope;
|
|
425
425
|
/**
|
|
426
426
|
* 监听元素尺寸变化
|
|
427
427
|
* - scope销毁时自动移除监听
|
package/package.json
CHANGED