feat(search): Localization for search placeholder, close #80
This commit is contained in:
parent
079bd00395
commit
2351c3e68c
6 changed files with 41 additions and 6 deletions
|
|
@ -18,6 +18,7 @@ export function initMixin (proto) {
|
|||
initEvent(vm) // Bind events
|
||||
initRoute(vm) // Add hashchange eventListener
|
||||
initFetch(vm) // Fetch data
|
||||
callHook(vm, 'mounted')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue