@bpui/libs
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -53,3 +53,3 @@ { | ||
"name": "@bpui/libs", | ||
"version": "1.1.1" | ||
"version": "1.1.2" | ||
} |
@@ -43,3 +43,3 @@ 'use strict'; | ||
*/ | ||
addEventListener(domElement: any, event: string, func: any, useCapture?: boolean): EventMgr { | ||
on(domElement: any, event: string, func: any, useCapture?: boolean): EventMgr { | ||
let i = 0; | ||
@@ -69,3 +69,3 @@ for (; i < this.events.length; i++) { | ||
*/ | ||
removeEventListener(domElement: any, event: string, func: any, useCapture?: boolean): EventMgr { | ||
off(domElement: any, event: string, func: any, useCapture?: boolean): EventMgr { | ||
let i = 0; | ||
@@ -72,0 +72,0 @@ for (; i < this.events.length; i++) { |
@@ -13,2 +13,3 @@ 'use strict'; | ||
import * as eventMgr from './eventMgr'; | ||
import * as gestureMgr from './gestureMgr'; | ||
import bpLibs from '../../bpLibs'; | ||
@@ -35,2 +36,3 @@ import * as febs from 'febs-browser'; | ||
eventMgr.beforeCreate(vue, this); | ||
gestureMgr.beforeCreate(vue, this); | ||
timer.beforeCreate(vue, this); | ||
@@ -42,2 +44,3 @@ }, | ||
timer.beforeDestroy(vue, this); | ||
gestureMgr.beforeDestroy(vue, this); | ||
eventMgr.beforeDestroy(vue, this); | ||
@@ -44,0 +47,0 @@ }, |
@@ -25,3 +25,3 @@ /** | ||
*/ | ||
addEventListener(domElement:any, event:string, func:any, useCapture?:boolean):EventMgr; | ||
on(domElement:any, event:string, func:any, useCapture?:boolean):EventMgr; | ||
@@ -31,4 +31,4 @@ /** | ||
*/ | ||
removeEventListener(domElement:any, event:string, func:any, useCapture?:boolean):EventMgr; | ||
off(domElement:any, event:string, func:any, useCapture?:boolean):EventMgr; | ||
} | ||
} |
@@ -8,2 +8,3 @@ /// <reference path="./router.d.ts" /> | ||
/// <reference path="./eventMgr.d.ts" /> | ||
/// <reference path="./gestureMgr.d.ts" /> | ||
@@ -10,0 +11,0 @@ declare namespace bp { |
@@ -19,2 +19,7 @@ import Vue from 'vue'; | ||
$bpEventMgr: bp.EventMgr; | ||
/** | ||
* 手势对象管理器; 添加的手势对象在组件销毁时会自动移除. | ||
*/ | ||
$bpGestureMgr: bp.GestureMgr; | ||
} | ||
@@ -21,0 +26,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
2952321
80
27046