feat(search): Localization for search placeholder, close #80

This commit is contained in:
qingwei.li 2017-02-19 11:18:23 +08:00 committed by cinwell.li
commit 2351c3e68c
6 changed files with 41 additions and 6 deletions

View file

@ -18,6 +18,7 @@ export function initMixin (proto) {
initEvent(vm) // Bind events
initRoute(vm) // Add hashchange eventListener
initFetch(vm) // Fetch data
callHook(vm, 'mounted')
}
}

View file

@ -1,7 +1,14 @@
import { noop } from '../util/core'
export function initLifecycle (vm) {
const hooks = ['init', 'beforeEach', 'afterEach', 'doneEach', 'ready']
const hooks = [
'init',
'mounted',
'beforeEach',
'afterEach',
'doneEach',
'ready'
]
vm._hooks = {}
vm._lifecycle = {}