@bpui/libs
Advanced tools
Comparing version 0.2.23 to 0.2.24
@@ -53,3 +53,3 @@ { | ||
"name": "@bpui/libs", | ||
"version": "0.2.23" | ||
"version": "0.2.24" | ||
} |
@@ -12,3 +12,5 @@ 'use strict'; | ||
import * as timer from './timer'; | ||
import * as eventMgr from './eventMgr'; | ||
import bpLibs from '../../bpLibs'; | ||
import * as febs from 'febs-browser'; | ||
@@ -32,2 +34,3 @@ import icon from '../icon'; | ||
beforeCreate() { | ||
eventMgr.beforeCreate(vue, this); | ||
timer.beforeCreate(vue, this); | ||
@@ -39,2 +42,3 @@ }, | ||
timer.beforeDestroy(vue, this); | ||
eventMgr.beforeDestroy(vue, this); | ||
}, | ||
@@ -46,2 +50,5 @@ }); | ||
}) | ||
Object.defineProperty(vue.prototype, '$febs', { | ||
get: function() { return febs; } | ||
}) | ||
@@ -48,0 +55,0 @@ vue.component('bpIcon', icon); |
@@ -7,2 +7,3 @@ /// <reference path="./router.d.ts" /> | ||
/// <reference path="./gesture.d.ts" /> | ||
/// <reference path="./eventMgr.d.ts" /> | ||
@@ -9,0 +10,0 @@ declare namespace bp { |
import Vue from 'vue'; | ||
import * as febs from 'febs-browser'; | ||
declare module 'vue/types/vue' { | ||
interface Vue { | ||
$bpLibs: typeof bp.bpLibs; | ||
$febs: typeof febs; | ||
/** | ||
* 定时器; 添加的定时器在组件销毁时会自动移除. | ||
*/ | ||
$timer: bp.Timer; | ||
$bpTimer: bp.Timer; /* the same as $timer */ | ||
$bpLibs: typeof bp.bpLibs; | ||
/** | ||
* 事件管理器; 添加的事件在组件销毁时会自动移除. | ||
*/ | ||
$bpEventMgr: bp.EventMgr; | ||
} | ||
@@ -9,0 +20,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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2929123
78
26733